us_web_design_standards 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -4
  3. data/app/assets/fonts/merriweather-bold-webfont.eot +0 -0
  4. data/app/assets/fonts/merriweather-bold-webfont.svg +294 -0
  5. data/app/assets/fonts/merriweather-bold-webfont.ttf +0 -0
  6. data/app/assets/fonts/merriweather-bold-webfont.woff +0 -0
  7. data/app/assets/fonts/merriweather-bold-webfont.woff2 +0 -0
  8. data/app/assets/fonts/merriweather-italic-webfont.eot +0 -0
  9. data/app/assets/fonts/merriweather-italic-webfont.svg +283 -0
  10. data/app/assets/fonts/merriweather-italic-webfont.ttf +0 -0
  11. data/app/assets/fonts/merriweather-italic-webfont.woff +0 -0
  12. data/app/assets/fonts/merriweather-italic-webfont.woff2 +0 -0
  13. data/app/assets/fonts/merriweather-light-webfont.eot +0 -0
  14. data/app/assets/fonts/merriweather-light-webfont.svg +299 -0
  15. data/app/assets/fonts/merriweather-light-webfont.ttf +0 -0
  16. data/app/assets/fonts/merriweather-light-webfont.woff +0 -0
  17. data/app/assets/fonts/merriweather-light-webfont.woff2 +0 -0
  18. data/app/assets/fonts/merriweather-regular-webfont.eot +0 -0
  19. data/app/assets/fonts/merriweather-regular-webfont.svg +294 -0
  20. data/app/assets/fonts/merriweather-regular-webfont.ttf +0 -0
  21. data/app/assets/fonts/merriweather-regular-webfont.woff +0 -0
  22. data/app/assets/fonts/merriweather-regular-webfont.woff2 +0 -0
  23. data/app/assets/fonts/sourcesanspro-bold-webfont.eot +0 -0
  24. data/app/assets/fonts/sourcesanspro-bold-webfont.svg +965 -0
  25. data/app/assets/fonts/sourcesanspro-bold-webfont.ttf +0 -0
  26. data/app/assets/fonts/sourcesanspro-bold-webfont.woff +0 -0
  27. data/app/assets/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
  28. data/app/assets/fonts/sourcesanspro-italic-webfont.eot +0 -0
  29. data/app/assets/fonts/sourcesanspro-italic-webfont.svg +853 -0
  30. data/app/assets/fonts/sourcesanspro-italic-webfont.ttf +0 -0
  31. data/app/assets/fonts/sourcesanspro-italic-webfont.woff +0 -0
  32. data/app/assets/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
  33. data/app/assets/fonts/sourcesanspro-light-webfont.eot +0 -0
  34. data/app/assets/fonts/sourcesanspro-light-webfont.svg +915 -0
  35. data/app/assets/fonts/sourcesanspro-light-webfont.ttf +0 -0
  36. data/app/assets/fonts/sourcesanspro-light-webfont.woff +0 -0
  37. data/app/assets/fonts/sourcesanspro-light-webfont.woff2 +0 -0
  38. data/app/assets/fonts/sourcesanspro-regular-webfont.eot +0 -0
  39. data/app/assets/fonts/sourcesanspro-regular-webfont.svg +989 -0
  40. data/app/assets/fonts/sourcesanspro-regular-webfont.ttf +0 -0
  41. data/app/assets/fonts/sourcesanspro-regular-webfont.woff +0 -0
  42. data/app/assets/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
  43. data/app/assets/images/alerts/error.png +0 -0
  44. data/app/assets/images/alerts/error.svg +17 -0
  45. data/app/assets/images/alerts/info.png +0 -0
  46. data/app/assets/images/alerts/info.svg +18 -0
  47. data/app/assets/images/alerts/success.png +0 -0
  48. data/app/assets/images/alerts/success.svg +12 -0
  49. data/app/assets/images/alerts/warning.png +0 -0
  50. data/app/assets/images/alerts/warning.svg +16 -0
  51. data/app/assets/images/arrow-down.png +0 -0
  52. data/app/assets/images/arrow-down.svg +1 -0
  53. data/app/assets/images/arrow-right.png +0 -0
  54. data/app/assets/images/arrow-right.svg +1 -0
  55. data/app/assets/images/correct8.png +0 -0
  56. data/app/assets/images/correct8.svg +1 -0
  57. data/app/assets/images/correct9.png +0 -0
  58. data/app/assets/images/correct9.svg +1 -0
  59. data/app/assets/images/favicons/favicon-114.png +0 -0
  60. data/app/assets/images/favicons/favicon-144.png +0 -0
  61. data/app/assets/images/favicons/favicon-16.png +0 -0
  62. data/app/assets/images/favicons/favicon-192.png +0 -0
  63. data/app/assets/images/favicons/favicon-57.png +0 -0
  64. data/app/assets/images/favicons/favicon-72.png +0 -0
  65. data/app/assets/images/favicons/favicon.ico +0 -0
  66. data/app/assets/images/favicons/favicon.png +0 -0
  67. data/app/assets/images/logo-img.png +0 -0
  68. data/app/assets/images/minus.png +0 -0
  69. data/app/assets/images/minus.svg +1 -0
  70. data/app/assets/images/plus.png +0 -0
  71. data/app/assets/images/plus.svg +1 -0
  72. data/app/assets/images/search.png +0 -0
  73. data/app/assets/images/search.svg +1 -0
  74. data/app/assets/images/social-icons/png/facebook25.png +0 -0
  75. data/app/assets/images/social-icons/png/rss25.png +0 -0
  76. data/app/assets/images/social-icons/png/twitter16.png +0 -0
  77. data/app/assets/images/social-icons/png/youtube15.png +0 -0
  78. data/app/assets/images/social-icons/svg/facebook25.svg +1 -0
  79. data/app/assets/images/social-icons/svg/rss25.svg +1 -0
  80. data/app/assets/images/social-icons/svg/twitter16.svg +1 -0
  81. data/app/assets/images/social-icons/svg/youtube15.svg +1 -0
  82. data/app/assets/images/us_flag_small.png +0 -0
  83. data/app/assets/javascript/components.js +376 -0
  84. data/app/assets/javascript/vendor/html5shiv.js +301 -0
  85. data/app/assets/javascript/vendor/jquery-1.11.3.min.js +5 -0
  86. data/app/assets/javascript/vendor/jquery-1.11.3.min.map +1 -0
  87. data/app/assets/javascript/vendor/rem.min.js +7 -0
  88. data/app/assets/javascript/vendor/respond.js +341 -0
  89. data/app/assets/javascript/vendor/selectivizr-min.js +22 -0
  90. data/app/assets/stylesheets/components/_accordions.scss +95 -0
  91. data/app/assets/stylesheets/components/_alerts.scss +78 -0
  92. data/app/assets/stylesheets/components/_disclaimer.scss +25 -0
  93. data/app/assets/stylesheets/components/_footer.scss +292 -0
  94. data/app/assets/stylesheets/components/_forms.scss +179 -0
  95. data/app/assets/stylesheets/components/_search.scss +101 -0
  96. data/app/assets/stylesheets/components/_sidenav.scss +78 -0
  97. data/app/assets/stylesheets/components/_skipnav.scss +24 -0
  98. data/app/assets/stylesheets/core/_base.scss +24 -0
  99. data/app/assets/stylesheets/core/_defaults.scss +92 -0
  100. data/app/assets/stylesheets/core/_grid-settings.scss +10 -0
  101. data/app/assets/stylesheets/core/_grid.scss +116 -0
  102. data/app/assets/stylesheets/core/_utilities.scss +105 -0
  103. data/app/assets/stylesheets/core/_variables.scss +88 -0
  104. data/app/assets/stylesheets/elements/_buttons.scss +187 -0
  105. data/app/assets/stylesheets/elements/_figure.scss +9 -0
  106. data/app/assets/stylesheets/elements/_inputs.scss +328 -0
  107. data/app/assets/stylesheets/elements/_labels.scss +39 -0
  108. data/app/assets/stylesheets/elements/_list.scss +82 -0
  109. data/app/assets/stylesheets/elements/_table.scss +39 -0
  110. data/app/assets/stylesheets/elements/_typography.scss +220 -0
  111. data/app/assets/stylesheets/lib/_normalize.scss +427 -0
  112. data/app/assets/stylesheets/lib/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
  113. data/app/assets/stylesheets/lib/bourbon/_bourbon.scss +87 -0
  114. data/app/assets/stylesheets/lib/bourbon/addons/_border-color.scss +26 -0
  115. data/app/assets/stylesheets/lib/bourbon/addons/_border-radius.scss +48 -0
  116. data/app/assets/stylesheets/lib/bourbon/addons/_border-style.scss +25 -0
  117. data/app/assets/stylesheets/lib/bourbon/addons/_border-width.scss +25 -0
  118. data/app/assets/stylesheets/lib/bourbon/addons/_buttons.scss +64 -0
  119. data/app/assets/stylesheets/lib/bourbon/addons/_clearfix.scss +25 -0
  120. data/app/assets/stylesheets/lib/bourbon/addons/_ellipsis.scss +30 -0
  121. data/app/assets/stylesheets/lib/bourbon/addons/_font-stacks.scss +31 -0
  122. data/app/assets/stylesheets/lib/bourbon/addons/_hide-text.scss +27 -0
  123. data/app/assets/stylesheets/lib/bourbon/addons/_margin.scss +26 -0
  124. data/app/assets/stylesheets/lib/bourbon/addons/_padding.scss +26 -0
  125. data/app/assets/stylesheets/lib/bourbon/addons/_position.scss +48 -0
  126. data/app/assets/stylesheets/lib/bourbon/addons/_prefixer.scss +66 -0
  127. data/app/assets/stylesheets/lib/bourbon/addons/_retina-image.scss +25 -0
  128. data/app/assets/stylesheets/lib/bourbon/addons/_size.scss +51 -0
  129. data/app/assets/stylesheets/lib/bourbon/addons/_text-inputs.scss +112 -0
  130. data/app/assets/stylesheets/lib/bourbon/addons/_timing-functions.scss +34 -0
  131. data/app/assets/stylesheets/lib/bourbon/addons/_triangle.scss +63 -0
  132. data/app/assets/stylesheets/lib/bourbon/addons/_word-wrap.scss +29 -0
  133. data/app/assets/stylesheets/lib/bourbon/css3/_animation.scss +43 -0
  134. data/app/assets/stylesheets/lib/bourbon/css3/_appearance.scss +3 -0
  135. data/app/assets/stylesheets/lib/bourbon/css3/_backface-visibility.scss +3 -0
  136. data/app/assets/stylesheets/lib/bourbon/css3/_background-image.scss +42 -0
  137. data/app/assets/stylesheets/lib/bourbon/css3/_background.scss +55 -0
  138. data/app/assets/stylesheets/lib/bourbon/css3/_border-image.scss +59 -0
  139. data/app/assets/stylesheets/lib/bourbon/css3/_calc.scss +4 -0
  140. data/app/assets/stylesheets/lib/bourbon/css3/_columns.scss +47 -0
  141. data/app/assets/stylesheets/lib/bourbon/css3/_filter.scss +4 -0
  142. data/app/assets/stylesheets/lib/bourbon/css3/_flex-box.scss +287 -0
  143. data/app/assets/stylesheets/lib/bourbon/css3/_font-face.scss +24 -0
  144. data/app/assets/stylesheets/lib/bourbon/css3/_font-feature-settings.scss +4 -0
  145. data/app/assets/stylesheets/lib/bourbon/css3/_hidpi-media-query.scss +10 -0
  146. data/app/assets/stylesheets/lib/bourbon/css3/_hyphens.scss +4 -0
  147. data/app/assets/stylesheets/lib/bourbon/css3/_image-rendering.scss +14 -0
  148. data/app/assets/stylesheets/lib/bourbon/css3/_keyframes.scss +36 -0
  149. data/app/assets/stylesheets/lib/bourbon/css3/_linear-gradient.scss +38 -0
  150. data/app/assets/stylesheets/lib/bourbon/css3/_perspective.scss +8 -0
  151. data/app/assets/stylesheets/lib/bourbon/css3/_placeholder.scss +8 -0
  152. data/app/assets/stylesheets/lib/bourbon/css3/_radial-gradient.scss +39 -0
  153. data/app/assets/stylesheets/lib/bourbon/css3/_selection.scss +42 -0
  154. data/app/assets/stylesheets/lib/bourbon/css3/_text-decoration.scss +19 -0
  155. data/app/assets/stylesheets/lib/bourbon/css3/_transform.scss +15 -0
  156. data/app/assets/stylesheets/lib/bourbon/css3/_transition.scss +71 -0
  157. data/app/assets/stylesheets/lib/bourbon/css3/_user-select.scss +3 -0
  158. data/app/assets/stylesheets/lib/bourbon/functions/_assign-inputs.scss +11 -0
  159. data/app/assets/stylesheets/lib/bourbon/functions/_contains-falsy.scss +20 -0
  160. data/app/assets/stylesheets/lib/bourbon/functions/_contains.scss +26 -0
  161. data/app/assets/stylesheets/lib/bourbon/functions/_is-length.scss +11 -0
  162. data/app/assets/stylesheets/lib/bourbon/functions/_is-light.scss +21 -0
  163. data/app/assets/stylesheets/lib/bourbon/functions/_is-number.scss +11 -0
  164. data/app/assets/stylesheets/lib/bourbon/functions/_is-size.scss +13 -0
  165. data/app/assets/stylesheets/lib/bourbon/functions/_modular-scale.scss +69 -0
  166. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-em.scss +13 -0
  167. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-rem.scss +15 -0
  168. data/app/assets/stylesheets/lib/bourbon/functions/_shade.scss +24 -0
  169. data/app/assets/stylesheets/lib/bourbon/functions/_strip-units.scss +17 -0
  170. data/app/assets/stylesheets/lib/bourbon/functions/_tint.scss +24 -0
  171. data/app/assets/stylesheets/lib/bourbon/functions/_transition-property-name.scss +22 -0
  172. data/app/assets/stylesheets/lib/bourbon/functions/_unpack.scss +27 -0
  173. data/app/assets/stylesheets/lib/bourbon/helpers/_convert-units.scss +21 -0
  174. data/app/assets/stylesheets/lib/bourbon/helpers/_directional-values.scss +96 -0
  175. data/app/assets/stylesheets/lib/bourbon/helpers/_font-source-declaration.scss +43 -0
  176. data/app/assets/stylesheets/lib/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  177. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-angle-parser.scss +25 -0
  178. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  179. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-positions-parser.scss +61 -0
  180. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  181. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-arg-parser.scss +69 -0
  182. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  183. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-positions-parser.scss +18 -0
  184. data/app/assets/stylesheets/lib/bourbon/helpers/_render-gradients.scss +26 -0
  185. data/app/assets/stylesheets/lib/bourbon/helpers/_shape-size-stripper.scss +10 -0
  186. data/app/assets/stylesheets/lib/bourbon/helpers/_str-to-num.scss +50 -0
  187. data/app/assets/stylesheets/lib/bourbon/settings/_asset-pipeline.scss +7 -0
  188. data/app/assets/stylesheets/lib/bourbon/settings/_prefixer.scss +9 -0
  189. data/app/assets/stylesheets/lib/bourbon/settings/_px-to-em.scss +1 -0
  190. data/app/assets/stylesheets/lib/neat/_neat-helpers.scss +8 -0
  191. data/app/assets/stylesheets/lib/neat/_neat.scss +23 -0
  192. data/app/assets/stylesheets/lib/neat/functions/_new-breakpoint.scss +49 -0
  193. data/app/assets/stylesheets/lib/neat/functions/_private.scss +114 -0
  194. data/app/assets/stylesheets/lib/neat/grid/_box-sizing.scss +15 -0
  195. data/app/assets/stylesheets/lib/neat/grid/_direction-context.scss +33 -0
  196. data/app/assets/stylesheets/lib/neat/grid/_display-context.scss +28 -0
  197. data/app/assets/stylesheets/lib/neat/grid/_fill-parent.scss +22 -0
  198. data/app/assets/stylesheets/lib/neat/grid/_media.scss +92 -0
  199. data/app/assets/stylesheets/lib/neat/grid/_omega.scss +87 -0
  200. data/app/assets/stylesheets/lib/neat/grid/_outer-container.scss +38 -0
  201. data/app/assets/stylesheets/lib/neat/grid/_pad.scss +25 -0
  202. data/app/assets/stylesheets/lib/neat/grid/_private.scss +35 -0
  203. data/app/assets/stylesheets/lib/neat/grid/_row.scss +52 -0
  204. data/app/assets/stylesheets/lib/neat/grid/_shift.scss +50 -0
  205. data/app/assets/stylesheets/lib/neat/grid/_span-columns.scss +94 -0
  206. data/app/assets/stylesheets/lib/neat/grid/_to-deprecate.scss +97 -0
  207. data/app/assets/stylesheets/lib/neat/grid/_visual-grid.scss +42 -0
  208. data/app/assets/stylesheets/lib/neat/settings/_disable-warnings.scss +13 -0
  209. data/app/assets/stylesheets/lib/neat/settings/_grid.scss +51 -0
  210. data/app/assets/stylesheets/lib/neat/settings/_visual-grid.scss +27 -0
  211. data/app/assets/stylesheets/us_web_design_standards.scss +39 -0
  212. data/app/assets/stylesheets/us_web_design_standards_fonts.css +102 -0
  213. data/assets/_scss/us_web_design_standards.scss +24 -24
  214. data/lib/us_web_design_standards.rb +10 -0
  215. data/lib/us_web_design_standards/assets.rb +14 -11
  216. data/lib/us_web_design_standards/generator.rb +8 -5
  217. data/lib/us_web_design_standards/version.rb +1 -1
  218. metadata +226 -3
  219. data/assets/css/normalize.min.css +0 -1
@@ -0,0 +1,10 @@
1
+ // Add custom grid settings here (i.e. gutters, columns, etc)
2
+
3
+ // Mobile First Breakpoints
4
+ $small-screen: 481px;
5
+ $medium-screen: 600px;
6
+ $large-screen: 1201px;
7
+
8
+ $large: new-breakpoint(min-width $large-screen 12);
9
+ $medium: new-breakpoint(min-width $medium-screen 6);
10
+ $small: new-breakpoint(min-width $small-screen 1);
@@ -0,0 +1,116 @@
1
+ .usa-grid,
2
+ .usa-grid-full {
3
+ @include outer-container();
4
+ max-width: $site-max-width;
5
+
6
+ @include media($medium) {
7
+ .usa-width-one-whole {
8
+ @include span-columns(6);
9
+ }
10
+ .usa-width-one-half {
11
+ @include span-columns(3);
12
+ }
13
+ .usa-width-one-third {
14
+ @include span-columns(2);
15
+ }
16
+ .usa-width-two-thirds {
17
+ @include span-columns(4);
18
+ }
19
+ .usa-width-one-fourth {
20
+ @include span-columns(3);
21
+
22
+ &:nth-child(2n) {
23
+ margin-right: 0;
24
+ }
25
+ }
26
+ .usa-width-three-fourths {
27
+ @include span-columns(6);
28
+ }
29
+ .usa-width-one-sixth {
30
+ @include span-columns(2);
31
+
32
+ &:nth-child(3n) {
33
+ margin-right: 0;
34
+ }
35
+ }
36
+ .usa-width-five-sixths {
37
+ @include span-columns(5);
38
+ }
39
+ .usa-width-one-twelfth {
40
+ @include span-columns(2);
41
+
42
+ &:nth-child(3n) {
43
+ margin-right: 0;
44
+ }
45
+ }
46
+ }
47
+
48
+ @include media($large) {
49
+ .usa-width-one-whole {
50
+ @include span-columns(12);
51
+ }
52
+ .usa-width-one-half {
53
+ @include span-columns(6);
54
+ }
55
+ .usa-width-one-third {
56
+ @include span-columns(4);
57
+ }
58
+ .usa-width-two-thirds {
59
+ @include span-columns(8);
60
+ }
61
+ .usa-width-one-fourth {
62
+ @include span-columns(3);
63
+
64
+ &:nth-child(2n) {
65
+ @include span-columns(3);
66
+ }
67
+
68
+ &:nth-child(4n) {
69
+ margin-right: 0;
70
+ }
71
+ }
72
+ .usa-width-three-fourths {
73
+ @include span-columns(9);
74
+ }
75
+ .usa-width-one-sixth {
76
+ @include span-columns(2);
77
+
78
+ &:nth-child(3n) {
79
+ @include span-columns(2);
80
+ }
81
+
82
+ &:nth-child(6n) {
83
+ margin-right: 0;
84
+ }
85
+ }
86
+ .usa-width-five-sixths {
87
+ @include span-columns(10);
88
+ }
89
+ .usa-width-one-twelfth {
90
+ @include span-columns(1);
91
+
92
+ &:nth-child(3n) {
93
+ @include span-columns(1);
94
+ }
95
+
96
+ &:nth-child(12n) {
97
+ margin-right: 0;
98
+ }
99
+ }
100
+ }
101
+
102
+ // Specificies end of a row.
103
+ // Required if grid-box contains multiple rows.
104
+ // Required if browser does not support :last-child
105
+ .usa-end-row {
106
+ @include omega();
107
+ }
108
+ }
109
+
110
+ .usa-grid {
111
+ padding: 0 $grid-margins;
112
+ }
113
+
114
+ .usa-grid-full {
115
+ padding: 0;
116
+ }
@@ -0,0 +1,105 @@
1
+ // Mobile-first media query helper
2
+ @mixin media($bp) {
3
+ @media screen and (min-width: #{$bp}) {
4
+ @content;
5
+ }
6
+ }
7
+
8
+ // Clearfix helper
9
+ @mixin clearfix() {
10
+ &:after {
11
+ content: ".";
12
+ display: block;
13
+ height: 0;
14
+ clear: both;
15
+ visibility: hidden;
16
+ }
17
+ }
18
+
19
+ // Screen reader only helper
20
+ .usa-sr-only {
21
+ position: absolute;
22
+ left:-999em;
23
+ }
24
+
25
+ @mixin sr-only() {
26
+ position: absolute;
27
+ left:-999em;
28
+ }
29
+
30
+ // Unstyled list helper
31
+
32
+ @mixin unstyled-list() {
33
+ display: block;
34
+ margin: 0;
35
+ padding: 0;
36
+ list-style-type: none;
37
+
38
+ li {
39
+ display: list-item;
40
+ margin: 0;
41
+
42
+ &:before {
43
+ display: none;
44
+ }
45
+
46
+ &:after {
47
+ display: none;
48
+ }
49
+ }
50
+ }
51
+
52
+ // Content size helpers
53
+ @mixin allow-layout-classes {
54
+
55
+ margin: {
56
+ left: auto;
57
+ right: auto;
58
+ }
59
+
60
+ &.width-one-half {
61
+ @include media($medium-screen) {
62
+ width: 50%;
63
+ }
64
+ }
65
+
66
+ &.width-one-third {
67
+ @include media($medium-screen) {
68
+ width: 33%;
69
+ }
70
+ }
71
+
72
+ &.width-two-thirds {
73
+ @include media($medium-screen) {
74
+ width: 67%;
75
+ }
76
+ }
77
+
78
+ &.width-one-fourth {
79
+ @include media($medium-screen) {
80
+ width: 25%;
81
+ }
82
+ }
83
+
84
+ &.width-three-fourths {
85
+ @include media($medium-screen) {
86
+ width: 75%;
87
+ }
88
+ }
89
+
90
+ &.align-left {
91
+ @include media($medium-screen) {
92
+ float: left;
93
+ margin-top: .5em;
94
+ margin-right: 2em;
95
+ }
96
+ }
97
+
98
+ &.align-right {
99
+ @include media($medium-screen) {
100
+ float: right;
101
+ margin-top: .5em;
102
+ margin-left: 2em;
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,88 @@
1
+ // Typography
2
+ $em-base: 10px;
3
+ $base-font-size: rem(17px);
4
+ $small-font-size: rem(14px);
5
+ $lead-font-size: rem(20px);
6
+ $title-font-size: rem(52px);
7
+ $h1-font-size: rem(40px);
8
+ $h2-font-size: rem(30px);
9
+ $h3-font-size: rem(20px);
10
+ $h4-font-size: rem(17px);
11
+ $h5-font-size: rem(15px);
12
+ $h6-font-size: rem(13px);
13
+ $base-line-height: 1.5;
14
+ $heading-line-height: 1.3;
15
+ $lead-line-height: 1.7;
16
+
17
+ $font-sans: 'Source Sans Pro', 'Helvetica', 'Arial', sans-serif;
18
+ $font-serif: 'Merriweather', 'Georgia', 'Times New Roman', serif;
19
+
20
+ $font-normal: 400;
21
+ $font-bold: 700;
22
+
23
+
24
+ // Color
25
+ $color-primary: #0071bc;
26
+ $color-primary-darker: #205493;
27
+ $color-primary-darkest: #112e51;
28
+
29
+ $color-primary-alt: #02bfe7;
30
+ $color-primary-alt-dark: #00a6d2;
31
+ $color-primary-alt-darkest: #046b99;
32
+ $color-primary-alt-light: #9bdaf1; // lighten($color-primary-alt, 60%)
33
+ $color-primary-alt-lightest: #e1f3f8; // lighten($color-primary-alt, 90%)
34
+
35
+ $color-secondary: #e31c3d;
36
+ $color-secondary-dark: #cd2026;
37
+ $color-secondary-darkest: #981b1e;
38
+ $color-secondary-light: #e59393; // lighten($color-secondary, 60%)
39
+ $color-secondary-lightest: #f9dede; // lighten($color-secondary, 90%)
40
+
41
+ $color-white: #ffffff;
42
+ $color-base: #212121;
43
+
44
+ $color-gray-dark: #323a45;
45
+ $color-gray: #5b616b; // lighten($color-gray-dark, 20%)
46
+ $color-gray-light: #aeb0b5; // lighten($color-gray-dark, 60%)
47
+ $color-gray-lighter: #d6d7d9; // lighten($color-gray-dark, 80%)
48
+ $color-gray-lightest: #f1f1f1; // lighten($color-gray-dark, 91%)
49
+
50
+ $color-gray-warm-dark: #494440;
51
+ $color-gray-warm-light: #e4e2e0; // lighten($color-gray-warm-dark, 90%)
52
+ $color-gray-cool-light: #dce4ef; // lighten($color-primary, 90%)
53
+
54
+ $color-gold: #fdb81e;
55
+ $color-gold-light: #f9c642; // lighten($color-gold, 20%)
56
+ $color-gold-lighter: #fad980; // lighten($color-gold, 60%)
57
+ $color-gold-lightest: #fff1d2; // lighten($color-gold, 83%)
58
+
59
+ $color-green: #2e8540;
60
+ $color-green-light: #4aa564; // lighten($color-green, 20%)
61
+ $color-green-lighter: #94bfa2; // lighten($color-green, 60%)
62
+ $color-green-lightest: #e7f4e4; // lighten($color-green, 60%)
63
+
64
+ $color-cool-blue: #205493;
65
+ $color-cool-blue-light: #4773aa; // lighten($color-cool-blue, 20%)
66
+ $color-cool-blue-lighter: #8ba6ca; // lighten($color-cool-blue, 60%)
67
+ $color-cool-blue-lightest: #dce4ef; // lighten($color-cool-blue, 90%)
68
+
69
+ $color-focus: #3e94cf;
70
+ $color-visited: #4c2c92;
71
+
72
+
73
+ // Mobile First Breakpoints
74
+ $small-screen: 481px;
75
+ $medium-screen: 600px;
76
+ $large-screen: 1201px;
77
+
78
+
79
+ // Magic Numbers
80
+ $text-max-width: 53rem;
81
+ $site-max-width: 1040px;
82
+ $site-margins: 3rem;
83
+ $article-max-width: 600px;
84
+ $input-max-width: 46rem;
85
+ $border-radius: rem(3px);
86
+ $box-shadow: 0 0 2px rgba(#000, .3);
87
+ $focus-shadow: 0 0 3px $color-focus, 0 0 7px $color-focus;
88
+ $grid-margins: 3rem;
@@ -0,0 +1,187 @@
1
+ // Buttons variables
2
+
3
+ $button-stroke: inset 0 0 0 2px;
4
+
5
+ // Buttons
6
+
7
+ .usa-button,
8
+ .usa-button-primary,
9
+ .usa-button:visited,
10
+ .usa-button-primary:visited,
11
+ button,
12
+ [type="button"],
13
+ [type="submit"],
14
+ [type="reset"],
15
+ [type="image"] {
16
+ appearance: none;
17
+ background-color: $color-primary;
18
+ border: 0;
19
+ border-radius: $border-radius;
20
+ color: $color-white;
21
+ cursor: pointer;
22
+ display: inline-block;
23
+ font-family: $font-sans;
24
+ font-size: $base-font-size;
25
+ font-weight: $font-bold;
26
+ line-height: 1;
27
+ margin: {
28
+ top: .5em;
29
+ bottom: .5em;
30
+ right: .5em;
31
+ }
32
+ outline: none;
33
+ padding: 1rem 2rem;
34
+ text-align: center;
35
+ text-decoration: none;
36
+ width: 100%;
37
+ -webkit-font-smoothing: antialiased;
38
+
39
+ &:hover,
40
+ &.usa-button-hover {
41
+ background-color: $color-primary-darker;
42
+ border-bottom: 0;
43
+ color: $color-white;
44
+ text-decoration: none;
45
+ }
46
+
47
+ &:focus,
48
+ &.usa-button-focus {
49
+ box-shadow: $focus-shadow;
50
+ }
51
+
52
+ &:active,
53
+ &.usa-button-active {
54
+ background-color: $color-primary-darkest;
55
+ }
56
+
57
+ @media (min-width: $small-screen) {
58
+ width: auto;
59
+ }
60
+
61
+ &.usa-button-primary-alt {
62
+ background-color: $color-primary-alt;
63
+ color: $color-base;
64
+
65
+ &:hover,
66
+ &.usa-button-hover {
67
+ background-color: $color-primary-alt-dark;
68
+ }
69
+
70
+ &:active,
71
+ &.usa-button-active {
72
+ background-color: $color-primary-alt-darkest;
73
+ color: $color-white;
74
+ }
75
+ }
76
+
77
+ &.usa-button-secondary {
78
+ background-color: $color-secondary;
79
+
80
+ &:hover,
81
+ &.usa-button-hover {
82
+ background-color: $color-secondary-dark;
83
+ }
84
+
85
+ &:active,
86
+ &.usa-button-active {
87
+ background-color: $color-secondary-darkest;
88
+ }
89
+ }
90
+
91
+ &.usa-button-gray {
92
+ background-color: $color-gray;
93
+
94
+ &:hover,
95
+ &.usa-button-hover {
96
+ background-color: $color-gray-dark;
97
+ }
98
+
99
+ &:active,
100
+ &.usa-button-active {
101
+ background-color: $color-base;
102
+ }
103
+ }
104
+
105
+ &.usa-button-outline {
106
+ background-color: $color-white;
107
+ box-shadow: $button-stroke $color-primary;
108
+ color: $color-primary;
109
+
110
+ &:hover,
111
+ &.usa-button-hover {
112
+ box-shadow: $button-stroke $color-primary-darker;
113
+ color: $color-primary-darker;
114
+ }
115
+
116
+ &:active,
117
+ &.usa-button-active {
118
+ box-shadow: $button-stroke $color-primary-darkest;
119
+ color: $color-primary-darkest;
120
+ }
121
+
122
+ &:focus,
123
+ &.usa-button-focus {
124
+ box-shadow: $button-stroke $color-primary-darkest, $focus-shadow;
125
+ }
126
+ }
127
+
128
+ &.usa-button-outline-inverse {
129
+ background: transparent;
130
+ box-shadow: $button-stroke $color-white;
131
+ color: $color-white;
132
+
133
+ &:hover,
134
+ &.usa-button-hover {
135
+ box-shadow: $button-stroke $color-gray-lighter;
136
+ color: $color-gray-lighter;
137
+ }
138
+
139
+ &:active,
140
+ &.usa-button-active {
141
+ box-shadow: $button-stroke $color-gray-light;
142
+ color: $color-gray-lighter;
143
+ }
144
+
145
+ &:focus,
146
+ &.usa-button-focus {
147
+ box-shadow: $button-stroke $color-gray-light, $focus-shadow;
148
+ }
149
+ }
150
+
151
+ &.usa-button-big {
152
+ font-size: 1.9rem;
153
+ padding: 1.5rem 3rem;
154
+ }
155
+ }
156
+
157
+ [type="submit"]:disabled,
158
+ .usa-button-disabled {
159
+ background-color: $color-gray-lighter;
160
+ color: $color-gray-dark;
161
+ cursor: default;
162
+
163
+ &:hover,
164
+ &.usa-button-hover,
165
+ &:active,
166
+ &.usa-button-active,
167
+ &:focus {
168
+ background-color: $color-gray-lighter;
169
+ border: 0;
170
+ box-shadow: none;
171
+ color: $color-gray-dark;
172
+ }
173
+ }
174
+
175
+ .usa-button-unstyled {
176
+ background: none;
177
+ border: 0;
178
+ border-radius: 0;
179
+ outline: 0;
180
+ padding: 0;
181
+ text-align: left;
182
+
183
+ &:focus,
184
+ &:hover {
185
+ box-shadow: initial;
186
+ }
187
+ }