us_web_design_standards 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CONTRIBUTING.md +19 -0
- data/LICENSE.md +31 -0
- data/README.md +60 -0
- data/assets/_scss/components/_accordions.scss +95 -0
- data/assets/_scss/components/_alerts.scss +78 -0
- data/assets/_scss/components/_disclaimer.scss +25 -0
- data/assets/_scss/components/_footer.scss +292 -0
- data/assets/_scss/components/_forms.scss +179 -0
- data/assets/_scss/components/_search.scss +101 -0
- data/assets/_scss/components/_sidenav.scss +78 -0
- data/assets/_scss/components/_skipnav.scss +24 -0
- data/assets/_scss/core/_base.scss +24 -0
- data/assets/_scss/core/_defaults.scss +92 -0
- data/assets/_scss/core/_grid-settings.scss +10 -0
- data/assets/_scss/core/_grid.scss +116 -0
- data/assets/_scss/core/_utilities.scss +105 -0
- data/assets/_scss/core/_variables.scss +88 -0
- data/assets/_scss/elements/_buttons.scss +187 -0
- data/assets/_scss/elements/_figure.scss +9 -0
- data/assets/_scss/elements/_inputs.scss +328 -0
- data/assets/_scss/elements/_labels.scss +39 -0
- data/assets/_scss/elements/_list.scss +82 -0
- data/assets/_scss/elements/_table.scss +39 -0
- data/assets/_scss/elements/_typography.scss +220 -0
- data/assets/_scss/lib/_normalize.scss +427 -0
- data/assets/_scss/lib/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
- data/assets/_scss/lib/bourbon/_bourbon.scss +87 -0
- data/assets/_scss/lib/bourbon/addons/_border-color.scss +26 -0
- data/assets/_scss/lib/bourbon/addons/_border-radius.scss +48 -0
- data/assets/_scss/lib/bourbon/addons/_border-style.scss +25 -0
- data/assets/_scss/lib/bourbon/addons/_border-width.scss +25 -0
- data/assets/_scss/lib/bourbon/addons/_buttons.scss +64 -0
- data/assets/_scss/lib/bourbon/addons/_clearfix.scss +25 -0
- data/assets/_scss/lib/bourbon/addons/_ellipsis.scss +30 -0
- data/assets/_scss/lib/bourbon/addons/_font-stacks.scss +31 -0
- data/assets/_scss/lib/bourbon/addons/_hide-text.scss +27 -0
- data/assets/_scss/lib/bourbon/addons/_margin.scss +26 -0
- data/assets/_scss/lib/bourbon/addons/_padding.scss +26 -0
- data/assets/_scss/lib/bourbon/addons/_position.scss +48 -0
- data/assets/_scss/lib/bourbon/addons/_prefixer.scss +66 -0
- data/assets/_scss/lib/bourbon/addons/_retina-image.scss +25 -0
- data/assets/_scss/lib/bourbon/addons/_size.scss +51 -0
- data/assets/_scss/lib/bourbon/addons/_text-inputs.scss +112 -0
- data/assets/_scss/lib/bourbon/addons/_timing-functions.scss +34 -0
- data/assets/_scss/lib/bourbon/addons/_triangle.scss +63 -0
- data/assets/_scss/lib/bourbon/addons/_word-wrap.scss +29 -0
- data/assets/_scss/lib/bourbon/css3/_animation.scss +43 -0
- data/assets/_scss/lib/bourbon/css3/_appearance.scss +3 -0
- data/assets/_scss/lib/bourbon/css3/_backface-visibility.scss +3 -0
- data/assets/_scss/lib/bourbon/css3/_background-image.scss +42 -0
- data/assets/_scss/lib/bourbon/css3/_background.scss +55 -0
- data/assets/_scss/lib/bourbon/css3/_border-image.scss +59 -0
- data/assets/_scss/lib/bourbon/css3/_calc.scss +4 -0
- data/assets/_scss/lib/bourbon/css3/_columns.scss +47 -0
- data/assets/_scss/lib/bourbon/css3/_filter.scss +4 -0
- data/assets/_scss/lib/bourbon/css3/_flex-box.scss +287 -0
- data/assets/_scss/lib/bourbon/css3/_font-face.scss +24 -0
- data/assets/_scss/lib/bourbon/css3/_font-feature-settings.scss +4 -0
- data/assets/_scss/lib/bourbon/css3/_hidpi-media-query.scss +10 -0
- data/assets/_scss/lib/bourbon/css3/_hyphens.scss +4 -0
- data/assets/_scss/lib/bourbon/css3/_image-rendering.scss +14 -0
- data/assets/_scss/lib/bourbon/css3/_keyframes.scss +36 -0
- data/assets/_scss/lib/bourbon/css3/_linear-gradient.scss +38 -0
- data/assets/_scss/lib/bourbon/css3/_perspective.scss +8 -0
- data/assets/_scss/lib/bourbon/css3/_placeholder.scss +8 -0
- data/assets/_scss/lib/bourbon/css3/_radial-gradient.scss +39 -0
- data/assets/_scss/lib/bourbon/css3/_selection.scss +42 -0
- data/assets/_scss/lib/bourbon/css3/_text-decoration.scss +19 -0
- data/assets/_scss/lib/bourbon/css3/_transform.scss +15 -0
- data/assets/_scss/lib/bourbon/css3/_transition.scss +71 -0
- data/assets/_scss/lib/bourbon/css3/_user-select.scss +3 -0
- data/assets/_scss/lib/bourbon/functions/_assign-inputs.scss +11 -0
- data/assets/_scss/lib/bourbon/functions/_contains-falsy.scss +20 -0
- data/assets/_scss/lib/bourbon/functions/_contains.scss +26 -0
- data/assets/_scss/lib/bourbon/functions/_is-length.scss +11 -0
- data/assets/_scss/lib/bourbon/functions/_is-light.scss +21 -0
- data/assets/_scss/lib/bourbon/functions/_is-number.scss +11 -0
- data/assets/_scss/lib/bourbon/functions/_is-size.scss +13 -0
- data/assets/_scss/lib/bourbon/functions/_modular-scale.scss +69 -0
- data/assets/_scss/lib/bourbon/functions/_px-to-em.scss +13 -0
- data/assets/_scss/lib/bourbon/functions/_px-to-rem.scss +15 -0
- data/assets/_scss/lib/bourbon/functions/_shade.scss +24 -0
- data/assets/_scss/lib/bourbon/functions/_strip-units.scss +17 -0
- data/assets/_scss/lib/bourbon/functions/_tint.scss +24 -0
- data/assets/_scss/lib/bourbon/functions/_transition-property-name.scss +22 -0
- data/assets/_scss/lib/bourbon/functions/_unpack.scss +27 -0
- data/assets/_scss/lib/bourbon/helpers/_convert-units.scss +21 -0
- data/assets/_scss/lib/bourbon/helpers/_directional-values.scss +96 -0
- data/assets/_scss/lib/bourbon/helpers/_font-source-declaration.scss +43 -0
- data/assets/_scss/lib/bourbon/helpers/_gradient-positions-parser.scss +13 -0
- data/assets/_scss/lib/bourbon/helpers/_linear-angle-parser.scss +25 -0
- data/assets/_scss/lib/bourbon/helpers/_linear-gradient-parser.scss +41 -0
- data/assets/_scss/lib/bourbon/helpers/_linear-positions-parser.scss +61 -0
- data/assets/_scss/lib/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
- data/assets/_scss/lib/bourbon/helpers/_radial-arg-parser.scss +69 -0
- data/assets/_scss/lib/bourbon/helpers/_radial-gradient-parser.scss +50 -0
- data/assets/_scss/lib/bourbon/helpers/_radial-positions-parser.scss +18 -0
- data/assets/_scss/lib/bourbon/helpers/_render-gradients.scss +26 -0
- data/assets/_scss/lib/bourbon/helpers/_shape-size-stripper.scss +10 -0
- data/assets/_scss/lib/bourbon/helpers/_str-to-num.scss +50 -0
- data/assets/_scss/lib/bourbon/settings/_asset-pipeline.scss +7 -0
- data/assets/_scss/lib/bourbon/settings/_prefixer.scss +9 -0
- data/assets/_scss/lib/bourbon/settings/_px-to-em.scss +1 -0
- data/assets/_scss/lib/neat/_neat-helpers.scss +8 -0
- data/assets/_scss/lib/neat/_neat.scss +23 -0
- data/assets/_scss/lib/neat/functions/_new-breakpoint.scss +49 -0
- data/assets/_scss/lib/neat/functions/_private.scss +114 -0
- data/assets/_scss/lib/neat/grid/_box-sizing.scss +15 -0
- data/assets/_scss/lib/neat/grid/_direction-context.scss +33 -0
- data/assets/_scss/lib/neat/grid/_display-context.scss +28 -0
- data/assets/_scss/lib/neat/grid/_fill-parent.scss +22 -0
- data/assets/_scss/lib/neat/grid/_media.scss +92 -0
- data/assets/_scss/lib/neat/grid/_omega.scss +87 -0
- data/assets/_scss/lib/neat/grid/_outer-container.scss +38 -0
- data/assets/_scss/lib/neat/grid/_pad.scss +25 -0
- data/assets/_scss/lib/neat/grid/_private.scss +35 -0
- data/assets/_scss/lib/neat/grid/_row.scss +52 -0
- data/assets/_scss/lib/neat/grid/_shift.scss +50 -0
- data/assets/_scss/lib/neat/grid/_span-columns.scss +94 -0
- data/assets/_scss/lib/neat/grid/_to-deprecate.scss +97 -0
- data/assets/_scss/lib/neat/grid/_visual-grid.scss +42 -0
- data/assets/_scss/lib/neat/settings/_disable-warnings.scss +13 -0
- data/assets/_scss/lib/neat/settings/_grid.scss +51 -0
- data/assets/_scss/lib/neat/settings/_visual-grid.scss +27 -0
- data/assets/_scss/us_web_design_standards.scss +39 -0
- data/assets/css/google-fonts.css +102 -0
- data/assets/css/normalize.min.css +1 -0
- data/assets/fonts/merriweather-bold-webfont.eot +0 -0
- data/assets/fonts/merriweather-bold-webfont.svg +294 -0
- data/assets/fonts/merriweather-bold-webfont.ttf +0 -0
- data/assets/fonts/merriweather-bold-webfont.woff +0 -0
- data/assets/fonts/merriweather-bold-webfont.woff2 +0 -0
- data/assets/fonts/merriweather-italic-webfont.eot +0 -0
- data/assets/fonts/merriweather-italic-webfont.svg +283 -0
- data/assets/fonts/merriweather-italic-webfont.ttf +0 -0
- data/assets/fonts/merriweather-italic-webfont.woff +0 -0
- data/assets/fonts/merriweather-italic-webfont.woff2 +0 -0
- data/assets/fonts/merriweather-light-webfont.eot +0 -0
- data/assets/fonts/merriweather-light-webfont.svg +299 -0
- data/assets/fonts/merriweather-light-webfont.ttf +0 -0
- data/assets/fonts/merriweather-light-webfont.woff +0 -0
- data/assets/fonts/merriweather-light-webfont.woff2 +0 -0
- data/assets/fonts/merriweather-regular-webfont.eot +0 -0
- data/assets/fonts/merriweather-regular-webfont.svg +294 -0
- data/assets/fonts/merriweather-regular-webfont.ttf +0 -0
- data/assets/fonts/merriweather-regular-webfont.woff +0 -0
- data/assets/fonts/merriweather-regular-webfont.woff2 +0 -0
- data/assets/fonts/sourcesanspro-bold-webfont.eot +0 -0
- data/assets/fonts/sourcesanspro-bold-webfont.svg +965 -0
- data/assets/fonts/sourcesanspro-bold-webfont.ttf +0 -0
- data/assets/fonts/sourcesanspro-bold-webfont.woff +0 -0
- data/assets/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
- data/assets/fonts/sourcesanspro-italic-webfont.eot +0 -0
- data/assets/fonts/sourcesanspro-italic-webfont.svg +853 -0
- data/assets/fonts/sourcesanspro-italic-webfont.ttf +0 -0
- data/assets/fonts/sourcesanspro-italic-webfont.woff +0 -0
- data/assets/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
- data/assets/fonts/sourcesanspro-light-webfont.eot +0 -0
- data/assets/fonts/sourcesanspro-light-webfont.svg +915 -0
- data/assets/fonts/sourcesanspro-light-webfont.ttf +0 -0
- data/assets/fonts/sourcesanspro-light-webfont.woff +0 -0
- data/assets/fonts/sourcesanspro-light-webfont.woff2 +0 -0
- data/assets/fonts/sourcesanspro-regular-webfont.eot +0 -0
- data/assets/fonts/sourcesanspro-regular-webfont.svg +989 -0
- data/assets/fonts/sourcesanspro-regular-webfont.ttf +0 -0
- data/assets/fonts/sourcesanspro-regular-webfont.woff +0 -0
- data/assets/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
- data/assets/img/alerts/error.png +0 -0
- data/assets/img/alerts/error.svg +17 -0
- data/assets/img/alerts/info.png +0 -0
- data/assets/img/alerts/info.svg +18 -0
- data/assets/img/alerts/success.png +0 -0
- data/assets/img/alerts/success.svg +12 -0
- data/assets/img/alerts/warning.png +0 -0
- data/assets/img/alerts/warning.svg +16 -0
- data/assets/img/arrow-down.png +0 -0
- data/assets/img/arrow-down.svg +1 -0
- data/assets/img/arrow-right.png +0 -0
- data/assets/img/arrow-right.svg +1 -0
- data/assets/img/correct8.png +0 -0
- data/assets/img/correct8.svg +1 -0
- data/assets/img/correct9.png +0 -0
- data/assets/img/correct9.svg +1 -0
- data/assets/img/favicons/favicon-114.png +0 -0
- data/assets/img/favicons/favicon-144.png +0 -0
- data/assets/img/favicons/favicon-16.png +0 -0
- data/assets/img/favicons/favicon-192.png +0 -0
- data/assets/img/favicons/favicon-57.png +0 -0
- data/assets/img/favicons/favicon-72.png +0 -0
- data/assets/img/favicons/favicon.ico +0 -0
- data/assets/img/favicons/favicon.png +0 -0
- data/assets/img/logo-img.png +0 -0
- data/assets/img/minus.png +0 -0
- data/assets/img/minus.svg +1 -0
- data/assets/img/plus.png +0 -0
- data/assets/img/plus.svg +1 -0
- data/assets/img/search.png +0 -0
- data/assets/img/search.svg +1 -0
- data/assets/img/social-icons/png/facebook25.png +0 -0
- data/assets/img/social-icons/png/rss25.png +0 -0
- data/assets/img/social-icons/png/twitter16.png +0 -0
- data/assets/img/social-icons/png/youtube15.png +0 -0
- data/assets/img/social-icons/svg/facebook25.svg +1 -0
- data/assets/img/social-icons/svg/rss25.svg +1 -0
- data/assets/img/social-icons/svg/twitter16.svg +1 -0
- data/assets/img/social-icons/svg/youtube15.svg +1 -0
- data/assets/img/us_flag_small.png +0 -0
- data/assets/js/components.js +376 -0
- data/assets/js/vendor/html5shiv.js +301 -0
- data/assets/js/vendor/jquery-1.11.3.min.js +5 -0
- data/assets/js/vendor/jquery-1.11.3.min.map +1 -0
- data/assets/js/vendor/rem.min.js +7 -0
- data/assets/js/vendor/respond.js +341 -0
- data/assets/js/vendor/selectivizr-min.js +22 -0
- data/lib/us_web_design_standards.rb +4 -0
- data/lib/us_web_design_standards/assets.rb +17 -0
- data/lib/us_web_design_standards/generator.rb +9 -0
- data/lib/us_web_design_standards/sass.rb +8 -0
- data/lib/us_web_design_standards/version.rb +3 -0
- metadata +334 -0
@@ -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
|
+
}
|