-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
90 lines (76 loc) · 1.47 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
div {
margin: 5px;
}
.content {
border: 2px solid blueviolet;
}
.element {
background-color: aqua;
border: 1px solid black;
margin: 10px;
border-radius: 10px;
padding: 10px;
height: 20px;
}
.container {
display: flex;
}
.column {
flex-direction: column;
}
.center {
justify-content: center;
}
.align-center {
align-items: center;
}
.end {
width: 300px;
align-items: flex-end;
}
.reversed {
flex-direction: row-reverse;
justify-content: flex-end;
}
.grid {
display: grid;
grid-template-areas: "auto auto auto";
grid-template-columns: 1fr 2fr 1fr;
grid-template-rows: 100px;
}
/* not correct to do, we should use media queries to change behaviour, just for demo purposes */
.grid-mobile {
display: grid;
grid-template-areas: "auto"
"auto"
"auto";
grid-template-rows: 50px 200px 50px;
}
.header {
grid-area: header;
background-color: #226666;
border: 1px solid black;
color: white;
}
.main {
grid-area: main;
display: flex;
background-color: #AA3939;
border: 1px solid black;
color: white;
align-items: center;
justify-content: center;
}
.footer {
grid-area: footer;
background-color: #7A9F35;
border: 1px solid black;
}
.grid-areas {
display: grid;
grid-template-rows: 30px 200px 30px;
grid-template-columns: 1fr 2fr 1fr;
grid-template-areas: "header header header"
". main ."
"footer footer footer";
}