-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.css
71 lines (67 loc) · 1.03 KB
/
local.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
html {
scroll-behavior: smooth;
}
body > header{
background-image:none;
margin: 6rem 0 2rem 0;
padding: 2rem;
}
body > header h1{
font-size: 2.4em;
line-height: 120%;
font-weight: bold;
margin-bottom: 0.5em;
}
main > section h3{
font-size: 1.2em;
font-weight: bold;
margin-bottom: 0.5em;
}
figure{
position:relative;
}
figcaption{
position: absolute;
top: 0;
left: 0;
margin: 1em;
padding: 1em;
background-color: var(--turquoise);
color: var(--blueberry);
border-radius: var(--rounded);
}
body:before, body:after{
left: 2rem;
}
@media (max-width: 30em) {
body > header{
padding: 1rem;
}
main > section{
padding: 1rem;
}
figcaption{
margin: 0.5rem 1rem;
padding: 0.5rem 1rem;
}
body > header h1{
font-size: 2em;
}
body:before, body:after{
transform: scale(.7);
left: -3rem;
}
}
@media (max-width: 25em) {
body > header h1{
font-size: 1.6em;
}
figure{
margin: 1rem -1rem;
}
}
@media (max-width: 22em) {
body > header h1{
font-size: 1.4em;
}
}