-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
68 lines (64 loc) · 1.09 KB
/
style.css
File metadata and controls
68 lines (64 loc) · 1.09 KB
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
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;
}
body {
font-family: "Nato", sans-serif;
line-height: 1.7;
font-weight: 400;
color: #777;
padding: 3rem;
box-sizing: border-box;
}
h1 {
text-align: center;
font-size: 3rem;
color: steelblue;
text-transform: uppercase;
margin-bottom: 2rem;
letter-spacing: .3rem;
}
.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: orangered;
float: left;
}
.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-1-of-4 {
width: calc((100% - 3 * 6rem) / 4);
}
.row .col-2-of-3 {
width: calc(2 * ((100% - 2 * 6rem) / 3) + 6rem);
}
.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);
}