uswds-rails 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/uswds/components/_footer.scss +5 -3
  3. data/app/assets/stylesheets/uswds/components/_search.scss +32 -27
  4. data/app/assets/stylesheets/uswds/core/_utilities.scss +10 -4
  5. data/app/assets/stylesheets/uswds/elements/_inputs.scss +23 -8
  6. data/app/assets/stylesheets/uswds/elements/_typography.scss +14 -7
  7. data/app/assets/stylesheets/uswds/uswds.scss +2 -2
  8. data/lib/uswds/rails/version.rb +1 -1
  9. data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.eot +0 -0
  10. data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.ttf +0 -0
  11. data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.woff +0 -0
  12. data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.woff2 +0 -0
  13. data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.eot +0 -0
  14. data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.ttf +0 -0
  15. data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.woff +0 -0
  16. data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.woff2 +0 -0
  17. data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.eot +0 -0
  18. data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.ttf +0 -0
  19. data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.woff +0 -0
  20. data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.woff2 +0 -0
  21. data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.eot +0 -0
  22. data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.ttf +0 -0
  23. data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.woff +0 -0
  24. data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.woff2 +0 -0
  25. data/vendor/assets/images/uswds/angle-arrow-down-hover.png +0 -0
  26. data/vendor/assets/images/uswds/angle-arrow-down-hover.svg +0 -0
  27. data/vendor/assets/images/uswds/angle-arrow-down-primary-hover.png +0 -0
  28. data/vendor/assets/images/uswds/angle-arrow-down-primary-hover.svg +0 -0
  29. data/vendor/assets/images/uswds/angle-arrow-down-primary.png +0 -0
  30. data/vendor/assets/images/uswds/angle-arrow-down-primary.svg +0 -0
  31. data/vendor/assets/images/uswds/angle-arrow-down.png +0 -0
  32. data/vendor/assets/images/uswds/angle-arrow-down.svg +0 -0
  33. data/vendor/assets/images/uswds/angle-arrow-up-primary-hover.png +0 -0
  34. data/vendor/assets/images/uswds/angle-arrow-up-primary-hover.svg +0 -0
  35. data/vendor/assets/images/uswds/angle-arrow-up-primary.png +0 -0
  36. data/vendor/assets/images/uswds/angle-arrow-up-primary.svg +0 -0
  37. data/vendor/assets/images/uswds/arrow-both.png +0 -0
  38. data/vendor/assets/images/uswds/arrow-both.svg +1 -1
  39. data/vendor/assets/images/uswds/arrow-down.png +0 -0
  40. data/vendor/assets/images/uswds/arrow-down.svg +0 -0
  41. data/vendor/assets/images/uswds/arrow-right.png +0 -0
  42. data/vendor/assets/images/uswds/arrow-right.svg +0 -0
  43. data/vendor/assets/images/uswds/circle-124.png +0 -0
  44. data/vendor/assets/images/uswds/close-primary.png +0 -0
  45. data/vendor/assets/images/uswds/close-primary.svg +0 -0
  46. data/vendor/assets/images/uswds/close.png +0 -0
  47. data/vendor/assets/images/uswds/close.svg +0 -0
  48. data/vendor/assets/images/uswds/correct9.png +0 -0
  49. data/vendor/assets/images/uswds/external-link-alt-hover.png +0 -0
  50. data/vendor/assets/images/uswds/external-link-alt-hover.svg +0 -0
  51. data/vendor/assets/images/uswds/external-link-alt.png +0 -0
  52. data/vendor/assets/images/uswds/external-link-alt.svg +0 -0
  53. data/vendor/assets/images/uswds/external-link-hover.png +0 -0
  54. data/vendor/assets/images/uswds/external-link-hover.svg +0 -0
  55. data/vendor/assets/images/uswds/external-link.png +0 -0
  56. data/vendor/assets/images/uswds/external-link.svg +0 -0
  57. data/vendor/assets/images/uswds/hero.png +0 -0
  58. data/vendor/assets/images/uswds/icon-dot-gov.svg +0 -0
  59. data/vendor/assets/images/uswds/icon-https.svg +0 -0
  60. data/vendor/assets/images/uswds/logo-img.png +0 -0
  61. data/vendor/assets/images/uswds/minus-alt.png +0 -0
  62. data/vendor/assets/images/uswds/minus-alt.svg +0 -0
  63. data/vendor/assets/images/uswds/minus.png +0 -0
  64. data/vendor/assets/images/uswds/minus.svg +0 -0
  65. data/vendor/assets/images/uswds/plus-alt.png +0 -0
  66. data/vendor/assets/images/uswds/plus-alt.svg +0 -0
  67. data/vendor/assets/images/uswds/plus.png +0 -0
  68. data/vendor/assets/images/uswds/plus.svg +0 -0
  69. data/vendor/assets/images/uswds/search-primary.png +0 -0
  70. data/vendor/assets/images/uswds/search-primary.svg +0 -0
  71. data/vendor/assets/images/uswds/social-icons/png/facebook25.png +0 -0
  72. data/vendor/assets/images/uswds/social-icons/png/rss25.png +0 -0
  73. data/vendor/assets/images/uswds/social-icons/png/twitter16.png +0 -0
  74. data/vendor/assets/images/uswds/social-icons/png/youtube15.png +0 -0
  75. data/vendor/assets/images/uswds/us_flag_small.png +0 -0
  76. data/vendor/assets/stylesheets/uswds/components/_accordions.scss +0 -0
  77. data/vendor/assets/stylesheets/uswds/components/_alerts.scss +0 -0
  78. data/vendor/assets/stylesheets/uswds/components/_banner.scss +0 -0
  79. data/vendor/assets/stylesheets/uswds/components/_footer.scss +5 -3
  80. data/vendor/assets/stylesheets/uswds/components/_forms.scss +0 -0
  81. data/vendor/assets/stylesheets/uswds/components/_graphic-list.scss +0 -0
  82. data/vendor/assets/stylesheets/uswds/components/_hero.scss +0 -0
  83. data/vendor/assets/stylesheets/uswds/components/_layout.scss +0 -0
  84. data/vendor/assets/stylesheets/uswds/components/_media-block.scss +0 -0
  85. data/vendor/assets/stylesheets/uswds/components/_search.scss +32 -27
  86. data/vendor/assets/stylesheets/uswds/components/_section.scss +0 -0
  87. data/vendor/assets/stylesheets/uswds/components/_sidenav.scss +0 -0
  88. data/vendor/assets/stylesheets/uswds/components/_skipnav.scss +0 -0
  89. data/vendor/assets/stylesheets/uswds/core/_base.scss +1 -2
  90. data/vendor/assets/stylesheets/uswds/core/_fonts.scss +0 -0
  91. data/vendor/assets/stylesheets/uswds/core/_grid.scss +0 -0
  92. data/vendor/assets/stylesheets/uswds/core/_utilities.scss +6 -0
  93. data/vendor/assets/stylesheets/uswds/core/_variables.scss +1 -1
  94. data/vendor/assets/stylesheets/uswds/elements/_buttons.scss +0 -0
  95. data/vendor/assets/stylesheets/uswds/elements/_embed.scss +0 -0
  96. data/vendor/assets/stylesheets/uswds/elements/_figure.scss +0 -0
  97. data/vendor/assets/stylesheets/uswds/elements/_inputs.scss +19 -4
  98. data/vendor/assets/stylesheets/uswds/elements/_labels.scss +0 -0
  99. data/vendor/assets/stylesheets/uswds/elements/_list.scss +0 -0
  100. data/vendor/assets/stylesheets/uswds/elements/_table.scss +30 -22
  101. data/vendor/assets/stylesheets/uswds/elements/_typography.scss +10 -3
  102. data/vendor/assets/stylesheets/uswds/uswds.scss +1 -1
  103. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 527c148580ccd2b9a299708c1b5b201c414354dd44a9e2475e7b8bd20cac88c8
4
- data.tar.gz: 66988327aca6e9c6cdb79a97d6a8607390b28ca95b0ca4622ace9bf19fe66536
3
+ metadata.gz: b73889f0bc059b764657abd1efcb685a29506d0ae970bfca061b314350b1c8a9
4
+ data.tar.gz: a85cb088185bb658718cce0027e6898b448e2aa00a8ddbb834a420d7413a12de
5
5
  SHA512:
6
- metadata.gz: 1b720d9e61d6a19bf768482ac93bdea0f06a6f54e4f8b319c264b99c475fab574e28f6ad70d04b6332e1b0d1620447444034eac5a4a0375db96042b003ce8b80
7
- data.tar.gz: f00dbd78b4f5566165781d2d7f7295919e2974536fab4370bb9af91f2309a94acdde39cb350fa7a7ec62b5636d76ce8fc9eb8b3f312c5703b26087443886424e
6
+ metadata.gz: d85631fb1ab1b9a6b33f576099c369764d44419bb870cb231ed3ae4c5a17029b10727524ed07931d46df757ab0cb7adbfab74815d99e29b4a94b94e25b03607c
7
+ data.tar.gz: 10a2508ca4b598b93b0ca85a0eca3fb335698c863bf9f7634b0e1e1f2eeff77ae16fce3595aae037e4c422be06a0f975f2b4dca88a8c9d8ecf409ccd9adc5195
@@ -341,7 +341,7 @@ li.usa-footer-primary-content {
341
341
  }
342
342
 
343
343
  ul {
344
- padding-bottom: 2.5rem;
344
+ padding-bottom: 2.4rem;
345
345
 
346
346
  @include media($medium-screen) {
347
347
  padding-bottom: 0;
@@ -355,8 +355,10 @@ li.usa-footer-primary-content {
355
355
  }
356
356
  }
357
357
 
358
- li {
359
- line-height: 2em;
358
+ li:not(.usa-footer-primary-link) {
359
+ line-height: $heading-line-height;
360
+ padding-bottom: 0.35em;
361
+ padding-top: 0.35em;
360
362
  }
361
363
 
362
364
  .usa-footer-primary-link {
@@ -14,25 +14,6 @@ $usa-btn-big-width: 11.6rem;
14
14
  max-width: none;
15
15
  position: relative;
16
16
 
17
- [type=search],
18
- .usa-search-input {
19
- @include padding(0 null);
20
- -webkit-appearance: none;
21
- border-bottom-right-radius: 0;
22
- border-right: none;
23
- border-top-right-radius: 0;
24
- box-sizing: border-box;
25
- float: left;
26
- font-size: $small-font-size;
27
- height: 3.3rem;
28
- margin: 0;
29
- width: calc(100% - #{$usa-btn-small-width});
30
-
31
- @include media($small-screen) {
32
- width: calc(100% - #{$usa-btn-medium-width});
33
- }
34
- }
35
-
36
17
  [type=submit],
37
18
  .usa-search-submit {
38
19
  @include search-icon;
@@ -49,14 +30,6 @@ $usa-btn-big-width: 11.6rem;
49
30
  }
50
31
  }
51
32
 
52
- .usa-search-submit-text {
53
- @include sr-only();
54
-
55
- @include media($small-screen) {
56
- @include not-sr-only();
57
- }
58
- }
59
-
60
33
  &.usa-search-big {
61
34
  @include media($small-screen) {
62
35
  $height: 4.4rem;
@@ -104,3 +77,35 @@ $usa-btn-big-width: 11.6rem;
104
77
  }
105
78
  }
106
79
  }
80
+
81
+ // Extra specificity to override rules set in reset.css.
82
+ input[type=search] { /* stylelint-disable-line selector-no-qualifying-type */
83
+ box-sizing: border-box;
84
+ -webkit-appearance: none;
85
+ }
86
+
87
+ [type=search],
88
+ .usa-search-input {
89
+ @include padding(0 null);
90
+ border-bottom-right-radius: 0;
91
+ border-right: none;
92
+ border-top-right-radius: 0;
93
+ box-sizing: border-box;
94
+ float: left;
95
+ font-size: $small-font-size;
96
+ height: 3.3rem;
97
+ margin: 0;
98
+ width: calc(100% - #{$usa-btn-small-width});
99
+
100
+ @include media($small-screen) {
101
+ width: calc(100% - #{$usa-btn-medium-width});
102
+ }
103
+ }
104
+
105
+ .usa-search-submit-text {
106
+ @include sr-only;
107
+
108
+ @include media($small-screen) {
109
+ @include not-sr-only();
110
+ }
111
+ }
@@ -36,6 +36,12 @@
36
36
  text-transform: uppercase;
37
37
  }
38
38
 
39
+ // Focus state mixin
40
+ @mixin focus {
41
+ outline: $focus-outline;
42
+ outline-offset: $focus-spacing;
43
+ }
44
+
39
45
  // Mobile-first media query helper
40
46
  @mixin media($bp) {
41
47
  @media screen and (min-width: #{$bp}) {
@@ -141,8 +147,8 @@
141
147
 
142
148
  @mixin display-icon($icon, $direction, $size, $margin, $hover) {
143
149
  &::#{$direction} {
144
- background-image: url('#{$image-path}/#{$icon}.png');
145
- background-image: url('#{$image-path}/#{$icon}.svg');
150
+ background-image: asset-url('#{$image-path}/#{$icon}.png');
151
+ background-image: asset-url('#{$image-path}/#{$icon}.svg');
146
152
  background-size: 100%;
147
153
  content: '';
148
154
  display: inline-block;
@@ -160,8 +166,8 @@
160
166
 
161
167
  @if $hover == 'hover' {
162
168
  &:hover::#{$direction} {
163
- background-image: url('#{$image-path}/#{$icon}-hover.png');
164
- background-image: url('#{$image-path}/#{$icon}-hover.svg');
169
+ background-image: asset-url('#{$image-path}/#{$icon}-hover.png');
170
+ background-image: asset-url('#{$image-path}/#{$icon}-hover.svg');
165
171
  }
166
172
  }
167
173
  }
@@ -88,13 +88,12 @@ select {
88
88
 
89
89
  .usa-input-required:after {
90
90
  color: $color-secondary-darkest;
91
- content: ' (*Required)';
91
+ content: ' (*required)';
92
92
  }
93
93
 
94
94
  .usa-input-optional:after {
95
95
  color: $color-gray-medium;
96
- content: ' - optional';
97
- font-style: italic;
96
+ content: ' (optional)';
98
97
  }
99
98
 
100
99
  label {
@@ -112,11 +111,27 @@ select {
112
111
  -webkit-appearance: none;
113
112
  appearance: none;
114
113
  background-color: $color-white;
115
- background-image: url('#{$image-path}/arrow-both.png');
116
- background-image: url('#{$image-path}/arrow-both.svg');
114
+ background-image: asset-url('#{$image-path}/arrow-both.png');
115
+ background-image: asset-url('#{$image-path}/arrow-both.svg');
117
116
  background-position: right 1.3rem center;
118
117
  background-repeat: no-repeat;
119
- background-size: 1.3rem;
118
+ background-size: 1rem;
119
+ padding-right: 3rem;
120
+
121
+ &::-ms-expand {
122
+ display: none;
123
+ }
124
+
125
+ // Show default webkit style on select element when autofilled to show icon
126
+ &:-webkit-autofill {
127
+ appearance: menulist;
128
+ }
129
+
130
+ // Remove dotted outline from select element on focus in Firefox
131
+ &:-moz-focusring {
132
+ color: transparent;
133
+ text-shadow: 0 0 0 $color-black;
134
+ }
120
135
  }
121
136
 
122
137
  option:first-child {
@@ -202,8 +217,8 @@ legend {
202
217
 
203
218
  [type=checkbox]:checked + label::before,
204
219
  [type=checkbox]:checked:disabled + label::before {
205
- background-image: url('#{$image-path}/correct8.png');
206
- background-image: url('#{$image-path}/correct8.svg');
220
+ background-image: asset-url('#{$image-path}/correct8.png');
221
+ background-image: asset-url('#{$image-path}/correct8.svg');
207
222
  background-position: 50%;
208
223
  background-repeat: no-repeat;
209
224
  }
@@ -22,6 +22,10 @@ a {
22
22
  color: $color-primary-darker;
23
23
  }
24
24
 
25
+ &:focus {
26
+ @include focus;
27
+ }
28
+
25
29
  &:visited {
26
30
  color: $color-visited;
27
31
  }
@@ -29,8 +33,8 @@ a {
29
33
 
30
34
  @mixin external-link($external-link, $external-link-hover) {
31
35
  &::after {
32
- background: url('#{$image-path}/#{$external-link}.png') no-repeat 0 0;
33
- background: url('#{$image-path}/#{$external-link}.svg') no-repeat 0 0;
36
+ background: asset-url('#{$image-path}/#{$external-link}.png') no-repeat 0 0;
37
+ background: asset-url('#{$image-path}/#{$external-link}.svg') no-repeat 0 0;
34
38
  background-size: 100%;
35
39
  content: '';
36
40
  display: inline-block;
@@ -41,8 +45,8 @@ a {
41
45
  }
42
46
 
43
47
  &:hover::after {
44
- background-image: url('#{$image-path}/#{$external-link-hover}.png');
45
- background-image: url('#{$image-path}/#{$external-link-hover}.svg');
48
+ background-image: asset-url('#{$image-path}/#{$external-link-hover}.png');
49
+ background-image: asset-url('#{$image-path}/#{$external-link-hover}.svg');
46
50
  }
47
51
  }
48
52
 
@@ -62,8 +66,7 @@ h1,
62
66
  h2,
63
67
  h3,
64
68
  h4,
65
- h5,
66
- h6 {
69
+ h5 {
67
70
  clear: both;
68
71
  font-family: $font-serif;
69
72
  line-height: $heading-line-height;
@@ -71,6 +74,10 @@ h6 {
71
74
  margin-top: 1.5em;
72
75
  }
73
76
 
77
+ h6 {
78
+ font-family: $font-sans;
79
+ }
80
+
74
81
  h1 {
75
82
  @include h1();
76
83
  }
@@ -107,7 +114,7 @@ dfn {
107
114
  // Custom typography
108
115
 
109
116
  .usa-content {
110
- p:not(.usa-font-lead),
117
+ p,
111
118
  ul:not(.usa-accordion):not(.usa-accordion-bordered),
112
119
  ol:not(.usa-accordion):not(.usa-accordion-bordered) {
113
120
  max-width: $text-max-width;
@@ -1,4 +1,4 @@
1
- /*! uswds 1.4.1 */
1
+ /*! uswds 1.4.2 */
2
2
 
3
3
  // Relative font and image file paths
4
4
  $font-path: 'uswds';
@@ -15,9 +15,9 @@ $asset-pipeline: true;
15
15
  // Core -------------- //
16
16
  @import 'uswds/core/variables';
17
17
  @import 'uswds/core/fonts';
18
- @import 'uswds/core/base';
19
18
  @import 'uswds/core/grid';
20
19
  @import 'uswds/core/utilities';
20
+ @import 'uswds/core/base';
21
21
 
22
22
  // Elements -------------- //
23
23
  // Styles basic HTML elements
@@ -1,5 +1,5 @@
1
1
  module Uswds
2
2
  module Rails
3
- VERSION = '1.4.1'.freeze
3
+ VERSION = '1.4.2'.freeze
4
4
  end
5
5
  end
File without changes
File without changes
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.93 13.66"><title>Sort</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path d="M.62,5.59H9.31a.62.62,0,0,0,.44-1.06L5.4.18a.61.61,0,0,0-.87,0L.18,4.53a.61.61,0,0,0,0,.87A.6.6,0,0,0,.62,5.59Z" fill="#323a44" fill-rule="evenodd"/><path d="M9.31,8.07H.62a.6.6,0,0,0-.44.18.61.61,0,0,0,0,.87l4.35,4.35a.61.61,0,0,0,.87,0L9.75,9.13a.62.62,0,0,0-.44-1.06Z" fill="#323a44" fill-rule="evenodd"/></g></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 14"><g fill="#323a45" fill-rule="evenodd"><path d="M.62639628 5.99993896H9.3727389c.25339173.00130856.482416-.15074264.57956202-.38477624.09714598-.2340336.04312294-.50357616-.13670922-.6820964L5.4401815.1835435C5.32475606.06613116 5.1670083 0 5.00236114 0c-.16464716 0-.3223949.06613117-.43782037.1835435L.1835435 4.93306632C.06613116 5.0484918 0 5.20623953 0 5.3708867s.06613117.32239492.1835435.43782038c.1146444.1224934.27508006.19177244.44285278.19123188zM9.3727389 7.9999685H.6263963c-.1662653-.00316183-.32647608.06237894-.4428528.18116705C.0661312 8.296561 0 8.45430875 0 8.61895592s.06613117.32239492.1835435.43782037l4.38099726 4.7596802C4.67996622 13.9338688 4.83771396 14 5.00236113 14s.32239492-.0661312.43782038-.1835435l4.3754102-4.74961537c.17983216-.17852023.2338552-.44806278.13670922-.68209638-.09714602-.2340336-.3261703-.3860848-.579562-.38477625z"/></g></svg>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -341,7 +341,7 @@ li.usa-footer-primary-content {
341
341
  }
342
342
 
343
343
  ul {
344
- padding-bottom: 2.5rem;
344
+ padding-bottom: 2.4rem;
345
345
 
346
346
  @include media($medium-screen) {
347
347
  padding-bottom: 0;
@@ -355,8 +355,10 @@ li.usa-footer-primary-content {
355
355
  }
356
356
  }
357
357
 
358
- li {
359
- line-height: 2em;
358
+ li:not(.usa-footer-primary-link) {
359
+ line-height: $heading-line-height;
360
+ padding-bottom: 0.35em;
361
+ padding-top: 0.35em;
360
362
  }
361
363
 
362
364
  .usa-footer-primary-link {
@@ -14,25 +14,6 @@ $usa-btn-big-width: 11.6rem;
14
14
  max-width: none;
15
15
  position: relative;
16
16
 
17
- [type=search],
18
- .usa-search-input {
19
- @include padding(0 null);
20
- -webkit-appearance: none;
21
- border-bottom-right-radius: 0;
22
- border-right: none;
23
- border-top-right-radius: 0;
24
- box-sizing: border-box;
25
- float: left;
26
- font-size: $small-font-size;
27
- height: 3.3rem;
28
- margin: 0;
29
- width: calc(100% - #{$usa-btn-small-width});
30
-
31
- @include media($small-screen) {
32
- width: calc(100% - #{$usa-btn-medium-width});
33
- }
34
- }
35
-
36
17
  [type=submit],
37
18
  .usa-search-submit {
38
19
  @include search-icon;
@@ -49,14 +30,6 @@ $usa-btn-big-width: 11.6rem;
49
30
  }
50
31
  }
51
32
 
52
- .usa-search-submit-text {
53
- @include sr-only();
54
-
55
- @include media($small-screen) {
56
- @include not-sr-only();
57
- }
58
- }
59
-
60
33
  &.usa-search-big {
61
34
  @include media($small-screen) {
62
35
  $height: 4.4rem;
@@ -104,3 +77,35 @@ $usa-btn-big-width: 11.6rem;
104
77
  }
105
78
  }
106
79
  }
80
+
81
+ // Extra specificity to override rules set in reset.css.
82
+ input[type=search] { /* stylelint-disable-line selector-no-qualifying-type */
83
+ box-sizing: border-box;
84
+ -webkit-appearance: none;
85
+ }
86
+
87
+ [type=search],
88
+ .usa-search-input {
89
+ @include padding(0 null);
90
+ border-bottom-right-radius: 0;
91
+ border-right: none;
92
+ border-top-right-radius: 0;
93
+ box-sizing: border-box;
94
+ float: left;
95
+ font-size: $small-font-size;
96
+ height: 3.3rem;
97
+ margin: 0;
98
+ width: calc(100% - #{$usa-btn-small-width});
99
+
100
+ @include media($small-screen) {
101
+ width: calc(100% - #{$usa-btn-medium-width});
102
+ }
103
+ }
104
+
105
+ .usa-search-submit-text {
106
+ @include sr-only;
107
+
108
+ @include media($small-screen) {
109
+ @include not-sr-only();
110
+ }
111
+ }
@@ -31,6 +31,5 @@ body {
31
31
 
32
32
  *:focus,
33
33
  .usa-focus {
34
- outline: $focus-outline;
35
- outline-offset: $focus-spacing;
34
+ @include focus;
36
35
  }
File without changes
File without changes
@@ -36,6 +36,12 @@
36
36
  text-transform: uppercase;
37
37
  }
38
38
 
39
+ // Focus state mixin
40
+ @mixin focus {
41
+ outline: $focus-outline;
42
+ outline-offset: $focus-spacing;
43
+ }
44
+
39
45
  // Mobile-first media query helper
40
46
  @mixin media($bp) {
41
47
  @media screen and (min-width: #{$bp}) {
@@ -128,7 +128,7 @@ $image-path: '../img' !default;
128
128
  $asset-pipeline: false !default;
129
129
 
130
130
  // Magic Numbers
131
- $text-max-width: 53rem !default;
131
+ $text-max-width: 66ch !default; // 66 characters per line
132
132
  $lead-max-width: 77rem !default;
133
133
  $site-max-width: 1040px !default;
134
134
  $site-margins: 3rem !default;
File without changes
@@ -88,13 +88,12 @@ select {
88
88
 
89
89
  .usa-input-required:after {
90
90
  color: $color-secondary-darkest;
91
- content: ' (*Required)';
91
+ content: ' (*required)';
92
92
  }
93
93
 
94
94
  .usa-input-optional:after {
95
95
  color: $color-gray-medium;
96
- content: ' - optional';
97
- font-style: italic;
96
+ content: ' (optional)';
98
97
  }
99
98
 
100
99
  label {
@@ -116,7 +115,23 @@ select {
116
115
  background-image: url('#{$image-path}/arrow-both.svg');
117
116
  background-position: right 1.3rem center;
118
117
  background-repeat: no-repeat;
119
- background-size: 1.3rem;
118
+ background-size: 1rem;
119
+ padding-right: 3rem;
120
+
121
+ &::-ms-expand {
122
+ display: none;
123
+ }
124
+
125
+ // Show default webkit style on select element when autofilled to show icon
126
+ &:-webkit-autofill {
127
+ appearance: menulist;
128
+ }
129
+
130
+ // Remove dotted outline from select element on focus in Firefox
131
+ &:-moz-focusring {
132
+ color: transparent;
133
+ text-shadow: 0 0 0 $color-black;
134
+ }
120
135
  }
121
136
 
122
137
  option:first-child {
File without changes
@@ -1,40 +1,35 @@
1
1
  table {
2
2
  border-spacing: 0;
3
3
  margin: 2em 0;
4
- min-width: 100%;
5
-
6
- thead {
7
- th,
8
- td {
9
- background-color: $color-gray-lightest;
10
- }
11
- }
4
+ }
12
5
 
6
+ thead {
13
7
  th {
14
- text-align: left;
15
- }
16
-
17
- tbody {
18
- th {
19
- font-weight: $font-normal;
20
- }
8
+ font-weight: $font-bold;
21
9
  }
22
10
 
23
11
  th,
24
12
  td {
25
- background-color: $color-white;
26
- border: 1px solid $color-gray;
27
- padding: 1.5rem;
13
+ background-color: $color-gray-lightest;
28
14
  }
29
15
  }
30
16
 
17
+ th {
18
+ text-align: left;
19
+ }
20
+
21
+ th,
22
+ td {
23
+ background-color: $color-white;
24
+ border: 1px solid $color-gray;
25
+ font-weight: $font-normal;
26
+ padding: 1rem 1.5rem;
27
+ }
28
+
31
29
  .usa-table-borderless {
32
30
  thead {
33
- tr {
34
- background-color: transparent;
35
- }
36
-
37
31
  th {
32
+ background-color: transparent;
38
33
  border-top: 0;
39
34
  }
40
35
  }
@@ -44,4 +39,17 @@ table {
44
39
  border-left: 0;
45
40
  border-right: 0;
46
41
  }
42
+
43
+ th {
44
+ &:first-child {
45
+ padding-left: 0;
46
+ }
47
+ }
48
+ }
49
+
50
+ caption {
51
+ @include h5;
52
+ font-family: $font-serif;
53
+ margin-bottom: 1.2rem;
54
+ text-align: left;
47
55
  }
@@ -22,6 +22,10 @@ a {
22
22
  color: $color-primary-darker;
23
23
  }
24
24
 
25
+ &:focus {
26
+ @include focus;
27
+ }
28
+
25
29
  &:visited {
26
30
  color: $color-visited;
27
31
  }
@@ -62,8 +66,7 @@ h1,
62
66
  h2,
63
67
  h3,
64
68
  h4,
65
- h5,
66
- h6 {
69
+ h5 {
67
70
  clear: both;
68
71
  font-family: $font-serif;
69
72
  line-height: $heading-line-height;
@@ -71,6 +74,10 @@ h6 {
71
74
  margin-top: 1.5em;
72
75
  }
73
76
 
77
+ h6 {
78
+ font-family: $font-sans;
79
+ }
80
+
74
81
  h1 {
75
82
  @include h1();
76
83
  }
@@ -107,7 +114,7 @@ dfn {
107
114
  // Custom typography
108
115
 
109
116
  .usa-content {
110
- p:not(.usa-font-lead),
117
+ p,
111
118
  ul:not(.usa-accordion):not(.usa-accordion-bordered),
112
119
  ol:not(.usa-accordion):not(.usa-accordion-bordered) {
113
120
  max-width: $text-max-width;
@@ -8,9 +8,9 @@
8
8
  // Core -------------- //
9
9
  @import 'core/variables';
10
10
  @import 'core/fonts';
11
- @import 'core/base';
12
11
  @import 'core/grid';
13
12
  @import 'core/utilities';
13
+ @import 'core/base';
14
14
 
15
15
  // Elements -------------- //
16
16
  // Styles basic HTML elements
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.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber