uswds-jekyll 5.0.1 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -93
  3. data/_includes/components/banner.html +11 -9
  4. data/_sass/uswds/components/_header.scss +1 -1
  5. data/_sass/uswds/components/_nav-buttons.scss +4 -4
  6. data/_sass/uswds/src/components/_alerts.scss +8 -9
  7. data/_sass/uswds/src/components/_banner.scss +102 -31
  8. data/_sass/uswds/src/components/_breadcrumb.scss +168 -0
  9. data/_sass/uswds/src/components/_footer.scss +14 -4
  10. data/_sass/uswds/src/components/_header.scss +1 -1
  11. data/_sass/uswds/src/components/_identifier.scss +146 -0
  12. data/_sass/uswds/src/components/_media-block.scss +6 -1
  13. data/_sass/uswds/src/components/_megamenu.scss +4 -1
  14. data/_sass/uswds/src/components/_section.scss +6 -2
  15. data/_sass/uswds/src/components/_skipnav.scss +2 -2
  16. data/_sass/uswds/src/components/_step-indicator.scss +444 -0
  17. data/_sass/uswds/src/components/_tooltip.scss +114 -0
  18. data/_sass/uswds/src/core/_functions.scss +631 -0
  19. data/_sass/uswds/src/core/_notifications.scss +14 -0
  20. data/_sass/uswds/src/core/_properties.scss +120 -108
  21. data/_sass/uswds/src/core/_system-tokens.scss +140 -155
  22. data/_sass/uswds/src/core/_variables.scss +134 -32
  23. data/_sass/uswds/src/core/mixins/_add-link-styles.scss +20 -0
  24. data/_sass/uswds/src/core/mixins/_all.scss +4 -0
  25. data/_sass/uswds/src/core/mixins/_font-face.scss +1 -1
  26. data/_sass/uswds/src/core/mixins/_icon.scss +119 -0
  27. data/_sass/uswds/src/core/mixins/_media-block-img.scss +1 -1
  28. data/_sass/uswds/src/core/mixins/_set-link-from-bg.scss +30 -0
  29. data/_sass/uswds/src/core/mixins/_set-text-from-bg.scss +28 -0
  30. data/_sass/uswds/src/core/mixins/utilities/_align-self.scss +11 -0
  31. data/_sass/uswds/src/core/mixins/utilities/_border.scss +1 -1
  32. data/_sass/uswds/src/core/mixins/utilities/_flex.scss +6 -1
  33. data/_sass/uswds/src/core/mixins/utilities/_text.scss +6 -1
  34. data/_sass/uswds/src/core/placeholders/_list.scss +5 -0
  35. data/_sass/uswds/src/core/system-tokens/_blue-cool.scss +3 -3
  36. data/_sass/uswds/src/core/system-tokens/_blue-warm.scss +3 -3
  37. data/_sass/uswds/src/core/system-tokens/_blue.scss +3 -3
  38. data/_sass/uswds/src/core/system-tokens/_cyan.scss +3 -3
  39. data/_sass/uswds/src/core/system-tokens/_gold.scss +3 -3
  40. data/_sass/uswds/src/core/system-tokens/_gray-cool.scss +2 -2
  41. data/_sass/uswds/src/core/system-tokens/_gray-warm.scss +2 -2
  42. data/_sass/uswds/src/core/system-tokens/_gray.scss +2 -2
  43. data/_sass/uswds/src/core/system-tokens/_green-cool.scss +3 -3
  44. data/_sass/uswds/src/core/system-tokens/_green-warm.scss +3 -3
  45. data/_sass/uswds/src/core/system-tokens/_green.scss +3 -3
  46. data/_sass/uswds/src/core/system-tokens/_indigo-cool.scss +6 -6
  47. data/_sass/uswds/src/core/system-tokens/_indigo-warm.scss +3 -3
  48. data/_sass/uswds/src/core/system-tokens/_indigo.scss +3 -3
  49. data/_sass/uswds/src/core/system-tokens/_magenta.scss +3 -3
  50. data/_sass/uswds/src/core/system-tokens/_mint-cool.scss +3 -3
  51. data/_sass/uswds/src/core/system-tokens/_mint.scss +3 -3
  52. data/_sass/uswds/src/core/system-tokens/_orange-warm.scss +3 -3
  53. data/_sass/uswds/src/core/system-tokens/_orange.scss +3 -3
  54. data/_sass/uswds/src/core/system-tokens/_red-cool.scss +3 -3
  55. data/_sass/uswds/src/core/system-tokens/_red-warm.scss +3 -3
  56. data/_sass/uswds/src/core/system-tokens/_red.scss +3 -3
  57. data/_sass/uswds/src/core/system-tokens/_violet-warm.scss +3 -3
  58. data/_sass/uswds/src/core/system-tokens/_violet.scss +3 -3
  59. data/_sass/uswds/src/core/system-tokens/_yellow.scss +3 -3
  60. data/_sass/uswds/src/elements/_buttons.scss +31 -24
  61. data/_sass/uswds/src/elements/form-controls/_all.scss +2 -0
  62. data/_sass/uswds/src/elements/form-controls/_checkbox-and-radio.scss +4 -2
  63. data/_sass/uswds/src/elements/form-controls/_combo-box.scss +80 -9
  64. data/_sass/uswds/src/elements/form-controls/_date-picker.scss +325 -0
  65. data/_sass/uswds/src/elements/form-controls/_file-input.scss +195 -0
  66. data/_sass/uswds/src/elements/form-controls/_global.scss +10 -3
  67. data/_sass/uswds/src/elements/form-controls/_time-picker.scss +3 -0
  68. data/_sass/uswds/src/packages/_usa-breadcrumb.scss +4 -0
  69. data/_sass/uswds/src/packages/_usa-identifier.scss +1 -0
  70. data/_sass/uswds/src/packages/_usa-step-indicator.scss +2 -0
  71. data/_sass/uswds/src/packages/_usa-tooltip.scss +2 -0
  72. data/_sass/uswds/src/packages/_uswds-components.scss +4 -0
  73. data/_sass/uswds/src/settings/_settings-color.scss +6 -1
  74. data/_sass/uswds/src/settings/_settings-components.scss +45 -1
  75. data/_sass/uswds/src/settings/_settings-general.scss +4 -4
  76. data/_sass/uswds/src/settings/_settings-typography.scss +5 -5
  77. data/_sass/uswds/src/settings/_settings-utilities.scss +89 -75
  78. data/_sass/uswds/src/theme/_uswds-theme-color.scss +4 -1
  79. data/_sass/uswds/src/theme/_uswds-theme-components.scss +45 -1
  80. data/_sass/uswds/src/theme/_uswds-theme-general.scss +4 -4
  81. data/_sass/uswds/src/theme/_uswds-theme-typography.scss +5 -5
  82. data/_sass/uswds/src/theme/_uswds-theme-utilities.scss +90 -77
  83. data/_sass/uswds/src/theme/styles.scss +5 -1
  84. data/_sass/uswds/src/utilities/palettes/_default-palettes.scss +2 -1
  85. data/_sass/uswds/src/utilities/palettes/_font-palettes.scss +478 -478
  86. data/_sass/uswds/src/utilities/palettes/_spacing-palettes.scss +7 -7
  87. data/_sass/uswds/src/utilities/palettes/colors/_all-colors-palettes.scss +2 -2
  88. data/_sass/uswds/src/utilities/palettes/colors/_black-transparent-palettes.scss +2 -2
  89. data/_sass/uswds/src/utilities/palettes/colors/_blue-cool-palettes.scss +7 -7
  90. data/_sass/uswds/src/utilities/palettes/colors/_blue-palettes.scss +7 -7
  91. data/_sass/uswds/src/utilities/palettes/colors/_blue-warm-palettes.scss +7 -7
  92. data/_sass/uswds/src/utilities/palettes/colors/_cyan-palettes.scss +7 -7
  93. data/_sass/uswds/src/utilities/palettes/colors/_gold-palettes.scss +7 -7
  94. data/_sass/uswds/src/utilities/palettes/colors/_gray-cool-palettes.scss +5 -5
  95. data/_sass/uswds/src/utilities/palettes/colors/_gray-palettes.scss +5 -5
  96. data/_sass/uswds/src/utilities/palettes/colors/_gray-warm-palettes.scss +5 -5
  97. data/_sass/uswds/src/utilities/palettes/colors/_green-cool-palettes.scss +7 -7
  98. data/_sass/uswds/src/utilities/palettes/colors/_green-palettes.scss +7 -7
  99. data/_sass/uswds/src/utilities/palettes/colors/_green-warm-palettes.scss +7 -7
  100. data/_sass/uswds/src/utilities/palettes/colors/_indigo-cool-palettes.scss +7 -7
  101. data/_sass/uswds/src/utilities/palettes/colors/_indigo-palettes.scss +7 -7
  102. data/_sass/uswds/src/utilities/palettes/colors/_indigo-warm-palettes.scss +7 -7
  103. data/_sass/uswds/src/utilities/palettes/colors/_magenta-palettes.scss +7 -7
  104. data/_sass/uswds/src/utilities/palettes/colors/_mint-cool-palettes.scss +7 -7
  105. data/_sass/uswds/src/utilities/palettes/colors/_mint-palettes.scss +7 -7
  106. data/_sass/uswds/src/utilities/palettes/colors/_orange-palettes.scss +7 -7
  107. data/_sass/uswds/src/utilities/palettes/colors/_orange-warm-palettes.scss +7 -7
  108. data/_sass/uswds/src/utilities/palettes/colors/_red-cool-palettes.scss +7 -7
  109. data/_sass/uswds/src/utilities/palettes/colors/_red-palettes.scss +7 -7
  110. data/_sass/uswds/src/utilities/palettes/colors/_red-warm-palettes.scss +7 -7
  111. data/_sass/uswds/src/utilities/palettes/colors/_violet-palettes.scss +7 -7
  112. data/_sass/uswds/src/utilities/palettes/colors/_violet-warm-palettes.scss +7 -7
  113. data/_sass/uswds/src/utilities/palettes/colors/_white-transparent-palettes.scss +2 -2
  114. data/_sass/uswds/src/utilities/palettes/colors/_yellow-palettes.scss +7 -7
  115. data/_sass/uswds/src/utilities/rules/_all.scss +1 -0
  116. data/_sass/uswds/src/utilities/rules/_package.scss +1 -0
  117. data/_sass/uswds/src/utilities/rules/add-aspect.scss +13 -13
  118. data/_sass/uswds/src/utilities/rules/add-list-reset.scss +5 -5
  119. data/_sass/uswds/src/utilities/rules/align-items.scss +2 -2
  120. data/_sass/uswds/src/utilities/rules/align-self.scss +27 -0
  121. data/_sass/uswds/src/utilities/rules/background-color.scss +2 -2
  122. data/_sass/uswds/src/utilities/rules/border-color.scss +2 -2
  123. data/_sass/uswds/src/utilities/rules/border-radius.scss +7 -7
  124. data/_sass/uswds/src/utilities/rules/border-style.scss +2 -2
  125. data/_sass/uswds/src/utilities/rules/border-width.scss +5 -5
  126. data/_sass/uswds/src/utilities/rules/border.scss +5 -5
  127. data/_sass/uswds/src/utilities/rules/bottom.scss +2 -2
  128. data/_sass/uswds/src/utilities/rules/box-shadow.scss +2 -2
  129. data/_sass/uswds/src/utilities/rules/circle.scss +4 -4
  130. data/_sass/uswds/src/utilities/rules/clearfix.scss +5 -5
  131. data/_sass/uswds/src/utilities/rules/color.scss +2 -2
  132. data/_sass/uswds/src/utilities/rules/cursor.scss +2 -2
  133. data/_sass/uswds/src/utilities/rules/display.scss +2 -2
  134. data/_sass/uswds/src/utilities/rules/flex-direction.scss +2 -2
  135. data/_sass/uswds/src/utilities/rules/flex-wrap.scss +2 -2
  136. data/_sass/uswds/src/utilities/rules/flex.scss +2 -2
  137. data/_sass/uswds/src/utilities/rules/float.scss +2 -2
  138. data/_sass/uswds/src/utilities/rules/font-family.scss +2 -2
  139. data/_sass/uswds/src/utilities/rules/font-feature.scss +2 -2
  140. data/_sass/uswds/src/utilities/rules/font-style.scss +2 -2
  141. data/_sass/uswds/src/utilities/rules/font-weight.scss +2 -2
  142. data/_sass/uswds/src/utilities/rules/font.scss +2 -2
  143. data/_sass/uswds/src/utilities/rules/height.scss +2 -2
  144. data/_sass/uswds/src/utilities/rules/justify-content.scss +2 -2
  145. data/_sass/uswds/src/utilities/rules/left.scss +2 -2
  146. data/_sass/uswds/src/utilities/rules/letter-spacing.scss +2 -2
  147. data/_sass/uswds/src/utilities/rules/line-height.scss +2 -2
  148. data/_sass/uswds/src/utilities/rules/margin.scss +9 -9
  149. data/_sass/uswds/src/utilities/rules/max-height.scss +2 -2
  150. data/_sass/uswds/src/utilities/rules/max-width.scss +2 -2
  151. data/_sass/uswds/src/utilities/rules/measure.scss +2 -2
  152. data/_sass/uswds/src/utilities/rules/min-height.scss +2 -2
  153. data/_sass/uswds/src/utilities/rules/min-width.scss +2 -2
  154. data/_sass/uswds/src/utilities/rules/opacity.scss +3 -5
  155. data/_sass/uswds/src/utilities/rules/order.scss +2 -2
  156. data/_sass/uswds/src/utilities/rules/outline-color.scss +2 -2
  157. data/_sass/uswds/src/utilities/rules/outline.scss +2 -2
  158. data/_sass/uswds/src/utilities/rules/overflow.scss +3 -3
  159. data/_sass/uswds/src/utilities/rules/padding.scss +5 -5
  160. data/_sass/uswds/src/utilities/rules/pin.scss +19 -19
  161. data/_sass/uswds/src/utilities/rules/position.scss +2 -2
  162. data/_sass/uswds/src/utilities/rules/right.scss +2 -2
  163. data/_sass/uswds/src/utilities/rules/square.scss +4 -4
  164. data/_sass/uswds/src/utilities/rules/text-align.scss +2 -2
  165. data/_sass/uswds/src/utilities/rules/text-decoration-color.scss +2 -2
  166. data/_sass/uswds/src/utilities/rules/text-decoration.scss +2 -2
  167. data/_sass/uswds/src/utilities/rules/text-indent.scss +2 -2
  168. data/_sass/uswds/src/utilities/rules/text-transform.scss +2 -2
  169. data/_sass/uswds/src/utilities/rules/top.scss +2 -2
  170. data/_sass/uswds/src/utilities/rules/vertical-align.scss +2 -2
  171. data/_sass/uswds/src/utilities/rules/whitespace.scss +2 -2
  172. data/_sass/uswds/src/utilities/rules/width.scss +2 -2
  173. data/_sass/uswds/src/utilities/rules/z-index.scss +2 -2
  174. data/assets/uswds/img/angle-arrow-down-gray-90.svg +1 -0
  175. data/assets/uswds/img/angle-arrow-right-white.svg +1 -0
  176. data/assets/uswds/img/angle-arrow-right.svg +1 -0
  177. data/assets/uswds/img/angle-double-left-solid.svg +1 -0
  178. data/assets/uswds/img/angle-double-right-solid.svg +1 -0
  179. data/assets/uswds/img/angle-left-solid.svg +1 -0
  180. data/assets/uswds/img/angle-right-solid.svg +1 -0
  181. data/assets/uswds/img/arrow-down-gray-60.svg +1 -0
  182. data/assets/uswds/img/arrow-left-indigo-cool-50v.svg +1 -0
  183. data/assets/uswds/img/arrow-left-white.svg +1 -0
  184. data/assets/uswds/img/arrow-left.svg +1 -0
  185. data/assets/uswds/img/calendar-alt-solid.svg +1 -0
  186. data/assets/uswds/img/chevron-right-white.svg +1 -0
  187. data/assets/uswds/img/chevron-right.svg +1 -0
  188. data/assets/uswds/img/chevron-white.svg +1 -0
  189. data/assets/uswds/img/chevron.svg +1 -0
  190. data/assets/uswds/img/circle-gray-20.svg +1 -0
  191. data/assets/uswds/img/close-alt-blue-60v.svg +3 -0
  192. data/assets/uswds/img/close-alt.svg +3 -0
  193. data/assets/uswds/img/close-gray-60.svg +1 -0
  194. data/assets/uswds/img/file-excel.svg +1 -0
  195. data/assets/uswds/img/file-pdf.svg +1 -0
  196. data/assets/uswds/img/file-video.svg +1 -0
  197. data/assets/uswds/img/file-word.svg +1 -0
  198. data/assets/uswds/img/file.svg +1 -0
  199. data/assets/uswds/img/loader.gif +0 -0
  200. data/assets/uswds/img/loader.svg +1 -0
  201. data/assets/uswds/img/lock.svg +1 -0
  202. data/assets/uswds/js/uswds.js +3570 -216
  203. data/assets/uswds/js/uswds.min.js +1 -1
  204. data/assets/uswds/js/uswds.min.js.map +1 -1
  205. metadata +59 -2
@@ -1,5 +1,5 @@
1
1
  $system-color-mint-cool: (
2
- 'mint-cool': (
2
+ "mint-cool": (
3
3
  5: #e0f7f6,
4
4
  10: #c4eeeb,
5
5
  20: #9bd4cf,
@@ -10,7 +10,7 @@ $system-color-mint-cool: (
10
10
  70: #2a4b45,
11
11
  80: #203131,
12
12
  90: #111818,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #d5fbf3,
15
15
  10: #7efbe1,
16
16
  20: #29e1cb,
@@ -23,4 +23,4 @@ $system-color-mint-cool: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-mint: (
2
- 'mint': (
2
+ "mint": (
3
3
  5: #dbf6ed,
4
4
  10: #c7efe2,
5
5
  20: #92d9bb,
@@ -10,7 +10,7 @@ $system-color-mint: (
10
10
  70: #204e34,
11
11
  80: #193324,
12
12
  90: #0d1a12,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #c9fbeb,
15
15
  10: #83fcd4,
16
16
  20: #0ceda6,
@@ -23,4 +23,4 @@ $system-color-mint: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-orange-warm: (
2
- 'orange-warm': (
2
+ "orange-warm": (
3
3
  5: #faeee5,
4
4
  10: #fbe0d0,
5
5
  20: #f7bca2,
@@ -10,7 +10,7 @@ $system-color-orange-warm: (
10
10
  70: #633a32,
11
11
  80: #3d2925,
12
12
  90: #1c1615,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #fff3ea,
15
15
  10: #ffe2d1,
16
16
  20: #fbbaa7,
@@ -23,4 +23,4 @@ $system-color-orange-warm: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-orange: (
2
- 'orange': (
2
+ "orange": (
3
3
  5: #f6efe9,
4
4
  10: #f2e4d4,
5
5
  20: #f3bf90,
@@ -10,7 +10,7 @@ $system-color-orange: (
10
10
  70: #524236,
11
11
  80: #332d27,
12
12
  90: #1b1614,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #fef2e4,
15
15
  10: #fce2c5,
16
16
  20: #ffbc78,
@@ -23,4 +23,4 @@ $system-color-orange: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-red-cool: (
2
- 'red-cool': (
2
+ "red-cool": (
3
3
  5: #f8eff1,
4
4
  10: #f3e1e4,
5
5
  20: #ecbec6,
@@ -10,7 +10,7 @@ $system-color-red-cool: (
10
10
  70: #68363f,
11
11
  80: #40282c,
12
12
  90: #1e1517,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #fff2f5,
15
15
  10: #f8dfe2,
16
16
  20: #f8b9c5,
@@ -23,4 +23,4 @@ $system-color-red-cool: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-red-warm: (
2
- 'red-warm': (
2
+ "red-warm": (
3
3
  5: #f6efea,
4
4
  10: #f4e3db,
5
5
  20: #ecc0a7,
@@ -10,7 +10,7 @@ $system-color-red-warm: (
10
10
  70: #524236,
11
11
  80: #332d29,
12
12
  90: #1f1c18,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #fff5ee,
15
15
  10: #fce1d4,
16
16
  20: #f6bd9c,
@@ -23,4 +23,4 @@ $system-color-red-warm: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-red: (
2
- 'red': (
2
+ "red": (
3
3
  5: #f9eeee,
4
4
  10: #f8e1de,
5
5
  20: #f7bbb1,
@@ -10,7 +10,7 @@ $system-color-red: (
10
10
  70: #6f3331,
11
11
  80: #3e2927,
12
12
  90: #1b1616,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #fff3f2,
15
15
  10: #fde0db,
16
16
  20: #fdb8ae,
@@ -23,4 +23,4 @@ $system-color-red: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-violet-warm: (
2
- 'violet-warm': (
2
+ "violet-warm": (
3
3
  5: #f8f0f9,
4
4
  10: #f6dff8,
5
5
  20: #e2bee4,
@@ -10,7 +10,7 @@ $system-color-violet-warm: (
10
10
  70: #5c395a,
11
11
  80: #382936,
12
12
  90: #1b151b,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #fef2ff,
15
15
  10: #fbdcff,
16
16
  20: #f4b2ff,
@@ -23,4 +23,4 @@ $system-color-violet-warm: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-violet: (
2
- 'violet': (
2
+ "violet": (
3
3
  5: #f4f1f9,
4
4
  10: #ebe3f9,
5
5
  20: #d0c3e9,
@@ -10,7 +10,7 @@ $system-color-violet: (
10
10
  70: #4c3d69,
11
11
  80: #312b3f,
12
12
  90: #18161d,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #f7f2ff,
15
15
  10: #ede3ff,
16
16
  20: #d5bfff,
@@ -23,4 +23,4 @@ $system-color-violet: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -1,5 +1,5 @@
1
1
  $system-color-yellow: (
2
- 'yellow': (
2
+ "yellow": (
3
3
  5: #faf3d1,
4
4
  10: #f5e6af,
5
5
  20: #e6c74c,
@@ -10,7 +10,7 @@ $system-color-yellow: (
10
10
  70: #504332,
11
11
  80: #332d27,
12
12
  90: #1a1614,
13
- 'vivid': (
13
+ "vivid": (
14
14
  5: #fff5c2,
15
15
  10: #fee685,
16
16
  20: #face00,
@@ -23,4 +23,4 @@ $system-color-yellow: (
23
23
  90: false,
24
24
  ),
25
25
  ),
26
- );
26
+ );
@@ -7,12 +7,10 @@ $button-stroke: inset 0 0 0 units($theme-button-stroke-width);
7
7
  .usa-button {
8
8
  @include border-box-sizing;
9
9
  @include typeset($theme-button-font-family, null, 1);
10
- @include add-knockout-font-smoothing;
10
+ @include set-text-and-bg("primary");
11
11
  appearance: none;
12
- background-color: color("primary");
13
12
  border: 0;
14
13
  border-radius: radius($theme-button-border-radius);
15
- color: color("white");
16
14
  cursor: pointer;
17
15
  display: inline-block;
18
16
  font-weight: font-weight("bold");
@@ -32,16 +30,14 @@ $button-stroke: inset 0 0 0 units($theme-button-stroke-width);
32
30
 
33
31
  &:hover,
34
32
  &.usa-button--hover {
35
- background-color: color("primary-dark");
33
+ @include set-text-and-bg("primary-dark");
36
34
  border-bottom: 0;
37
- color: color("white");
38
35
  text-decoration: none;
39
36
  }
40
37
 
41
38
  &:active,
42
39
  &.usa-button--active {
43
- background-color: color("primary-darker");
44
- color: color("white");
40
+ @include set-text-and-bg("primary-darker");
45
41
  }
46
42
 
47
43
  &:not([disabled]):focus,
@@ -55,31 +51,42 @@ $button-stroke: inset 0 0 0 units($theme-button-stroke-width);
55
51
  }
56
52
 
57
53
  .usa-button--accent-cool {
58
- @include no-knockout-font-smoothing;
59
- background-color: color("accent-cool");
60
- color: color("ink");
54
+ @include set-text-and-bg("accent-cool");
61
55
 
62
56
  &:visited {
63
- color: color("ink");
57
+ @include set-text-and-bg("accent-cool");
64
58
  }
65
59
 
66
60
  &:hover,
67
61
  &.usa-button--hover {
68
- @include add-knockout-font-smoothing;
69
- background-color: color("accent-cool-dark");
70
- color: color("white");
62
+ @include set-text-and-bg("accent-cool-dark");
71
63
  }
72
64
 
73
65
  &:active,
74
66
  &.usa-button--active {
75
- @include add-knockout-font-smoothing;
76
- background-color: color("accent-cool-darker");
77
- color: color("white");
67
+ @include set-text-and-bg("accent-cool-darker");
68
+ }
69
+ }
70
+
71
+ .usa-button--accent-warm {
72
+ @include set-text-and-bg("accent-warm");
73
+
74
+ &:visited {
75
+ @include set-text-and-bg("accent-warm");
76
+ }
77
+
78
+ &:hover,
79
+ &.usa-button--hover {
80
+ @include set-text-and-bg("accent-warm-dark");
81
+ }
82
+
83
+ &:active,
84
+ &.usa-button--active {
85
+ @include set-text-and-bg("accent-warm-darker");
78
86
  }
79
87
  }
80
88
 
81
89
  .usa-button--outline {
82
- @include no-knockout-font-smoothing;
83
90
  background-color: color("transparent");
84
91
  box-shadow: $button-stroke color("primary");
85
92
  color: color("primary");
@@ -145,30 +152,30 @@ $button-stroke: inset 0 0 0 units($theme-button-stroke-width);
145
152
  }
146
153
 
147
154
  .usa-button--base {
148
- background-color: color("base");
155
+ @include set-text-and-bg("base");
149
156
 
150
157
  &:hover,
151
158
  &.usa-button--hover {
152
- background-color: color("base-dark");
159
+ @include set-text-and-bg("base-dark");
153
160
  }
154
161
 
155
162
  &:active,
156
163
  &.usa-button--active {
157
- background-color: color("base-darker");
164
+ @include set-text-and-bg("base-darker");
158
165
  }
159
166
  }
160
167
 
161
168
  .usa-button--secondary {
162
- background-color: color("secondary");
169
+ @include set-text-and-bg("secondary");
163
170
 
164
171
  &:hover,
165
172
  &.usa-button--hover {
166
- background-color: color("secondary-dark");
173
+ @include set-text-and-bg("secondary-dark");
167
174
  }
168
175
 
169
176
  &:active,
170
177
  &.usa-button--active {
171
- background-color: color("secondary-darker");
178
+ @include set-text-and-bg("secondary-darker");
172
179
  }
173
180
  }
174
181
 
@@ -7,3 +7,5 @@
7
7
  @import "text-input";
8
8
  @import "character-count";
9
9
  @import "combo-box";
10
+ @import "date-picker";
11
+ @import "time-picker";
@@ -31,7 +31,7 @@
31
31
  cursor: pointer;
32
32
  display: inherit;
33
33
  font-weight: font-weight("normal");
34
- margin-bottom: units(1.5);
34
+ margin-top: units(1.5);
35
35
  padding-left: units($input-select-margin-right + $theme-input-select-size);
36
36
  position: relative;
37
37
  text-indent: units(-$input-select-margin-right - $theme-input-select-size);
@@ -99,8 +99,10 @@
99
99
  @include focus-outline(null, null, null, 0.5);
100
100
  }
101
101
 
102
- .usa-checkbox__input:disabled + .usa-checkbox__label {
102
+ .usa-checkbox__input:disabled + .usa-checkbox__label,
103
+ .usa-radio__input:disabled + .usa-radio__label {
103
104
  color: color("disabled");
105
+ cursor: not-allowed;
104
106
  }
105
107
 
106
108
  .usa-checkbox__input:focus + .usa-checkbox__label::before {
@@ -1,17 +1,79 @@
1
1
  .usa-combo-box {
2
+ max-width: units($theme-input-max-width);
2
3
  position: relative;
3
4
  }
4
5
 
6
+ .usa-combo-box--pristine {
7
+ .usa-combo-box__input {
8
+ padding-right: calc(5em + 4px);
9
+
10
+ &::-ms-clear {
11
+ display: none;
12
+ }
13
+ }
14
+
15
+ .usa-combo-box__clear-input {
16
+ display: block;
17
+ }
18
+ }
19
+
5
20
  .usa-combo-box__input {
6
21
  @extend %block-input-general;
7
22
  @extend %block-input-styles;
8
- @include add-background-svg("arrow-down");
9
23
  appearance: none;
10
- background-color: color("white");
11
- background-position: right units(1.5) center;
12
- background-size: units(2);
24
+ margin-bottom: 0;
25
+ max-width: none;
26
+ padding-right: calc(2.5em + 3px);
27
+ }
28
+
29
+ button.usa-combo-box__toggle-list,
30
+ button.usa-combo-box__clear-input {
31
+ &:focus {
32
+ outline-offset: -4px;
33
+ }
34
+ }
35
+
36
+ .usa-combo-box__toggle-list__wrapper:focus,
37
+ .usa-combo-box__clear-input__wrapper:focus {
38
+ outline: 0;
39
+ }
40
+
41
+ .usa-combo-box__toggle-list,
42
+ .usa-combo-box__clear-input {
43
+ background-color: transparent;
44
+ background-position: center;
45
+ background-size: auto units(1.5);
46
+ border: 0;
47
+ cursor: pointer;
13
48
  margin-bottom: 0;
14
49
  padding-right: units(4);
50
+ position: absolute;
51
+ top: 1px;
52
+ height: 2.25em;
53
+ z-index: z-index(100);
54
+ }
55
+ .usa-combo-box__clear-input {
56
+ @include add-background-svg("close-gray-60");
57
+
58
+ display: none;
59
+ right: calc(2.5em + 3px);
60
+ }
61
+
62
+ .usa-combo-box__toggle-list {
63
+ @include add-background-svg("arrow-down-gray-60");
64
+ right: 1px;
65
+ }
66
+
67
+ .usa-combo-box__input-button-separator {
68
+ background-color: color("gray-cool-20");
69
+ position: absolute;
70
+ top: 1px;
71
+ margin-bottom: 8px;
72
+ margin-top: 8px;
73
+ width: 1px;
74
+ right: calc(2.5em + 2px);
75
+ box-sizing: border-box;
76
+ z-index: z-index(200);
15
77
  }
16
78
 
17
79
  .usa-combo-box__list {
@@ -27,7 +89,11 @@
27
89
  padding: 0;
28
90
  position: absolute;
29
91
  width: 100%;
30
- z-index: z-index(100);
92
+ z-index: z-index(300);
93
+
94
+ &:focus {
95
+ outline: 0;
96
+ }
31
97
  }
32
98
 
33
99
  .usa-combo-box__list-option {
@@ -36,12 +102,17 @@
36
102
  display: block;
37
103
  padding: units(1);
38
104
 
39
- &--focused:focus {
40
- outline-offset: -4px;
105
+ &--focused {
106
+ @include focus-outline($width: 2px, $offset: -2px, $color: "blue-warm-80v");
107
+ position: relative;
108
+ z-index: z-index(100);
109
+
110
+ &:focus {
111
+ outline-offset: -4px;
112
+ }
41
113
  }
42
114
 
43
- &:hover,
44
- &--focused {
115
+ &--selected {
45
116
  background-color: color("primary");
46
117
  border-color: color("primary");
47
118
  color: color("white");