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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/uswds/components/_accordions.scss +11 -11
  3. data/app/assets/stylesheets/uswds/components/_alerts.scss +60 -29
  4. data/app/assets/stylesheets/uswds/components/_footer.scss +170 -36
  5. data/app/assets/stylesheets/uswds/components/_forms.scss +0 -0
  6. data/app/assets/stylesheets/uswds/components/_hero.scss +0 -0
  7. data/app/assets/stylesheets/uswds/components/_navigation.scss +61 -18
  8. data/app/assets/stylesheets/uswds/components/_search.scss +2 -2
  9. data/app/assets/stylesheets/uswds/core/_utilities.scss +15 -2
  10. data/app/assets/stylesheets/uswds/elements/_inputs.scss +32 -42
  11. data/app/assets/stylesheets/uswds/elements/_typography.scss +1 -5
  12. data/app/assets/stylesheets/uswds/uswds.scss +1 -1
  13. data/lib/uswds/rails/version.rb +1 -1
  14. data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.eot +0 -0
  15. data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.ttf +0 -0
  16. data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.woff +0 -0
  17. data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.woff2 +0 -0
  18. data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.eot +0 -0
  19. data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.ttf +0 -0
  20. data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.woff +0 -0
  21. data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.woff2 +0 -0
  22. data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.eot +0 -0
  23. data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.ttf +0 -0
  24. data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.woff +0 -0
  25. data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.woff2 +0 -0
  26. data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.eot +0 -0
  27. data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.ttf +0 -0
  28. data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.woff +0 -0
  29. data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.woff2 +0 -0
  30. data/vendor/assets/images/uswds/angle-arrow-down-hover.png +0 -0
  31. data/vendor/assets/images/uswds/angle-arrow-down-hover.svg +0 -0
  32. data/vendor/assets/images/uswds/angle-arrow-down-primary-hover.png +0 -0
  33. data/vendor/assets/images/uswds/angle-arrow-down-primary-hover.svg +0 -0
  34. data/vendor/assets/images/uswds/angle-arrow-down-primary.png +0 -0
  35. data/vendor/assets/images/uswds/angle-arrow-down-primary.svg +0 -0
  36. data/vendor/assets/images/uswds/angle-arrow-down.png +0 -0
  37. data/vendor/assets/images/uswds/angle-arrow-down.svg +0 -0
  38. data/vendor/assets/images/uswds/angle-arrow-up-primary-hover.png +0 -0
  39. data/vendor/assets/images/uswds/angle-arrow-up-primary-hover.svg +0 -0
  40. data/vendor/assets/images/uswds/angle-arrow-up-primary.png +0 -0
  41. data/vendor/assets/images/uswds/angle-arrow-up-primary.svg +0 -0
  42. data/vendor/assets/images/uswds/arrow-both.png +0 -0
  43. data/vendor/assets/images/uswds/arrow-both.svg +1 -0
  44. data/vendor/assets/images/uswds/arrow-down.png +0 -0
  45. data/vendor/assets/images/uswds/arrow-down.svg +0 -0
  46. data/vendor/assets/images/uswds/arrow-right.png +0 -0
  47. data/vendor/assets/images/uswds/arrow-right.svg +0 -0
  48. data/vendor/assets/images/uswds/circle-124.png +0 -0
  49. data/vendor/assets/images/uswds/close-primary.png +0 -0
  50. data/vendor/assets/images/uswds/close-primary.svg +16 -0
  51. data/vendor/assets/images/uswds/close.png +0 -0
  52. data/vendor/assets/images/uswds/close.svg +12 -1
  53. data/vendor/assets/images/uswds/correct9.png +0 -0
  54. data/vendor/assets/images/uswds/external-link-alt-hover.png +0 -0
  55. data/vendor/assets/images/uswds/external-link-alt-hover.svg +0 -0
  56. data/vendor/assets/images/uswds/external-link-alt.png +0 -0
  57. data/vendor/assets/images/uswds/external-link-alt.svg +0 -0
  58. data/vendor/assets/images/uswds/external-link-hover.png +0 -0
  59. data/vendor/assets/images/uswds/external-link-hover.svg +0 -0
  60. data/vendor/assets/images/uswds/external-link.png +0 -0
  61. data/vendor/assets/images/uswds/external-link.svg +0 -0
  62. data/vendor/assets/images/uswds/hero.png +0 -0
  63. data/vendor/assets/images/uswds/icon-dot-gov.svg +0 -0
  64. data/vendor/assets/images/uswds/icon-https.svg +0 -0
  65. data/vendor/assets/images/uswds/logo-img.png +0 -0
  66. data/vendor/assets/images/uswds/minus-alt.png +0 -0
  67. data/vendor/assets/images/uswds/minus-alt.svg +0 -0
  68. data/vendor/assets/images/uswds/minus.png +0 -0
  69. data/vendor/assets/images/uswds/minus.svg +0 -0
  70. data/vendor/assets/images/uswds/plus-alt.png +0 -0
  71. data/vendor/assets/images/uswds/plus-alt.svg +0 -0
  72. data/vendor/assets/images/uswds/plus.png +0 -0
  73. data/vendor/assets/images/uswds/plus.svg +0 -0
  74. data/vendor/assets/images/uswds/search-primary.png +0 -0
  75. data/vendor/assets/images/uswds/search-primary.svg +12 -0
  76. data/vendor/assets/images/uswds/social-icons/png/facebook25.png +0 -0
  77. data/vendor/assets/images/uswds/social-icons/png/rss25.png +0 -0
  78. data/vendor/assets/images/uswds/social-icons/png/twitter16.png +0 -0
  79. data/vendor/assets/images/uswds/social-icons/png/youtube15.png +0 -0
  80. data/vendor/assets/images/uswds/us_flag_small.png +0 -0
  81. data/vendor/assets/javascripts/uswds/uswds.js +45 -13
  82. data/vendor/assets/stylesheets/uswds/components/_accordions.scss +11 -11
  83. data/vendor/assets/stylesheets/uswds/components/_alerts.scss +60 -29
  84. data/vendor/assets/stylesheets/uswds/components/_banner.scss +0 -0
  85. data/vendor/assets/stylesheets/uswds/components/_footer.scss +170 -36
  86. data/vendor/assets/stylesheets/uswds/components/_forms.scss +0 -0
  87. data/vendor/assets/stylesheets/uswds/components/_graphic-list.scss +0 -0
  88. data/vendor/assets/stylesheets/uswds/components/_header.scss +5 -4
  89. data/vendor/assets/stylesheets/uswds/components/_hero.scss +0 -0
  90. data/vendor/assets/stylesheets/uswds/components/_layout.scss +0 -0
  91. data/vendor/assets/stylesheets/uswds/components/_media-block.scss +0 -0
  92. data/vendor/assets/stylesheets/uswds/components/_navigation.scss +61 -18
  93. data/vendor/assets/stylesheets/uswds/components/_search.scss +2 -2
  94. data/vendor/assets/stylesheets/uswds/components/_section.scss +0 -0
  95. data/vendor/assets/stylesheets/uswds/components/_sidenav.scss +0 -0
  96. data/vendor/assets/stylesheets/uswds/components/_skipnav.scss +0 -0
  97. data/vendor/assets/stylesheets/uswds/core/_base.scss +6 -0
  98. data/vendor/assets/stylesheets/uswds/core/_fonts.scss +0 -0
  99. data/vendor/assets/stylesheets/uswds/core/_grid.scss +0 -0
  100. data/vendor/assets/stylesheets/uswds/core/_utilities.scss +19 -6
  101. data/vendor/assets/stylesheets/uswds/core/_variables.scss +78 -46
  102. data/vendor/assets/stylesheets/uswds/elements/_buttons.scss +74 -49
  103. data/vendor/assets/stylesheets/uswds/elements/_embed.scss +0 -0
  104. data/vendor/assets/stylesheets/uswds/elements/_figure.scss +0 -0
  105. data/vendor/assets/stylesheets/uswds/elements/_inputs.scss +32 -42
  106. data/vendor/assets/stylesheets/uswds/elements/_labels.scss +2 -2
  107. data/vendor/assets/stylesheets/uswds/elements/_list.scss +0 -0
  108. data/vendor/assets/stylesheets/uswds/elements/_table.scss +0 -0
  109. data/vendor/assets/stylesheets/uswds/elements/_typography.scss +1 -5
  110. data/vendor/assets/stylesheets/uswds/uswds.scss +0 -0
  111. metadata +8 -2
@@ -8,8 +8,8 @@
8
8
  display: block;
9
9
  font-weight: $font-bold;
10
10
  margin-top: 0;
11
- padding-bottom: 2rem;
12
- padding-top: 2rem;
11
+ padding-bottom: $spacing-medium;
12
+ padding-top: $spacing-medium;
13
13
  text-decoration: none;
14
14
 
15
15
  @include media($medium-screen) {
@@ -23,19 +23,35 @@
23
23
 
24
24
  a {
25
25
  font-weight: normal;
26
+ text-decoration: none;
27
+ }
28
+ }
29
+
30
+ .usa-footer-contact_info {
31
+ display: inline-block;
32
+
33
+ a {
34
+ color: $color-base;
35
+ text-decoration: none;
36
+ }
37
+
38
+ &:hover {
39
+ text-decoration: underline;
26
40
  }
27
41
  }
28
42
 
29
43
  .usa-footer-return-to-top {
30
- padding-bottom: 2rem;
31
- padding-top: 2rem;
44
+ color: $color-primary;
45
+ padding-bottom: $spacing-medium;
46
+ padding-top: $spacing-medium;
47
+ text-decoration: underline;
32
48
  }
33
49
 
34
50
  .usa-footer-primary-section {
35
51
  background-color: $color-gray-lightest;
36
52
 
37
53
  .usa-footer-primary-content {
38
- padding-left: 2.5rem;
54
+ padding-left: 1.5rem;
39
55
  padding-right: 2.5rem;
40
56
 
41
57
  @include media($medium-screen) {
@@ -61,17 +77,51 @@
61
77
  }
62
78
 
63
79
  .usa-footer-medium {
64
- .usa-footer-primary-section {
65
- padding: 0;
80
+ .usa-footer-contact_info {
81
+ p {
82
+ margin: 0 $spacing-small 0 0;
83
+
84
+ @include media($medium-screen) {
85
+ margin: 0 0 0 $spacing-small;
86
+ }
87
+ }
88
+ }
89
+
90
+ .usa-footer-contact-heading {
91
+ margin-top: 0;
92
+
93
+ @include media($medium-screen) {
94
+ margin-top: $spacing-x-small;
95
+ margin-bottom: $spacing-x-small;
96
+ }
97
+ }
98
+
99
+ .usa-footer-logo {
100
+ padding: $spacing-small 0;
66
101
 
67
102
  @include media($medium-screen) {
68
- padding-bottom: 1rem;
69
- padding-top: 1rem;
103
+ padding: $spacing-medium 0;
104
+ }
105
+ }
106
+
107
+ .usa-footer-primary-link {
108
+ padding-bottom: $spacing-md-small;
109
+ padding-top: $spacing-md-small;
110
+ }
111
+
112
+ .usa-footer-primary-section {
113
+ > .usa-grid {
114
+ padding: 0;
115
+
116
+ @include media($medium-screen) {
117
+ padding-left: $spacing-large;
118
+ padding-right: $spacing-large;
119
+ }
70
120
  }
71
121
 
72
122
  .usa-footer-primary-content {
73
123
  @include media($large-screen) {
74
- margin-right: 6%;
124
+ margin-right: 5%;
75
125
  width: inherit;
76
126
  }
77
127
 
@@ -98,7 +148,7 @@
98
148
 
99
149
  .usa-footer-primary-content {
100
150
  @include media($large-screen) {
101
- margin-right: 9%;
151
+ margin-right: 5%;
102
152
  width: inherit;
103
153
  }
104
154
 
@@ -110,12 +160,24 @@
110
160
  }
111
161
  }
112
162
 
163
+ .usa-footer-primary-link {
164
+ padding-bottom: $spacing-md-small;
165
+ padding-top: $spacing-md-small;
166
+ }
167
+
113
168
  .usa-footer-primary-section {
114
- padding-bottom: 2rem;
169
+ > .usa-grid {
170
+ padding: 0;
171
+
172
+ @include media($medium-screen) {
173
+ padding-left: $spacing-large;
174
+ padding-right: $spacing-large;
175
+ }
176
+ }
115
177
 
116
178
  @include media($medium-screen) {
117
- padding-bottom: 1rem;
118
- padding-top: 1rem;
179
+ padding-bottom: 0;
180
+ padding-top: 0;
119
181
 
120
182
  .usa-grid-full {
121
183
  align-items: center;
@@ -131,7 +193,7 @@
131
193
  }
132
194
 
133
195
  @include media($medium-screen) {
134
- @include padding (2rem null);
196
+ @include padding ($spacing-md-small null);
135
197
  }
136
198
 
137
199
  @include media($medium-screen) {
@@ -148,14 +210,14 @@
148
210
  ul.usa-footer-primary-content,
149
211
  li.usa-footer-primary-content,
150
212
  li.usa-footer-primary-content {
151
- border-top: 1px solid $color-base;
213
+ border-top: 1px solid $color-gray-light;
152
214
 
153
215
  @include media($medium-screen) {
154
216
  border: none;
155
217
  }
156
218
 
157
219
  &:last-child {
158
- border-bottom: 1px solid $color-base;
220
+ border-bottom: 1px solid $color-gray-light;
159
221
 
160
222
  @include media($medium-screen) {
161
223
  border-bottom: none;
@@ -165,9 +227,9 @@ li.usa-footer-primary-content {
165
227
  /* stylelint-enable */
166
228
 
167
229
  .usa-sign_up-block {
168
- padding-bottom: 2rem;
169
- padding-left: 2.5rem;
170
- padding-right: 2.5rem;
230
+ padding-bottom: 4.5rem;
231
+ padding-left: 1.5rem;
232
+ padding-right: 1.5rem;
171
233
 
172
234
  @include media($medium-screen) {
173
235
  float: right;
@@ -191,8 +253,8 @@ li.usa-footer-primary-content {
191
253
 
192
254
  .usa-footer-secondary_section {
193
255
  background-color: $color-gray-lighter;
194
- padding-bottom: 3rem;
195
- padding-top: 3rem;
256
+ padding-bottom: $spacing-medium;
257
+ padding-top: $spacing-medium;
196
258
 
197
259
  a {
198
260
  color: $color-base;
@@ -201,7 +263,8 @@ li.usa-footer-primary-content {
201
263
 
202
264
  .usa-footer-big-secondary-section {
203
265
  @include media($medium-screen) {
204
- padding-top: 5rem;
266
+ padding-top: $spacing-medium;
267
+ padding-bottom: $spacing-medium;
205
268
  }
206
269
  }
207
270
 
@@ -218,11 +281,63 @@ li.usa-footer-primary-content {
218
281
  }
219
282
 
220
283
  .usa-footer-big {
284
+ .usa-footer-contact_info {
285
+ display: block;
286
+
287
+ p {
288
+ margin: 0 $spacing-small 0 0;
289
+
290
+ @include media($medium-screen) {
291
+ margin: $spacing-x-small 0 0 $spacing-small;
292
+ }
293
+ }
294
+ }
295
+
296
+ .usa-footer-contact-links {
297
+ @include media($medium-screen) {
298
+ padding-top: $spacing-medium;
299
+ }
300
+ }
301
+
302
+ .usa-footer-logo {
303
+ padding: $spacing-small 0;
304
+
305
+ @include media($medium-screen) {
306
+ padding: $spacing-medium 0;
307
+ }
308
+ }
309
+
221
310
  .usa-footer-primary-section {
222
311
  @include media($medium-screen) {
223
312
  padding-bottom: 4rem;
224
313
  padding-top: 3rem;
225
314
  }
315
+
316
+ > .usa-grid {
317
+ padding: 0;
318
+
319
+ @include media($medium-screen) {
320
+ padding-left: $spacing-large;
321
+ padding-right: $spacing-large;
322
+ }
323
+ }
324
+
325
+ .usa-footer-primary-content {
326
+ padding-left: 0;
327
+ padding-right: 0;
328
+
329
+ li {
330
+ margin-left: $spacing-md-small;
331
+
332
+ @include media($medium-screen) {
333
+ margin-left: 0;
334
+ }
335
+ }
336
+
337
+ .usa-footer-primary-link {
338
+ margin-left: 0;
339
+ }
340
+ }
226
341
  }
227
342
 
228
343
  ul {
@@ -233,7 +348,7 @@ li.usa-footer-primary-content {
233
348
  }
234
349
 
235
350
  &:last-child {
236
- border-bottom: 1px solid $color-base;
351
+ border-bottom: 1px solid $color-gray-light;
237
352
 
238
353
  @include media($medium-screen) {
239
354
  border-bottom: none;
@@ -300,33 +415,52 @@ li.usa-footer-primary-content {
300
415
  }
301
416
 
302
417
  .usa-footer-logo-img {
303
- max-width: 14rem;
418
+ max-width: 8rem;
419
+
420
+ @include media($medium-screen) {
421
+ float: left;
422
+ }
423
+ }
424
+
425
+ .usa-footer-big-logo-img {
426
+ max-width: 10rem;
304
427
  }
305
428
 
306
429
  .usa-footer-slim-logo-img {
307
430
  float: left;
308
- max-width: 10rem;
431
+ max-width: 5rem;
309
432
  }
310
433
 
311
434
  .usa-footer-logo-heading {
312
- margin-top: 2rem;
435
+ display: block;
436
+ margin-top: $spacing-small;
437
+
438
+ @include media($medium-screen) {
439
+ display: inline-block;
440
+ margin-top: $spacing-large;
441
+ padding-left: $spacing-md-small;
442
+ }
313
443
  }
314
444
 
315
- .usa-footer-contact-heading {
316
- margin-top: 0;
445
+ .usa-footer-big-logo-heading {
446
+ margin-top: $spacing-md-small;
317
447
 
318
448
  @include media($medium-screen) {
319
- margin-top: 1rem;
449
+ margin-top: $spacing-medium;
320
450
  }
321
451
  }
322
452
 
323
453
  .usa-footer-slim-logo-heading {
324
- display: block;
325
- padding-top: 1rem;
454
+ display: inline-block;
455
+ margin-top: $spacing-md-small;
456
+ padding-left: $spacing-md-small;
457
+ }
458
+
459
+ .usa-footer-contact-heading {
460
+ margin-top: 0;
326
461
 
327
462
  @include media($medium-screen) {
328
- display: inline-block;
329
- padding-left: 1em;
463
+ margin-top: 1rem;
330
464
  }
331
465
  }
332
466
 
@@ -348,8 +482,8 @@ li.usa-footer-primary-content {
348
482
  width: $hit-area;
349
483
 
350
484
  @include media($medium-screen) {
351
- @include margin(0 0 0 1rem);
352
- left: 1.2rem;
485
+ @include margin(0 0 0 $spacing-x-small);
486
+ left: $spacing-md-small;
353
487
  }
354
488
 
355
489
  span {
@@ -15,7 +15,7 @@ $z-index-nav: 9000;
15
15
  z-index: $z-index-header;
16
16
 
17
17
  @include media($nav-width) {
18
- border-bottom: 1px solid $color-gray-light;
18
+ border-bottom: 1px solid $color-gray-lighter;
19
19
  }
20
20
 
21
21
  a {
@@ -28,7 +28,8 @@ $z-index-nav: 9000;
28
28
  @include media($nav-width) {
29
29
  float: right;
30
30
  margin-bottom: 0;
31
- max-width: 21.5rem;
31
+ max-width: 23.5rem;
32
+ width: 21.5rem;
32
33
  }
33
34
  }
34
35
  }
@@ -120,7 +121,7 @@ $z-index-nav: 9000;
120
121
  .usa-header-basic {
121
122
  .usa-logo {
122
123
  @include media($nav-width) {
123
- bottom: 1.9rem;
124
+ bottom: -4rem;
124
125
  position: absolute;
125
126
  }
126
127
  }
@@ -167,7 +168,7 @@ $z-index-nav: 9000;
167
168
 
168
169
  .usa-nav {
169
170
  @include media($nav-width) {
170
- border-top: 1px solid $color-gray-light;
171
+ border-top: 1px solid $color-gray-lighter;
171
172
  float: none;
172
173
  padding: 0;
173
174
  width: 100%;
@@ -6,19 +6,31 @@
6
6
  }
7
7
 
8
8
  .usa-navbar {
9
- border-bottom: 1px solid $color-gray-light;
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-light;
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: all 0.3s ease-in-out;
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.5rem; // XXX magic number
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 3rem 1.9rem 1.5rem);
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: url('#{$image-path}/angle-arrow-down.png');
178
204
  background-image: url('#{$image-path}/angle-arrow-down.svg');
179
205
  background-position: right 1.5rem top $button-vertical-offset;
206
+
207
+ &:hover {
208
+ background-image: url('#{$image-path}/angle-arrow-down-primary.png');
209
+ background-image: 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: left;
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: url('#{$image-path}/search-alt.png');
277
- background-image: url('#{$image-path}/search-alt.svg');
310
+ background-image: url('#{$image-path}/search-primary.png');
311
+ background-image: 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(3.15rem null); // XXX magic number
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