-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy path_typography.scss
More file actions
132 lines (114 loc) · 2.91 KB
/
_typography.scss
File metadata and controls
132 lines (114 loc) · 2.91 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
.newspack-ui {
color: var(--newspack-ui-color-neutral-90);
font-family: var(--newspack-ui-font-family);
font-size: var(--newspack-ui-font-size-s);
line-height: var(--newspack-ui-line-height-s);
-webkit-font-smoothing: antialiased;
p {
font-size: inherit;
line-height: inherit;
margin: var(--newspack-ui-spacer-2) 0;
&:first-child:not(.form-row) {
margin-top: 0;
}
> input[type="checkbox"],
> input[type="radio"] {
margin-bottom: 2px;
margin-right: 2px;
vertical-align: middle;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--newspack-ui-font-family);
font-weight: var(--newspack-ui-font-weight-strong);
letter-spacing: unset;
text-transform: unset;
}
strong,
&__font--bold {
font-weight: var(--newspack-ui-font-weight-strong);
}
&__font--normal {
font-weight: normal;
}
& &__font--2xs {
font-size: var(--newspack-ui-font-size-2xs);
line-height: var(--newspack-ui-line-height-2xs);
}
& &__font--xs {
font-size: var(--newspack-ui-font-size-xs);
line-height: var(--newspack-ui-line-height-xs);
}
& &__font--s {
font-size: var(--newspack-ui-font-size-s);
line-height: var(--newspack-ui-line-height-s);
}
& &__font--m {
font-size: var(--newspack-ui-font-size-m);
line-height: var(--newspack-ui-line-height-m);
}
& &__font--l {
font-size: var(--newspack-ui-font-size-l);
line-height: var(--newspack-ui-line-height-l);
}
& &__font--xl {
font-size: var(--newspack-ui-font-size-xl);
line-height: var(--newspack-ui-line-height-xl);
}
& &__font--2xl {
font-size: var(--newspack-ui-font-size-2xl);
line-height: var(--newspack-ui-line-height-2xl);
}
& &__font--3xl {
font-size: var(--newspack-ui-font-size-3xl);
line-height: var(--newspack-ui-line-height-3xl);
}
& &__font--4xl {
font-size: var(--newspack-ui-font-size-4xl);
line-height: var(--newspack-ui-line-height-4xl);
}
& &__font--5xl {
font-size: var(--newspack-ui-font-size-5xl);
line-height: var(--newspack-ui-line-height-5xl);
}
& &__font--6xl {
font-size: var(--newspack-ui-font-size-6xl);
line-height: var(--newspack-ui-line-height-6xl);
}
/* Text meant only for screen readers. */
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute !important;
width: 1px;
word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
&:focus {
background-color: var(--newspack-ui-color-neutral-10);
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
clip-path: none;
color: var(--newspack-ui-color-neutral-90);
display: block;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar. */
}
}
}