uswds-jekyll 2.2.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -23
- data/_includes/components/footer--medium.html +100 -0
- data/_includes/components/header--basic.html +12 -10
- data/_includes/components/header--extended.html +16 -12
- data/_includes/footer.html +2 -1
- data/_includes/header.html +4 -0
- data/_includes/scripts.html +12 -3
- data/_sass/uswds/components/_header.scss +1 -1
- data/_sass/uswds/components/_sidenav.scss +0 -23
- data/_sass/uswds/core/_utilities.scss +3 -3
- data/_sass/uswds/core/_variables.scss +15 -16
- data/_sass/uswds/elements/_inputs.scss +1 -3
- data/assets/uswds/css/uswds.css +7 -38
- data/assets/uswds/css/uswds.min.css +2 -2
- data/assets/uswds/css/uswds.min.css.map +1 -1
- metadata +5 -140
- data/_includes/components/footer.html +0 -82
- data/_includes/last-modified.html +0 -3
- data/_layouts/search-results.html +0 -25
- data/assets/uswds/scss/_all.scss +0 -1
- data/assets/uswds/scss/components/_accordions.scss +0 -150
- data/assets/uswds/scss/components/_alerts.scss +0 -125
- data/assets/uswds/scss/components/_banner.scss +0 -204
- data/assets/uswds/scss/components/_footer.scss +0 -518
- data/assets/uswds/scss/components/_forms.scss +0 -164
- data/assets/uswds/scss/components/_graphic-list.scss +0 -35
- data/assets/uswds/scss/components/_header.scss +0 -218
- data/assets/uswds/scss/components/_hero.scss +0 -37
- data/assets/uswds/scss/components/_layout.scss +0 -36
- data/assets/uswds/scss/components/_media-block.scss +0 -12
- data/assets/uswds/scss/components/_navigation.scss +0 -549
- data/assets/uswds/scss/components/_search.scss +0 -111
- data/assets/uswds/scss/components/_section.scss +0 -37
- data/assets/uswds/scss/components/_sidenav.scss +0 -31
- data/assets/uswds/scss/components/_skipnav.scss +0 -19
- data/assets/uswds/scss/core/_base.scss +0 -35
- data/assets/uswds/scss/core/_defaults.scss +0 -8
- data/assets/uswds/scss/core/_fonts.scss +0 -65
- data/assets/uswds/scss/core/_grid-settings.scss +0 -3
- data/assets/uswds/scss/core/_grid.scss +0 -199
- data/assets/uswds/scss/core/_utilities.scss +0 -252
- data/assets/uswds/scss/core/_variables.scss +0 -156
- data/assets/uswds/scss/elements/_buttons.scss +0 -217
- data/assets/uswds/scss/elements/_embed.scss +0 -26
- data/assets/uswds/scss/elements/_figure.scss +0 -13
- data/assets/uswds/scss/elements/_inputs.scss +0 -353
- data/assets/uswds/scss/elements/_labels.scss +0 -20
- data/assets/uswds/scss/elements/_list.scss +0 -32
- data/assets/uswds/scss/elements/_table.scss +0 -55
- data/assets/uswds/scss/elements/_typography.scss +0 -260
- data/assets/uswds/scss/lib/_bourbon-deprecated-upcoming.scss +0 -411
- data/assets/uswds/scss/lib/_bourbon.scss +0 -87
- data/assets/uswds/scss/lib/_neat-helpers.scss +0 -11
- data/assets/uswds/scss/lib/_neat.scss +0 -23
- data/assets/uswds/scss/lib/_normalize.scss +0 -424
- data/assets/uswds/scss/lib/addons/_border-color.scss +0 -26
- data/assets/uswds/scss/lib/addons/_border-radius.scss +0 -48
- data/assets/uswds/scss/lib/addons/_border-style.scss +0 -25
- data/assets/uswds/scss/lib/addons/_border-width.scss +0 -25
- data/assets/uswds/scss/lib/addons/_buttons.scss +0 -64
- data/assets/uswds/scss/lib/addons/_clearfix.scss +0 -25
- data/assets/uswds/scss/lib/addons/_ellipsis.scss +0 -30
- data/assets/uswds/scss/lib/addons/_font-stacks.scss +0 -31
- data/assets/uswds/scss/lib/addons/_hide-text.scss +0 -27
- data/assets/uswds/scss/lib/addons/_margin.scss +0 -26
- data/assets/uswds/scss/lib/addons/_padding.scss +0 -26
- data/assets/uswds/scss/lib/addons/_position.scss +0 -48
- data/assets/uswds/scss/lib/addons/_prefixer.scss +0 -66
- data/assets/uswds/scss/lib/addons/_retina-image.scss +0 -25
- data/assets/uswds/scss/lib/addons/_size.scss +0 -51
- data/assets/uswds/scss/lib/addons/_text-inputs.scss +0 -113
- data/assets/uswds/scss/lib/addons/_timing-functions.scss +0 -34
- data/assets/uswds/scss/lib/addons/_triangle.scss +0 -63
- data/assets/uswds/scss/lib/addons/_word-wrap.scss +0 -29
- data/assets/uswds/scss/lib/css3/_animation.scss +0 -43
- data/assets/uswds/scss/lib/css3/_appearance.scss +0 -3
- data/assets/uswds/scss/lib/css3/_backface-visibility.scss +0 -3
- data/assets/uswds/scss/lib/css3/_background-image.scss +0 -42
- data/assets/uswds/scss/lib/css3/_background.scss +0 -55
- data/assets/uswds/scss/lib/css3/_border-image.scss +0 -59
- data/assets/uswds/scss/lib/css3/_calc.scss +0 -4
- data/assets/uswds/scss/lib/css3/_columns.scss +0 -47
- data/assets/uswds/scss/lib/css3/_filter.scss +0 -4
- data/assets/uswds/scss/lib/css3/_flex-box.scss +0 -287
- data/assets/uswds/scss/lib/css3/_font-face.scss +0 -24
- data/assets/uswds/scss/lib/css3/_font-feature-settings.scss +0 -4
- data/assets/uswds/scss/lib/css3/_hidpi-media-query.scss +0 -10
- data/assets/uswds/scss/lib/css3/_hyphens.scss +0 -4
- data/assets/uswds/scss/lib/css3/_image-rendering.scss +0 -14
- data/assets/uswds/scss/lib/css3/_keyframes.scss +0 -36
- data/assets/uswds/scss/lib/css3/_linear-gradient.scss +0 -38
- data/assets/uswds/scss/lib/css3/_perspective.scss +0 -8
- data/assets/uswds/scss/lib/css3/_placeholder.scss +0 -8
- data/assets/uswds/scss/lib/css3/_radial-gradient.scss +0 -39
- data/assets/uswds/scss/lib/css3/_selection.scss +0 -42
- data/assets/uswds/scss/lib/css3/_text-decoration.scss +0 -19
- data/assets/uswds/scss/lib/css3/_transform.scss +0 -15
- data/assets/uswds/scss/lib/css3/_transition.scss +0 -71
- data/assets/uswds/scss/lib/css3/_user-select.scss +0 -3
- data/assets/uswds/scss/lib/functions/_assign-inputs.scss +0 -11
- data/assets/uswds/scss/lib/functions/_contains-falsy.scss +0 -20
- data/assets/uswds/scss/lib/functions/_contains.scss +0 -26
- data/assets/uswds/scss/lib/functions/_is-length.scss +0 -11
- data/assets/uswds/scss/lib/functions/_is-light.scss +0 -21
- data/assets/uswds/scss/lib/functions/_is-number.scss +0 -11
- data/assets/uswds/scss/lib/functions/_is-size.scss +0 -13
- data/assets/uswds/scss/lib/functions/_modular-scale.scss +0 -69
- data/assets/uswds/scss/lib/functions/_new-breakpoint.scss +0 -49
- data/assets/uswds/scss/lib/functions/_private.scss +0 -114
- data/assets/uswds/scss/lib/functions/_px-to-em.scss +0 -13
- data/assets/uswds/scss/lib/functions/_px-to-rem.scss +0 -15
- data/assets/uswds/scss/lib/functions/_shade.scss +0 -24
- data/assets/uswds/scss/lib/functions/_strip-units.scss +0 -17
- data/assets/uswds/scss/lib/functions/_tint.scss +0 -24
- data/assets/uswds/scss/lib/functions/_transition-property-name.scss +0 -22
- data/assets/uswds/scss/lib/functions/_unpack.scss +0 -27
- data/assets/uswds/scss/lib/grid/_box-sizing.scss +0 -15
- data/assets/uswds/scss/lib/grid/_direction-context.scss +0 -33
- data/assets/uswds/scss/lib/grid/_display-context.scss +0 -28
- data/assets/uswds/scss/lib/grid/_fill-parent.scss +0 -22
- data/assets/uswds/scss/lib/grid/_media.scss +0 -92
- data/assets/uswds/scss/lib/grid/_omega.scss +0 -87
- data/assets/uswds/scss/lib/grid/_outer-container.scss +0 -34
- data/assets/uswds/scss/lib/grid/_pad.scss +0 -25
- data/assets/uswds/scss/lib/grid/_private.scss +0 -35
- data/assets/uswds/scss/lib/grid/_row.scss +0 -52
- data/assets/uswds/scss/lib/grid/_shift.scss +0 -50
- data/assets/uswds/scss/lib/grid/_span-columns.scss +0 -94
- data/assets/uswds/scss/lib/grid/_to-deprecate.scss +0 -97
- data/assets/uswds/scss/lib/grid/_visual-grid.scss +0 -42
- data/assets/uswds/scss/lib/helpers/_convert-units.scss +0 -21
- data/assets/uswds/scss/lib/helpers/_directional-values.scss +0 -96
- data/assets/uswds/scss/lib/helpers/_font-source-declaration.scss +0 -43
- data/assets/uswds/scss/lib/helpers/_gradient-positions-parser.scss +0 -13
- data/assets/uswds/scss/lib/helpers/_linear-angle-parser.scss +0 -25
- data/assets/uswds/scss/lib/helpers/_linear-gradient-parser.scss +0 -41
- data/assets/uswds/scss/lib/helpers/_linear-positions-parser.scss +0 -61
- data/assets/uswds/scss/lib/helpers/_linear-side-corner-parser.scss +0 -31
- data/assets/uswds/scss/lib/helpers/_radial-arg-parser.scss +0 -69
- data/assets/uswds/scss/lib/helpers/_radial-gradient-parser.scss +0 -50
- data/assets/uswds/scss/lib/helpers/_radial-positions-parser.scss +0 -18
- data/assets/uswds/scss/lib/helpers/_render-gradients.scss +0 -26
- data/assets/uswds/scss/lib/helpers/_shape-size-stripper.scss +0 -10
- data/assets/uswds/scss/lib/helpers/_str-to-num.scss +0 -50
- data/assets/uswds/scss/lib/mixins/_clearfix.scss +0 -25
- data/assets/uswds/scss/lib/settings/_asset-pipeline.scss +0 -7
- data/assets/uswds/scss/lib/settings/_disable-warnings.scss +0 -13
- data/assets/uswds/scss/lib/settings/_grid.scss +0 -51
- data/assets/uswds/scss/lib/settings/_prefixer.scss +0 -9
- data/assets/uswds/scss/lib/settings/_px-to-em.scss +0 -1
- data/assets/uswds/scss/lib/settings/_visual-grid.scss +0 -27
- data/assets/uswds/scss/uswds.scss +0 -41
@@ -1,252 +0,0 @@
|
|
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
|
-
}
|
@@ -1,156 +0,0 @@
|
|
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
|
-
// Relative font and image file paths
|
124
|
-
$font-path: '../fonts' !default;
|
125
|
-
$image-path: '../img' !default;
|
126
|
-
|
127
|
-
// Set $asset-pipeline to true if you're using the Rails Asset Pipeline
|
128
|
-
$asset-pipeline: false !default;
|
129
|
-
|
130
|
-
// Magic Numbers
|
131
|
-
$text-max-width: 66ch !default; // 66 characters per line
|
132
|
-
$lead-max-width: 77rem !default;
|
133
|
-
$site-max-width: 1040px !default;
|
134
|
-
$site-margins: 3rem !default;
|
135
|
-
$site-margins-mobile: 1.5rem !default;
|
136
|
-
$article-max-width: 600px !default;
|
137
|
-
$input-max-width: 46rem !default;
|
138
|
-
$label-border-radius: 2px !default;
|
139
|
-
$checkbox-border-radius: 2px !default;
|
140
|
-
$border-radius: 3px !default;
|
141
|
-
$button-border-radius: 5px !default;
|
142
|
-
$box-shadow: 0 0 2px $color-shadow !default;
|
143
|
-
$focus-outline: 2px dotted $color-gray-light !default;
|
144
|
-
$focus-spacing: 3px !default;
|
145
|
-
$nav-width: 951px !default;
|
146
|
-
$sidenav-current-border-width: 0.4rem !default; // must be in rem for math
|
147
|
-
|
148
|
-
// 44 x 44 pixels hit target following Apple iOS Human Interface
|
149
|
-
// Guidelines
|
150
|
-
$hit-area: 4.4rem !default;
|
151
|
-
|
152
|
-
$spacing-x-small: 0.5rem;
|
153
|
-
$spacing-small: 1rem;
|
154
|
-
$spacing-md-small: 1.5rem;
|
155
|
-
$spacing-medium: 2rem;
|
156
|
-
$spacing-large: 3rem;
|
@@ -1,217 +0,0 @@
|
|
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
|
-
}
|