-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
54 lines (44 loc) · 888 Bytes
/
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
.row {
max-width: 114rem;
background-color: #eee;
margin: 0 auto;
}
.row:not(:last-child) {
margin-bottom: 8rem;
}
.row::after {
content: "";
display: table;
clear: both;
}
.row [class^="col-"] {
background-color: darkblue;
float: left;
height: 50px;
color: white;
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
}
.row [class^="col-"]:not(:last-child) {
margin-right: 6rem;
}
.row .col-1-of-2 {
width: calc((100% - 6rem) / 2);
}
.row .col-1-of-3 {
width: calc((100% - 2*(6rem)) / 3);
}
.row .col-2-of-3 {
width: calc((2 *(100% - 2*(6rem)) / 3) + 6rem);
}
.row .col-1-of-4 {
width: calc((100% - 3*(6rem)) / 4);
}
.row .col-2-of-4 {
width: calc((2 * ((100% - 3*(6rem)) / 4)) + 6rem);
}
.row .col-3-of-4 {
width: calc((3 * ((100% - 3*(6rem)) / 4)) + 2 * 6rem);
}