@cfpb/cfpb-design-system 3.1.8 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/index.css +1 -1
- package/dist/base/index.css.map +2 -2
- package/dist/base/index.js +1 -1
- package/dist/base/index.js.map +1 -1
- package/dist/components/cfpb-expandables/index.css +1 -1
- package/dist/components/cfpb-expandables/index.css.map +2 -2
- package/dist/components/cfpb-expandables/index.js +1 -1
- package/dist/components/cfpb-expandables/index.js.map +1 -1
- package/dist/components/cfpb-forms/index.css +1 -1
- package/dist/components/cfpb-forms/index.css.map +2 -2
- package/dist/components/cfpb-forms/index.js +1 -1
- package/dist/components/cfpb-forms/index.js.map +1 -1
- package/dist/components/cfpb-layout/index.css +1 -1
- package/dist/components/cfpb-layout/index.css.map +2 -2
- package/dist/components/cfpb-layout/index.js +1 -1
- package/dist/components/cfpb-layout/index.js.map +1 -1
- package/dist/components/cfpb-notifications/index.css +1 -1
- package/dist/components/cfpb-notifications/index.css.map +2 -2
- package/dist/components/cfpb-notifications/index.js.map +1 -1
- package/dist/components/cfpb-tables/index.css +1 -1
- package/dist/components/cfpb-tables/index.css.map +2 -2
- package/dist/components/cfpb-tables/index.js +1 -1
- package/dist/components/cfpb-tables/index.js.map +1 -1
- package/dist/components/cfpb-typography/index.css +1 -1
- package/dist/components/cfpb-typography/index.css.map +2 -2
- package/dist/components/cfpb-typography/index.js +1 -1
- package/dist/components/cfpb-typography/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/utilities/index.css +1 -1
- package/dist/utilities/index.css.map +2 -2
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/index.js.map +3 -3
- package/package.json +2 -2
- package/src/abstracts/heading-mixins.scss +245 -190
- package/src/base/base.scss +12 -15
- package/src/components/cfpb-forms/label.scss +3 -9
- package/src/components/cfpb-forms/tag.scss +6 -0
- package/src/components/cfpb-layout/card-group.scss +1 -2
- package/src/components/cfpb-layout/card.scss +2 -3
- package/src/components/cfpb-layout/hero.scss +4 -6
- package/src/components/cfpb-tables/table.scss +6 -2
- package/src/components/cfpb-typography/date.scss +2 -2
- package/src/components/cfpb-typography/meta-header.scss +3 -9
- package/src/components/cfpb-typography/pull-quote.scss +7 -9
- package/src/components/cfpb-typography/slug-header.scss +2 -3
- package/src/utilities/utilities.scss +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfpb/cfpb-design-system",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "CFPB's UI framework",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": {
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/cfpb/design-system/issues"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "1b92196c49399125ce790a1c43e47e02659e3e3e",
|
|
23
23
|
"type": "module"
|
|
24
24
|
}
|
|
@@ -8,78 +8,91 @@
|
|
|
8
8
|
Base styles
|
|
9
9
|
========================================================================== */
|
|
10
10
|
|
|
11
|
-
@mixin heading-1(
|
|
12
|
-
margin-bottom:
|
|
11
|
+
@mixin heading-1(
|
|
12
|
+
$has-margin-bottom: true,
|
|
13
|
+
$has-margin-top: true,
|
|
14
|
+
$is-responsive: true
|
|
15
|
+
) {
|
|
13
16
|
font-size: math.div($size-i, $base-font-size-px) + em;
|
|
14
17
|
font-weight: 600;
|
|
15
18
|
letter-spacing: inherit;
|
|
16
19
|
line-height: 1.25;
|
|
17
20
|
text-transform: inherit;
|
|
18
|
-
}
|
|
19
21
|
|
|
20
|
-
@
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
font-weight: 600;
|
|
24
|
-
letter-spacing: inherit;
|
|
25
|
-
line-height: 1.25;
|
|
26
|
-
text-transform: inherit;
|
|
27
|
-
}
|
|
22
|
+
@if $has-margin-bottom {
|
|
23
|
+
margin-bottom: math.div(15px, $size-i) + em;
|
|
24
|
+
}
|
|
28
25
|
|
|
29
|
-
@
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
@if $has-margin-top {
|
|
27
|
+
p + &,
|
|
28
|
+
ul + &,
|
|
29
|
+
ol + &,
|
|
30
|
+
dl + &,
|
|
31
|
+
figure + &,
|
|
32
|
+
img + &,
|
|
33
|
+
table + &,
|
|
34
|
+
blockquote + & {
|
|
35
|
+
margin-top: math.div(60px, $size-i) + em;
|
|
36
|
+
}
|
|
37
37
|
|
|
38
|
-
@
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
@if $is-responsive {
|
|
39
|
+
// Mobile only.
|
|
40
|
+
@include respond-to-max($bp-xs-max) {
|
|
41
|
+
p + &,
|
|
42
|
+
ul + &,
|
|
43
|
+
ol + &,
|
|
44
|
+
dl + &,
|
|
45
|
+
figure + &,
|
|
46
|
+
img + &,
|
|
47
|
+
table + &,
|
|
48
|
+
blockquote + & {
|
|
49
|
+
margin-top: math.div(45px, $size-ii) + em;
|
|
50
|
+
}
|
|
51
|
+
h2 + &,
|
|
52
|
+
.h2 + &,
|
|
53
|
+
h3 + &,
|
|
54
|
+
.h3 + &,
|
|
55
|
+
h4 + &,
|
|
56
|
+
.h4 + &,
|
|
57
|
+
h5 + &,
|
|
58
|
+
.h5 + &,
|
|
59
|
+
h6 + &,
|
|
60
|
+
.h6 + & {
|
|
61
|
+
margin-top: math.div(30px, $size-ii) + em;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
46
66
|
|
|
47
|
-
@
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
67
|
+
@if $is-responsive {
|
|
68
|
+
// Mobile only.
|
|
69
|
+
@include respond-to-max($bp-xs-max) {
|
|
70
|
+
@include heading-2(
|
|
71
|
+
$has-margin-bottom,
|
|
72
|
+
$has-margin-top,
|
|
73
|
+
$is-responsive: false
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
54
77
|
}
|
|
55
78
|
|
|
56
|
-
@mixin heading-
|
|
57
|
-
margin-bottom:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
79
|
+
@mixin heading-2(
|
|
80
|
+
$has-margin-bottom: true,
|
|
81
|
+
$has-margin-top: true,
|
|
82
|
+
$is-responsive: true,
|
|
83
|
+
$font-weight: 600
|
|
84
|
+
) {
|
|
85
|
+
font-size: math.div($size-ii, $base-font-size-px) + em;
|
|
86
|
+
font-weight: $font-weight;
|
|
87
|
+
letter-spacing: inherit;
|
|
61
88
|
line-height: 1.25;
|
|
62
|
-
text-transform:
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@mixin h1() {
|
|
66
|
-
@include heading-1;
|
|
89
|
+
text-transform: inherit;
|
|
67
90
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
ol + &,
|
|
71
|
-
dl + &,
|
|
72
|
-
figure + &,
|
|
73
|
-
img + &,
|
|
74
|
-
table + &,
|
|
75
|
-
blockquote + & {
|
|
76
|
-
margin-top: math.div(60px, $size-i) + em;
|
|
91
|
+
@if $has-margin-bottom {
|
|
92
|
+
margin-bottom: math.div(15px, $size-ii) + em;
|
|
77
93
|
}
|
|
78
94
|
|
|
79
|
-
|
|
80
|
-
@include respond-to-max($bp-xs-max) {
|
|
81
|
-
@include heading-2;
|
|
82
|
-
|
|
95
|
+
@if $has-margin-top {
|
|
83
96
|
p + &,
|
|
84
97
|
ul + &,
|
|
85
98
|
ol + &,
|
|
@@ -90,8 +103,9 @@
|
|
|
90
103
|
blockquote + & {
|
|
91
104
|
margin-top: math.div(45px, $size-ii) + em;
|
|
92
105
|
}
|
|
93
|
-
|
|
94
|
-
|
|
106
|
+
|
|
107
|
+
h1 + &,
|
|
108
|
+
.h1 + &,
|
|
95
109
|
h3 + &,
|
|
96
110
|
.h3 + &,
|
|
97
111
|
h4 + &,
|
|
@@ -102,40 +116,54 @@
|
|
|
102
116
|
.h6 + & {
|
|
103
117
|
margin-top: math.div(30px, $size-ii) + em;
|
|
104
118
|
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
119
|
|
|
108
|
-
@
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
@if $is-responsive {
|
|
121
|
+
// Mobile only.
|
|
122
|
+
@include respond-to-max($bp-xs-max) {
|
|
123
|
+
p + &,
|
|
124
|
+
ul + &,
|
|
125
|
+
ol + &,
|
|
126
|
+
dl + &,
|
|
127
|
+
figure + &,
|
|
128
|
+
img + &,
|
|
129
|
+
table + &,
|
|
130
|
+
blockquote + & {
|
|
131
|
+
margin-top: math.div(30px, $size-iii) + em;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
120
135
|
}
|
|
121
136
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
margin-top: math.div(30px, $size-ii) + em;
|
|
137
|
+
@if $is-responsive {
|
|
138
|
+
// Mobile only.
|
|
139
|
+
@include respond-to-max($bp-xs-max) {
|
|
140
|
+
@include heading-3(
|
|
141
|
+
$has-margin-bottom,
|
|
142
|
+
$has-margin-top,
|
|
143
|
+
$is-responsive: false,
|
|
144
|
+
$font-weight: $font-weight
|
|
145
|
+
);
|
|
146
|
+
}
|
|
133
147
|
}
|
|
148
|
+
}
|
|
134
149
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
150
|
+
@mixin heading-3(
|
|
151
|
+
$has-margin-bottom: true,
|
|
152
|
+
$has-margin-top: true,
|
|
153
|
+
$is-responsive: true,
|
|
154
|
+
$font-weight: normal
|
|
155
|
+
) {
|
|
156
|
+
font-size: math.div($size-iii, $base-font-size-px) + em;
|
|
157
|
+
font-weight: $font-weight;
|
|
158
|
+
letter-spacing: inherit;
|
|
159
|
+
line-height: 1.25;
|
|
160
|
+
text-transform: inherit;
|
|
161
|
+
|
|
162
|
+
@if $has-margin-bottom {
|
|
163
|
+
margin-bottom: math.div(15px, $size-iii) + em;
|
|
164
|
+
}
|
|
138
165
|
|
|
166
|
+
@if $has-margin-top {
|
|
139
167
|
p + &,
|
|
140
168
|
ul + &,
|
|
141
169
|
ol + &,
|
|
@@ -143,136 +171,163 @@
|
|
|
143
171
|
figure + &,
|
|
144
172
|
img + &,
|
|
145
173
|
table + &,
|
|
146
|
-
blockquote +
|
|
174
|
+
blockquote + &,
|
|
175
|
+
h1 + &,
|
|
176
|
+
.h1 + &,
|
|
177
|
+
h2 + &,
|
|
178
|
+
.h2 + &,
|
|
179
|
+
h4 + &,
|
|
180
|
+
.h4 + &,
|
|
181
|
+
h5 + &,
|
|
182
|
+
.h5 + &,
|
|
183
|
+
h6 + &,
|
|
184
|
+
.h6 + & {
|
|
147
185
|
margin-top: math.div(30px, $size-iii) + em;
|
|
148
186
|
}
|
|
149
187
|
}
|
|
188
|
+
|
|
189
|
+
@if $is-responsive {
|
|
190
|
+
// Mobile only.
|
|
191
|
+
@include respond-to-max($bp-xs-max) {
|
|
192
|
+
@include heading-4(
|
|
193
|
+
$has-margin-bottom,
|
|
194
|
+
$has-margin-top,
|
|
195
|
+
$is-responsive: false,
|
|
196
|
+
$font-weight: $font-weight
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
150
200
|
}
|
|
151
201
|
|
|
152
|
-
@mixin
|
|
153
|
-
|
|
202
|
+
@mixin heading-4(
|
|
203
|
+
$has-margin-bottom: true,
|
|
204
|
+
$has-margin-top: true,
|
|
205
|
+
$is-responsive: true,
|
|
206
|
+
$font-weight: 500
|
|
207
|
+
) {
|
|
208
|
+
font-size: math.div($size-iv, $base-font-size-px) + em;
|
|
209
|
+
font-weight: $font-weight;
|
|
210
|
+
letter-spacing: inherit;
|
|
211
|
+
line-height: 1.25;
|
|
212
|
+
text-transform: inherit;
|
|
213
|
+
|
|
214
|
+
@if $has-margin-bottom {
|
|
215
|
+
margin-bottom: math.div(15px, $size-iv) + em;
|
|
216
|
+
}
|
|
154
217
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
218
|
+
@if $has-margin-top {
|
|
219
|
+
p + &,
|
|
220
|
+
ul + &,
|
|
221
|
+
ol + &,
|
|
222
|
+
dl + &,
|
|
223
|
+
figure + &,
|
|
224
|
+
img + &,
|
|
225
|
+
table + &,
|
|
226
|
+
blockquote + &,
|
|
227
|
+
h1 + &,
|
|
228
|
+
.h1 + &,
|
|
229
|
+
h2 + &,
|
|
230
|
+
.h2 + &,
|
|
231
|
+
h3 + &,
|
|
232
|
+
.h3 + &,
|
|
233
|
+
h5 + &,
|
|
234
|
+
.h5 + &,
|
|
235
|
+
h6 + &,
|
|
236
|
+
.h6 + & {
|
|
237
|
+
margin-top: math.div(30px, $size-iv) + em;
|
|
238
|
+
}
|
|
174
239
|
}
|
|
175
240
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
@include
|
|
241
|
+
@if $is-responsive {
|
|
242
|
+
// Mobile only.
|
|
243
|
+
@include respond-to-max($bp-xs-max) {
|
|
244
|
+
margin-bottom: math.div(10px, $base-font-size-px) + em;
|
|
245
|
+
font-size: 1em;
|
|
246
|
+
line-height: math.div(18px, $base-font-size-px);
|
|
247
|
+
}
|
|
179
248
|
}
|
|
180
249
|
}
|
|
181
250
|
|
|
182
|
-
@mixin
|
|
183
|
-
|
|
251
|
+
@mixin heading-5($has-margin-bottom: true, $has-margin-top: true) {
|
|
252
|
+
font-size: math.div($size-v, $base-font-size-px) + em;
|
|
253
|
+
font-weight: 600;
|
|
254
|
+
letter-spacing: 1px;
|
|
255
|
+
line-height: 1.25;
|
|
256
|
+
text-transform: uppercase;
|
|
184
257
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
ol + &,
|
|
188
|
-
dl + &,
|
|
189
|
-
figure + &,
|
|
190
|
-
img + &,
|
|
191
|
-
table + &,
|
|
192
|
-
blockquote + &,
|
|
193
|
-
h1 + &,
|
|
194
|
-
.h1 + &,
|
|
195
|
-
h2 + &,
|
|
196
|
-
.h2 + &,
|
|
197
|
-
h3 + &,
|
|
198
|
-
.h3 + &,
|
|
199
|
-
h5 + &,
|
|
200
|
-
.h5 + &,
|
|
201
|
-
h6 + &,
|
|
202
|
-
.h6 + & {
|
|
203
|
-
margin-top: math.div(30px, $size-iv) + em;
|
|
258
|
+
@if $has-margin-bottom {
|
|
259
|
+
margin-bottom: math.div(15px, $size-v) + em;
|
|
204
260
|
}
|
|
205
261
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
262
|
+
@if $has-margin-top {
|
|
263
|
+
p + &,
|
|
264
|
+
ul + &,
|
|
265
|
+
ol + &,
|
|
266
|
+
dl + &,
|
|
267
|
+
figure + &,
|
|
268
|
+
img + &,
|
|
269
|
+
table + &,
|
|
270
|
+
blockquote + &,
|
|
271
|
+
h1 + &,
|
|
272
|
+
.h1 + &,
|
|
273
|
+
h2 + &,
|
|
274
|
+
.h2 + &,
|
|
275
|
+
h3 + &,
|
|
276
|
+
.h3 + &,
|
|
277
|
+
h4 + &,
|
|
278
|
+
.h4 + &,
|
|
279
|
+
h6 + &,
|
|
280
|
+
.h6 + & {
|
|
281
|
+
margin-top: math.div(30px, $size-v) + em;
|
|
282
|
+
}
|
|
212
283
|
}
|
|
213
284
|
}
|
|
214
285
|
|
|
215
|
-
@mixin
|
|
216
|
-
|
|
286
|
+
@mixin heading-6($has-margin-bottom: true, $has-margin-top: true) {
|
|
287
|
+
font-size: math.div($size-vi, $base-font-size-px) + em;
|
|
288
|
+
font-weight: 600;
|
|
289
|
+
letter-spacing: 1px;
|
|
290
|
+
line-height: 1.25;
|
|
291
|
+
text-transform: uppercase;
|
|
217
292
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
ol + &,
|
|
221
|
-
dl + &,
|
|
222
|
-
figure + &,
|
|
223
|
-
img + &,
|
|
224
|
-
table + &,
|
|
225
|
-
blockquote + &,
|
|
226
|
-
h1 + &,
|
|
227
|
-
.h1 + &,
|
|
228
|
-
h2 + &,
|
|
229
|
-
.h2 + &,
|
|
230
|
-
h3 + &,
|
|
231
|
-
.h3 + &,
|
|
232
|
-
h4 + &,
|
|
233
|
-
.h4 + &,
|
|
234
|
-
h6 + &,
|
|
235
|
-
.h6 + & {
|
|
236
|
-
margin-top: math.div(30px, $size-v) + em;
|
|
293
|
+
@if $has-margin-bottom {
|
|
294
|
+
margin-bottom: math.div(15px, $size-vi) + em;
|
|
237
295
|
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
@mixin h6() {
|
|
241
|
-
@include heading-6;
|
|
242
296
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
297
|
+
@if $has-margin-top {
|
|
298
|
+
p + &,
|
|
299
|
+
ul + &,
|
|
300
|
+
ol + &,
|
|
301
|
+
dl + &,
|
|
302
|
+
figure + &,
|
|
303
|
+
img + &,
|
|
304
|
+
table + &,
|
|
305
|
+
blockquote + &,
|
|
306
|
+
h1 + &,
|
|
307
|
+
.h1 + &,
|
|
308
|
+
h2 + &,
|
|
309
|
+
.h2 + &,
|
|
310
|
+
h3 + &,
|
|
311
|
+
.h3 + &,
|
|
312
|
+
h4 + &,
|
|
313
|
+
.h4 + &,
|
|
314
|
+
h5 + &,
|
|
315
|
+
.h5 + & {
|
|
316
|
+
margin-top: math.div(30px, $size-vi) + em;
|
|
317
|
+
}
|
|
262
318
|
}
|
|
263
319
|
}
|
|
264
320
|
|
|
265
321
|
@mixin u-lead-paragraph() {
|
|
266
|
-
@include heading-3;
|
|
267
|
-
|
|
268
322
|
margin-top: 0;
|
|
269
323
|
margin-bottom: 15px;
|
|
270
324
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
325
|
+
@include heading-3(
|
|
326
|
+
$has-margin-bottom: false,
|
|
327
|
+
$has-margin-top: false,
|
|
328
|
+
$is-responsive: true,
|
|
329
|
+
$font-weight: normal
|
|
330
|
+
);
|
|
276
331
|
}
|
|
277
332
|
|
|
278
333
|
// For when you want a heading that's bigger than a normal H1.
|
package/src/base/base.scss
CHANGED
|
@@ -44,32 +44,32 @@ h6 {
|
|
|
44
44
|
|
|
45
45
|
h1,
|
|
46
46
|
.h1 {
|
|
47
|
-
@include
|
|
47
|
+
@include heading-1;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
h2,
|
|
51
51
|
.h2 {
|
|
52
|
-
@include
|
|
52
|
+
@include heading-2;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
h3,
|
|
56
56
|
.h3 {
|
|
57
|
-
@include
|
|
57
|
+
@include heading-3;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
h4,
|
|
61
61
|
.h4 {
|
|
62
|
-
@include
|
|
62
|
+
@include heading-4;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
h5,
|
|
66
66
|
.h5 {
|
|
67
|
-
@include
|
|
67
|
+
@include heading-5;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
h6,
|
|
71
71
|
.h6 {
|
|
72
|
-
@include
|
|
72
|
+
@include heading-6;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.lead-paragraph {
|
|
@@ -275,15 +275,12 @@ th {
|
|
|
275
275
|
.h5,
|
|
276
276
|
h6,
|
|
277
277
|
.h6 {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
font-size: inherit;
|
|
285
|
-
}
|
|
286
|
-
/* stylelint-enable */
|
|
278
|
+
margin: 0;
|
|
279
|
+
font-size: inherit;
|
|
280
|
+
font-weight: inherit;
|
|
281
|
+
letter-spacing: inherit;
|
|
282
|
+
line-height: inherit;
|
|
283
|
+
text-transform: inherit;
|
|
287
284
|
}
|
|
288
285
|
}
|
|
289
286
|
}
|
|
@@ -18,17 +18,11 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&--heading {
|
|
21
|
-
|
|
21
|
+
display: block;
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
/* stylelint-disable no-duplicate-selectors */
|
|
25
|
-
& {
|
|
26
|
-
display: block;
|
|
23
|
+
margin-bottom: math.div(10px, $size-iv) + em;
|
|
27
24
|
|
|
28
|
-
|
|
29
|
-
margin-bottom: math.div(10px, $size-iv) + em;
|
|
30
|
-
}
|
|
31
|
-
/* stylelint-enable */
|
|
25
|
+
@include heading-4($has-margin-bottom: false);
|
|
32
26
|
|
|
33
27
|
// Add a gap between the label helper and label heading
|
|
34
28
|
.a-label__helper--block {
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
background-color: var(--teal-20);
|
|
19
19
|
border-radius: math.div(3px, $base-font-size-px) + rem;
|
|
20
20
|
color: var(--black);
|
|
21
|
+
text-align: left;
|
|
22
|
+
min-width: fit-content;
|
|
21
23
|
|
|
22
24
|
&:hover {
|
|
23
25
|
background-color: var(--teal-40);
|
|
@@ -35,6 +37,9 @@
|
|
|
35
37
|
|
|
36
38
|
.cf-icon-svg {
|
|
37
39
|
pointer-events: none;
|
|
40
|
+
|
|
41
|
+
// Prevent flexbox from squishing icon when tag text is long.
|
|
42
|
+
flex: none;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
// If the contents are wrapped in a label, negate the label's display.
|
|
@@ -122,6 +127,7 @@ a.a-tag-filter {
|
|
|
122
127
|
|
|
123
128
|
li {
|
|
124
129
|
margin-bottom: 0;
|
|
130
|
+
display: contents;
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
// Tablet and above.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@use '@cfpb/cfpb-design-system/src/abstracts' as *;
|
|
3
|
-
@use '@cfpb/cfpb-design-system/src/abstracts' as *;
|
|
4
3
|
|
|
5
4
|
// Grid-based "column" card group layouts.
|
|
6
5
|
.o-card-group {
|
|
@@ -125,7 +124,7 @@ _:-ms-lang(x),
|
|
|
125
124
|
// center the content of the first card and increase the heading.
|
|
126
125
|
.m-card:nth-of-type(1) {
|
|
127
126
|
h3 {
|
|
128
|
-
@include
|
|
127
|
+
@include heading-2;
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
> a {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@use '@cfpb/cfpb-design-system/src/abstracts' as *;
|
|
3
|
-
@use '@cfpb/cfpb-design-system/src/abstracts' as *;
|
|
4
3
|
|
|
5
4
|
// $c = default state.
|
|
6
5
|
// $v = `:visited` state.
|
|
@@ -101,7 +100,7 @@
|
|
|
101
100
|
// Shrink heading at smaller screen sizes.
|
|
102
101
|
&__heading {
|
|
103
102
|
@include respond-to-max($bp-med-min) {
|
|
104
|
-
@include
|
|
103
|
+
@include heading-3;
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
106
|
|
|
@@ -235,7 +234,7 @@
|
|
|
235
234
|
|
|
236
235
|
// Breakout cards have larger links.
|
|
237
236
|
.m-card__footer > span {
|
|
238
|
-
@include heading-3;
|
|
237
|
+
@include heading-3($is-responsive: false);
|
|
239
238
|
}
|
|
240
239
|
}
|
|
241
240
|
}
|