forked from asfand687/responsive-typography
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
58 lines (49 loc) · 711 Bytes
/
style.css
File metadata and controls
58 lines (49 loc) · 711 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
.technique--clamp h1, h2, p {
font-size: clamp(var(--min), var(--val), var(--max))
}
.technique--clamp {
width: clamp(270px, 80vw, 1500px);
margin: auto;
background: #ccc;
}
.technique--og {
width: 100%;
max-width: 1200px;
margin: auto;
background: #aaa;
}
.technique--clamp h1 {
--min: 2em;
--val: 5vw;
--max: 3em;
}
.technique--clamp h2 {
--min: 1.5em;
--val: 4vw;
--max: 2.25em;
}
.technique--clamp p {
--min: 1em;
--val: 2.5vw;
--max: 1.5em;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 2.25rem;
}
p {
font-size: 1.5rem;
}
@media screen and (max-width: 450px) {
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
p {
font-size: 1rem;
}
}