federalist-basic-report-theme 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +13 -0
- data/_sass/uswds/_all.scss +1 -0
- data/_sass/uswds/components/_accordions.scss +150 -0
- data/_sass/uswds/components/_alerts.scss +128 -0
- data/_sass/uswds/components/_banner.scss +203 -0
- data/_sass/uswds/components/_footer.scss +522 -0
- data/_sass/uswds/components/_forms.scss +156 -0
- data/_sass/uswds/components/_graphic-list.scss +35 -0
- data/_sass/uswds/components/_header.scss +216 -0
- data/_sass/uswds/components/_hero.scss +37 -0
- data/_sass/uswds/components/_layout.scss +36 -0
- data/_sass/uswds/components/_media-block.scss +12 -0
- data/_sass/uswds/components/_navigation.scss +561 -0
- data/_sass/uswds/components/_search.scss +111 -0
- data/_sass/uswds/components/_section.scss +37 -0
- data/_sass/uswds/components/_sidenav.scss +31 -0
- data/_sass/uswds/components/_skipnav.scss +19 -0
- data/_sass/uswds/core/_base.scss +36 -0
- data/_sass/uswds/core/_defaults.scss +8 -0
- data/_sass/uswds/core/_fonts.scss +65 -0
- data/_sass/uswds/core/_grid-settings.scss +3 -0
- data/_sass/uswds/core/_grid.scss +198 -0
- data/_sass/uswds/core/_utilities.scss +252 -0
- data/_sass/uswds/core/_variables-vendor.scss +12 -0
- data/_sass/uswds/core/_variables.scss +159 -0
- data/_sass/uswds/elements/_buttons.scss +217 -0
- data/_sass/uswds/elements/_embed.scss +26 -0
- data/_sass/uswds/elements/_figure.scss +13 -0
- data/_sass/uswds/elements/_inputs.scss +368 -0
- data/_sass/uswds/elements/_labels.scss +20 -0
- data/_sass/uswds/elements/_list.scss +32 -0
- data/_sass/uswds/elements/_table.scss +55 -0
- data/_sass/uswds/elements/_typography.scss +240 -0
- data/_sass/uswds/lib/_bourbon-deprecated-upcoming.scss +411 -0
- data/_sass/uswds/lib/_bourbon.scss +87 -0
- data/_sass/uswds/lib/_neat-helpers.scss +11 -0
- data/_sass/uswds/lib/_neat.scss +23 -0
- data/_sass/uswds/lib/_normalize.scss +424 -0
- data/_sass/uswds/lib/addons/_border-color.scss +26 -0
- data/_sass/uswds/lib/addons/_border-radius.scss +48 -0
- data/_sass/uswds/lib/addons/_border-style.scss +25 -0
- data/_sass/uswds/lib/addons/_border-width.scss +25 -0
- data/_sass/uswds/lib/addons/_buttons.scss +64 -0
- data/_sass/uswds/lib/addons/_clearfix.scss +25 -0
- data/_sass/uswds/lib/addons/_ellipsis.scss +30 -0
- data/_sass/uswds/lib/addons/_font-stacks.scss +31 -0
- data/_sass/uswds/lib/addons/_hide-text.scss +27 -0
- data/_sass/uswds/lib/addons/_margin.scss +26 -0
- data/_sass/uswds/lib/addons/_padding.scss +26 -0
- data/_sass/uswds/lib/addons/_position.scss +48 -0
- data/_sass/uswds/lib/addons/_prefixer.scss +66 -0
- data/_sass/uswds/lib/addons/_retina-image.scss +25 -0
- data/_sass/uswds/lib/addons/_size.scss +51 -0
- data/_sass/uswds/lib/addons/_text-inputs.scss +113 -0
- data/_sass/uswds/lib/addons/_timing-functions.scss +34 -0
- data/_sass/uswds/lib/addons/_triangle.scss +63 -0
- data/_sass/uswds/lib/addons/_word-wrap.scss +29 -0
- data/_sass/uswds/lib/css3/_animation.scss +43 -0
- data/_sass/uswds/lib/css3/_appearance.scss +3 -0
- data/_sass/uswds/lib/css3/_backface-visibility.scss +3 -0
- data/_sass/uswds/lib/css3/_background-image.scss +42 -0
- data/_sass/uswds/lib/css3/_background.scss +55 -0
- data/_sass/uswds/lib/css3/_border-image.scss +59 -0
- data/_sass/uswds/lib/css3/_calc.scss +4 -0
- data/_sass/uswds/lib/css3/_columns.scss +47 -0
- data/_sass/uswds/lib/css3/_filter.scss +4 -0
- data/_sass/uswds/lib/css3/_flex-box.scss +287 -0
- data/_sass/uswds/lib/css3/_font-face.scss +24 -0
- data/_sass/uswds/lib/css3/_font-feature-settings.scss +4 -0
- data/_sass/uswds/lib/css3/_hidpi-media-query.scss +10 -0
- data/_sass/uswds/lib/css3/_hyphens.scss +4 -0
- data/_sass/uswds/lib/css3/_image-rendering.scss +14 -0
- data/_sass/uswds/lib/css3/_keyframes.scss +36 -0
- data/_sass/uswds/lib/css3/_linear-gradient.scss +38 -0
- data/_sass/uswds/lib/css3/_perspective.scss +8 -0
- data/_sass/uswds/lib/css3/_placeholder.scss +8 -0
- data/_sass/uswds/lib/css3/_radial-gradient.scss +39 -0
- data/_sass/uswds/lib/css3/_selection.scss +42 -0
- data/_sass/uswds/lib/css3/_text-decoration.scss +19 -0
- data/_sass/uswds/lib/css3/_transform.scss +15 -0
- data/_sass/uswds/lib/css3/_transition.scss +71 -0
- data/_sass/uswds/lib/css3/_user-select.scss +3 -0
- data/_sass/uswds/lib/functions/_assign-inputs.scss +11 -0
- data/_sass/uswds/lib/functions/_contains-falsy.scss +20 -0
- data/_sass/uswds/lib/functions/_contains.scss +26 -0
- data/_sass/uswds/lib/functions/_is-length.scss +11 -0
- data/_sass/uswds/lib/functions/_is-light.scss +21 -0
- data/_sass/uswds/lib/functions/_is-number.scss +11 -0
- data/_sass/uswds/lib/functions/_is-size.scss +13 -0
- data/_sass/uswds/lib/functions/_modular-scale.scss +69 -0
- data/_sass/uswds/lib/functions/_new-breakpoint.scss +49 -0
- data/_sass/uswds/lib/functions/_private.scss +114 -0
- data/_sass/uswds/lib/functions/_px-to-em.scss +13 -0
- data/_sass/uswds/lib/functions/_px-to-rem.scss +15 -0
- data/_sass/uswds/lib/functions/_shade.scss +24 -0
- data/_sass/uswds/lib/functions/_strip-units.scss +17 -0
- data/_sass/uswds/lib/functions/_tint.scss +24 -0
- data/_sass/uswds/lib/functions/_transition-property-name.scss +22 -0
- data/_sass/uswds/lib/functions/_unpack.scss +27 -0
- data/_sass/uswds/lib/grid/_box-sizing.scss +15 -0
- data/_sass/uswds/lib/grid/_direction-context.scss +33 -0
- data/_sass/uswds/lib/grid/_display-context.scss +28 -0
- data/_sass/uswds/lib/grid/_fill-parent.scss +22 -0
- data/_sass/uswds/lib/grid/_media.scss +92 -0
- data/_sass/uswds/lib/grid/_omega.scss +87 -0
- data/_sass/uswds/lib/grid/_outer-container.scss +34 -0
- data/_sass/uswds/lib/grid/_pad.scss +25 -0
- data/_sass/uswds/lib/grid/_private.scss +35 -0
- data/_sass/uswds/lib/grid/_row.scss +52 -0
- data/_sass/uswds/lib/grid/_shift.scss +50 -0
- data/_sass/uswds/lib/grid/_span-columns.scss +94 -0
- data/_sass/uswds/lib/grid/_to-deprecate.scss +97 -0
- data/_sass/uswds/lib/grid/_visual-grid.scss +42 -0
- data/_sass/uswds/lib/helpers/_convert-units.scss +21 -0
- data/_sass/uswds/lib/helpers/_directional-values.scss +96 -0
- data/_sass/uswds/lib/helpers/_font-source-declaration.scss +43 -0
- data/_sass/uswds/lib/helpers/_gradient-positions-parser.scss +13 -0
- data/_sass/uswds/lib/helpers/_linear-angle-parser.scss +25 -0
- data/_sass/uswds/lib/helpers/_linear-gradient-parser.scss +41 -0
- data/_sass/uswds/lib/helpers/_linear-positions-parser.scss +61 -0
- data/_sass/uswds/lib/helpers/_linear-side-corner-parser.scss +31 -0
- data/_sass/uswds/lib/helpers/_radial-arg-parser.scss +69 -0
- data/_sass/uswds/lib/helpers/_radial-gradient-parser.scss +50 -0
- data/_sass/uswds/lib/helpers/_radial-positions-parser.scss +18 -0
- data/_sass/uswds/lib/helpers/_render-gradients.scss +26 -0
- data/_sass/uswds/lib/helpers/_shape-size-stripper.scss +10 -0
- data/_sass/uswds/lib/helpers/_str-to-num.scss +50 -0
- data/_sass/uswds/lib/mixins/_clearfix.scss +25 -0
- data/_sass/uswds/lib/settings/_asset-pipeline.scss +7 -0
- data/_sass/uswds/lib/settings/_disable-warnings.scss +13 -0
- data/_sass/uswds/lib/settings/_grid.scss +51 -0
- data/_sass/uswds/lib/settings/_prefixer.scss +9 -0
- data/_sass/uswds/lib/settings/_px-to-em.scss +1 -0
- data/_sass/uswds/lib/settings/_visual-grid.scss +27 -0
- data/_sass/uswds/uswds.scss +42 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
- data/assets/uswds/img/alerts/error.png +0 -0
- data/assets/uswds/img/alerts/error.svg +17 -0
- data/assets/uswds/img/alerts/info.png +0 -0
- data/assets/uswds/img/alerts/info.svg +18 -0
- data/assets/uswds/img/alerts/success.png +0 -0
- data/assets/uswds/img/alerts/success.svg +12 -0
- data/assets/uswds/img/alerts/warning.png +0 -0
- data/assets/uswds/img/alerts/warning.svg +16 -0
- data/assets/uswds/img/angle-arrow-down-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-down-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-down-primary-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-down-primary-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-down-primary.png +0 -0
- data/assets/uswds/img/angle-arrow-down-primary.svg +1 -0
- data/assets/uswds/img/angle-arrow-down.png +0 -0
- data/assets/uswds/img/angle-arrow-down.svg +1 -0
- data/assets/uswds/img/angle-arrow-up-primary-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-up-primary-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-up-primary.png +0 -0
- data/assets/uswds/img/angle-arrow-up-primary.svg +1 -0
- data/assets/uswds/img/arrow-both.png +0 -0
- data/assets/uswds/img/arrow-both.svg +1 -0
- data/assets/uswds/img/arrow-down.png +0 -0
- data/assets/uswds/img/arrow-down.svg +1 -0
- data/assets/uswds/img/arrow-right.png +0 -0
- data/assets/uswds/img/arrow-right.svg +1 -0
- data/assets/uswds/img/circle-124.png +0 -0
- data/assets/uswds/img/close-primary.png +0 -0
- data/assets/uswds/img/close-primary.svg +16 -0
- data/assets/uswds/img/close.png +0 -0
- data/assets/uswds/img/close.svg +12 -0
- data/assets/uswds/img/correct8.png +0 -0
- data/assets/uswds/img/correct8.svg +1 -0
- data/assets/uswds/img/correct9.png +0 -0
- data/assets/uswds/img/correct9.svg +1 -0
- data/assets/uswds/img/external-link-alt-hover.png +0 -0
- data/assets/uswds/img/external-link-alt-hover.svg +1 -0
- data/assets/uswds/img/external-link-alt.png +0 -0
- data/assets/uswds/img/external-link-alt.svg +1 -0
- data/assets/uswds/img/external-link-hover.png +0 -0
- data/assets/uswds/img/external-link-hover.svg +1 -0
- data/assets/uswds/img/external-link.png +0 -0
- data/assets/uswds/img/external-link.svg +1 -0
- data/assets/uswds/img/favicons/favicon-114.png +0 -0
- data/assets/uswds/img/favicons/favicon-144.png +0 -0
- data/assets/uswds/img/favicons/favicon-16.png +0 -0
- data/assets/uswds/img/favicons/favicon-192.png +0 -0
- data/assets/uswds/img/favicons/favicon-40.png +0 -0
- data/assets/uswds/img/favicons/favicon-57.png +0 -0
- data/assets/uswds/img/favicons/favicon-72.png +0 -0
- data/assets/uswds/img/favicons/favicon.ico +0 -0
- data/assets/uswds/img/favicons/favicon.png +0 -0
- data/assets/uswds/img/hero.png +0 -0
- data/assets/uswds/img/icon-dot-gov.svg +1 -0
- data/assets/uswds/img/icon-https.svg +1 -0
- data/assets/uswds/img/logo-img.png +0 -0
- data/assets/uswds/img/minus-alt.png +0 -0
- data/assets/uswds/img/minus-alt.svg +1 -0
- data/assets/uswds/img/minus.png +0 -0
- data/assets/uswds/img/minus.svg +1 -0
- data/assets/uswds/img/plus-alt.png +0 -0
- data/assets/uswds/img/plus-alt.svg +1 -0
- data/assets/uswds/img/plus.png +0 -0
- data/assets/uswds/img/plus.svg +1 -0
- data/assets/uswds/img/search-alt.png +0 -0
- data/assets/uswds/img/search-alt.svg +1 -0
- data/assets/uswds/img/search-primary.png +0 -0
- data/assets/uswds/img/search-primary.svg +12 -0
- data/assets/uswds/img/search.png +0 -0
- data/assets/uswds/img/search.svg +1 -0
- data/assets/uswds/img/social-icons/png/facebook25.png +0 -0
- data/assets/uswds/img/social-icons/png/rss25.png +0 -0
- data/assets/uswds/img/social-icons/png/twitter16.png +0 -0
- data/assets/uswds/img/social-icons/png/youtube15.png +0 -0
- data/assets/uswds/img/social-icons/svg/facebook25.svg +1 -0
- data/assets/uswds/img/social-icons/svg/rss25.svg +1 -0
- data/assets/uswds/img/social-icons/svg/twitter16.svg +1 -0
- data/assets/uswds/img/social-icons/svg/youtube15.svg +1 -0
- data/assets/uswds/img/us_flag_small.png +0 -0
- data/assets/uswds/js/uswds.js +1930 -0
- data/assets/uswds/js/uswds.min.js +2 -0
- data/assets/uswds/js/uswds.min.js.map +1 -0
- metadata +251 -3
@@ -0,0 +1,252 @@
|
|
1
|
+
// Heading mixins
|
2
|
+
@mixin title {
|
3
|
+
font-size: $title-font-size;
|
4
|
+
font-weight: $font-bold;
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin h1 {
|
8
|
+
font-size: $h1-font-size;
|
9
|
+
font-weight: $font-bold;
|
10
|
+
}
|
11
|
+
|
12
|
+
@mixin h2 {
|
13
|
+
font-size: $h2-font-size;
|
14
|
+
font-weight: $font-bold;
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin h3 {
|
18
|
+
font-size: $h3-font-size;
|
19
|
+
font-weight: $font-bold;
|
20
|
+
}
|
21
|
+
|
22
|
+
@mixin h4 {
|
23
|
+
font-size: $h4-font-size;
|
24
|
+
font-weight: $font-bold;
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin h5 {
|
28
|
+
font-size: $h5-font-size;
|
29
|
+
font-weight: $font-bold;
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin h6 {
|
33
|
+
font-size: $h6-font-size;
|
34
|
+
font-weight: $font-normal;
|
35
|
+
line-height: $base-line-height;
|
36
|
+
text-transform: uppercase;
|
37
|
+
}
|
38
|
+
|
39
|
+
// Focus state mixin
|
40
|
+
@mixin focus {
|
41
|
+
outline: $focus-outline;
|
42
|
+
outline-offset: $focus-spacing;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Mobile-first media query helper
|
46
|
+
@mixin media($bp) {
|
47
|
+
@media screen and (min-width: #{$bp}) {
|
48
|
+
@content;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
// Screen reader only helper
|
53
|
+
@mixin sr-only() {
|
54
|
+
position: absolute;
|
55
|
+
left: -999em;
|
56
|
+
}
|
57
|
+
|
58
|
+
// This "negates" the sr-only() helper; useful if
|
59
|
+
// we want the default state of something to be
|
60
|
+
// for screen readers only, but we want to force
|
61
|
+
// it to show for sighted users under more specific
|
62
|
+
// conditions.
|
63
|
+
@mixin not-sr-only() {
|
64
|
+
position: static;
|
65
|
+
}
|
66
|
+
|
67
|
+
.usa-sr-only {
|
68
|
+
@include sr-only();
|
69
|
+
}
|
70
|
+
|
71
|
+
// Aria hidden helper
|
72
|
+
@mixin accessibly-hidden() {
|
73
|
+
&[aria-hidden=true] {
|
74
|
+
display: none;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
// Unstyled list helper
|
79
|
+
@mixin unstyled-list() {
|
80
|
+
@include margin(0 null);
|
81
|
+
list-style-type: none;
|
82
|
+
padding-left: 0;
|
83
|
+
|
84
|
+
> li {
|
85
|
+
margin-bottom: 0;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
// Font smoothing mixin
|
90
|
+
// Only use for light text on dark background
|
91
|
+
// TODO: Remove after adding PostCSS
|
92
|
+
@mixin font-smoothing {
|
93
|
+
-moz-osx-font-smoothing: grayscale;
|
94
|
+
-webkit-font-smoothing: antialiased;
|
95
|
+
}
|
96
|
+
|
97
|
+
// Content size helpers
|
98
|
+
@mixin allow-layout-classes {
|
99
|
+
@include margin(null auto);
|
100
|
+
|
101
|
+
&.width-one-half {
|
102
|
+
@include media($medium-screen) {
|
103
|
+
width: 50%;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
&.width-one-third {
|
108
|
+
@include media($medium-screen) {
|
109
|
+
width: 33%;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
&.width-two-thirds {
|
114
|
+
@include media($medium-screen) {
|
115
|
+
width: 67%;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
&.width-one-fourth {
|
120
|
+
@include media($medium-screen) {
|
121
|
+
width: 25%;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
&.width-three-fourths {
|
126
|
+
@include media($medium-screen) {
|
127
|
+
width: 75%;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
&.align-left {
|
132
|
+
@include media($medium-screen) {
|
133
|
+
float: left;
|
134
|
+
margin-right: 2em;
|
135
|
+
margin-top: 0.5em;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
&.align-right {
|
140
|
+
@include media($medium-screen) {
|
141
|
+
float: right;
|
142
|
+
margin-left: 2em;
|
143
|
+
margin-top: 0.5em;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
@mixin display-icon($icon, $direction, $size, $margin, $hover) {
|
149
|
+
&::#{$direction} {
|
150
|
+
background-image: url('#{$image-path}/#{$icon}.png');
|
151
|
+
background-image: url('#{$image-path}/#{$icon}.svg');
|
152
|
+
background-size: 100%;
|
153
|
+
content: '';
|
154
|
+
display: inline-block;
|
155
|
+
height: $size;
|
156
|
+
width: $size;
|
157
|
+
|
158
|
+
/* stylelint-disable block-closing-brace-newline-after, at-rule-empty-line-before */
|
159
|
+
@if $direction == 'after' {
|
160
|
+
margin-left: $margin;
|
161
|
+
} @else {
|
162
|
+
margin-right: $margin;
|
163
|
+
}
|
164
|
+
/* stylelint-enable */
|
165
|
+
}
|
166
|
+
|
167
|
+
@if $hover == 'hover' {
|
168
|
+
&:hover::#{$direction} {
|
169
|
+
background-image: url('#{$image-path}/#{$icon}-hover.png');
|
170
|
+
background-image: url('#{$image-path}/#{$icon}-hover.svg');
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
@mixin usa-sidenav-list {
|
176
|
+
@include unstyled-list();
|
177
|
+
|
178
|
+
> li {
|
179
|
+
background-color: transparent;
|
180
|
+
border-top: 1px solid $color-gray;
|
181
|
+
font-size: $h4-font-size;
|
182
|
+
|
183
|
+
&:first-child {
|
184
|
+
border-top: none;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
a {
|
189
|
+
border: none;
|
190
|
+
color: $color-base;
|
191
|
+
display: block;
|
192
|
+
font-family: $font-sans;
|
193
|
+
line-height: 1.3;
|
194
|
+
padding: 0.85rem 1rem 0.85rem $site-margins-mobile;
|
195
|
+
text-decoration: none;
|
196
|
+
|
197
|
+
&:hover {
|
198
|
+
background-color: $color-gray-lightest;
|
199
|
+
color: $color-primary;
|
200
|
+
text-decoration: none;
|
201
|
+
}
|
202
|
+
|
203
|
+
&:focus {
|
204
|
+
outline-offset: 0;
|
205
|
+
position: relative;
|
206
|
+
z-index: 1;
|
207
|
+
}
|
208
|
+
|
209
|
+
&.usa-current { /* stylelint-disable-line selector-no-qualifying-type */
|
210
|
+
border-left: $sidenav-current-border-width solid $color-primary;
|
211
|
+
color: $color-primary;
|
212
|
+
font-weight: $font-bold;
|
213
|
+
padding-left: $site-margins-mobile - $sidenav-current-border-width;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
@mixin usa-sidenav-sublist {
|
219
|
+
@include unstyled-list();
|
220
|
+
margin: 0;
|
221
|
+
width: 100%;
|
222
|
+
|
223
|
+
li {
|
224
|
+
border: none;
|
225
|
+
font-size: $h5-font-size;
|
226
|
+
}
|
227
|
+
|
228
|
+
a {
|
229
|
+
padding-left: 2.8rem;
|
230
|
+
line-height: $heading-line-height;
|
231
|
+
|
232
|
+
&:hover,
|
233
|
+
&.usa-current { /* stylelint-disable-line selector-no-qualifying-type */
|
234
|
+
border: none;
|
235
|
+
padding-left: 2.8rem;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
.usa-sidenav-sub_list {
|
240
|
+
a {
|
241
|
+
padding-left: 3.8rem;
|
242
|
+
|
243
|
+
&:focus {
|
244
|
+
outline-offset: 0;
|
245
|
+
}
|
246
|
+
|
247
|
+
&:hover {
|
248
|
+
padding-left: 3.8rem;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/// When set to true, it sets the box-sizing property of all elements to `border-box`. Set with a `!global` flag.
|
2
|
+
///
|
3
|
+
/// @type Bool
|
4
|
+
///
|
5
|
+
/// @example css - CSS Output
|
6
|
+
/// html {
|
7
|
+
/// box-sizing: border-box; }
|
8
|
+
///
|
9
|
+
/// *, *::after, *::before {
|
10
|
+
/// box-sizing: inherit;
|
11
|
+
/// }
|
12
|
+
$border-box-sizing: false;
|
@@ -0,0 +1,159 @@
|
|
1
|
+
// These variables drive almost every aspect of the U.S. Web Design
|
2
|
+
// system. Every variable is declared as !default so that it can be
|
3
|
+
// overridden by a previous import.
|
4
|
+
//
|
5
|
+
// XXX Do not modify this file!
|
6
|
+
//
|
7
|
+
// If you want to override a variable, set that variable in one of your
|
8
|
+
// own partials, then @import '{path/to/uswds/}core/variables'.
|
9
|
+
|
10
|
+
// Typography
|
11
|
+
// Removing the !default from $em-base so we are not inheriting that
|
12
|
+
// value from Bourbon.
|
13
|
+
$em-base: 10px;
|
14
|
+
$base-font-size: 1.7rem !default;
|
15
|
+
$small-font-size: 1.4rem !default;
|
16
|
+
$lead-font-size: 2rem !default;
|
17
|
+
$title-font-size: 5.2rem !default;
|
18
|
+
$h1-font-size: 4rem !default;
|
19
|
+
$h2-font-size: 3rem !default;
|
20
|
+
$h3-font-size: 2rem !default;
|
21
|
+
$h4-font-size: 1.7rem !default;
|
22
|
+
$h5-font-size: 1.5rem !default;
|
23
|
+
$h6-font-size: 1.3rem !default;
|
24
|
+
$base-line-height: 1.5 !default;
|
25
|
+
$heading-line-height: 1.3 !default;
|
26
|
+
$lead-line-height: 1.7 !default;
|
27
|
+
|
28
|
+
$font-sans: 'Source Sans Pro', $helvetica !default;
|
29
|
+
$font-serif: 'Merriweather', $georgia !default;
|
30
|
+
|
31
|
+
// TODO these should be called font-weight-${}
|
32
|
+
$font-normal: 400 !default;
|
33
|
+
$font-bold: 700 !default;
|
34
|
+
|
35
|
+
// Color
|
36
|
+
$color-blue: #0071bc !default;
|
37
|
+
$color-blue-darker: #205493 !default;
|
38
|
+
$color-blue-darkest: #112e51 !default;
|
39
|
+
|
40
|
+
$color-aqua: #02bfe7 !default;
|
41
|
+
$color-aqua-dark: #00a6d2 !default;
|
42
|
+
$color-aqua-darkest: #046b99 !default;
|
43
|
+
$color-aqua-light: #9bdaf1 !default;
|
44
|
+
$color-aqua-lightest: #e1f3f8 !default;
|
45
|
+
|
46
|
+
$color-red: #e31c3d !default;
|
47
|
+
$color-red-dark: #cd2026 !default;
|
48
|
+
$color-red-darkest: #981b1e !default;
|
49
|
+
$color-red-light: #e59393 !default;
|
50
|
+
$color-red-lightest: #f9dede !default;
|
51
|
+
|
52
|
+
$color-white: #ffffff !default;
|
53
|
+
$color-black: #000000 !default;
|
54
|
+
$color-black-light: #212121 !default;
|
55
|
+
|
56
|
+
$color-gray-dark: #323a45 !default;
|
57
|
+
$color-gray: #5b616b !default;
|
58
|
+
$color-gray-medium: #757575 !default;
|
59
|
+
$color-gray-light: #aeb0b5 !default;
|
60
|
+
$color-gray-lighter: #d6d7d9 !default;
|
61
|
+
$color-gray-lightest: #f1f1f1 !default;
|
62
|
+
|
63
|
+
$color-gray-warm-dark: #494440 !default;
|
64
|
+
$color-gray-warm-light: #e4e2e0 !default;
|
65
|
+
$color-gray-cool-light: #dce4ef !default;
|
66
|
+
|
67
|
+
$color-gold: #fdb81e !default;
|
68
|
+
$color-gold-light: #f9c642 !default;
|
69
|
+
$color-gold-lighter: #fad980 !default;
|
70
|
+
$color-gold-lightest: #fff1d2 !default;
|
71
|
+
|
72
|
+
$color-green: #2e8540 !default;
|
73
|
+
$color-green-light: #4aa564 !default;
|
74
|
+
$color-green-lighter: #94bfa2 !default;
|
75
|
+
$color-green-lightest: #e7f4e4 !default;
|
76
|
+
|
77
|
+
$color-cool-blue: #205493 !default;
|
78
|
+
$color-cool-blue-light: #4773aa !default;
|
79
|
+
$color-cool-blue-lighter: #8ba6ca !default;
|
80
|
+
$color-cool-blue-lightest: #dce4ef !default;
|
81
|
+
|
82
|
+
$color-purple: #4c2c92 !default;
|
83
|
+
|
84
|
+
// Functional colors
|
85
|
+
$color-primary: $color-blue !default;
|
86
|
+
$color-primary-darker: $color-blue-darker !default;
|
87
|
+
$color-primary-darkest: $color-blue-darkest !default;
|
88
|
+
|
89
|
+
$color-primary-alt: $color-aqua !default;
|
90
|
+
$color-primary-alt-dark: $color-aqua-dark !default;
|
91
|
+
$color-primary-alt-darkest: $color-aqua-darkest !default;
|
92
|
+
$color-primary-alt-light: $color-aqua-light !default;
|
93
|
+
$color-primary-alt-lightest: $color-aqua-lightest !default;
|
94
|
+
|
95
|
+
$color-secondary: $color-red !default;
|
96
|
+
$color-secondary-dark: $color-red-dark !default;
|
97
|
+
$color-secondary-darkest: $color-red-darkest !default;
|
98
|
+
$color-secondary-light: $color-red-light !default;
|
99
|
+
$color-secondary-lightest: $color-red-lightest !default;
|
100
|
+
|
101
|
+
$color-base: $color-black-light !default;
|
102
|
+
$color-focus: $color-gray-light !default;
|
103
|
+
$color-visited: $color-purple !default;
|
104
|
+
|
105
|
+
$color-shadow: rgba(#000, 0.3) !default;
|
106
|
+
$color-transparent: rgba(#000, 0) !default;
|
107
|
+
|
108
|
+
// Mobile First Breakpoints
|
109
|
+
$small-screen: 481px !default;
|
110
|
+
$medium-screen: 600px !default;
|
111
|
+
$large-screen: 1201px !default;
|
112
|
+
|
113
|
+
// Grid column counts by screen size
|
114
|
+
$grid-columns-small: 1 !default;
|
115
|
+
$grid-columns-medium: 6 !default;
|
116
|
+
$grid-columns-large: 12 !default;
|
117
|
+
|
118
|
+
// @media single-keyword helpers
|
119
|
+
$small: new-breakpoint(min-width $small-screen $grid-columns-small) !default;
|
120
|
+
$medium: new-breakpoint(min-width $medium-screen $grid-columns-medium) !default;
|
121
|
+
$large: new-breakpoint(min-width $large-screen $grid-columns-large) !default;
|
122
|
+
|
123
|
+
// Set the base path for assets (used for font and image paths below)
|
124
|
+
$asset-path: '../' !default;
|
125
|
+
|
126
|
+
// Relative font and image file paths
|
127
|
+
$font-path: '#{$asset-path}fonts' !default;
|
128
|
+
$image-path: '#{$asset-path}img' !default;
|
129
|
+
|
130
|
+
// Set $asset-pipeline to true if you're using the Rails Asset Pipeline
|
131
|
+
$asset-pipeline: false !default;
|
132
|
+
|
133
|
+
// Magic Numbers
|
134
|
+
$text-max-width: 66ch !default; // 66 characters per line
|
135
|
+
$lead-max-width: 77rem !default;
|
136
|
+
$site-max-width: 1040px !default;
|
137
|
+
$site-margins: 3rem !default;
|
138
|
+
$site-margins-mobile: 1.5rem !default;
|
139
|
+
$article-max-width: 600px !default;
|
140
|
+
$input-max-width: 46rem !default;
|
141
|
+
$label-border-radius: 2px !default;
|
142
|
+
$checkbox-border-radius: 2px !default;
|
143
|
+
$border-radius: 3px !default;
|
144
|
+
$button-border-radius: 5px !default;
|
145
|
+
$box-shadow: 0 0 2px $color-shadow !default;
|
146
|
+
$focus-outline: 2px dotted $color-gray-light !default;
|
147
|
+
$focus-spacing: 3px !default;
|
148
|
+
$nav-width: 951px !default;
|
149
|
+
$sidenav-current-border-width: 0.4rem !default; // must be in rem for math
|
150
|
+
|
151
|
+
// 44 x 44 pixels hit target following Apple iOS Human Interface
|
152
|
+
// Guidelines
|
153
|
+
$hit-area: 4.4rem !default;
|
154
|
+
|
155
|
+
$spacing-x-small: 0.5rem;
|
156
|
+
$spacing-small: 1rem;
|
157
|
+
$spacing-md-small: 1.5rem;
|
158
|
+
$spacing-medium: 2rem;
|
159
|
+
$spacing-large: 3rem;
|
@@ -0,0 +1,217 @@
|
|
1
|
+
// Buttons variables
|
2
|
+
|
3
|
+
$button-stroke: inset 0 0 0 2px;
|
4
|
+
|
5
|
+
// Buttons
|
6
|
+
|
7
|
+
// This mixin is only needed until we fully remove the
|
8
|
+
// deprecated usa-button-disabled style.
|
9
|
+
@mixin disabledesque {
|
10
|
+
background-color: $color-gray-lighter;
|
11
|
+
pointer-events: none;
|
12
|
+
|
13
|
+
&:hover,
|
14
|
+
&.usa-button-hover,
|
15
|
+
&:active,
|
16
|
+
&.usa-button-active,
|
17
|
+
&:focus,
|
18
|
+
&.usa-focus {
|
19
|
+
background-color: $color-gray-lighter;
|
20
|
+
border: 0;
|
21
|
+
box-shadow: none;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
/* stylelint-disable selector-no-qualifying-type */
|
26
|
+
.usa-button,
|
27
|
+
.usa-button-primary,
|
28
|
+
.usa-button:visited,
|
29
|
+
.usa-button-primary:visited,
|
30
|
+
button,
|
31
|
+
[type=button],
|
32
|
+
[type=submit],
|
33
|
+
[type=reset],
|
34
|
+
[type=image] {
|
35
|
+
@include font-smoothing;
|
36
|
+
@include margin(0.5em 0.5em 0.5em null);
|
37
|
+
appearance: none;
|
38
|
+
background-color: $color-primary;
|
39
|
+
border: 0;
|
40
|
+
border-radius: $button-border-radius;
|
41
|
+
color: $color-white;
|
42
|
+
cursor: pointer;
|
43
|
+
display: inline-block;
|
44
|
+
font-family: $font-sans;
|
45
|
+
font-size: $base-font-size;
|
46
|
+
font-weight: $font-bold;
|
47
|
+
line-height: 1;
|
48
|
+
padding: 1rem 2rem;
|
49
|
+
text-align: center;
|
50
|
+
text-decoration: none;
|
51
|
+
width: 100%;
|
52
|
+
|
53
|
+
@include media($small-screen) {
|
54
|
+
width: auto;
|
55
|
+
}
|
56
|
+
|
57
|
+
&:hover,
|
58
|
+
&.usa-button-hover {
|
59
|
+
background-color: $color-primary-darker;
|
60
|
+
border-bottom: 0;
|
61
|
+
color: $color-white;
|
62
|
+
text-decoration: none;
|
63
|
+
}
|
64
|
+
|
65
|
+
&:active,
|
66
|
+
&.usa-button-active {
|
67
|
+
background-color: $color-primary-darkest;
|
68
|
+
}
|
69
|
+
|
70
|
+
&.usa-button-primary-alt {
|
71
|
+
background-color: $color-primary-alt;
|
72
|
+
color: $color-base;
|
73
|
+
|
74
|
+
&:hover,
|
75
|
+
&.usa-button-hover {
|
76
|
+
background-color: $color-primary-alt-dark;
|
77
|
+
}
|
78
|
+
|
79
|
+
&:active,
|
80
|
+
&.usa-button-active {
|
81
|
+
background-color: $color-primary-alt-darkest;
|
82
|
+
color: $color-white;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
&.usa-button-secondary {
|
87
|
+
background-color: $color-white;
|
88
|
+
box-shadow: $button-stroke $color-primary;
|
89
|
+
color: $color-primary;
|
90
|
+
|
91
|
+
&:hover,
|
92
|
+
&.usa-button-hover {
|
93
|
+
box-shadow: $button-stroke $color-primary-darker;
|
94
|
+
color: $color-primary-darker;
|
95
|
+
}
|
96
|
+
|
97
|
+
&:active,
|
98
|
+
&.usa-button-active {
|
99
|
+
box-shadow: $button-stroke $color-primary-darkest;
|
100
|
+
color: $color-primary-darkest;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
&.usa-button-secondary-inverse,
|
105
|
+
&.usa-button-outline-inverse { // Outline inverse to be deprecated in 2.0
|
106
|
+
background: transparent;
|
107
|
+
box-shadow: $button-stroke $color-white;
|
108
|
+
color: $color-white;
|
109
|
+
|
110
|
+
&:hover,
|
111
|
+
&.usa-button-hover {
|
112
|
+
box-shadow: $button-stroke $color-gray-lighter;
|
113
|
+
color: $color-gray-lighter;
|
114
|
+
}
|
115
|
+
|
116
|
+
&:active,
|
117
|
+
&.usa-button-active {
|
118
|
+
box-shadow: $button-stroke $color-gray-light;
|
119
|
+
color: $color-gray-lighter;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
&.usa-button-gray {
|
124
|
+
background-color: $color-gray;
|
125
|
+
|
126
|
+
&:hover,
|
127
|
+
&.usa-button-hover {
|
128
|
+
background-color: $color-gray-dark;
|
129
|
+
}
|
130
|
+
|
131
|
+
&:active,
|
132
|
+
&.usa-button-active {
|
133
|
+
background-color: $color-base;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
&.usa-button-red {
|
138
|
+
background-color: $color-secondary;
|
139
|
+
|
140
|
+
&:hover,
|
141
|
+
&.usa-button-hover {
|
142
|
+
background-color: $color-secondary-dark;
|
143
|
+
}
|
144
|
+
|
145
|
+
&:active,
|
146
|
+
&.usa-button-active {
|
147
|
+
background-color: $color-secondary-darkest;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
&.usa-button-big {
|
152
|
+
border-radius: 8px;
|
153
|
+
font-size: 2.4rem;
|
154
|
+
padding: 1.5rem 3rem;
|
155
|
+
}
|
156
|
+
|
157
|
+
&:disabled {
|
158
|
+
@include disabledesque;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
/* stylelint-disable */
|
162
|
+
|
163
|
+
.usa-button-disabled // Deprecated
|
164
|
+
{
|
165
|
+
@include disabledesque
|
166
|
+
}
|
167
|
+
|
168
|
+
.usa-button-secondary-disabled, // Deprecated
|
169
|
+
.usa-button-secondary-inverse-disabled, // Deprecated
|
170
|
+
.usa-button-secondary:disabled,
|
171
|
+
.usa-button-secondary-inverse:disabled,
|
172
|
+
.usa-button-outline-inverse:disabled { // Outline inverse to be deprecated in 2.0
|
173
|
+
box-shadow: $button-stroke $color-gray-lighter;
|
174
|
+
pointer-events: none;
|
175
|
+
color: $color-gray-lighter;
|
176
|
+
|
177
|
+
&:hover,
|
178
|
+
&.usa-button-hover,
|
179
|
+
&:active,
|
180
|
+
&.usa-button-active,
|
181
|
+
&:focus,
|
182
|
+
&.usa-focus {
|
183
|
+
background-color: $color-white;
|
184
|
+
border: 0;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
html .usa-button-secondary-disabled, // Deprecated
|
189
|
+
.usa-button-secondary:disabled {
|
190
|
+
background-color: $color-white;
|
191
|
+
}
|
192
|
+
|
193
|
+
html .usa-button-secondary-inverse-disabled, // Deprecated
|
194
|
+
.usa-button-secondary-inverse:disabled {
|
195
|
+
background-color: transparent;
|
196
|
+
color: $color-gray;
|
197
|
+
box-shadow: $button-stroke $color-gray;
|
198
|
+
}
|
199
|
+
|
200
|
+
@mixin button-unstyled {
|
201
|
+
background-color: transparent;
|
202
|
+
border: 0;
|
203
|
+
border-radius: 0;
|
204
|
+
font-weight: $font-normal;
|
205
|
+
margin: 0;
|
206
|
+
padding: 0;
|
207
|
+
text-align: left;
|
208
|
+
-webkit-font-smoothing: auto;
|
209
|
+
|
210
|
+
&:hover {
|
211
|
+
background-color: transparent;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
.usa-button-unstyled {
|
216
|
+
@include button-unstyled;
|
217
|
+
}
|