-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain2.css
100 lines (81 loc) · 1.46 KB
/
main2.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
91
92
93
94
95
96
97
98
99
100
/* resources used:
https://css-tricks.com/fun-viewport-units/
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
https://css-tricks.com/dont-overthink-flexbox-grids/
colors obtained with http://jxnblk.com/colorable/demos/text/
*/
body {
color: #202020;
background-color: #CFCDF4;
display: flex;
}
.col {
margin: 5vw;
}
.content {
order: 2;
flex: 2;
max-width: 50vw;
font-family: Georgia;
font-size: calc(16px + .5vw);
line-height: calc(1.1em + 0.5vw);
display: flex;
flex-direction: column;
}
.tile {
border-top: 1px solid black;
border-bottom: 1px solid black;
}
.nav {
order: 1;
display: flex;
flex-direction: column;
}
.nav .square {
width: 20vw;
height: 20vw;
font-size: calc(16px + 1.5vw);
line-height: calc(1.1em + 0.5vw);
display: flex;
}
.nav ul {
padding: 0;
list-style-type: none;
margin: auto;
color: white;
font-family: Georgia;
}
.nav .square.alpha {
background-color: crimson;
}
.nav .square.beta {
background-color: steelblue;
}
@media screen and (max-width: 700px) {
.nav .square { font-size: calc(12px + 1vw); }
}
@media screen and (max-width: 500px) {
.nav .square { font-size: calc(12px + .5vw); }
}
.active {
list-style-type: square;
}
h1, h2 {
margin: 0;
padding: 0;
font-weight: 500;
}
.post h1 {
display: block;
font-size: calc(18px + 1.5vw);
}
.post h2 {
display: block;
text-transform: uppercase;
font-size: 0.8em;
margin-top: .5vw;
margin-bottom: 1vw;
}
.post .text {
text-align: justify;
}