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
File without changes
@@ -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: url('#{$image-path}/arrow-down.png');
116
- background-image: url('#{$image-path}/arrow-down.svg');
115
+ background-image: url('#{$image-path}/arrow-both.png');
116
+ background-image: 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.5em;
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: 1.8rem;
173
- line-height: 1.8rem;
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: 1.8rem;
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: url('#{$image-path}/correct8.png');
@@ -207,17 +208,23 @@ legend {
207
208
  background-repeat: no-repeat;
208
209
  }
209
210
 
210
- [type=checkbox]:focus + label::before {
211
- box-shadow: 0 0 0 1px $color-white, 0 0 0 3px $color-primary;
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-lighter;
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 {
@@ -1,6 +1,6 @@
1
1
  .usa-label {
2
- background-color: $color-primary;
3
- border-radius: $border-radius;
2
+ background-color: $color-gray;
3
+ border-radius: $label-border-radius;
4
4
  color: $color-white;
5
5
  font-size: $h5-font-size;
6
6
  margin-right: 0.5rem;
File without changes
File without changes
@@ -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
  }
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uswds-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-01 00:00:00.000000000 Z
11
+ date: 2017-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -277,11 +277,15 @@ files:
277
277
  - vendor/assets/images/uswds/angle-arrow-up-primary-hover.svg
278
278
  - vendor/assets/images/uswds/angle-arrow-up-primary.png
279
279
  - vendor/assets/images/uswds/angle-arrow-up-primary.svg
280
+ - vendor/assets/images/uswds/arrow-both.png
281
+ - vendor/assets/images/uswds/arrow-both.svg
280
282
  - vendor/assets/images/uswds/arrow-down.png
281
283
  - vendor/assets/images/uswds/arrow-down.svg
282
284
  - vendor/assets/images/uswds/arrow-right.png
283
285
  - vendor/assets/images/uswds/arrow-right.svg
284
286
  - vendor/assets/images/uswds/circle-124.png
287
+ - vendor/assets/images/uswds/close-primary.png
288
+ - vendor/assets/images/uswds/close-primary.svg
285
289
  - vendor/assets/images/uswds/close.png
286
290
  - vendor/assets/images/uswds/close.svg
287
291
  - vendor/assets/images/uswds/correct8.png
@@ -319,6 +323,8 @@ files:
319
323
  - vendor/assets/images/uswds/plus.svg
320
324
  - vendor/assets/images/uswds/search-alt.png
321
325
  - vendor/assets/images/uswds/search-alt.svg
326
+ - vendor/assets/images/uswds/search-primary.png
327
+ - vendor/assets/images/uswds/search-primary.svg
322
328
  - vendor/assets/images/uswds/search.png
323
329
  - vendor/assets/images/uswds/search.svg
324
330
  - vendor/assets/images/uswds/social-icons/png/facebook25.png