-
Notifications
You must be signed in to change notification settings - Fork 37
/
Headline.css
110 lines (86 loc) · 1.55 KB
/
Headline.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
101
102
103
104
105
106
107
108
109
110
/**
* Component: Headline
*/
/**
* Root styling
*/
.headline {
margin-top: 0;
font-weight: var(--text-weight-headline);
line-height: var(--line-height);
/* Faded */
&.isFaded {
color: var(--color-text-p2);
}
/* Flex */
&.flex {
display: flex;
}
/* Block */
&.block {
display: block;
width: 100%;
}
}
/**
* Size
* Follows HTML5 headline specs
* https://www.w3.org/TR/html5/rendering.html#sections-and-headings
*/
.size-small { /* default browser h5 proportion */
font-size: var(--font-size-small);
}
.size-medium { /* default browser h4 proportion */
font-size: var(--font-size-medium);
}
.size-large { /* default browser h3 proportion */
font-size: var(--font-size-large);
}
.size-x-large { /* default browser h2 proportion */
font-size: var(--font-size-x-large);
}
.size-xx-large { /* default browser h1 proportion */
font-size: var(--font-size-xx-large);
}
/**
* Margin
*/
.margin-none {
margin-bottom: 0;
}
.margin-xx-small {
margin-bottom: 0.67rem;
}
.margin-x-small {
margin-bottom: 0.83rem;
}
.margin-small {
margin-bottom: 1rem;
}
.margin-medium {
margin-bottom: 1.33rem;
}
.margin-large {
margin-bottom: 1.67rem;
}
.margin-x-large {
margin-bottom: 2rem;
}
.margin-xx-large {
margin-bottom: 2.33rem;
}
/**
* Font weight
*/
.font-weight-regular {
font-weight: var(--text-weight-regular);
}
.font-weight-medium {
font-weight: var(--text-weight-medium);
}
.font-weight-bold {
font-weight: var(--text-weight-bold);
}
.font-weight-black {
font-weight: var(--text-weight-black);
}