us_web_design_standards 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +7 -0
  2. data/CONTRIBUTING.md +19 -0
  3. data/LICENSE.md +31 -0
  4. data/README.md +60 -0
  5. data/assets/_scss/components/_accordions.scss +95 -0
  6. data/assets/_scss/components/_alerts.scss +78 -0
  7. data/assets/_scss/components/_disclaimer.scss +25 -0
  8. data/assets/_scss/components/_footer.scss +292 -0
  9. data/assets/_scss/components/_forms.scss +179 -0
  10. data/assets/_scss/components/_search.scss +101 -0
  11. data/assets/_scss/components/_sidenav.scss +78 -0
  12. data/assets/_scss/components/_skipnav.scss +24 -0
  13. data/assets/_scss/core/_base.scss +24 -0
  14. data/assets/_scss/core/_defaults.scss +92 -0
  15. data/assets/_scss/core/_grid-settings.scss +10 -0
  16. data/assets/_scss/core/_grid.scss +116 -0
  17. data/assets/_scss/core/_utilities.scss +105 -0
  18. data/assets/_scss/core/_variables.scss +88 -0
  19. data/assets/_scss/elements/_buttons.scss +187 -0
  20. data/assets/_scss/elements/_figure.scss +9 -0
  21. data/assets/_scss/elements/_inputs.scss +328 -0
  22. data/assets/_scss/elements/_labels.scss +39 -0
  23. data/assets/_scss/elements/_list.scss +82 -0
  24. data/assets/_scss/elements/_table.scss +39 -0
  25. data/assets/_scss/elements/_typography.scss +220 -0
  26. data/assets/_scss/lib/_normalize.scss +427 -0
  27. data/assets/_scss/lib/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
  28. data/assets/_scss/lib/bourbon/_bourbon.scss +87 -0
  29. data/assets/_scss/lib/bourbon/addons/_border-color.scss +26 -0
  30. data/assets/_scss/lib/bourbon/addons/_border-radius.scss +48 -0
  31. data/assets/_scss/lib/bourbon/addons/_border-style.scss +25 -0
  32. data/assets/_scss/lib/bourbon/addons/_border-width.scss +25 -0
  33. data/assets/_scss/lib/bourbon/addons/_buttons.scss +64 -0
  34. data/assets/_scss/lib/bourbon/addons/_clearfix.scss +25 -0
  35. data/assets/_scss/lib/bourbon/addons/_ellipsis.scss +30 -0
  36. data/assets/_scss/lib/bourbon/addons/_font-stacks.scss +31 -0
  37. data/assets/_scss/lib/bourbon/addons/_hide-text.scss +27 -0
  38. data/assets/_scss/lib/bourbon/addons/_margin.scss +26 -0
  39. data/assets/_scss/lib/bourbon/addons/_padding.scss +26 -0
  40. data/assets/_scss/lib/bourbon/addons/_position.scss +48 -0
  41. data/assets/_scss/lib/bourbon/addons/_prefixer.scss +66 -0
  42. data/assets/_scss/lib/bourbon/addons/_retina-image.scss +25 -0
  43. data/assets/_scss/lib/bourbon/addons/_size.scss +51 -0
  44. data/assets/_scss/lib/bourbon/addons/_text-inputs.scss +112 -0
  45. data/assets/_scss/lib/bourbon/addons/_timing-functions.scss +34 -0
  46. data/assets/_scss/lib/bourbon/addons/_triangle.scss +63 -0
  47. data/assets/_scss/lib/bourbon/addons/_word-wrap.scss +29 -0
  48. data/assets/_scss/lib/bourbon/css3/_animation.scss +43 -0
  49. data/assets/_scss/lib/bourbon/css3/_appearance.scss +3 -0
  50. data/assets/_scss/lib/bourbon/css3/_backface-visibility.scss +3 -0
  51. data/assets/_scss/lib/bourbon/css3/_background-image.scss +42 -0
  52. data/assets/_scss/lib/bourbon/css3/_background.scss +55 -0
  53. data/assets/_scss/lib/bourbon/css3/_border-image.scss +59 -0
  54. data/assets/_scss/lib/bourbon/css3/_calc.scss +4 -0
  55. data/assets/_scss/lib/bourbon/css3/_columns.scss +47 -0
  56. data/assets/_scss/lib/bourbon/css3/_filter.scss +4 -0
  57. data/assets/_scss/lib/bourbon/css3/_flex-box.scss +287 -0
  58. data/assets/_scss/lib/bourbon/css3/_font-face.scss +24 -0
  59. data/assets/_scss/lib/bourbon/css3/_font-feature-settings.scss +4 -0
  60. data/assets/_scss/lib/bourbon/css3/_hidpi-media-query.scss +10 -0
  61. data/assets/_scss/lib/bourbon/css3/_hyphens.scss +4 -0
  62. data/assets/_scss/lib/bourbon/css3/_image-rendering.scss +14 -0
  63. data/assets/_scss/lib/bourbon/css3/_keyframes.scss +36 -0
  64. data/assets/_scss/lib/bourbon/css3/_linear-gradient.scss +38 -0
  65. data/assets/_scss/lib/bourbon/css3/_perspective.scss +8 -0
  66. data/assets/_scss/lib/bourbon/css3/_placeholder.scss +8 -0
  67. data/assets/_scss/lib/bourbon/css3/_radial-gradient.scss +39 -0
  68. data/assets/_scss/lib/bourbon/css3/_selection.scss +42 -0
  69. data/assets/_scss/lib/bourbon/css3/_text-decoration.scss +19 -0
  70. data/assets/_scss/lib/bourbon/css3/_transform.scss +15 -0
  71. data/assets/_scss/lib/bourbon/css3/_transition.scss +71 -0
  72. data/assets/_scss/lib/bourbon/css3/_user-select.scss +3 -0
  73. data/assets/_scss/lib/bourbon/functions/_assign-inputs.scss +11 -0
  74. data/assets/_scss/lib/bourbon/functions/_contains-falsy.scss +20 -0
  75. data/assets/_scss/lib/bourbon/functions/_contains.scss +26 -0
  76. data/assets/_scss/lib/bourbon/functions/_is-length.scss +11 -0
  77. data/assets/_scss/lib/bourbon/functions/_is-light.scss +21 -0
  78. data/assets/_scss/lib/bourbon/functions/_is-number.scss +11 -0
  79. data/assets/_scss/lib/bourbon/functions/_is-size.scss +13 -0
  80. data/assets/_scss/lib/bourbon/functions/_modular-scale.scss +69 -0
  81. data/assets/_scss/lib/bourbon/functions/_px-to-em.scss +13 -0
  82. data/assets/_scss/lib/bourbon/functions/_px-to-rem.scss +15 -0
  83. data/assets/_scss/lib/bourbon/functions/_shade.scss +24 -0
  84. data/assets/_scss/lib/bourbon/functions/_strip-units.scss +17 -0
  85. data/assets/_scss/lib/bourbon/functions/_tint.scss +24 -0
  86. data/assets/_scss/lib/bourbon/functions/_transition-property-name.scss +22 -0
  87. data/assets/_scss/lib/bourbon/functions/_unpack.scss +27 -0
  88. data/assets/_scss/lib/bourbon/helpers/_convert-units.scss +21 -0
  89. data/assets/_scss/lib/bourbon/helpers/_directional-values.scss +96 -0
  90. data/assets/_scss/lib/bourbon/helpers/_font-source-declaration.scss +43 -0
  91. data/assets/_scss/lib/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  92. data/assets/_scss/lib/bourbon/helpers/_linear-angle-parser.scss +25 -0
  93. data/assets/_scss/lib/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  94. data/assets/_scss/lib/bourbon/helpers/_linear-positions-parser.scss +61 -0
  95. data/assets/_scss/lib/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  96. data/assets/_scss/lib/bourbon/helpers/_radial-arg-parser.scss +69 -0
  97. data/assets/_scss/lib/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  98. data/assets/_scss/lib/bourbon/helpers/_radial-positions-parser.scss +18 -0
  99. data/assets/_scss/lib/bourbon/helpers/_render-gradients.scss +26 -0
  100. data/assets/_scss/lib/bourbon/helpers/_shape-size-stripper.scss +10 -0
  101. data/assets/_scss/lib/bourbon/helpers/_str-to-num.scss +50 -0
  102. data/assets/_scss/lib/bourbon/settings/_asset-pipeline.scss +7 -0
  103. data/assets/_scss/lib/bourbon/settings/_prefixer.scss +9 -0
  104. data/assets/_scss/lib/bourbon/settings/_px-to-em.scss +1 -0
  105. data/assets/_scss/lib/neat/_neat-helpers.scss +8 -0
  106. data/assets/_scss/lib/neat/_neat.scss +23 -0
  107. data/assets/_scss/lib/neat/functions/_new-breakpoint.scss +49 -0
  108. data/assets/_scss/lib/neat/functions/_private.scss +114 -0
  109. data/assets/_scss/lib/neat/grid/_box-sizing.scss +15 -0
  110. data/assets/_scss/lib/neat/grid/_direction-context.scss +33 -0
  111. data/assets/_scss/lib/neat/grid/_display-context.scss +28 -0
  112. data/assets/_scss/lib/neat/grid/_fill-parent.scss +22 -0
  113. data/assets/_scss/lib/neat/grid/_media.scss +92 -0
  114. data/assets/_scss/lib/neat/grid/_omega.scss +87 -0
  115. data/assets/_scss/lib/neat/grid/_outer-container.scss +38 -0
  116. data/assets/_scss/lib/neat/grid/_pad.scss +25 -0
  117. data/assets/_scss/lib/neat/grid/_private.scss +35 -0
  118. data/assets/_scss/lib/neat/grid/_row.scss +52 -0
  119. data/assets/_scss/lib/neat/grid/_shift.scss +50 -0
  120. data/assets/_scss/lib/neat/grid/_span-columns.scss +94 -0
  121. data/assets/_scss/lib/neat/grid/_to-deprecate.scss +97 -0
  122. data/assets/_scss/lib/neat/grid/_visual-grid.scss +42 -0
  123. data/assets/_scss/lib/neat/settings/_disable-warnings.scss +13 -0
  124. data/assets/_scss/lib/neat/settings/_grid.scss +51 -0
  125. data/assets/_scss/lib/neat/settings/_visual-grid.scss +27 -0
  126. data/assets/_scss/us_web_design_standards.scss +39 -0
  127. data/assets/css/google-fonts.css +102 -0
  128. data/assets/css/normalize.min.css +1 -0
  129. data/assets/fonts/merriweather-bold-webfont.eot +0 -0
  130. data/assets/fonts/merriweather-bold-webfont.svg +294 -0
  131. data/assets/fonts/merriweather-bold-webfont.ttf +0 -0
  132. data/assets/fonts/merriweather-bold-webfont.woff +0 -0
  133. data/assets/fonts/merriweather-bold-webfont.woff2 +0 -0
  134. data/assets/fonts/merriweather-italic-webfont.eot +0 -0
  135. data/assets/fonts/merriweather-italic-webfont.svg +283 -0
  136. data/assets/fonts/merriweather-italic-webfont.ttf +0 -0
  137. data/assets/fonts/merriweather-italic-webfont.woff +0 -0
  138. data/assets/fonts/merriweather-italic-webfont.woff2 +0 -0
  139. data/assets/fonts/merriweather-light-webfont.eot +0 -0
  140. data/assets/fonts/merriweather-light-webfont.svg +299 -0
  141. data/assets/fonts/merriweather-light-webfont.ttf +0 -0
  142. data/assets/fonts/merriweather-light-webfont.woff +0 -0
  143. data/assets/fonts/merriweather-light-webfont.woff2 +0 -0
  144. data/assets/fonts/merriweather-regular-webfont.eot +0 -0
  145. data/assets/fonts/merriweather-regular-webfont.svg +294 -0
  146. data/assets/fonts/merriweather-regular-webfont.ttf +0 -0
  147. data/assets/fonts/merriweather-regular-webfont.woff +0 -0
  148. data/assets/fonts/merriweather-regular-webfont.woff2 +0 -0
  149. data/assets/fonts/sourcesanspro-bold-webfont.eot +0 -0
  150. data/assets/fonts/sourcesanspro-bold-webfont.svg +965 -0
  151. data/assets/fonts/sourcesanspro-bold-webfont.ttf +0 -0
  152. data/assets/fonts/sourcesanspro-bold-webfont.woff +0 -0
  153. data/assets/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
  154. data/assets/fonts/sourcesanspro-italic-webfont.eot +0 -0
  155. data/assets/fonts/sourcesanspro-italic-webfont.svg +853 -0
  156. data/assets/fonts/sourcesanspro-italic-webfont.ttf +0 -0
  157. data/assets/fonts/sourcesanspro-italic-webfont.woff +0 -0
  158. data/assets/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
  159. data/assets/fonts/sourcesanspro-light-webfont.eot +0 -0
  160. data/assets/fonts/sourcesanspro-light-webfont.svg +915 -0
  161. data/assets/fonts/sourcesanspro-light-webfont.ttf +0 -0
  162. data/assets/fonts/sourcesanspro-light-webfont.woff +0 -0
  163. data/assets/fonts/sourcesanspro-light-webfont.woff2 +0 -0
  164. data/assets/fonts/sourcesanspro-regular-webfont.eot +0 -0
  165. data/assets/fonts/sourcesanspro-regular-webfont.svg +989 -0
  166. data/assets/fonts/sourcesanspro-regular-webfont.ttf +0 -0
  167. data/assets/fonts/sourcesanspro-regular-webfont.woff +0 -0
  168. data/assets/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
  169. data/assets/img/alerts/error.png +0 -0
  170. data/assets/img/alerts/error.svg +17 -0
  171. data/assets/img/alerts/info.png +0 -0
  172. data/assets/img/alerts/info.svg +18 -0
  173. data/assets/img/alerts/success.png +0 -0
  174. data/assets/img/alerts/success.svg +12 -0
  175. data/assets/img/alerts/warning.png +0 -0
  176. data/assets/img/alerts/warning.svg +16 -0
  177. data/assets/img/arrow-down.png +0 -0
  178. data/assets/img/arrow-down.svg +1 -0
  179. data/assets/img/arrow-right.png +0 -0
  180. data/assets/img/arrow-right.svg +1 -0
  181. data/assets/img/correct8.png +0 -0
  182. data/assets/img/correct8.svg +1 -0
  183. data/assets/img/correct9.png +0 -0
  184. data/assets/img/correct9.svg +1 -0
  185. data/assets/img/favicons/favicon-114.png +0 -0
  186. data/assets/img/favicons/favicon-144.png +0 -0
  187. data/assets/img/favicons/favicon-16.png +0 -0
  188. data/assets/img/favicons/favicon-192.png +0 -0
  189. data/assets/img/favicons/favicon-57.png +0 -0
  190. data/assets/img/favicons/favicon-72.png +0 -0
  191. data/assets/img/favicons/favicon.ico +0 -0
  192. data/assets/img/favicons/favicon.png +0 -0
  193. data/assets/img/logo-img.png +0 -0
  194. data/assets/img/minus.png +0 -0
  195. data/assets/img/minus.svg +1 -0
  196. data/assets/img/plus.png +0 -0
  197. data/assets/img/plus.svg +1 -0
  198. data/assets/img/search.png +0 -0
  199. data/assets/img/search.svg +1 -0
  200. data/assets/img/social-icons/png/facebook25.png +0 -0
  201. data/assets/img/social-icons/png/rss25.png +0 -0
  202. data/assets/img/social-icons/png/twitter16.png +0 -0
  203. data/assets/img/social-icons/png/youtube15.png +0 -0
  204. data/assets/img/social-icons/svg/facebook25.svg +1 -0
  205. data/assets/img/social-icons/svg/rss25.svg +1 -0
  206. data/assets/img/social-icons/svg/twitter16.svg +1 -0
  207. data/assets/img/social-icons/svg/youtube15.svg +1 -0
  208. data/assets/img/us_flag_small.png +0 -0
  209. data/assets/js/components.js +376 -0
  210. data/assets/js/vendor/html5shiv.js +301 -0
  211. data/assets/js/vendor/jquery-1.11.3.min.js +5 -0
  212. data/assets/js/vendor/jquery-1.11.3.min.map +1 -0
  213. data/assets/js/vendor/rem.min.js +7 -0
  214. data/assets/js/vendor/respond.js +341 -0
  215. data/assets/js/vendor/selectivizr-min.js +22 -0
  216. data/lib/us_web_design_standards.rb +4 -0
  217. data/lib/us_web_design_standards/assets.rb +17 -0
  218. data/lib/us_web_design_standards/generator.rb +9 -0
  219. data/lib/us_web_design_standards/sass.rb +8 -0
  220. data/lib/us_web_design_standards/version.rb +3 -0
  221. metadata +334 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5b842b55143b3fa0155cc1de3763d1072e140533
4
+ data.tar.gz: 53472a7ec6a66c2238d29b9370b48dbd22ba2173
5
+ SHA512:
6
+ metadata.gz: 09c4d440a3175823dce0018fa43f9152c8d75120d5b7b5adbea36ed0f75678beaea7cd096fa9fde2dd30f46073749e858dd198f958dbb47e2222037ee070ce16
7
+ data.tar.gz: 370238c4842779dea718c04dcf99c2a6969736a7280ea02d9769a8c685f657312e575a5c6a34c1d167ba1f683abb7500cceae0d26fe39ca6c5efd3a5f0819f28
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,19 @@
1
+ ## Welcome!
2
+
3
+ We're so glad you're thinking about contributing to an 18F open source project! If you're unsure about anything, just ask -- or submit the issue or pull request anyway. The worst that can happen is you'll be politely asked to change something. We love all friendly contributions.
4
+
5
+ We want to ensure a welcoming environment for all of our projects. Our staff follow the [18F Code of Conduct](https://github.com/18F/code-of-conduct/blob/master/code-of-conduct.md) and all contributors should do the same.
6
+
7
+ We encourage you to read this project's CONTRIBUTING policy (you are here), its [LICENSE](LICENSE.md), and its [README](README.md).
8
+
9
+ If you have any questions or want to read more, check out the [18F Open Source Policy GitHub repository]( https://github.com/18f/open-source-policy), or just [shoot us an email](mailto:18f@gsa.gov).
10
+
11
+ ## Public domain
12
+
13
+ This project is in the public domain within the United States, and
14
+ copyright and related rights in the work worldwide are waived through
15
+ the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).
16
+
17
+ All contributions to this project will be released under the CC0
18
+ dedication. By submitting a pull request, you are agreeing to comply
19
+ with this waiver of copyright interest.
data/LICENSE.md ADDED
@@ -0,0 +1,31 @@
1
+ As a work of the United States Government, this project is in the
2
+ public domain within the United States.
3
+
4
+ Additionally, we waive copyright and related rights in the work
5
+ worldwide through the CC0 1.0 Universal public domain dedication.
6
+
7
+ ## CC0 1.0 Universal Summary
8
+
9
+ This is a human-readable summary of the [Legal Code (read the full text)](https://creativecommons.org/publicdomain/zero/1.0/legalcode).
10
+
11
+ ### No Copyright
12
+
13
+ The person who associated a work with this deed has dedicated the work to
14
+ the public domain by waiving all of his or her rights to the work worldwide
15
+ under copyright law, including all related and neighboring rights, to the
16
+ extent allowed by law.
17
+
18
+ You can copy, modify, distribute and perform the work, even for commercial
19
+ purposes, all without asking permission.
20
+
21
+ ### Other Information
22
+
23
+ In no way are the patent or trademark rights of any person affected by CC0,
24
+ nor are the rights that other persons may have in the work or in how the
25
+ work is used, such as publicity or privacy rights.
26
+
27
+ Unless expressly stated otherwise, the person who associated a work with
28
+ this deed makes no warranties about the work, and disclaims liability for
29
+ all uses of the work, to the fullest extent permitted by applicable law.
30
+ When using or citing the work, you should not imply endorsement by the
31
+ author or the affirmer.
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ ## [`us_web_design_standards`](https://rubygems.org/gems/us_web_design_standards): U.S. Web Design Standards style assets gem
2
+
3
+ Provides the style assets from the [U.S. Web Design
4
+ Standards](https://playbook.cio.gov/designstandards) as a [Ruby
5
+ Gem](https://rubygems.org/).
6
+
7
+ Provides plugins for use with [Jekyll](https://jekyllrb.com/)-based web sites.
8
+ Other frameworks may be supported in the future.
9
+
10
+ ### Usage
11
+
12
+ In your [`Gemfile`](http://bundler.io/gemfile.html), include the following:
13
+
14
+ ```ruby
15
+ group :jekyll_plugins do
16
+ gem 'us_web_design_standards'
17
+ end
18
+ ```
19
+
20
+ Add a `uswds.scss` file to your project in the asset directory of your
21
+ choosing that contains at least the following:
22
+
23
+ ```scss
24
+ ---
25
+ ---
26
+
27
+ @import "us_web_design_standards";
28
+ ```
29
+
30
+ Integrate the generated `uswds.css` file and its styles into your project's
31
+ layouts and templates, build the site per usual, and observe the results.
32
+
33
+ ### Development
34
+
35
+ First, choose a Jekyll site you'd like to use to view the impact of your
36
+ updates and clone its repository; then clone this repository into the same
37
+ parent directory. For example, to use the 18F Guides Template:
38
+
39
+ ```shell
40
+ $ git clone git@github.com:18F/guides-template.git
41
+ $ git clone git@github.com:18F/us_web_design_standards_gem.git
42
+ ```
43
+
44
+ In the `Gemfile` of the Jekyll site's repository, include the following:
45
+
46
+ ```ruby
47
+ group :jekyll_plugins do
48
+ gem 'us_web_design_standards_gem', :path => '../us_web_design_standards_gem'
49
+ end
50
+ ```
51
+
52
+ ### Public domain
53
+
54
+ This project is in the worldwide [public domain](LICENSE.md). As stated in [CONTRIBUTING](CONTRIBUTING.md):
55
+
56
+ > This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).
57
+ >
58
+ > All contributions to this project will be released under the CC0
59
+ >dedication. By submitting a pull request, you are agreeing to comply
60
+ >with this waiver of copyright interest.
@@ -0,0 +1,95 @@
1
+ // Variables
2
+
3
+ $accordion-border: 3px solid $color-gray-lightest;
4
+
5
+ // Accordion Styles
6
+
7
+ .usa-accordion,
8
+ .usa-accordion-bordered {
9
+
10
+ + .usa-accordion,
11
+ + .usa-accordion-bordered {
12
+ margin-top: 1rem;
13
+ }
14
+
15
+ > ul {
16
+ color: $color-base;
17
+ margin: 0;
18
+ padding: 0;
19
+ width: 100%;
20
+
21
+ > li {
22
+ background-color: $color-gray-lightest;
23
+ font-family: $font-sans;
24
+ list-style: none;
25
+ margin-bottom: 6px;
26
+ width: 100%;
27
+ }
28
+ }
29
+
30
+ button[aria-expanded=false] {
31
+ background-image: url('../img/plus.png');
32
+ background-image: url('../img/plus.svg');
33
+ background-repeat: no-repeat;
34
+ background-size: 1.3rem;
35
+ }
36
+
37
+ button {
38
+ background-color: $color-gray-lightest;
39
+ background-image: url('../img/minus.png');
40
+ background-image: url('../img/minus.svg');
41
+ background-position: right 3rem center;
42
+ background-repeat: no-repeat;
43
+ background-size: 13px;
44
+ color: $color-base;
45
+ cursor: pointer;
46
+ display: inline-block;
47
+ font-family: $font-sans;
48
+ margin: 0;
49
+ padding: {
50
+ bottom: 1.5rem;
51
+ left: 3rem;
52
+ right: 5.5rem;
53
+ top: 1.5rem;
54
+ }
55
+ width: 100%;
56
+
57
+ &:focus {
58
+ box-shadow: $focus-shadow;
59
+ }
60
+
61
+ &:hover {
62
+ background-color: $color-gray-lighter;
63
+ color: $color-base;
64
+ }
65
+
66
+ h1, h2, h3, h4, h5, h6 {
67
+ margin: 0;
68
+ }
69
+ }
70
+ }
71
+
72
+ .usa-accordion-bordered {
73
+ .usa-accordion-content {
74
+ border: {
75
+ bottom: $accordion-border;
76
+ left: $accordion-border;
77
+ right: $accordion-border;
78
+ }
79
+ }
80
+ }
81
+
82
+ .usa-accordion-content {
83
+ display: block;
84
+ background-color: white;
85
+ overflow: auto;
86
+ padding: 3rem;
87
+
88
+ > *:first-child {
89
+ margin-top: 0;
90
+ }
91
+
92
+ > *:last-child {
93
+ margin-bottom: 0;
94
+ }
95
+ }
@@ -0,0 +1,78 @@
1
+ .usa-alert {
2
+ @include media($medium-screen) {
3
+ background-size: 5.2rem;
4
+ }
5
+ background-color: #eeeeee;
6
+ background-position: 1rem 2rem;
7
+ background-repeat: no-repeat;
8
+ background-size: 4rem;
9
+ margin-top: 1.5em;
10
+ padding: 1em;
11
+
12
+ ul {
13
+ margin: {
14
+ bottom: 0;
15
+ top: 1em;
16
+ }
17
+ }
18
+ }
19
+
20
+ .usa-alert-icon {
21
+ display: table-cell;
22
+ padding-right: 1rem;
23
+ }
24
+
25
+ .usa-alert-body {
26
+ @include media($medium-screen) {
27
+ padding-left: 5rem;
28
+ }
29
+ display: table-cell;
30
+ padding-left: 3.5rem;
31
+ vertical-align: top;
32
+ }
33
+
34
+ .usa-alert-heading {
35
+ @include media($medium-screen) {
36
+ margin-top: .3rem;
37
+ }
38
+ margin: {
39
+ bottom: .3rem;
40
+ top: 0;
41
+ }
42
+ }
43
+
44
+ .usa-alert-text {
45
+ font-family: $font-sans;
46
+ margin: {
47
+ bottom: 0;
48
+ top: 0;
49
+ }
50
+ }
51
+
52
+ .usa-alert-success {
53
+ background-color: #E5FCDE;
54
+ background-image: url('../img/alerts/success.png');
55
+ background-image: url('../img/alerts/success.svg');
56
+ }
57
+
58
+ .usa-alert-warning {
59
+ background-color: #FDF7DC;
60
+ background-image: url('../img/alerts/warning.png');
61
+ background-image: url('../img/alerts/warning.svg');
62
+ }
63
+
64
+ .usa-alert-error {
65
+ background-color: #F9DEDE;
66
+ background-image: url('../img/alerts/error.png');
67
+ background-image: url('../img/alerts/error.svg');
68
+ }
69
+
70
+ .usa-alert-info {
71
+ background-color: #E8F5FA;
72
+ background-image: url('../img/alerts/info.png');
73
+ background-image: url('../img/alerts/info.svg');
74
+ }
75
+
76
+ .usa-alert-no_icon {
77
+ background-image: none;
78
+ }
@@ -0,0 +1,25 @@
1
+ .usa-disclaimer {
2
+ @include media($small-screen) {
3
+ font-size: $h5-font-size;
4
+ }
5
+ background-color: $color-gray-lightest;
6
+ font-size: $h6-font-size;
7
+ padding: {
8
+ bottom: .5rem;
9
+ top: .5rem;
10
+ }
11
+ }
12
+
13
+ // This hides the stage note (i.e. alpha, beta, etc) of the disclaimer for
14
+ // anything smaller than large screen sizes
15
+ .usa-disclaimer-stage {
16
+ @include media($large-screen) {
17
+ display: block;
18
+ }
19
+ display: none;
20
+ float: right;
21
+ }
22
+
23
+ .usa-flag_icon {
24
+ margin-right: .2rem;
25
+ }
@@ -0,0 +1,292 @@
1
+ .usa-footer {
2
+ .usa-unstyled-list {
3
+ display: block;
4
+ }
5
+
6
+ .usa-footer-primary-link {
7
+ @include media($medium-screen) {
8
+ border-top: none;
9
+ }
10
+ color: $color-base;
11
+ display: block;
12
+ font-weight: $font-bold;
13
+ margin-top: 0;
14
+ padding: {
15
+ bottom: 2rem;
16
+ top: 2rem;
17
+ }
18
+ }
19
+
20
+ a {
21
+ font-weight: normal;
22
+ }
23
+ }
24
+
25
+ .usa-footer-return-to-top {
26
+ padding: {
27
+ bottom: 2rem;
28
+ top: 2rem;
29
+ }
30
+ }
31
+
32
+ .usa-footer-primary-section {
33
+ background-color: $color-gray-lightest;
34
+
35
+ .usa-footer-primary-content {
36
+ padding: {
37
+ left: 2.5rem;
38
+ right: 2.5rem;
39
+ }
40
+
41
+ li {
42
+ @include media($medium-screen) {
43
+ margin-left: 0;
44
+ }
45
+ margin-left: 1rem;
46
+ }
47
+
48
+ @include media($medium-screen) {
49
+ padding: {
50
+ left: 0;
51
+ right: 0;
52
+ }
53
+ }
54
+ }
55
+
56
+ .usa-grid-full {
57
+ @include media($medium-screen) {
58
+ padding: {
59
+ left: 2.5rem;
60
+ right: 2.5rem;
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ .width-one-sixth {
67
+ @include media($medium) {
68
+ @include span-columns(2);
69
+ }
70
+ }
71
+
72
+ .usa-footer-medium {
73
+ .usa-footer-primary-section {
74
+ padding: 0;
75
+
76
+ @include media($medium-screen) {
77
+ padding: {
78
+ top: 1rem;
79
+ bottom: 1rem;
80
+ }
81
+ }
82
+ }
83
+
84
+ .usa-footer-nav ul {
85
+ @include media($medium-screen) {
86
+ align-items: center;
87
+ display: flex;
88
+ }
89
+ }
90
+ }
91
+
92
+ .usa-footer-slim {
93
+
94
+ .usa-footer-nav a {
95
+ display: block;
96
+ }
97
+
98
+ .usa-footer-primary-section {
99
+ padding-bottom: 2rem;
100
+
101
+ @include media($medium-screen) {
102
+ padding: {
103
+ bottom: 1rem;
104
+ top: 1rem;
105
+ }
106
+
107
+ .usa-grid-full {
108
+ align-items: center;
109
+ display: flex;
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ ul.usa-footer-primary-content,
116
+ li.usa-footer-primary-content,
117
+ li.usa-footer-primary-content {
118
+ border-top: 1px solid $color-base;
119
+
120
+ &:last-child {
121
+ border-bottom: 1px solid $color-base;
122
+ @include media($medium-screen) {
123
+ border-bottom: none;
124
+ }
125
+ }
126
+
127
+ @include media($medium-screen) {
128
+ border: none;
129
+ }
130
+ }
131
+
132
+ .usa-sign_up-block {
133
+ padding: {
134
+ bottom: 2rem;
135
+ left: 2.5rem;
136
+ right: 2.5rem;
137
+ }
138
+
139
+ label:first-of-type {
140
+ margin-top: 0;
141
+ }
142
+
143
+ button {
144
+ float: none;
145
+ margin: {
146
+ right: 0;
147
+ top: 1.5rem;
148
+ }
149
+ }
150
+
151
+ input {
152
+ width: 100%;
153
+ }
154
+
155
+ @include media($medium-screen) {
156
+ float: right;
157
+ padding: 0;
158
+ }
159
+ }
160
+
161
+ .usa-footer-secondary_section {
162
+ background-color: $color-gray-lighter;
163
+ padding: {
164
+ top: 3rem;
165
+ bottom: 3rem;
166
+ }
167
+
168
+ a {
169
+ color: $color-base;
170
+ }
171
+ }
172
+
173
+ .usa-footer-big-secondary-section {
174
+ @include media($medium-screen) {
175
+ padding-top: 5rem;
176
+ }
177
+ }
178
+
179
+ .usa-footer-contact-links {
180
+ @include media($medium-screen) {
181
+ text-align: right;
182
+ }
183
+ }
184
+
185
+ .usa-footer-big {
186
+ .usa-footer-primary-section {
187
+ @include media($medium-screen) {
188
+ padding: {
189
+ top: 3rem;
190
+ bottom: 4rem;
191
+ }
192
+ }
193
+ }
194
+
195
+ ul {
196
+ padding-bottom: 2.5rem;
197
+
198
+ &:last-child {
199
+ border-bottom: 1px solid $color-base;
200
+
201
+ @include media($medium-screen) {
202
+ border-bottom: none;
203
+ }
204
+ }
205
+
206
+ li {
207
+ line-height: 2em;
208
+ }
209
+
210
+ @include media($medium-screen) {
211
+ padding-bottom: 0;
212
+ }
213
+
214
+ .usa-footer-primary-link {
215
+ background-image: url('../img/arrow-down.png');
216
+ background-image: url('../img/arrow-down.svg');
217
+ background-position: 1.5rem center;
218
+ background-repeat: no-repeat;
219
+ background-size: 1.3rem;
220
+ padding-left: 3.5rem;
221
+
222
+ @include media($medium-screen) {
223
+ background: none;
224
+ padding-bottom: 0;
225
+ padding-left: 0;
226
+ }
227
+ }
228
+
229
+ &.hidden {
230
+ padding-bottom: 0;
231
+
232
+ .usa-footer-primary-link {
233
+ background-image: url('../img/arrow-right.png');
234
+ background-image: url('../img/arrow-right.svg');
235
+ cursor: pointer;
236
+ margin: 0;
237
+
238
+ @include media($medium-screen) {
239
+ background: none;
240
+ padding-left: 0;
241
+ }
242
+ }
243
+
244
+ li { display: none; }
245
+ }
246
+ }
247
+ }
248
+
249
+ .usa-footer-topic {
250
+ margin: 0;
251
+ padding: 2rem 0;
252
+ }
253
+
254
+ .usa-sign_up-header {
255
+ @include media($medium-screen) {
256
+ margin: 0;
257
+ padding: 2rem 0;
258
+ }
259
+ }
260
+
261
+ .usa-footer-logo-img {
262
+ max-width: 14rem;
263
+ }
264
+
265
+ .usa-footer-slim-logo-img {
266
+ float: left;
267
+ max-width: 10rem;
268
+ }
269
+
270
+ .usa-footer-logo-heading {
271
+ margin-top: 2rem;
272
+ }
273
+
274
+ .usa-footer-contact-heading {
275
+ margin-top: 0;
276
+
277
+ @include media($medium-screen) {
278
+ margin-top: 1rem;
279
+ }
280
+ }
281
+
282
+ .usa-footer-slim-logo-heading {
283
+ display: block;
284
+ padding-top: 1rem;
285
+
286
+ @include media($medium-screen) {
287
+ display: inline-block;
288
+ padding: {
289
+ left: 1em;
290
+ }
291
+ }
292
+ }