uswds-rails 1.4.2 → 1.4.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b73889f0bc059b764657abd1efcb685a29506d0ae970bfca061b314350b1c8a9
4
- data.tar.gz: a85cb088185bb658718cce0027e6898b448e2aa00a8ddbb834a420d7413a12de
3
+ metadata.gz: a756b523f71c9818fed38bfc20f1d410f4397b85dfcc5cc6e571a79147677896
4
+ data.tar.gz: 9f37cfd953b8b7fdcd5ca770b1722375d029cc69c64111285a705a7d0eff7b22
5
5
  SHA512:
6
- metadata.gz: d85631fb1ab1b9a6b33f576099c369764d44419bb870cb231ed3ae4c5a17029b10727524ed07931d46df757ab0cb7adbfab74815d99e29b4a94b94e25b03607c
7
- data.tar.gz: 10a2508ca4b598b93b0ca85a0eca3fb335698c863bf9f7634b0e1e1f2eeff77ae16fce3595aae037e4c422be06a0f975f2b4dca88a8c9d8ecf409ccd9adc5195
6
+ metadata.gz: 84be05e23d62d5f1ef1bcebffa3bad05871e3c1dd9f8fbc6a070d693469cfa4a2ced3f2d36af140b661e095356ebd0898c3c08bdd0e274e018bde9235fe55649
7
+ data.tar.gz: fbe0ab61a140032ba33b0fc300ce5001412f4c8e654234e13526bc57ceb22ca9b2cff99e4d90978bbf778e6f302ad251eca357634ef64e4ca7cc37b5801e8860
@@ -21,8 +21,8 @@
21
21
  }
22
22
  }
23
23
 
24
- a {
25
- font-weight: normal;
24
+ .usa-footer-primary-link ~ li a,
25
+ .usa-footer-secondary-link {
26
26
  text-decoration: none;
27
27
  }
28
28
  }
@@ -27,13 +27,7 @@
27
27
  }
28
28
 
29
29
  > *:first-child {
30
- @include margin(0 null $site-margins null);
31
- }
32
-
33
- .usa-button {
34
- font-size: $small-font-size;
35
- margin-top: 7rem;
36
- width: 100%;
30
+ @include margin(0 null $spacing-medium null);
37
31
  }
38
32
  }
39
33
 
@@ -118,6 +118,7 @@
118
118
 
119
119
  .usa-nav-primary {
120
120
  @include usa-sidenav-list;
121
+ margin-top: 1.5rem;
121
122
  order: 2;
122
123
 
123
124
  @include media($nav-width) {
@@ -303,14 +304,17 @@
303
304
  // Secondary navigation ----------- //
304
305
 
305
306
  .usa-nav-secondary {
307
+ margin-top: 1.5rem;
308
+
306
309
  @include media($nav-width) {
310
+ margin-top: 0;
307
311
  position: absolute;
308
312
  right: $site-margins;
309
313
  top: -5.7rem; // XXX magic number
310
314
  }
311
315
 
312
316
  .usa-search {
313
- @include margin(3rem null);
317
+ @include margin(1.5rem null 0 null);
314
318
 
315
319
  @include media($nav-width) {
316
320
  @include margin(-0.9rem null 0 0);
@@ -320,8 +324,11 @@
320
324
  }
321
325
 
322
326
  .usa-nav-secondary-links {
327
+ margin-top: 2.4rem;
328
+
323
329
  @include media($nav-width) {
324
330
  float: left;
331
+ margin-top: 0;
325
332
  }
326
333
 
327
334
  li {
@@ -434,7 +441,7 @@
434
441
 
435
442
  .usa-nav-close {
436
443
  @include button-unstyled;
437
- @include margin(-1.2rem -1.5rem 2.4rem auto);
444
+ @include margin(-1.2rem -1.5rem 1.5rem auto);
438
445
  float: right;
439
446
  height: $hit-area;
440
447
  text-align: center;
@@ -447,6 +454,10 @@
447
454
  img {
448
455
  width: 1.3rem;
449
456
  }
457
+
458
+ + * {
459
+ clear: both;
460
+ }
450
461
  }
451
462
 
452
463
  .usa-mobile_nav-active {
@@ -225,7 +225,7 @@ legend {
225
225
 
226
226
  [type=radio]:focus + label::before {
227
227
  outline: $focus-outline;
228
- outline-offset: 5px;
228
+ outline-offset: $focus-spacing * 2; // Double the offset to account for circular shape
229
229
  }
230
230
 
231
231
  [type=checkbox]:disabled + label {
@@ -1,4 +1,4 @@
1
- /*! uswds 1.4.2 */
1
+ /*! uswds 1.4.3 */
2
2
 
3
3
  // Relative font and image file paths
4
4
  $font-path: 'uswds';
@@ -1,5 +1,5 @@
1
1
  module Uswds
2
2
  module Rails
3
- VERSION = '1.4.2'.freeze
3
+ VERSION = '1.4.3'.freeze
4
4
  end
5
5
  end
@@ -21,8 +21,8 @@
21
21
  }
22
22
  }
23
23
 
24
- a {
25
- font-weight: normal;
24
+ .usa-footer-primary-link ~ li a,
25
+ .usa-footer-secondary-link {
26
26
  text-decoration: none;
27
27
  }
28
28
  }
@@ -23,11 +23,8 @@ $z-index-nav: 9000;
23
23
  }
24
24
 
25
25
  .usa-search {
26
- margin-bottom: 1.5rem;
27
-
28
26
  @include media($nav-width) {
29
27
  float: right;
30
- margin-bottom: 0;
31
28
  max-width: 21.5rem;
32
29
  }
33
30
  }
@@ -27,13 +27,7 @@
27
27
  }
28
28
 
29
29
  > *:first-child {
30
- @include margin(0 null $site-margins null);
31
- }
32
-
33
- .usa-button {
34
- font-size: $small-font-size;
35
- margin-top: 7rem;
36
- width: 100%;
30
+ @include margin(0 null $spacing-medium null);
37
31
  }
38
32
  }
39
33
 
@@ -118,6 +118,7 @@
118
118
 
119
119
  .usa-nav-primary {
120
120
  @include usa-sidenav-list;
121
+ margin-top: 1.5rem;
121
122
  order: 2;
122
123
 
123
124
  @include media($nav-width) {
@@ -303,14 +304,17 @@
303
304
  // Secondary navigation ----------- //
304
305
 
305
306
  .usa-nav-secondary {
307
+ margin-top: 1.5rem;
308
+
306
309
  @include media($nav-width) {
310
+ margin-top: 0;
307
311
  position: absolute;
308
312
  right: $site-margins;
309
313
  top: -5.7rem; // XXX magic number
310
314
  }
311
315
 
312
316
  .usa-search {
313
- @include margin(3rem null);
317
+ @include margin(1.5rem null 0 null);
314
318
 
315
319
  @include media($nav-width) {
316
320
  @include margin(-0.9rem null 0 0);
@@ -320,8 +324,11 @@
320
324
  }
321
325
 
322
326
  .usa-nav-secondary-links {
327
+ margin-top: 2.4rem;
328
+
323
329
  @include media($nav-width) {
324
330
  float: left;
331
+ margin-top: 0;
325
332
  }
326
333
 
327
334
  li {
@@ -434,7 +441,7 @@
434
441
 
435
442
  .usa-nav-close {
436
443
  @include button-unstyled;
437
- @include margin(-1.2rem -1.5rem 2.4rem auto);
444
+ @include margin(-1.2rem -1.5rem 1.5rem auto);
438
445
  float: right;
439
446
  height: $hit-area;
440
447
  text-align: center;
@@ -447,6 +454,10 @@
447
454
  img {
448
455
  width: 1.3rem;
449
456
  }
457
+
458
+ + * {
459
+ clear: both;
460
+ }
450
461
  }
451
462
 
452
463
  .usa-mobile_nav-active {
@@ -149,7 +149,8 @@ button,
149
149
  }
150
150
 
151
151
  &.usa-button-big {
152
- font-size: 1.9rem;
152
+ border-radius: 8px;
153
+ font-size: 2.4rem;
153
154
  padding: 1.5rem 3rem;
154
155
  }
155
156
 
@@ -225,7 +225,7 @@ legend {
225
225
 
226
226
  [type=radio]:focus + label::before {
227
227
  outline: $focus-outline;
228
- outline-offset: 5px;
228
+ outline-offset: $focus-spacing * 2; // Double the offset to account for circular shape
229
229
  }
230
230
 
231
231
  [type=checkbox]:disabled + label {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uswds-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber