uswds-rails 1.3.1.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/uswds/components/_accordions.scss +11 -11
- data/app/assets/stylesheets/uswds/components/_alerts.scss +60 -29
- data/app/assets/stylesheets/uswds/components/_footer.scss +170 -36
- data/app/assets/stylesheets/uswds/components/_forms.scss +0 -0
- data/app/assets/stylesheets/uswds/components/_hero.scss +0 -0
- data/app/assets/stylesheets/uswds/components/_navigation.scss +61 -18
- data/app/assets/stylesheets/uswds/components/_search.scss +2 -2
- data/app/assets/stylesheets/uswds/core/_utilities.scss +15 -2
- data/app/assets/stylesheets/uswds/elements/_inputs.scss +32 -42
- data/app/assets/stylesheets/uswds/elements/_typography.scss +1 -5
- data/app/assets/stylesheets/uswds/uswds.scss +1 -1
- data/lib/uswds/rails/version.rb +1 -1
- data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.woff2 +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-hover.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-hover.svg +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-primary-hover.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-primary-hover.svg +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-primary.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-primary.svg +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down.svg +0 -0
- data/vendor/assets/images/uswds/angle-arrow-up-primary-hover.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-up-primary-hover.svg +0 -0
- data/vendor/assets/images/uswds/angle-arrow-up-primary.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-up-primary.svg +0 -0
- data/vendor/assets/images/uswds/arrow-both.png +0 -0
- data/vendor/assets/images/uswds/arrow-both.svg +1 -0
- data/vendor/assets/images/uswds/arrow-down.png +0 -0
- data/vendor/assets/images/uswds/arrow-down.svg +0 -0
- data/vendor/assets/images/uswds/arrow-right.png +0 -0
- data/vendor/assets/images/uswds/arrow-right.svg +0 -0
- data/vendor/assets/images/uswds/circle-124.png +0 -0
- data/vendor/assets/images/uswds/close-primary.png +0 -0
- data/vendor/assets/images/uswds/close-primary.svg +16 -0
- data/vendor/assets/images/uswds/close.png +0 -0
- data/vendor/assets/images/uswds/close.svg +12 -1
- data/vendor/assets/images/uswds/correct9.png +0 -0
- data/vendor/assets/images/uswds/external-link-alt-hover.png +0 -0
- data/vendor/assets/images/uswds/external-link-alt-hover.svg +0 -0
- data/vendor/assets/images/uswds/external-link-alt.png +0 -0
- data/vendor/assets/images/uswds/external-link-alt.svg +0 -0
- data/vendor/assets/images/uswds/external-link-hover.png +0 -0
- data/vendor/assets/images/uswds/external-link-hover.svg +0 -0
- data/vendor/assets/images/uswds/external-link.png +0 -0
- data/vendor/assets/images/uswds/external-link.svg +0 -0
- data/vendor/assets/images/uswds/hero.png +0 -0
- data/vendor/assets/images/uswds/icon-dot-gov.svg +0 -0
- data/vendor/assets/images/uswds/icon-https.svg +0 -0
- data/vendor/assets/images/uswds/logo-img.png +0 -0
- data/vendor/assets/images/uswds/minus-alt.png +0 -0
- data/vendor/assets/images/uswds/minus-alt.svg +0 -0
- data/vendor/assets/images/uswds/minus.png +0 -0
- data/vendor/assets/images/uswds/minus.svg +0 -0
- data/vendor/assets/images/uswds/plus-alt.png +0 -0
- data/vendor/assets/images/uswds/plus-alt.svg +0 -0
- data/vendor/assets/images/uswds/plus.png +0 -0
- data/vendor/assets/images/uswds/plus.svg +0 -0
- data/vendor/assets/images/uswds/search-primary.png +0 -0
- data/vendor/assets/images/uswds/search-primary.svg +12 -0
- data/vendor/assets/images/uswds/social-icons/png/facebook25.png +0 -0
- data/vendor/assets/images/uswds/social-icons/png/rss25.png +0 -0
- data/vendor/assets/images/uswds/social-icons/png/twitter16.png +0 -0
- data/vendor/assets/images/uswds/social-icons/png/youtube15.png +0 -0
- data/vendor/assets/images/uswds/us_flag_small.png +0 -0
- data/vendor/assets/javascripts/uswds/uswds.js +45 -13
- data/vendor/assets/stylesheets/uswds/components/_accordions.scss +11 -11
- data/vendor/assets/stylesheets/uswds/components/_alerts.scss +60 -29
- data/vendor/assets/stylesheets/uswds/components/_banner.scss +0 -0
- data/vendor/assets/stylesheets/uswds/components/_footer.scss +170 -36
- data/vendor/assets/stylesheets/uswds/components/_forms.scss +0 -0
- data/vendor/assets/stylesheets/uswds/components/_graphic-list.scss +0 -0
- data/vendor/assets/stylesheets/uswds/components/_header.scss +5 -4
- data/vendor/assets/stylesheets/uswds/components/_hero.scss +0 -0
- data/vendor/assets/stylesheets/uswds/components/_layout.scss +0 -0
- data/vendor/assets/stylesheets/uswds/components/_media-block.scss +0 -0
- data/vendor/assets/stylesheets/uswds/components/_navigation.scss +61 -18
- data/vendor/assets/stylesheets/uswds/components/_search.scss +2 -2
- data/vendor/assets/stylesheets/uswds/components/_section.scss +0 -0
- data/vendor/assets/stylesheets/uswds/components/_sidenav.scss +0 -0
- data/vendor/assets/stylesheets/uswds/components/_skipnav.scss +0 -0
- data/vendor/assets/stylesheets/uswds/core/_base.scss +6 -0
- data/vendor/assets/stylesheets/uswds/core/_fonts.scss +0 -0
- data/vendor/assets/stylesheets/uswds/core/_grid.scss +0 -0
- data/vendor/assets/stylesheets/uswds/core/_utilities.scss +19 -6
- data/vendor/assets/stylesheets/uswds/core/_variables.scss +78 -46
- data/vendor/assets/stylesheets/uswds/elements/_buttons.scss +74 -49
- data/vendor/assets/stylesheets/uswds/elements/_embed.scss +0 -0
- data/vendor/assets/stylesheets/uswds/elements/_figure.scss +0 -0
- data/vendor/assets/stylesheets/uswds/elements/_inputs.scss +32 -42
- data/vendor/assets/stylesheets/uswds/elements/_labels.scss +2 -2
- data/vendor/assets/stylesheets/uswds/elements/_list.scss +0 -0
- data/vendor/assets/stylesheets/uswds/elements/_table.scss +0 -0
- data/vendor/assets/stylesheets/uswds/elements/_typography.scss +1 -5
- data/vendor/assets/stylesheets/uswds/uswds.scss +0 -0
- metadata +8 -2
File without changes
|
File without changes
|
@@ -6,19 +6,31 @@
|
|
6
6
|
}
|
7
7
|
|
8
8
|
.usa-navbar {
|
9
|
-
border-bottom: 1px solid $color-gray-
|
9
|
+
border-bottom: 1px solid $color-gray-lighter;
|
10
10
|
height: 4rem;
|
11
11
|
|
12
12
|
@include media($nav-width) {
|
13
13
|
border-bottom: none;
|
14
14
|
display: inline-block;
|
15
|
-
height: 10.3rem; // XXX magic number
|
16
15
|
}
|
17
16
|
}
|
18
17
|
|
19
18
|
.usa-nav-link {
|
20
19
|
@include font-smoothing;
|
21
20
|
|
21
|
+
&:focus {
|
22
|
+
outline-offset: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
&.usa-accordion-button {
|
26
|
+
@include media($nav-width) {
|
27
|
+
span {
|
28
|
+
margin-right: -2rem;
|
29
|
+
padding-right: 2rem;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
22
34
|
&:hover {
|
23
35
|
span {
|
24
36
|
@include media($nav-width) {
|
@@ -42,7 +54,7 @@
|
|
42
54
|
@include position(fixed, 0 0 0 auto);
|
43
55
|
|
44
56
|
background: $color-white;
|
45
|
-
border-left: 1px solid $color-gray-
|
57
|
+
border-left: 1px solid $color-gray-lighter;
|
46
58
|
border-right: 0;
|
47
59
|
display: flex;
|
48
60
|
flex-direction: column;
|
@@ -52,20 +64,40 @@
|
|
52
64
|
width: $sliding-panel-width;
|
53
65
|
z-index: $z-index-nav;
|
54
66
|
|
67
|
+
// Defaulting to hidden is very important for ensuring
|
68
|
+
// that the nav contents aren't in the tab order if
|
69
|
+
// the nav menu is off-screen.
|
70
|
+
visibility: hidden;
|
71
|
+
|
55
72
|
@include media($nav-width) {
|
56
73
|
@include padding(5rem 0 0 null);
|
74
|
+
background: transparent;
|
57
75
|
border-left: none;
|
58
76
|
display: block;
|
59
77
|
float: right;
|
60
78
|
overflow-y: visible;
|
79
|
+
padding-left: 0;
|
61
80
|
position: relative;
|
62
81
|
transform: translateX(0);
|
63
82
|
width: auto;
|
83
|
+
visibility: visible;
|
64
84
|
}
|
65
85
|
|
66
86
|
&.is-visible {
|
87
|
+
// It's very important that we scope the transition to
|
88
|
+
// only include 'transform' here; we used to transition
|
89
|
+
// on 'all', but this prevented the close button from
|
90
|
+
// being focused after activating the nav menu, as the
|
91
|
+
// button wasn't yet visible due to 'visibility'
|
92
|
+
// implicitly being part of the CSS transition.
|
67
93
|
transform: translateX(0);
|
68
|
-
transition:
|
94
|
+
transition: transform 0.3s ease-in-out;
|
95
|
+
|
96
|
+
visibility: visible;
|
97
|
+
}
|
98
|
+
|
99
|
+
a:focus {
|
100
|
+
outline-offset: 0;
|
69
101
|
}
|
70
102
|
|
71
103
|
nav {
|
@@ -90,7 +122,7 @@
|
|
90
122
|
|
91
123
|
.usa-search {
|
92
124
|
@include media($nav-width) {
|
93
|
-
margin-left: 1.
|
125
|
+
margin-left: 1.8rem; // XXX magic number
|
94
126
|
}
|
95
127
|
}
|
96
128
|
}
|
@@ -145,20 +177,14 @@
|
|
145
177
|
padding: 1.4rem 1.5rem 1rem 1.8rem;
|
146
178
|
|
147
179
|
@include media($nav-width) {
|
148
|
-
@include padding(null
|
180
|
+
@include padding(null 3.5rem 1.9rem 1.5rem);
|
149
181
|
color: $color-gray;
|
150
182
|
font-size: $h5-font-size;
|
151
183
|
font-weight: $font-bold;
|
152
184
|
width: initial;
|
153
185
|
}
|
154
186
|
|
155
|
-
&:focus,
|
156
|
-
&:active {
|
157
|
-
box-shadow: $focus-shadow;
|
158
|
-
}
|
159
|
-
|
160
187
|
&:hover {
|
161
|
-
background-color: $color-gray-lightest;
|
162
188
|
color: $color-primary;
|
163
189
|
|
164
190
|
@include media($nav-width) {
|
@@ -177,6 +203,11 @@
|
|
177
203
|
background-image: asset-url('#{$image-path}/angle-arrow-down.png');
|
178
204
|
background-image: asset-url('#{$image-path}/angle-arrow-down.svg');
|
179
205
|
background-position: right 1.5rem top $button-vertical-offset;
|
206
|
+
|
207
|
+
&:hover {
|
208
|
+
background-image: asset-url('#{$image-path}/angle-arrow-down-primary.png');
|
209
|
+
background-image: asset-url('#{$image-path}/angle-arrow-down-primary.svg');
|
210
|
+
}
|
180
211
|
}
|
181
212
|
}
|
182
213
|
|
@@ -233,13 +264,14 @@
|
|
233
264
|
@include media($nav-width) {
|
234
265
|
@include margin(-0.2rem null 0 0);
|
235
266
|
float: left;
|
267
|
+
width: 21.5rem;
|
236
268
|
}
|
237
269
|
}
|
238
270
|
}
|
239
271
|
|
240
272
|
.usa-nav-secondary-links {
|
241
273
|
@include media($nav-width) {
|
242
|
-
float:
|
274
|
+
float: right;
|
243
275
|
}
|
244
276
|
|
245
277
|
li {
|
@@ -250,6 +282,7 @@
|
|
250
282
|
|
251
283
|
&:not(:last-child)::after {
|
252
284
|
@include media($nav-width) {
|
285
|
+
color: $color-gray-lighter;
|
253
286
|
content: '|';
|
254
287
|
padding-left: 1rem;
|
255
288
|
}
|
@@ -265,6 +298,7 @@
|
|
265
298
|
|
266
299
|
&:hover {
|
267
300
|
color: $color-primary;
|
301
|
+
text-decoration: underline;
|
268
302
|
}
|
269
303
|
}
|
270
304
|
|
@@ -273,11 +307,10 @@
|
|
273
307
|
display: none;
|
274
308
|
|
275
309
|
@include media($nav-width) {
|
276
|
-
background-image: asset-url('#{$image-path}/search-
|
277
|
-
background-image: asset-url('#{$image-path}/search-
|
310
|
+
background-image: asset-url('#{$image-path}/search-primary.png');
|
311
|
+
background-image: asset-url('#{$image-path}/search-primary.svg');
|
278
312
|
background-repeat: no-repeat;
|
279
313
|
background-position: left center;
|
280
|
-
background-size: 2.2rem;
|
281
314
|
display: inline-block;
|
282
315
|
padding-left: 2.3rem;
|
283
316
|
}
|
@@ -302,6 +335,7 @@
|
|
302
335
|
|
303
336
|
.usa-nav-submenu {
|
304
337
|
// @include usa-sidenav-sublist;
|
338
|
+
padding-left: 1rem;
|
305
339
|
|
306
340
|
@include media($nav-width) {
|
307
341
|
@include unstyled-list;
|
@@ -342,8 +376,18 @@
|
|
342
376
|
|
343
377
|
li {
|
344
378
|
font-size: $h5-font-size;
|
379
|
+
list-style: none;
|
345
380
|
margin-bottom: 0;
|
346
381
|
}
|
382
|
+
|
383
|
+
.usa-width-one-fourth {
|
384
|
+
margin-right: 0;
|
385
|
+
width: 100%;
|
386
|
+
|
387
|
+
@include media($nav-width) {
|
388
|
+
@include span-columns(3);
|
389
|
+
}
|
390
|
+
}
|
347
391
|
}
|
348
392
|
|
349
393
|
// Navigation close button -------- //
|
@@ -383,11 +427,10 @@
|
|
383
427
|
|
384
428
|
.usa-megamenu {
|
385
429
|
@include media($nav-width) {
|
386
|
-
@include padding(
|
430
|
+
@include padding(2.15rem null); // XXX magic number
|
387
431
|
// XXX this is the difference between the 2rem padding-left
|
388
432
|
// of .usa-nav-inner and the $site-margins (3rem) padding-left
|
389
433
|
// of .usa-megamenu
|
390
|
-
left: -1rem;
|
391
434
|
width: 100%;
|
392
435
|
}
|
393
436
|
|
@@ -30,9 +30,9 @@
|
|
30
30
|
}
|
31
31
|
|
32
32
|
@mixin h6 {
|
33
|
-
font-family: $font-sans;
|
34
33
|
font-size: $h6-font-size;
|
35
34
|
font-weight: $font-normal;
|
35
|
+
line-height: $base-line-height;
|
36
36
|
text-transform: uppercase;
|
37
37
|
}
|
38
38
|
|
@@ -49,6 +49,15 @@
|
|
49
49
|
left: -999em;
|
50
50
|
}
|
51
51
|
|
52
|
+
// This "negates" the sr-only() helper; useful if
|
53
|
+
// we want the default state of something to be
|
54
|
+
// for screen readers only, but we want to force
|
55
|
+
// it to show for sighted users under more specific
|
56
|
+
// conditions.
|
57
|
+
@mixin not-sr-only() {
|
58
|
+
position: static;
|
59
|
+
}
|
60
|
+
|
52
61
|
.usa-sr-only {
|
53
62
|
@include sr-only();
|
54
63
|
}
|
@@ -180,12 +189,12 @@
|
|
180
189
|
text-decoration: none;
|
181
190
|
|
182
191
|
&:hover {
|
183
|
-
background-color: $color-gray-lightest;
|
184
192
|
color: $color-primary;
|
185
193
|
text-decoration: none;
|
186
194
|
}
|
187
195
|
|
188
196
|
&:focus {
|
197
|
+
outline-offset: 0;
|
189
198
|
position: relative;
|
190
199
|
z-index: 1;
|
191
200
|
}
|
@@ -224,6 +233,10 @@
|
|
224
233
|
a {
|
225
234
|
padding-left: 3.8rem;
|
226
235
|
|
236
|
+
&:focus {
|
237
|
+
outline-offset: 0;
|
238
|
+
}
|
239
|
+
|
227
240
|
&:hover {
|
228
241
|
padding-left: 3.8rem;
|
229
242
|
}
|
@@ -32,15 +32,9 @@ select {
|
|
32
32
|
line-height: $input-line-height;
|
33
33
|
margin: 0.2em 0;
|
34
34
|
max-width: $input-max-width;
|
35
|
-
outline: none;
|
36
35
|
padding: $input-padding-vertical 0.7em;
|
37
36
|
width: 100%;
|
38
37
|
|
39
|
-
&:focus,
|
40
|
-
&.usa-input-focus {
|
41
|
-
box-shadow: $focus-shadow;
|
42
|
-
}
|
43
|
-
|
44
38
|
&.usa-input-success {
|
45
39
|
border: 3px solid $color-green-light;
|
46
40
|
}
|
@@ -97,6 +91,12 @@ select {
|
|
97
91
|
content: ' (*Required)';
|
98
92
|
}
|
99
93
|
|
94
|
+
.usa-input-optional:after {
|
95
|
+
color: $color-gray-medium;
|
96
|
+
content: ' - optional';
|
97
|
+
font-style: italic;
|
98
|
+
}
|
99
|
+
|
100
100
|
label {
|
101
101
|
display: block;
|
102
102
|
margin-top: 3rem;
|
@@ -112,13 +112,17 @@ select {
|
|
112
112
|
-webkit-appearance: none;
|
113
113
|
appearance: none;
|
114
114
|
background-color: $color-white;
|
115
|
-
background-image: asset-url('#{$image-path}/arrow-
|
116
|
-
background-image: asset-url('#{$image-path}/arrow-
|
115
|
+
background-image: asset-url('#{$image-path}/arrow-both.png');
|
116
|
+
background-image: asset-url('#{$image-path}/arrow-both.svg');
|
117
117
|
background-position: right 1.3rem center;
|
118
118
|
background-repeat: no-repeat;
|
119
119
|
background-size: 1.3rem;
|
120
120
|
}
|
121
121
|
|
122
|
+
option:first-child {
|
123
|
+
font-weight: $font-bold;
|
124
|
+
}
|
125
|
+
|
122
126
|
legend {
|
123
127
|
font-size: $h2-font-size;
|
124
128
|
font-weight: $font-bold;
|
@@ -159,30 +163,31 @@ legend {
|
|
159
163
|
[type=radio] + label {
|
160
164
|
cursor: pointer;
|
161
165
|
font-weight: 400;
|
162
|
-
margin-bottom: 0.
|
166
|
+
margin-bottom: 0.65em;
|
163
167
|
}
|
164
168
|
|
165
169
|
[type=checkbox] + label::before,
|
166
170
|
[type=radio] + label::before {
|
167
171
|
background: $color-white;
|
168
|
-
border-radius: $border-radius;
|
172
|
+
border-radius: $checkbox-border-radius;
|
169
173
|
box-shadow: 0 0 0 1px $color-gray-medium;
|
170
174
|
content: '\a0';
|
171
175
|
display: inline-block;
|
172
|
-
height:
|
173
|
-
line-height:
|
176
|
+
height: $spacing-medium;
|
177
|
+
line-height: $spacing-medium;
|
174
178
|
margin-right: 0.6em;
|
175
179
|
text-indent: 0.15em;
|
176
180
|
vertical-align: middle\0; // Target IE 11 and below to vertically center inputs
|
177
|
-
width:
|
181
|
+
width: $spacing-medium;
|
178
182
|
}
|
179
183
|
|
180
184
|
[type=radio] + label::before {
|
181
|
-
box-shadow: 0 0 0 2px $color-white, 0 0 0 3px $color-gray-medium;
|
182
|
-
height: 1.6rem;
|
183
|
-
line-height: 1.6rem;
|
184
|
-
width: 1.6rem;
|
185
185
|
border-radius: 100%;
|
186
|
+
box-shadow: 0 0 0 2px $color-white, 0 0 0 3px $color-gray-medium;
|
187
|
+
height: 1.4rem; // Size overrides to account for shape + checked styling
|
188
|
+
line-height: 1.4rem;
|
189
|
+
margin-right: 0.75em;
|
190
|
+
width: 1.4rem;
|
186
191
|
}
|
187
192
|
|
188
193
|
[type=checkbox]:checked + label::before,
|
@@ -195,10 +200,6 @@ legend {
|
|
195
200
|
box-shadow: 0 0 0 2px $color-white, 0 0 0 4px $color-primary;
|
196
201
|
}
|
197
202
|
|
198
|
-
[type=radio]:focus + label::before {
|
199
|
-
box-shadow: 0 0 0 2px $color-white, 0 0 0 4px $color-primary, 0 0 3px 4px $color-focus, 0 0 7px 4px $color-focus;
|
200
|
-
}
|
201
|
-
|
202
203
|
[type=checkbox]:checked + label::before,
|
203
204
|
[type=checkbox]:checked:disabled + label::before {
|
204
205
|
background-image: asset-url('#{$image-path}/correct8.png');
|
@@ -207,17 +208,23 @@ legend {
|
|
207
208
|
background-repeat: no-repeat;
|
208
209
|
}
|
209
210
|
|
210
|
-
[type=
|
211
|
-
|
211
|
+
[type=radio]:focus + label::before {
|
212
|
+
outline: $focus-outline;
|
213
|
+
outline-offset: 5px;
|
212
214
|
}
|
213
215
|
|
214
216
|
[type=checkbox]:disabled + label {
|
215
|
-
color: $color-gray;
|
217
|
+
color: $color-gray-lighter;
|
218
|
+
}
|
219
|
+
|
220
|
+
[type=checkbox]:focus + label::before {
|
221
|
+
outline: $focus-outline;
|
222
|
+
outline-offset: $focus-spacing;
|
216
223
|
}
|
217
224
|
|
218
225
|
[type=checkbox]:disabled + label::before,
|
219
226
|
[type=radio]:disabled + label::before {
|
220
|
-
background: $color-gray-
|
227
|
+
background: $color-gray-lightest;
|
221
228
|
box-shadow: 0 0 0 1px $color-gray-light;
|
222
229
|
cursor: not-allowed;
|
223
230
|
}
|
@@ -231,11 +238,6 @@ legend {
|
|
231
238
|
width: 100%;
|
232
239
|
}
|
233
240
|
|
234
|
-
[type=range]:focus {
|
235
|
-
box-shadow: none;
|
236
|
-
outline: none;
|
237
|
-
}
|
238
|
-
|
239
241
|
[type=range]::-webkit-slider-runnable-track {
|
240
242
|
background: $color-gray-light;
|
241
243
|
border: 1px solid $color-gray-medium;
|
@@ -301,18 +303,6 @@ legend {
|
|
301
303
|
border-radius: 2rem;
|
302
304
|
}
|
303
305
|
|
304
|
-
[type=range]:focus::-webkit-slider-thumb {
|
305
|
-
border: 2px solid $color-focus;
|
306
|
-
}
|
307
|
-
|
308
|
-
[type=range]:focus::-moz-range-thumb {
|
309
|
-
border: 2px solid $color-focus;
|
310
|
-
}
|
311
|
-
|
312
|
-
[type=range]:focus::-ms-thumb {
|
313
|
-
border: 2px solid $color-focus;
|
314
|
-
}
|
315
|
-
|
316
306
|
// Memorable dates
|
317
307
|
|
318
308
|
.usa-date-of-birth {
|
@@ -25,11 +25,6 @@ a {
|
|
25
25
|
&:visited {
|
26
26
|
color: $color-visited;
|
27
27
|
}
|
28
|
-
|
29
|
-
&:focus {
|
30
|
-
box-shadow: $focus-shadow;
|
31
|
-
outline: 0;
|
32
|
-
}
|
33
28
|
}
|
34
29
|
|
35
30
|
@mixin external-link($external-link, $external-link-hover) {
|
@@ -162,6 +157,7 @@ dfn {
|
|
162
157
|
.usa-font-lead {
|
163
158
|
font-family: $font-serif;
|
164
159
|
font-size: $lead-font-size;
|
160
|
+
font-weight: $font-normal;
|
165
161
|
line-height: $lead-line-height;
|
166
162
|
max-width: $lead-max-width;
|
167
163
|
}
|