va_common 0.1.0

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.
Files changed (285) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +4 -0
  4. data/CODE_OF_CONDUCT.md +13 -0
  5. data/Gemfile +4 -0
  6. data/README.md +66 -0
  7. data/Rakefile +1 -0
  8. data/app/assets/fonts/merriweather-bold-webfont.eot +0 -0
  9. data/app/assets/fonts/merriweather-bold-webfont.svg +294 -0
  10. data/app/assets/fonts/merriweather-bold-webfont.ttf +0 -0
  11. data/app/assets/fonts/merriweather-bold-webfont.woff +0 -0
  12. data/app/assets/fonts/merriweather-bold-webfont.woff2 +0 -0
  13. data/app/assets/fonts/merriweather-italic-webfont.eot +0 -0
  14. data/app/assets/fonts/merriweather-italic-webfont.svg +283 -0
  15. data/app/assets/fonts/merriweather-italic-webfont.ttf +0 -0
  16. data/app/assets/fonts/merriweather-italic-webfont.woff +0 -0
  17. data/app/assets/fonts/merriweather-italic-webfont.woff2 +0 -0
  18. data/app/assets/fonts/merriweather-light-webfont.eot +0 -0
  19. data/app/assets/fonts/merriweather-light-webfont.svg +299 -0
  20. data/app/assets/fonts/merriweather-light-webfont.ttf +0 -0
  21. data/app/assets/fonts/merriweather-light-webfont.woff +0 -0
  22. data/app/assets/fonts/merriweather-light-webfont.woff2 +0 -0
  23. data/app/assets/fonts/merriweather-regular-webfont.eot +0 -0
  24. data/app/assets/fonts/merriweather-regular-webfont.svg +294 -0
  25. data/app/assets/fonts/merriweather-regular-webfont.ttf +0 -0
  26. data/app/assets/fonts/merriweather-regular-webfont.woff +0 -0
  27. data/app/assets/fonts/merriweather-regular-webfont.woff2 +0 -0
  28. data/app/assets/fonts/sourcesanspro-bold-webfont.eot +0 -0
  29. data/app/assets/fonts/sourcesanspro-bold-webfont.svg +965 -0
  30. data/app/assets/fonts/sourcesanspro-bold-webfont.ttf +0 -0
  31. data/app/assets/fonts/sourcesanspro-bold-webfont.woff +0 -0
  32. data/app/assets/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
  33. data/app/assets/fonts/sourcesanspro-italic-webfont.eot +0 -0
  34. data/app/assets/fonts/sourcesanspro-italic-webfont.svg +853 -0
  35. data/app/assets/fonts/sourcesanspro-italic-webfont.ttf +0 -0
  36. data/app/assets/fonts/sourcesanspro-italic-webfont.woff +0 -0
  37. data/app/assets/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
  38. data/app/assets/fonts/sourcesanspro-light-webfont.eot +0 -0
  39. data/app/assets/fonts/sourcesanspro-light-webfont.svg +915 -0
  40. data/app/assets/fonts/sourcesanspro-light-webfont.ttf +0 -0
  41. data/app/assets/fonts/sourcesanspro-light-webfont.woff +0 -0
  42. data/app/assets/fonts/sourcesanspro-light-webfont.woff2 +0 -0
  43. data/app/assets/fonts/sourcesanspro-regular-webfont.eot +0 -0
  44. data/app/assets/fonts/sourcesanspro-regular-webfont.svg +989 -0
  45. data/app/assets/fonts/sourcesanspro-regular-webfont.ttf +0 -0
  46. data/app/assets/fonts/sourcesanspro-regular-webfont.woff +0 -0
  47. data/app/assets/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
  48. data/app/assets/images/design/background/thread.png +0 -0
  49. data/app/assets/images/design/logo/logo-alt-hover.png +0 -0
  50. data/app/assets/images/design/logo/logo-alt.png +0 -0
  51. data/app/assets/images/design/logo/logo-hover.png +0 -0
  52. data/app/assets/images/design/logo/logo-small.png +0 -0
  53. data/app/assets/images/design/logo/logo.png +0 -0
  54. data/app/assets/images/design/logo/og-image.jpg +0 -0
  55. data/app/assets/images/design/seal/seal-footer.png +0 -0
  56. data/app/assets/images/design/seal/seal-footer.svg +1 -0
  57. data/app/assets/images/design/seal/seal.png +0 -0
  58. data/app/assets/images/design/seal/stars.png +0 -0
  59. data/app/assets/images/icons/apple-touch-icon-114x114.png +0 -0
  60. data/app/assets/images/icons/apple-touch-icon-152x152.png +0 -0
  61. data/app/assets/images/icons/apple-touch-icon-72x72.png +0 -0
  62. data/app/assets/images/icons/apple-touch-icon.png +0 -0
  63. data/app/assets/images/icons/favicon.ico +0 -0
  64. data/app/assets/images/icons/va.png +0 -0
  65. data/app/assets/images/icons/watermark.png +0 -0
  66. data/app/assets/images/icons/wrench.png +0 -0
  67. data/app/assets/images/social-icons/png/facebook25.png +0 -0
  68. data/app/assets/images/social-icons/png/rss25.png +0 -0
  69. data/app/assets/images/social-icons/png/twitter16.png +0 -0
  70. data/app/assets/images/social-icons/png/youtube15.png +0 -0
  71. data/app/assets/images/social-icons/svg/facebook25.svg +11 -0
  72. data/app/assets/images/social-icons/svg/rss25.svg +1 -0
  73. data/app/assets/images/social-icons/svg/twitter16.svg +15 -0
  74. data/app/assets/images/social-icons/svg/youtube15.svg +1 -0
  75. data/app/assets/js/components.js +376 -0
  76. data/app/assets/js/foundation/foundation.abide.js +408 -0
  77. data/app/assets/js/foundation/foundation.accordion.js +88 -0
  78. data/app/assets/js/foundation/foundation.alert.js +43 -0
  79. data/app/assets/js/foundation/foundation.clearing.js +586 -0
  80. data/app/assets/js/foundation/foundation.dropdown.js +463 -0
  81. data/app/assets/js/foundation/foundation.equalizer.js +104 -0
  82. data/app/assets/js/foundation/foundation.interchange.js +359 -0
  83. data/app/assets/js/foundation/foundation.joyride.js +932 -0
  84. data/app/assets/js/foundation/foundation.js +725 -0
  85. data/app/assets/js/foundation/foundation.magellan.js +215 -0
  86. data/app/assets/js/foundation/foundation.offcanvas.js +152 -0
  87. data/app/assets/js/foundation/foundation.orbit.js +476 -0
  88. data/app/assets/js/foundation/foundation.reveal.js +498 -0
  89. data/app/assets/js/foundation/foundation.slider.js +281 -0
  90. data/app/assets/js/foundation/foundation.tab.js +249 -0
  91. data/app/assets/js/foundation/foundation.tooltip.js +339 -0
  92. data/app/assets/js/foundation/foundation.topbar.js +458 -0
  93. data/app/assets/js/foundation.min.js +6376 -0
  94. data/app/assets/js/scripts-no-touch.js +33 -0
  95. data/app/assets/js/scripts-touch.js +33 -0
  96. data/app/assets/js/va_common_main.js +1 -0
  97. data/app/assets/js/vendor/classie.js +80 -0
  98. data/app/assets/js/vendor/html5shiv.js +8 -0
  99. data/app/assets/js/vendor/jquery-1.11.0.min.js +4 -0
  100. data/app/assets/js/vendor/jquery.js +9789 -0
  101. data/app/assets/js/vendor/jquery.smooth-scroll.js +255 -0
  102. data/app/assets/js/vendor/jquery.stellar.js +651 -0
  103. data/app/assets/js/vendor/jquery.tipsy.js +258 -0
  104. data/app/assets/js/vendor/menu.js +40 -0
  105. data/app/assets/js/vendor/modernizr.custom.js +4 -0
  106. data/app/assets/js/vendor/nwmatcher-1.2.5-min.js +7 -0
  107. data/app/assets/js/vendor/respond.min.js +6 -0
  108. data/app/assets/js/vendor/scroll-settings.js +3 -0
  109. data/app/assets/js/vendor/selectivizr-1.0.3b.js +560 -0
  110. data/app/assets/js/vendor/stellar-settings.js +8 -0
  111. data/app/assets/js/vendor/svg-injector.js +450 -0
  112. data/app/assets/js/vendor/tota11y.min.js +28 -0
  113. data/app/assets/js/vendor/wow.min.js +2 -0
  114. data/app/assets/stylesheets/_va.scss +2377 -0
  115. data/app/assets/stylesheets/components/_accordions.scss +98 -0
  116. data/app/assets/stylesheets/core/_base.scss +20 -0
  117. data/app/assets/stylesheets/core/_defaults.scss +92 -0
  118. data/app/assets/stylesheets/core/_grid-settings.scss +10 -0
  119. data/app/assets/stylesheets/core/_grid.scss +116 -0
  120. data/app/assets/stylesheets/core/_utilities.scss +105 -0
  121. data/app/assets/stylesheets/core/_variables.scss +88 -0
  122. data/app/assets/stylesheets/elements/_buttons.scss +189 -0
  123. data/app/assets/stylesheets/elements/_figure.scss +9 -0
  124. data/app/assets/stylesheets/elements/_inputs.scss +328 -0
  125. data/app/assets/stylesheets/elements/_labels.scss +39 -0
  126. data/app/assets/stylesheets/elements/_list.scss +82 -0
  127. data/app/assets/stylesheets/elements/_table.scss +39 -0
  128. data/app/assets/stylesheets/elements/_typography.scss +220 -0
  129. data/app/assets/stylesheets/foundation/_functions.scss +146 -0
  130. data/app/assets/stylesheets/foundation/_settings.scss +1467 -0
  131. data/app/assets/stylesheets/foundation/_variables.scss +1286 -0
  132. data/app/assets/stylesheets/foundation/components/_accordion.scss +157 -0
  133. data/app/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
  134. data/app/assets/stylesheets/foundation/components/_block-grid.scss +132 -0
  135. data/app/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
  136. data/app/assets/stylesheets/foundation/components/_button-groups.scss +200 -0
  137. data/app/assets/stylesheets/foundation/components/_buttons.scss +259 -0
  138. data/app/assets/stylesheets/foundation/components/_clearing.scss +256 -0
  139. data/app/assets/stylesheets/foundation/components/_dropdown-buttons.scss +131 -0
  140. data/app/assets/stylesheets/foundation/components/_dropdown.scss +262 -0
  141. data/app/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
  142. data/app/assets/stylesheets/foundation/components/_forms.scss +570 -0
  143. data/app/assets/stylesheets/foundation/components/_global.scss +481 -0
  144. data/app/assets/stylesheets/foundation/components/_grid.scss +289 -0
  145. data/app/assets/stylesheets/foundation/components/_icon-bar.scss +358 -0
  146. data/app/assets/stylesheets/foundation/components/_inline-lists.scss +57 -0
  147. data/app/assets/stylesheets/foundation/components/_joyride.scss +222 -0
  148. data/app/assets/stylesheets/foundation/components/_keystrokes.scss +61 -0
  149. data/app/assets/stylesheets/foundation/components/_labels.scss +106 -0
  150. data/app/assets/stylesheets/foundation/components/_magellan.scss +34 -0
  151. data/app/assets/stylesheets/foundation/components/_offcanvas.scss +515 -0
  152. data/app/assets/stylesheets/foundation/components/_orbit.scss +368 -0
  153. data/app/assets/stylesheets/foundation/components/_pagination.scss +162 -0
  154. data/app/assets/stylesheets/foundation/components/_panels.scss +101 -0
  155. data/app/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
  156. data/app/assets/stylesheets/foundation/components/_progress-bars.scss +79 -0
  157. data/app/assets/stylesheets/foundation/components/_range-slider.scss +169 -0
  158. data/app/assets/stylesheets/foundation/components/_reveal.scss +202 -0
  159. data/app/assets/stylesheets/foundation/components/_side-nav.scss +116 -0
  160. data/app/assets/stylesheets/foundation/components/_split-buttons.scss +199 -0
  161. data/app/assets/stylesheets/foundation/components/_sub-nav.scss +123 -0
  162. data/app/assets/stylesheets/foundation/components/_switches.scss +238 -0
  163. data/app/assets/stylesheets/foundation/components/_tables.scss +135 -0
  164. data/app/assets/stylesheets/foundation/components/_tabs.scss +123 -0
  165. data/app/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
  166. data/app/assets/stylesheets/foundation/components/_toolbar.scss +70 -0
  167. data/app/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
  168. data/app/assets/stylesheets/foundation/components/_top-bar.scss +691 -0
  169. data/app/assets/stylesheets/foundation/components/_type.scss +525 -0
  170. data/app/assets/stylesheets/foundation/components/_visibility.scss +408 -0
  171. data/app/assets/stylesheets/functions/_new-breakpoint.scss +49 -0
  172. data/app/assets/stylesheets/functions/_private.scss +114 -0
  173. data/app/assets/stylesheets/lib/_normalize.scss +427 -0
  174. data/app/assets/stylesheets/lib/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
  175. data/app/assets/stylesheets/lib/bourbon/_bourbon.scss +87 -0
  176. data/app/assets/stylesheets/lib/bourbon/addons/_border-color.scss +26 -0
  177. data/app/assets/stylesheets/lib/bourbon/addons/_border-radius.scss +48 -0
  178. data/app/assets/stylesheets/lib/bourbon/addons/_border-style.scss +25 -0
  179. data/app/assets/stylesheets/lib/bourbon/addons/_border-width.scss +25 -0
  180. data/app/assets/stylesheets/lib/bourbon/addons/_buttons.scss +64 -0
  181. data/app/assets/stylesheets/lib/bourbon/addons/_clearfix.scss +25 -0
  182. data/app/assets/stylesheets/lib/bourbon/addons/_ellipsis.scss +30 -0
  183. data/app/assets/stylesheets/lib/bourbon/addons/_font-stacks.scss +31 -0
  184. data/app/assets/stylesheets/lib/bourbon/addons/_hide-text.scss +27 -0
  185. data/app/assets/stylesheets/lib/bourbon/addons/_margin.scss +26 -0
  186. data/app/assets/stylesheets/lib/bourbon/addons/_padding.scss +26 -0
  187. data/app/assets/stylesheets/lib/bourbon/addons/_position.scss +48 -0
  188. data/app/assets/stylesheets/lib/bourbon/addons/_prefixer.scss +66 -0
  189. data/app/assets/stylesheets/lib/bourbon/addons/_retina-image.scss +25 -0
  190. data/app/assets/stylesheets/lib/bourbon/addons/_size.scss +51 -0
  191. data/app/assets/stylesheets/lib/bourbon/addons/_text-inputs.scss +112 -0
  192. data/app/assets/stylesheets/lib/bourbon/addons/_timing-functions.scss +34 -0
  193. data/app/assets/stylesheets/lib/bourbon/addons/_triangle.scss +63 -0
  194. data/app/assets/stylesheets/lib/bourbon/addons/_word-wrap.scss +29 -0
  195. data/app/assets/stylesheets/lib/bourbon/css3/_animation.scss +43 -0
  196. data/app/assets/stylesheets/lib/bourbon/css3/_appearance.scss +3 -0
  197. data/app/assets/stylesheets/lib/bourbon/css3/_backface-visibility.scss +3 -0
  198. data/app/assets/stylesheets/lib/bourbon/css3/_background-image.scss +42 -0
  199. data/app/assets/stylesheets/lib/bourbon/css3/_background.scss +55 -0
  200. data/app/assets/stylesheets/lib/bourbon/css3/_border-image.scss +59 -0
  201. data/app/assets/stylesheets/lib/bourbon/css3/_calc.scss +4 -0
  202. data/app/assets/stylesheets/lib/bourbon/css3/_columns.scss +47 -0
  203. data/app/assets/stylesheets/lib/bourbon/css3/_filter.scss +4 -0
  204. data/app/assets/stylesheets/lib/bourbon/css3/_flex-box.scss +287 -0
  205. data/app/assets/stylesheets/lib/bourbon/css3/_font-face.scss +24 -0
  206. data/app/assets/stylesheets/lib/bourbon/css3/_font-feature-settings.scss +4 -0
  207. data/app/assets/stylesheets/lib/bourbon/css3/_hidpi-media-query.scss +10 -0
  208. data/app/assets/stylesheets/lib/bourbon/css3/_hyphens.scss +4 -0
  209. data/app/assets/stylesheets/lib/bourbon/css3/_image-rendering.scss +14 -0
  210. data/app/assets/stylesheets/lib/bourbon/css3/_keyframes.scss +36 -0
  211. data/app/assets/stylesheets/lib/bourbon/css3/_linear-gradient.scss +38 -0
  212. data/app/assets/stylesheets/lib/bourbon/css3/_perspective.scss +8 -0
  213. data/app/assets/stylesheets/lib/bourbon/css3/_placeholder.scss +8 -0
  214. data/app/assets/stylesheets/lib/bourbon/css3/_radial-gradient.scss +39 -0
  215. data/app/assets/stylesheets/lib/bourbon/css3/_selection.scss +42 -0
  216. data/app/assets/stylesheets/lib/bourbon/css3/_text-decoration.scss +19 -0
  217. data/app/assets/stylesheets/lib/bourbon/css3/_transform.scss +15 -0
  218. data/app/assets/stylesheets/lib/bourbon/css3/_transition.scss +71 -0
  219. data/app/assets/stylesheets/lib/bourbon/css3/_user-select.scss +3 -0
  220. data/app/assets/stylesheets/lib/bourbon/functions/_assign-inputs.scss +11 -0
  221. data/app/assets/stylesheets/lib/bourbon/functions/_contains-falsy.scss +20 -0
  222. data/app/assets/stylesheets/lib/bourbon/functions/_contains.scss +26 -0
  223. data/app/assets/stylesheets/lib/bourbon/functions/_is-length.scss +11 -0
  224. data/app/assets/stylesheets/lib/bourbon/functions/_is-light.scss +21 -0
  225. data/app/assets/stylesheets/lib/bourbon/functions/_is-number.scss +11 -0
  226. data/app/assets/stylesheets/lib/bourbon/functions/_is-size.scss +13 -0
  227. data/app/assets/stylesheets/lib/bourbon/functions/_modular-scale.scss +69 -0
  228. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-em.scss +13 -0
  229. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-rem.scss +15 -0
  230. data/app/assets/stylesheets/lib/bourbon/functions/_shade.scss +24 -0
  231. data/app/assets/stylesheets/lib/bourbon/functions/_strip-units.scss +17 -0
  232. data/app/assets/stylesheets/lib/bourbon/functions/_tint.scss +24 -0
  233. data/app/assets/stylesheets/lib/bourbon/functions/_transition-property-name.scss +22 -0
  234. data/app/assets/stylesheets/lib/bourbon/functions/_unpack.scss +27 -0
  235. data/app/assets/stylesheets/lib/bourbon/helpers/_convert-units.scss +21 -0
  236. data/app/assets/stylesheets/lib/bourbon/helpers/_directional-values.scss +96 -0
  237. data/app/assets/stylesheets/lib/bourbon/helpers/_font-source-declaration.scss +43 -0
  238. data/app/assets/stylesheets/lib/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  239. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-angle-parser.scss +25 -0
  240. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  241. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-positions-parser.scss +61 -0
  242. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  243. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-arg-parser.scss +69 -0
  244. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  245. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-positions-parser.scss +18 -0
  246. data/app/assets/stylesheets/lib/bourbon/helpers/_render-gradients.scss +26 -0
  247. data/app/assets/stylesheets/lib/bourbon/helpers/_shape-size-stripper.scss +10 -0
  248. data/app/assets/stylesheets/lib/bourbon/helpers/_str-to-num.scss +50 -0
  249. data/app/assets/stylesheets/lib/bourbon/settings/_asset-pipeline.scss +7 -0
  250. data/app/assets/stylesheets/lib/bourbon/settings/_prefixer.scss +9 -0
  251. data/app/assets/stylesheets/lib/bourbon/settings/_px-to-em.scss +1 -0
  252. data/app/assets/stylesheets/lib/neat/_neat-helpers.scss +8 -0
  253. data/app/assets/stylesheets/lib/neat/_neat.scss +23 -0
  254. data/app/assets/stylesheets/lib/neat/functions/_new-breakpoint.scss +49 -0
  255. data/app/assets/stylesheets/lib/neat/functions/_private.scss +114 -0
  256. data/app/assets/stylesheets/lib/neat/grid/_box-sizing.scss +15 -0
  257. data/app/assets/stylesheets/lib/neat/grid/_direction-context.scss +33 -0
  258. data/app/assets/stylesheets/lib/neat/grid/_display-context.scss +28 -0
  259. data/app/assets/stylesheets/lib/neat/grid/_fill-parent.scss +22 -0
  260. data/app/assets/stylesheets/lib/neat/grid/_media.scss +92 -0
  261. data/app/assets/stylesheets/lib/neat/grid/_omega.scss +87 -0
  262. data/app/assets/stylesheets/lib/neat/grid/_outer-container.scss +38 -0
  263. data/app/assets/stylesheets/lib/neat/grid/_pad.scss +25 -0
  264. data/app/assets/stylesheets/lib/neat/grid/_private.scss +35 -0
  265. data/app/assets/stylesheets/lib/neat/grid/_row.scss +52 -0
  266. data/app/assets/stylesheets/lib/neat/grid/_shift.scss +50 -0
  267. data/app/assets/stylesheets/lib/neat/grid/_span-columns.scss +94 -0
  268. data/app/assets/stylesheets/lib/neat/grid/_to-deprecate.scss +97 -0
  269. data/app/assets/stylesheets/lib/neat/grid/_visual-grid.scss +42 -0
  270. data/app/assets/stylesheets/lib/neat/settings/_disable-warnings.scss +13 -0
  271. data/app/assets/stylesheets/lib/neat/settings/_grid.scss +51 -0
  272. data/app/assets/stylesheets/lib/neat/settings/_visual-grid.scss +27 -0
  273. data/app/assets/stylesheets/va_common_main.css.scss +18 -0
  274. data/bin/console +14 -0
  275. data/bin/setup +7 -0
  276. data/lib/generators/files/_footer.html.erb +89 -0
  277. data/lib/generators/files/_header.html.erb +7 -0
  278. data/lib/generators/va_common_generator.rb +6 -0
  279. data/lib/generators/va_footer_generator.rb +7 -0
  280. data/lib/generators/va_header_generator.rb +7 -0
  281. data/lib/va_common/engine.rb +4 -0
  282. data/lib/va_common/version.rb +3 -0
  283. data/lib/va_common.rb +2 -0
  284. data/va_common.gemspec +22 -0
  285. metadata +354 -0
@@ -0,0 +1,9 @@
1
+ img {
2
+ max-width: 100%;
3
+ }
4
+
5
+ // TODO: Add documentation instructions for using this class on image links
6
+ .media_link {
7
+ display: inline-block;
8
+ line-height: 0;
9
+ }
@@ -0,0 +1,328 @@
1
+ // Block form elements
2
+ input,
3
+ input[type="text"],
4
+ input[type="email"],
5
+ input[type="password"],
6
+ input[type="url"],
7
+ input[type="tel"],
8
+ input[type="number"],
9
+ input[type="search"],
10
+ input[type="file"],
11
+ input[type="date"],
12
+ input[type="datetime-local"],
13
+ input[type="month"],
14
+ input[type="time"],
15
+ input[type="week"],
16
+ textarea,
17
+ select {
18
+ border: 1px solid $color-gray;
19
+ border-radius: 0;
20
+ box-sizing: border-box;
21
+ color: #000; // standardize on firefox
22
+ display: block;
23
+ font-size: $base-font-size;
24
+ margin: .2em 0;
25
+ max-width: $input-max-width;
26
+ width: 100%;
27
+ outline: none;
28
+ padding: 1rem .7em;
29
+ appearance: none;
30
+
31
+ &:focus,
32
+ &.usa-input-focus {
33
+ box-shadow: $focus-shadow;
34
+ }
35
+
36
+ &.usa-input-success {
37
+ border: 3px solid $color-green-light;
38
+ }
39
+ }
40
+
41
+ .usa-input-error {
42
+ border-left: 4px solid $color-secondary-dark;
43
+ margin-top: 3rem;
44
+ padding: {
45
+ bottom: .8rem;
46
+ left: 1.5rem;
47
+ top: .8rem;
48
+ }
49
+ position: relative;
50
+ right: 1.9rem;
51
+
52
+ input {
53
+ border: 3px solid $color-secondary-dark;
54
+ width: calc(100% + 1.5rem);
55
+ }
56
+
57
+ label {
58
+ margin-top: 0;
59
+ }
60
+ }
61
+
62
+ .usa-input-error-label {
63
+ display: block;
64
+ font-size: $base-font-size;
65
+ font-weight: $font-bold;
66
+ }
67
+
68
+ .usa-input-error-message {
69
+ color: $color-secondary-dark;
70
+ display: block;
71
+ font-size: $base-font-size;
72
+ font-weight: $font-bold;
73
+ padding: {
74
+ bottom: 3px;
75
+ top: 3px;
76
+ }
77
+ }
78
+
79
+ label {
80
+ display: block;
81
+ margin: {
82
+ top: 3rem;
83
+ }
84
+ max-width: $input-max-width;
85
+ }
86
+
87
+ textarea {
88
+ height: 16rem;
89
+ }
90
+
91
+ select {
92
+ -moz-appearance: none;
93
+ -webkit-appearance: none;
94
+ appearance: none;
95
+ background-color: $color-white;
96
+ background-image: url('../img/arrow-down.png');
97
+ background-image: url('../img/arrow-down.svg');
98
+ background-position: right 1.3rem center;
99
+ background-repeat: no-repeat;
100
+ background-size: 1.3rem;
101
+ }
102
+
103
+ legend {
104
+ font-size: $h2-font-size;
105
+ font-weight: $font-bold;
106
+ }
107
+
108
+ .usa-fieldset-inputs {
109
+ label {
110
+ margin-top: 0;
111
+ }
112
+ }
113
+
114
+ // Hint text
115
+
116
+ .usa-form-hint {
117
+ color: #757575;
118
+ font-family: $font-sans;
119
+ margin-bottom: 0;
120
+ }
121
+
122
+ /**
123
+ * Custom checkboxes
124
+ */
125
+
126
+ input[type="checkbox"],
127
+ input[type="radio"] {
128
+ @include sr-only();
129
+
130
+ .lt-ie9 & {
131
+ border: 0;
132
+ float: left;
133
+ margin: .4em .4em 0 0;
134
+ position: static;
135
+ width: auto;
136
+ }
137
+ }
138
+
139
+ input[type="checkbox"] + label,
140
+ input[type="radio"] + label {
141
+ cursor: pointer;
142
+ font-weight: 400;
143
+ margin-bottom: 0.5em;
144
+ }
145
+
146
+ input[type="checkbox"] + label::before,
147
+ input[type="radio"] + label::before {
148
+ background: white;
149
+ border-radius: $border-radius;
150
+ box-shadow: 0 0 0 1px #757575;
151
+ content: '\a0';
152
+ display: inline-block;
153
+ height: 1.8rem;
154
+ line-height: .8;
155
+ margin-right: .6em;
156
+ text-indent: .15em;
157
+ vertical-align: .2em;
158
+ width: 1.8rem;
159
+ }
160
+
161
+ input[type="radio"] + label::before {
162
+ box-shadow: 0 0 0 2px #fff, 0 0 0 3px #757575;
163
+ height: 1.6rem;
164
+ width: 1.6rem;
165
+ }
166
+
167
+ input[type="radio"] + label::before {
168
+ border-radius: 100%;
169
+ }
170
+
171
+ input[type="checkbox"]:checked + label::before,
172
+ input[type="radio"]:checked + label::before {
173
+ background-color: $color-primary;
174
+ box-shadow: 0 0 0 1px $color-primary;
175
+ }
176
+
177
+ input[type="radio"]:checked + label::before {
178
+ box-shadow: 0 0 0 2px $color-white, 0 0 0 4px $color-primary;
179
+ }
180
+
181
+ input[type="radio"]:focus + label::before {
182
+ 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;
183
+ }
184
+
185
+ input[type="checkbox"]:checked + label::before {
186
+ background-image: url('../img/correct8.png');
187
+ background-image: url('../img/correct8.svg');
188
+ background-position: 50%;
189
+ background-repeat: no-repeat;
190
+ }
191
+
192
+ input[type="checkbox"]:focus + label::before {
193
+ box-shadow: 0 0 0 1px $color-white, 0 0 0 3px $color-primary;
194
+ }
195
+
196
+ input[type="checkbox"]:disabled + label {
197
+ color: $color-gray;
198
+ }
199
+
200
+ input[type="checkbox"]:disabled + label::before,
201
+ input[type="radio"]:disabled + label::before {
202
+ background: $color-gray-lighter;
203
+ box-shadow: 0 0 0 1px $color-gray-light;
204
+ cursor: not-allowed;
205
+ }
206
+
207
+ // Range inputs
208
+
209
+ input[type=range] {
210
+ -webkit-appearance: none;
211
+ border: none;
212
+ padding-left: 0;
213
+ width: 100%;
214
+ }
215
+
216
+ input[type=range]:focus {
217
+ box-shadow: none;
218
+ outline: none;
219
+ }
220
+
221
+ input[type=range]::-webkit-slider-runnable-track {
222
+ background: #bdbdbd;
223
+ border: 1px solid #757575;
224
+ cursor: pointer;
225
+ height: 1.2rem;
226
+ width: 100%;
227
+ }
228
+
229
+ input[type=range]::-moz-range-track {
230
+ background: $color-primary;
231
+ border: 1px solid #757575;
232
+ cursor: pointer;
233
+ height: 1.2rem;
234
+ width: 100%;
235
+ }
236
+
237
+ input[type=range]::-ms-track {
238
+ background: transparent;
239
+ color: transparent;
240
+ cursor: pointer;
241
+ height: 1.2rem;
242
+ width: 100%;
243
+ }
244
+
245
+ input[type=range]::-webkit-slider-thumb {
246
+ -webkit-appearance: none;
247
+ border: 1px solid #757575;
248
+ height: 2.2rem;
249
+ border-radius: 1.5rem;
250
+ background: #eeeeee;
251
+ cursor: pointer;
252
+ margin-top: -.65rem;
253
+ width: 2.2rem;
254
+ }
255
+
256
+ input[type=range]::-moz-range-thumb {
257
+ background: #eeeeee;
258
+ border: 1px solid #757575;
259
+ border-radius: 1.5rem;
260
+ cursor: pointer;
261
+ height: 2.2rem;
262
+ width: 2.2rem;
263
+ }
264
+
265
+ input[type=range]::-ms-thumb {
266
+ background: #eeeeee;
267
+ border: 1px solid #757575;
268
+ border-radius: 1.5rem;
269
+ cursor: pointer;
270
+ height: 2.2rem;
271
+ width: 2.2rem;
272
+ }
273
+
274
+ input[type=range]::-ms-fill-lower {
275
+ background: #bdbdbd;
276
+ border: 1px solid #757575;
277
+ border-radius: 2rem;
278
+ }
279
+
280
+ input[type=range]::-ms-fill-upper {
281
+ background: #bdbdbd;
282
+ border: 1px solid #757575;
283
+ border-radius: 2rem;
284
+ }
285
+
286
+ input[type=range]:focus::-webkit-slider-thumb {
287
+ border: 2px solid $color-focus;
288
+ }
289
+
290
+ input[type=range]:focus::-moz-range-thumb {
291
+ border: 2px solid $color-focus;
292
+ }
293
+
294
+ input[type=range]:focus::-ms-thumb {
295
+ border: 2px solid $color-focus;
296
+ }
297
+
298
+ // Memorable dates
299
+
300
+ .usa-date-of-birth {
301
+ label {
302
+ margin-top: 0;
303
+ }
304
+
305
+ input[type=number]::-webkit-inner-spin-button,
306
+ input[type=number]::-webkit-outer-spin-button {
307
+ -webkit-appearance: none;
308
+ appearance: none;
309
+ margin: 0;
310
+ }
311
+
312
+ input[type=number] {
313
+ -moz-appearance: textfield;
314
+ }
315
+ }
316
+
317
+ .usa-form-group-day,
318
+ .usa-form-group-month,
319
+ .usa-form-group-year {
320
+ float: left;
321
+ clear: none;
322
+ margin-right: 1.5rem;
323
+ width: 5rem;
324
+ }
325
+
326
+ .usa-form-group-year {
327
+ width: 7rem;
328
+ }
@@ -0,0 +1,39 @@
1
+ .usa-label {
2
+ background-color: $color-primary;
3
+ border-radius: $border-radius;
4
+ color: $color-white;
5
+ font-size: $h5-font-size;
6
+ margin-right: .5rem;
7
+ padding: {
8
+ bottom: 0.1rem;
9
+ left: 0.7rem;
10
+ right: 0.7rem;
11
+ top: 0.3rem;
12
+ }
13
+ text-transform: uppercase;
14
+
15
+ &:only-of-type {
16
+ margin-right: 0;
17
+ }
18
+ }
19
+
20
+ .usa-label-big {
21
+ @extend .usa-label;
22
+ font-size: $base-font-size;
23
+ padding: {
24
+ left: .9rem;
25
+ right: .9rem;
26
+ }
27
+ }
28
+
29
+ a {
30
+ &.usa-label {
31
+ border-bottom: none;
32
+
33
+ &:hover {
34
+ background-color: $color-primary-darker;
35
+ border-bottom: none;
36
+ color: $color-white;
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,82 @@
1
+ ul, ol {
2
+ margin: {
3
+ top: 2em;
4
+ bottom: 2em;
5
+ }
6
+
7
+ li {
8
+ line-height: $base-line-height;
9
+ margin: {
10
+ top: .75em;
11
+ bottom: .75em;
12
+ }
13
+ }
14
+ }
15
+
16
+ h1, h2, h3, h4, h5, h6, p {
17
+ + ul,
18
+ + ol {
19
+ margin: {
20
+ top: 0;
21
+ }
22
+ }
23
+ }
24
+
25
+ ul, ol {
26
+ list-style: none;
27
+ padding-left: 0;
28
+ display: table;
29
+
30
+ li:after {
31
+ content: "";
32
+ display: block;
33
+ margin-bottom: 0.5em;
34
+ }
35
+ }
36
+
37
+ ul li {
38
+ display: table-row;
39
+
40
+ &:before {
41
+ content: "•";
42
+ display: table-cell;
43
+ padding-right: 0.4em;
44
+ }
45
+ }
46
+
47
+ ol li {
48
+ display: table-row;
49
+ counter-increment: table-ol;
50
+
51
+ &:before {
52
+ content: counter(table-ol) ".";
53
+ display: table-cell;
54
+ padding-right: 0.4em;
55
+ text-align: right;
56
+ }
57
+ }
58
+
59
+ li {
60
+ margin-bottom: 0.5em;
61
+ }
62
+
63
+ // Unstyled lists
64
+
65
+ .usa-unstyled-list {
66
+ margin: 0;
67
+ padding: 0;
68
+ list-style-type: none;
69
+
70
+ li {
71
+ display: list-item;
72
+ margin: 0;
73
+
74
+ &:before {
75
+ display: none;
76
+ }
77
+
78
+ &:after {
79
+ display: none;
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,39 @@
1
+ table {
2
+ border-spacing: 0;
3
+ margin: 2em 0;
4
+ min-width: 100%;
5
+
6
+ thead {
7
+ tr {
8
+ background-color: $color-gray-lightest;
9
+ }
10
+
11
+ th {
12
+ text-align: left;
13
+ }
14
+ }
15
+
16
+ th, td {
17
+ border: 1px solid $color-gray;
18
+ padding: 1.5rem;
19
+ }
20
+ }
21
+
22
+ .usa-table-borderless {
23
+ thead {
24
+ tr {
25
+ background-color: transparent;
26
+
27
+ th {
28
+ border-top: 0;
29
+ }
30
+ }
31
+ }
32
+
33
+ th, td {
34
+ border: {
35
+ left: 0;
36
+ right: 0;
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,220 @@
1
+ html {
2
+ font-family: $font-sans;
3
+ font-size: $em-base;
4
+ }
5
+
6
+ body {
7
+ font-size: $base-font-size;
8
+ }
9
+
10
+ p {
11
+ line-height: $base-line-height;
12
+ margin: {
13
+ top: 1em;
14
+ bottom: 1em;
15
+ }
16
+ }
17
+
18
+ a {
19
+ color: $color-primary;
20
+ text-decoration: none;
21
+
22
+ &:hover,
23
+ &:active {
24
+ color: $color-primary-darker;
25
+ text-decoration: underline;
26
+ }
27
+
28
+ &:visited {
29
+ color: $color-visited;
30
+ }
31
+
32
+ &:focus {
33
+ box-shadow: $focus-shadow;
34
+ outline: 0;
35
+ }
36
+ }
37
+
38
+ h1, h2, h3, h4, h5, h6 {
39
+ clear: both;
40
+ font-family: $font-serif;
41
+ line-height: $heading-line-height;
42
+ margin: {
43
+ top: 1.5em;
44
+ bottom: .5em;
45
+ }
46
+ }
47
+
48
+ // Create heading mixins
49
+
50
+ @mixin title {
51
+ font-size: $title-font-size;
52
+ font-weight: $font-bold;
53
+ }
54
+
55
+ @mixin h1 {
56
+ font-size: $h1-font-size;
57
+ font-weight: $font-bold;
58
+ }
59
+
60
+ @mixin h2 {
61
+ font-size: $h2-font-size;
62
+ font-weight: $font-bold;
63
+ }
64
+
65
+ @mixin h3 {
66
+ font-size: $h3-font-size;
67
+ font-weight: $font-bold;
68
+ }
69
+
70
+ @mixin h4 {
71
+ font-size: $h4-font-size;
72
+ font-weight: $font-bold;
73
+ }
74
+
75
+ @mixin h5 {
76
+ font-size: $h5-font-size;
77
+ font-weight: $font-bold;
78
+ }
79
+
80
+ @mixin h6 {
81
+ font-family: $font-sans;
82
+ font-size: $h6-font-size;
83
+ font-weight: $font-normal;
84
+ text-transform: uppercase;
85
+ }
86
+
87
+ h1 {
88
+ @include h1();
89
+ }
90
+
91
+ h2 {
92
+ @include h2();
93
+ }
94
+
95
+ h3 {
96
+ @include h3();
97
+ }
98
+
99
+ h4 {
100
+ @include h4();
101
+ }
102
+
103
+ h5 {
104
+ @include h5();
105
+ }
106
+
107
+ h6 {
108
+ @include h6();
109
+ }
110
+
111
+ // Remove user agent styles
112
+
113
+ cite,
114
+ var,
115
+ address,
116
+ dfn {
117
+ font-style: normal;
118
+ }
119
+
120
+ // Custom typography
121
+
122
+ .usa-content {
123
+ p {
124
+ max-width: $text-max-width;
125
+ }
126
+ }
127
+
128
+ .usa-content-list {
129
+ max-width: $text-max-width;
130
+ }
131
+
132
+ p,
133
+ .usa-content-list {
134
+ a {
135
+ text-decoration: underline;
136
+ }
137
+ }
138
+
139
+ .usa-sans {
140
+ p,
141
+ a,
142
+ li,
143
+ span {
144
+ font-family: $font-sans;
145
+ }
146
+ }
147
+
148
+ .usa-serif {
149
+ p,
150
+ a,
151
+ li,
152
+ span {
153
+ font-family: $font-serif;
154
+ }
155
+ }
156
+
157
+ .usa-sans a {
158
+ border-bottom: none;
159
+ font-weight: $font-bold;
160
+ }
161
+
162
+ .usa-display {
163
+ @include h3();
164
+ margin-bottom: 0;
165
+
166
+ @include media($small-screen) {
167
+ @include h1();
168
+ }
169
+
170
+ @include media($medium-screen) {
171
+ @include title();
172
+ }
173
+ }
174
+
175
+ .usa-font-lead {
176
+ font-size: $lead-font-size;
177
+ font-family: $font-serif;
178
+ line-height: $lead-line-height;
179
+ }
180
+
181
+ .usa-image-block {
182
+ position: relative;
183
+ }
184
+
185
+ .usa-image-text-block {
186
+ color: $color-white;
187
+ left: 0;
188
+ margin-left: 8%;
189
+ position: absolute;
190
+ top: 0;
191
+ }
192
+
193
+ .usa-image-text {
194
+ margin-top: 0;
195
+ }
196
+
197
+ .usa-drop_text {
198
+ margin-bottom: 0;
199
+ }
200
+
201
+ .usa-background-dark {
202
+ background-color: $color-gray-dark;
203
+
204
+ p, span {
205
+ color: $color-white;
206
+ }
207
+
208
+ a {
209
+ color: $color-gray-lighter;
210
+
211
+ &:hover {
212
+ color: $color-white;
213
+ }
214
+ }
215
+ }
216
+
217
+ .usa-text-small {
218
+ font-size: $h6-font-size;
219
+ margin-top: 0;
220
+ }