-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
79 lines (63 loc) · 963 Bytes
/
style.css
File metadata and controls
79 lines (63 loc) · 963 Bytes
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
* {
box-sizing: border-box;
font-size: 100%;
font-weight: normal;
margin: 0;
padding: 0;
}
body {
font-family: sans-serif;
}
h1 {font-size: 240%; }
h2 {font-size: 150%; }
h3 {font-size: 125%; }
h1, h2, h3 {
color: #FF5511;
padding: 0.5rem 1rem;
margin: 0.5rem -1rem -0.5rem -1rem;
}
p {
margin-top: 0.5rem;
}
header, main, footer {
max-width: 30em;
margin: 1em auto;
padding: 1em;
}
li {
margin: 0 0 0 2em;
}
nav ul {
margin-top: 1rem;
display: flex;
flex-direction: row;
justify-content: space-between;
}
nav li {
list-style-type: none;
margin: 0;
}
nav li>a {
padding: 0.5rem;
background: #BB0000;
color: white;
border-radius: 0.25rem;
text-decoration: none;
display: block;
}
nav li>a:hover {
background: green;
color: #000;
}
:target {
background: #BB0000;
color: white;
}
@media (max-width: 700px) {
h1 {font-size: 140%; }
h2 {font-size: 120%; }
h3 {font-size: 105%; }
nav ul {
flex-direction: column;
}
}