uswds-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +17 -0
- data/.editorconfig +14 -0
- data/.gitignore +28 -0
- data/.rspec +3 -0
- data/.rubocop +3 -0
- data/.rubocop.yml +16 -0
- data/.ruby-version +1 -0
- data/.simplecov +13 -0
- data/.travis.yml +18 -0
- data/CONTRIBUTING.md +50 -0
- data/Gemfile +4 -0
- data/LICENSE.md +27 -0
- data/README.md +64 -0
- data/Rakefile +8 -0
- data/app/assets/stylesheets/uswds/components/_accordions.scss +150 -0
- data/app/assets/stylesheets/uswds/components/_alerts.scss +85 -0
- data/app/assets/stylesheets/uswds/components/_footer.scss +382 -0
- data/app/assets/stylesheets/uswds/components/_forms.scss +164 -0
- data/app/assets/stylesheets/uswds/components/_hero.scss +43 -0
- data/app/assets/stylesheets/uswds/components/_navigation.scss +446 -0
- data/app/assets/stylesheets/uswds/components/_search.scss +106 -0
- data/app/assets/stylesheets/uswds/core/_utilities.scss +232 -0
- data/app/assets/stylesheets/uswds/core/_variables.scss +112 -0
- data/app/assets/stylesheets/uswds/elements/_inputs.scss +346 -0
- data/app/assets/stylesheets/uswds/elements/_typography.scss +257 -0
- data/app/assets/stylesheets/uswds/uswds.scss +44 -0
- data/lib/uswds-rails.rb +1 -0
- data/lib/uswds/rails.rb +7 -0
- data/lib/uswds/rails/engine.rb +17 -0
- data/lib/uswds/rails/version.rb +6 -0
- data/uswds-rails.gemspec +36 -0
- data/vendor/assets/fonts/uswds/merriweather-bold-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/merriweather-bold-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/merriweather-bold-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/merriweather-bold-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/merriweather-italic-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/merriweather-italic-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/merriweather-italic-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/merriweather-italic-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/merriweather-light-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/merriweather-light-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/merriweather-light-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/merriweather-light-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/merriweather-regular-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/merriweather-regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/merriweather-regular-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/merriweather-regular-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-bold-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-italic-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-light-webfont.woff2 +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.eot +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.woff +0 -0
- data/vendor/assets/fonts/uswds/sourcesanspro-regular-webfont.woff2 +0 -0
- data/vendor/assets/images/uswds/alerts/error.png +0 -0
- data/vendor/assets/images/uswds/alerts/error.svg +17 -0
- data/vendor/assets/images/uswds/alerts/info.png +0 -0
- data/vendor/assets/images/uswds/alerts/info.svg +18 -0
- data/vendor/assets/images/uswds/alerts/success.png +0 -0
- data/vendor/assets/images/uswds/alerts/success.svg +12 -0
- data/vendor/assets/images/uswds/alerts/warning.png +0 -0
- data/vendor/assets/images/uswds/alerts/warning.svg +16 -0
- data/vendor/assets/images/uswds/angle-arrow-down-hover.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-hover.svg +1 -0
- data/vendor/assets/images/uswds/angle-arrow-down-primary-hover.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-primary-hover.svg +1 -0
- data/vendor/assets/images/uswds/angle-arrow-down-primary.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down-primary.svg +1 -0
- data/vendor/assets/images/uswds/angle-arrow-down.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-down.svg +1 -0
- data/vendor/assets/images/uswds/angle-arrow-up-primary-hover.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-up-primary-hover.svg +1 -0
- data/vendor/assets/images/uswds/angle-arrow-up-primary.png +0 -0
- data/vendor/assets/images/uswds/angle-arrow-up-primary.svg +1 -0
- data/vendor/assets/images/uswds/arrow-down.png +0 -0
- data/vendor/assets/images/uswds/arrow-down.svg +1 -0
- data/vendor/assets/images/uswds/arrow-right.png +0 -0
- data/vendor/assets/images/uswds/arrow-right.svg +1 -0
- data/vendor/assets/images/uswds/circle-124.png +0 -0
- data/vendor/assets/images/uswds/close.png +0 -0
- data/vendor/assets/images/uswds/close.svg +1 -0
- data/vendor/assets/images/uswds/correct8.png +0 -0
- data/vendor/assets/images/uswds/correct8.svg +1 -0
- data/vendor/assets/images/uswds/correct9.png +0 -0
- data/vendor/assets/images/uswds/correct9.svg +1 -0
- data/vendor/assets/images/uswds/external-link-alt-hover.png +0 -0
- data/vendor/assets/images/uswds/external-link-alt-hover.svg +1 -0
- data/vendor/assets/images/uswds/external-link-alt.png +0 -0
- data/vendor/assets/images/uswds/external-link-alt.svg +1 -0
- data/vendor/assets/images/uswds/external-link-hover.png +0 -0
- data/vendor/assets/images/uswds/external-link-hover.svg +1 -0
- data/vendor/assets/images/uswds/external-link.png +0 -0
- data/vendor/assets/images/uswds/external-link.svg +1 -0
- data/vendor/assets/images/uswds/favicons/favicon-114.png +0 -0
- data/vendor/assets/images/uswds/favicons/favicon-144.png +0 -0
- data/vendor/assets/images/uswds/favicons/favicon-16.png +0 -0
- data/vendor/assets/images/uswds/favicons/favicon-192.png +0 -0
- data/vendor/assets/images/uswds/favicons/favicon-40.png +0 -0
- data/vendor/assets/images/uswds/favicons/favicon-57.png +0 -0
- data/vendor/assets/images/uswds/favicons/favicon-72.png +0 -0
- data/vendor/assets/images/uswds/favicons/favicon.ico +0 -0
- data/vendor/assets/images/uswds/favicons/favicon.png +0 -0
- data/vendor/assets/images/uswds/hero.png +0 -0
- data/vendor/assets/images/uswds/icon-dot-gov.svg +1 -0
- data/vendor/assets/images/uswds/icon-https.svg +1 -0
- data/vendor/assets/images/uswds/logo-img.png +0 -0
- data/vendor/assets/images/uswds/minus-alt.png +0 -0
- data/vendor/assets/images/uswds/minus-alt.svg +1 -0
- data/vendor/assets/images/uswds/minus.png +0 -0
- data/vendor/assets/images/uswds/minus.svg +1 -0
- data/vendor/assets/images/uswds/plus-alt.png +0 -0
- data/vendor/assets/images/uswds/plus-alt.svg +1 -0
- data/vendor/assets/images/uswds/plus.png +0 -0
- data/vendor/assets/images/uswds/plus.svg +1 -0
- data/vendor/assets/images/uswds/search-alt.png +0 -0
- data/vendor/assets/images/uswds/search-alt.svg +1 -0
- data/vendor/assets/images/uswds/search.png +0 -0
- data/vendor/assets/images/uswds/search.svg +1 -0
- data/vendor/assets/images/uswds/social-icons/png/facebook25.png +0 -0
- data/vendor/assets/images/uswds/social-icons/png/rss25.png +0 -0
- data/vendor/assets/images/uswds/social-icons/png/twitter16.png +0 -0
- data/vendor/assets/images/uswds/social-icons/png/youtube15.png +0 -0
- data/vendor/assets/images/uswds/social-icons/svg/facebook25.svg +1 -0
- data/vendor/assets/images/uswds/social-icons/svg/rss25.svg +1 -0
- data/vendor/assets/images/uswds/social-icons/svg/twitter16.svg +1 -0
- data/vendor/assets/images/uswds/social-icons/svg/youtube15.svg +1 -0
- data/vendor/assets/images/uswds/us_flag_small.png +0 -0
- data/vendor/assets/javascripts/uswds/uswds.js +1739 -0
- data/vendor/assets/stylesheets/uswds/components/_accordions.scss +150 -0
- data/vendor/assets/stylesheets/uswds/components/_alerts.scss +85 -0
- data/vendor/assets/stylesheets/uswds/components/_banner.scss +204 -0
- data/vendor/assets/stylesheets/uswds/components/_footer.scss +382 -0
- data/vendor/assets/stylesheets/uswds/components/_forms.scss +164 -0
- data/vendor/assets/stylesheets/uswds/components/_graphic-list.scss +35 -0
- data/vendor/assets/stylesheets/uswds/components/_header.scss +221 -0
- data/vendor/assets/stylesheets/uswds/components/_hero.scss +43 -0
- data/vendor/assets/stylesheets/uswds/components/_layout.scss +36 -0
- data/vendor/assets/stylesheets/uswds/components/_media-block.scss +12 -0
- data/vendor/assets/stylesheets/uswds/components/_navigation.scss +446 -0
- data/vendor/assets/stylesheets/uswds/components/_search.scss +106 -0
- data/vendor/assets/stylesheets/uswds/components/_section.scss +37 -0
- data/vendor/assets/stylesheets/uswds/components/_sidenav.scss +8 -0
- data/vendor/assets/stylesheets/uswds/components/_skipnav.scss +19 -0
- data/vendor/assets/stylesheets/uswds/core/_base.scss +30 -0
- data/vendor/assets/stylesheets/uswds/core/_fonts.scss +65 -0
- data/vendor/assets/stylesheets/uswds/core/_grid.scss +154 -0
- data/vendor/assets/stylesheets/uswds/core/_utilities.scss +232 -0
- data/vendor/assets/stylesheets/uswds/core/_variables.scss +123 -0
- data/vendor/assets/stylesheets/uswds/elements/_buttons.scss +191 -0
- data/vendor/assets/stylesheets/uswds/elements/_embed.scss +26 -0
- data/vendor/assets/stylesheets/uswds/elements/_figure.scss +13 -0
- data/vendor/assets/stylesheets/uswds/elements/_inputs.scss +346 -0
- data/vendor/assets/stylesheets/uswds/elements/_labels.scss +20 -0
- data/vendor/assets/stylesheets/uswds/elements/_list.scss +32 -0
- data/vendor/assets/stylesheets/uswds/elements/_table.scss +47 -0
- data/vendor/assets/stylesheets/uswds/elements/_typography.scss +257 -0
- data/vendor/assets/stylesheets/uswds/uswds.scss +41 -0
- metadata +394 -0
@@ -0,0 +1,150 @@
|
|
1
|
+
// Variables
|
2
|
+
|
3
|
+
$accordion-border: 3px solid $color-gray-lightest;
|
4
|
+
|
5
|
+
// Accordion Styles
|
6
|
+
|
7
|
+
@mixin accordion-list-styles {
|
8
|
+
@include unstyled-list;
|
9
|
+
color: $color-base;
|
10
|
+
margin: 0;
|
11
|
+
padding: 0;
|
12
|
+
width: 100%;
|
13
|
+
}
|
14
|
+
|
15
|
+
@mixin accordion-list-item-styles {
|
16
|
+
background-color: $color-gray-lightest;
|
17
|
+
font-family: $font-sans;
|
18
|
+
list-style: none;
|
19
|
+
margin-bottom: 6px;
|
20
|
+
width: 100%;
|
21
|
+
}
|
22
|
+
|
23
|
+
// scss-lint:disable PropertyCount
|
24
|
+
@mixin accordion-button-styles {
|
25
|
+
@include button-unstyled;
|
26
|
+
background-color: $color-gray-lightest;
|
27
|
+
background-image: url('#{$image-path}/minus.png');
|
28
|
+
background-image: url('#{$image-path}/minus.svg');
|
29
|
+
background-position: right 3rem center;
|
30
|
+
background-repeat: no-repeat;
|
31
|
+
background-size: 13px;
|
32
|
+
color: $color-base;
|
33
|
+
cursor: pointer;
|
34
|
+
display: inline-block;
|
35
|
+
font-family: $font-sans;
|
36
|
+
font-weight: $font-bold;
|
37
|
+
margin: 0;
|
38
|
+
padding: 1.5rem 5.5rem 1.5rem 3rem;
|
39
|
+
width: 100%;
|
40
|
+
|
41
|
+
&:focus {
|
42
|
+
box-shadow: $focus-shadow;
|
43
|
+
}
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
background-color: $color-gray-lighter;
|
47
|
+
color: $color-base;
|
48
|
+
}
|
49
|
+
|
50
|
+
h1,
|
51
|
+
h2,
|
52
|
+
h3,
|
53
|
+
h4,
|
54
|
+
h5,
|
55
|
+
h6 {
|
56
|
+
margin: 0;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
// scss-lint:enable PropertyCount
|
60
|
+
|
61
|
+
@mixin accordion-button-unopened-styles {
|
62
|
+
background-image: url('#{$image-path}/plus.png');
|
63
|
+
background-image: url('#{$image-path}/plus.svg');
|
64
|
+
background-repeat: no-repeat;
|
65
|
+
background-size: 1.3rem;
|
66
|
+
}
|
67
|
+
|
68
|
+
@mixin accordion-nested-list {
|
69
|
+
> ul li ul {
|
70
|
+
list-style: disc;
|
71
|
+
> li > ul {
|
72
|
+
list-style: circle;
|
73
|
+
> li > ul {
|
74
|
+
list-style: square;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.usa-accordion,
|
81
|
+
.usa-accordion-bordered {
|
82
|
+
@include accordion-list-styles;
|
83
|
+
@include accordion-nested-list;
|
84
|
+
|
85
|
+
+ .usa-accordion,
|
86
|
+
+ .usa-accordion-bordered {
|
87
|
+
margin-top: 1rem;
|
88
|
+
}
|
89
|
+
|
90
|
+
// TODO deprecated ruleset based on old accordion.
|
91
|
+
> ul {
|
92
|
+
@include accordion-list-styles;
|
93
|
+
|
94
|
+
// TODO deprecated ruleset based on old accordion.
|
95
|
+
> li {
|
96
|
+
@include accordion-list-item-styles;
|
97
|
+
}
|
98
|
+
|
99
|
+
// TODO deprecated ruleset based on old accordion.
|
100
|
+
button {
|
101
|
+
@include accordion-button-styles;
|
102
|
+
}
|
103
|
+
|
104
|
+
// TODO deprecated ruleset based on old accordion.
|
105
|
+
[aria-expanded=false] {
|
106
|
+
@include accordion-button-unopened-styles;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
> li {
|
111
|
+
@include accordion-list-item-styles;
|
112
|
+
}
|
113
|
+
|
114
|
+
}
|
115
|
+
|
116
|
+
.usa-accordion-bordered {
|
117
|
+
.usa-accordion-content {
|
118
|
+
border-bottom: $accordion-border;
|
119
|
+
border-left: $accordion-border;
|
120
|
+
border-right: $accordion-border;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
.usa-accordion-content {
|
125
|
+
background-color: $color-white;
|
126
|
+
overflow: auto;
|
127
|
+
padding: 3rem;
|
128
|
+
|
129
|
+
> *:first-child {
|
130
|
+
margin-top: 0;
|
131
|
+
}
|
132
|
+
|
133
|
+
> *:last-child {
|
134
|
+
margin-bottom: 0;
|
135
|
+
}
|
136
|
+
|
137
|
+
&:not([aria-hidden]) {
|
138
|
+
@include sr-only();
|
139
|
+
}
|
140
|
+
|
141
|
+
@include accessibly-hidden();
|
142
|
+
}
|
143
|
+
|
144
|
+
.usa-accordion-button {
|
145
|
+
@include accordion-button-styles;
|
146
|
+
}
|
147
|
+
|
148
|
+
.usa-accordion-button[aria-expanded=false] {
|
149
|
+
@include accordion-button-unopened-styles;
|
150
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
// Alert variables ---------- //
|
2
|
+
$usa-custom-alerts: () !default;
|
3
|
+
|
4
|
+
$usa-alerts: (
|
5
|
+
success: $color-green-lightest,
|
6
|
+
warning: $color-gold-lightest,
|
7
|
+
error: $color-secondary-lightest,
|
8
|
+
info: $color-primary-alt-lightest
|
9
|
+
);
|
10
|
+
|
11
|
+
$alerts: map-merge($usa-alerts, $usa-custom-alerts);
|
12
|
+
|
13
|
+
.usa-alert {
|
14
|
+
background-color: $color-gray-lightest;
|
15
|
+
background-position: 1rem 2rem;
|
16
|
+
background-repeat: no-repeat;
|
17
|
+
background-size: 4rem;
|
18
|
+
margin-top: 1.5em;
|
19
|
+
padding: 1em;
|
20
|
+
|
21
|
+
@include media($medium-screen) {
|
22
|
+
background-size: 5.2rem;
|
23
|
+
}
|
24
|
+
|
25
|
+
ul {
|
26
|
+
margin-bottom: 0;
|
27
|
+
margin-top: 1em;
|
28
|
+
padding-left: 1em;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.usa-alert-icon {
|
33
|
+
display: table-cell;
|
34
|
+
padding-right: 1rem;
|
35
|
+
}
|
36
|
+
|
37
|
+
.usa-alert-body {
|
38
|
+
display: table-cell;
|
39
|
+
padding-left: 3.5rem;
|
40
|
+
vertical-align: top;
|
41
|
+
|
42
|
+
@include media($medium-screen) {
|
43
|
+
padding-left: 5rem;
|
44
|
+
}
|
45
|
+
|
46
|
+
p:first-child {
|
47
|
+
margin-top: 0.8rem;
|
48
|
+
}
|
49
|
+
|
50
|
+
p:last-child {
|
51
|
+
margin-bottom: 0.8rem;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.usa-alert-heading {
|
56
|
+
margin-bottom: .3rem;
|
57
|
+
margin-top: 0;
|
58
|
+
|
59
|
+
@include media($medium-screen) {
|
60
|
+
margin-top: .3rem;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.usa-alert-text {
|
65
|
+
font-family: $font-sans;
|
66
|
+
margin-bottom: 0;
|
67
|
+
margin-top: 0;
|
68
|
+
}
|
69
|
+
|
70
|
+
@each $name, $bgcolor in $alerts {
|
71
|
+
.usa-alert-#{$name} {
|
72
|
+
background-color: $bgcolor;
|
73
|
+
background-image: url('#{$image-path}/alerts/#{$name}.png');
|
74
|
+
background-image: url('#{$image-path}/alerts/#{$name}.svg');
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.usa-alert-no_icon {
|
79
|
+
background-image: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
.usa-alert-paragraph {
|
83
|
+
width: $text-max-width;
|
84
|
+
padding: 1em 3em 1em 1em;
|
85
|
+
}
|
@@ -0,0 +1,204 @@
|
|
1
|
+
.usa-banner {
|
2
|
+
background-color: $color-gray-lightest;
|
3
|
+
padding-bottom: 0.7rem;
|
4
|
+
|
5
|
+
@include media($small-screen) {
|
6
|
+
font-size: $h6-font-size;
|
7
|
+
padding-bottom: 0;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.usa-banner-content {
|
12
|
+
@include padding(null $site-margins-mobile 3px $site-margins-mobile);
|
13
|
+
background-color: transparent;
|
14
|
+
font-size: $h5-font-size;
|
15
|
+
padding-top: 2rem;
|
16
|
+
width: 100%;
|
17
|
+
|
18
|
+
@include media($medium-screen) {
|
19
|
+
padding-bottom: 2.3rem;
|
20
|
+
padding-top: 4rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
@include media($nav-width) {
|
24
|
+
@include padding(null $site-margins);
|
25
|
+
}
|
26
|
+
|
27
|
+
p {
|
28
|
+
&:first-child {
|
29
|
+
margin-top: 1rem;
|
30
|
+
|
31
|
+
@include media($medium-screen) {
|
32
|
+
margin-top: 0;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.usa-banner-inner {
|
39
|
+
@include outer-container();
|
40
|
+
@include padding(null $site-margins-mobile);
|
41
|
+
max-width: $site-max-width;
|
42
|
+
|
43
|
+
@include media($nav-width) {
|
44
|
+
@include padding(null $site-margins);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.usa-banner-header {
|
49
|
+
@include padding(0.55rem null);
|
50
|
+
font-size: 1.2rem;
|
51
|
+
font-weight: $font-normal;
|
52
|
+
|
53
|
+
@include media($small-screen) {
|
54
|
+
@include padding(0 null);
|
55
|
+
}
|
56
|
+
|
57
|
+
p {
|
58
|
+
@include margin(0 null);
|
59
|
+
display: inline;
|
60
|
+
overflow: hidden;
|
61
|
+
vertical-align: middle;
|
62
|
+
|
63
|
+
@include media($small-screen) {
|
64
|
+
@include margin(2px null);
|
65
|
+
display: inline-block;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
img {
|
70
|
+
float: left;
|
71
|
+
margin-right: 1rem;
|
72
|
+
margin-top: 1px;
|
73
|
+
width: 2.4rem;
|
74
|
+
|
75
|
+
@include media($small-screen) {
|
76
|
+
margin-right: 0.7rem;
|
77
|
+
width: 2rem;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
.usa-banner-header-expanded {
|
83
|
+
align-items: center;
|
84
|
+
border-bottom: 1px solid $color-gray-light;
|
85
|
+
display: flex;
|
86
|
+
font-size: $h5-font-size;
|
87
|
+
min-height: 5.6rem;
|
88
|
+
padding-right: 3rem;
|
89
|
+
|
90
|
+
@include media($small-screen) {
|
91
|
+
border-bottom: none;
|
92
|
+
display: block;
|
93
|
+
font-size: 1.2rem;
|
94
|
+
font-weight: $font-normal;
|
95
|
+
min-height: 0;
|
96
|
+
padding-right: 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
> .usa-banner-inner {
|
100
|
+
margin-left: 0;
|
101
|
+
|
102
|
+
@include media($small-screen) {
|
103
|
+
margin-left: auto;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
img {
|
108
|
+
margin-right: 2.4rem;
|
109
|
+
|
110
|
+
@include media($small-screen) {
|
111
|
+
margin-right: 0.7rem;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
p {
|
116
|
+
line-height: $heading-line-height;
|
117
|
+
vertical-align: top;
|
118
|
+
|
119
|
+
@include media($small-screen) {
|
120
|
+
line-height: $base-line-height;
|
121
|
+
vertical-align: middle;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
.usa-banner-button {
|
127
|
+
@include button-unstyled;
|
128
|
+
@include padding(1.3rem null null 4.8rem);
|
129
|
+
background-position-x: right;
|
130
|
+
color: $color-primary;
|
131
|
+
display: block;
|
132
|
+
font-size: 1.2rem;
|
133
|
+
height: 4.3rem;
|
134
|
+
left: 0;
|
135
|
+
position: absolute;
|
136
|
+
text-decoration: underline;
|
137
|
+
top: 0;
|
138
|
+
width: 100%;
|
139
|
+
|
140
|
+
@include media($small-screen) {
|
141
|
+
@include padding(0 null null 0);
|
142
|
+
/* stylelint-disable declaration-block-no-ignored-properties */
|
143
|
+
display: inline;
|
144
|
+
height: initial;
|
145
|
+
margin-left: 3px;
|
146
|
+
position: relative;
|
147
|
+
vertical-align: middle;
|
148
|
+
width: initial;
|
149
|
+
/* stylelint-enable */
|
150
|
+
}
|
151
|
+
|
152
|
+
&:hover {
|
153
|
+
color: $color-primary-darker;
|
154
|
+
text-decoration: underline;
|
155
|
+
}
|
156
|
+
|
157
|
+
&[aria-expanded=false] {
|
158
|
+
@include display-icon(angle-arrow-down-primary, after, 1rem, 0, hover);
|
159
|
+
background-image: none;
|
160
|
+
|
161
|
+
&::after {
|
162
|
+
background-position-y: 1px;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
&[aria-expanded=true] {
|
167
|
+
@include display-icon(close, after, 1.3rem, 0, no-hover);
|
168
|
+
background-image: none;
|
169
|
+
height: 5.6rem;
|
170
|
+
|
171
|
+
@include media($small-screen) {
|
172
|
+
@include display-icon(angle-arrow-up-primary, after, 1rem, 0, hover);
|
173
|
+
height: initial;
|
174
|
+
padding: 0;
|
175
|
+
position: relative;
|
176
|
+
|
177
|
+
&::after {
|
178
|
+
background-position-y: 1px;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
&::after {
|
183
|
+
position: absolute;
|
184
|
+
right: 1.5rem;
|
185
|
+
top: 2.15rem;
|
186
|
+
|
187
|
+
@include media($small-screen) {
|
188
|
+
position: static;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
.usa-banner-button-text {
|
193
|
+
display: none;
|
194
|
+
|
195
|
+
@include media($small-screen) {
|
196
|
+
display: inline;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
.usa-banner-icon {
|
203
|
+
width: 3.8rem;
|
204
|
+
}
|
@@ -0,0 +1,382 @@
|
|
1
|
+
.usa-footer {
|
2
|
+
.usa-unstyled-list {
|
3
|
+
display: block;
|
4
|
+
}
|
5
|
+
|
6
|
+
.usa-footer-primary-link {
|
7
|
+
color: $color-base;
|
8
|
+
display: block;
|
9
|
+
font-weight: $font-bold;
|
10
|
+
margin-top: 0;
|
11
|
+
padding-bottom: 2rem;
|
12
|
+
padding-top: 2rem;
|
13
|
+
text-decoration: none;
|
14
|
+
|
15
|
+
@include media($medium-screen) {
|
16
|
+
border-top: none;
|
17
|
+
}
|
18
|
+
|
19
|
+
&:hover {
|
20
|
+
text-decoration: underline;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
a {
|
25
|
+
font-weight: normal;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.usa-footer-return-to-top {
|
30
|
+
padding-bottom: 2rem;
|
31
|
+
padding-top: 2rem;
|
32
|
+
}
|
33
|
+
|
34
|
+
.usa-footer-primary-section {
|
35
|
+
background-color: $color-gray-lightest;
|
36
|
+
|
37
|
+
.usa-footer-primary-content {
|
38
|
+
padding-left: 2.5rem;
|
39
|
+
padding-right: 2.5rem;
|
40
|
+
|
41
|
+
@include media($medium-screen) {
|
42
|
+
padding-left: 0;
|
43
|
+
padding-right: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
li {
|
47
|
+
margin-left: 1rem;
|
48
|
+
|
49
|
+
@include media($medium-screen) {
|
50
|
+
margin-left: 0;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.usa-grid-full {
|
56
|
+
@include media($medium-screen) {
|
57
|
+
padding-left: 2.5rem;
|
58
|
+
padding-right: 2.5rem;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.usa-footer-medium {
|
64
|
+
.usa-footer-primary-section {
|
65
|
+
padding: 0;
|
66
|
+
|
67
|
+
@include media($medium-screen) {
|
68
|
+
padding-bottom: 1rem;
|
69
|
+
padding-top: 1rem;
|
70
|
+
}
|
71
|
+
|
72
|
+
.usa-footer-primary-content {
|
73
|
+
@include media($large-screen) {
|
74
|
+
margin-right: 6%;
|
75
|
+
width: inherit;
|
76
|
+
}
|
77
|
+
|
78
|
+
&:last-child {
|
79
|
+
@include media($large-screen) {
|
80
|
+
margin-right: 0;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.usa-footer-nav ul {
|
87
|
+
@include media($medium-screen) {
|
88
|
+
align-items: center;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.usa-footer-slim {
|
94
|
+
.usa-footer-nav {
|
95
|
+
a {
|
96
|
+
display: block;
|
97
|
+
}
|
98
|
+
|
99
|
+
.usa-footer-primary-content {
|
100
|
+
@include media($large-screen) {
|
101
|
+
margin-right: 9%;
|
102
|
+
width: inherit;
|
103
|
+
}
|
104
|
+
|
105
|
+
&:last-child {
|
106
|
+
@include media($large-screen) {
|
107
|
+
margin-right: 0;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
.usa-footer-primary-section {
|
114
|
+
padding-bottom: 2rem;
|
115
|
+
|
116
|
+
@include media($medium-screen) {
|
117
|
+
padding-bottom: 1rem;
|
118
|
+
padding-top: 1rem;
|
119
|
+
|
120
|
+
.usa-grid-full {
|
121
|
+
align-items: center;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
.usa-footer-contact_info {
|
127
|
+
> * {
|
128
|
+
@include media($medium-screen) {
|
129
|
+
margin: 0;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
@include media($medium-screen) {
|
134
|
+
@include padding (2rem null);
|
135
|
+
}
|
136
|
+
|
137
|
+
@include media($medium-screen) {
|
138
|
+
width: 100%;
|
139
|
+
}
|
140
|
+
|
141
|
+
@include media($large-screen) {
|
142
|
+
@include span-columns(6);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
/* stylelint-disable selector-no-qualifying-type */
|
148
|
+
ul.usa-footer-primary-content,
|
149
|
+
li.usa-footer-primary-content,
|
150
|
+
li.usa-footer-primary-content {
|
151
|
+
border-top: 1px solid $color-base;
|
152
|
+
|
153
|
+
@include media($medium-screen) {
|
154
|
+
border: none;
|
155
|
+
}
|
156
|
+
|
157
|
+
&:last-child {
|
158
|
+
border-bottom: 1px solid $color-base;
|
159
|
+
|
160
|
+
@include media($medium-screen) {
|
161
|
+
border-bottom: none;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
/* stylelint-enable */
|
166
|
+
|
167
|
+
.usa-sign_up-block {
|
168
|
+
padding-bottom: 2rem;
|
169
|
+
padding-left: 2.5rem;
|
170
|
+
padding-right: 2.5rem;
|
171
|
+
|
172
|
+
@include media($medium-screen) {
|
173
|
+
float: right;
|
174
|
+
padding: 0;
|
175
|
+
}
|
176
|
+
|
177
|
+
label:first-of-type {
|
178
|
+
margin-top: 0;
|
179
|
+
}
|
180
|
+
|
181
|
+
button {
|
182
|
+
float: none;
|
183
|
+
margin-right: 0;
|
184
|
+
margin-top: 1.5rem;
|
185
|
+
}
|
186
|
+
|
187
|
+
input {
|
188
|
+
width: 100%;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
.usa-footer-secondary_section {
|
193
|
+
background-color: $color-gray-lighter;
|
194
|
+
padding-bottom: 3rem;
|
195
|
+
padding-top: 3rem;
|
196
|
+
|
197
|
+
a {
|
198
|
+
color: $color-base;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
.usa-footer-big-secondary-section {
|
203
|
+
@include media($medium-screen) {
|
204
|
+
padding-top: 5rem;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
.usa-footer-contact-links {
|
209
|
+
@include media($medium-screen) {
|
210
|
+
text-align: right;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
.usa-social-links {
|
215
|
+
a {
|
216
|
+
text-decoration: none;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
.usa-footer-big {
|
221
|
+
.usa-footer-primary-section {
|
222
|
+
@include media($medium-screen) {
|
223
|
+
padding-bottom: 4rem;
|
224
|
+
padding-top: 3rem;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
ul {
|
229
|
+
padding-bottom: 2.5rem;
|
230
|
+
|
231
|
+
@include media($medium-screen) {
|
232
|
+
padding-bottom: 0;
|
233
|
+
}
|
234
|
+
|
235
|
+
&:last-child {
|
236
|
+
border-bottom: 1px solid $color-base;
|
237
|
+
|
238
|
+
@include media($medium-screen) {
|
239
|
+
border-bottom: none;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
li {
|
244
|
+
line-height: 2em;
|
245
|
+
}
|
246
|
+
|
247
|
+
.usa-footer-primary-link {
|
248
|
+
background-image: url('#{$image-path}/arrow-down.png');
|
249
|
+
background-image: url('#{$image-path}/arrow-down.svg');
|
250
|
+
background-position: 1.5rem center;
|
251
|
+
background-repeat: no-repeat;
|
252
|
+
background-size: 1.3rem;
|
253
|
+
margin-left: 0;
|
254
|
+
padding-left: 3.5rem;
|
255
|
+
|
256
|
+
@include media($medium-screen) {
|
257
|
+
background: none;
|
258
|
+
margin-bottom: .8rem;
|
259
|
+
padding-bottom: 0;
|
260
|
+
padding-left: 0;
|
261
|
+
}
|
262
|
+
|
263
|
+
> * {
|
264
|
+
@include margin(0 null);
|
265
|
+
}
|
266
|
+
}
|
267
|
+
|
268
|
+
&.hidden { /* stylelint-disable-line selector-no-qualifying-type */
|
269
|
+
padding-bottom: 0;
|
270
|
+
|
271
|
+
li {
|
272
|
+
display: none;
|
273
|
+
}
|
274
|
+
|
275
|
+
.usa-footer-primary-link { /* stylelint-disable-line selector-no-qualifying-type */
|
276
|
+
background-image: url('#{$image-path}/arrow-right.png');
|
277
|
+
background-image: url('#{$image-path}/arrow-right.svg');
|
278
|
+
cursor: pointer;
|
279
|
+
display: block;
|
280
|
+
|
281
|
+
@include media($medium-screen) {
|
282
|
+
background: none;
|
283
|
+
padding-left: 0;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
287
|
+
}
|
288
|
+
}
|
289
|
+
|
290
|
+
.usa-footer-topic {
|
291
|
+
margin: 0;
|
292
|
+
padding: 2rem 0;
|
293
|
+
}
|
294
|
+
|
295
|
+
.usa-sign_up-header {
|
296
|
+
@include media($medium-screen) {
|
297
|
+
margin: 0;
|
298
|
+
padding: 2rem 0;
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
.usa-footer-logo-img {
|
303
|
+
max-width: 14rem;
|
304
|
+
}
|
305
|
+
|
306
|
+
.usa-footer-slim-logo-img {
|
307
|
+
float: left;
|
308
|
+
max-width: 10rem;
|
309
|
+
}
|
310
|
+
|
311
|
+
.usa-footer-logo-heading {
|
312
|
+
margin-top: 2rem;
|
313
|
+
}
|
314
|
+
|
315
|
+
.usa-footer-contact-heading {
|
316
|
+
margin-top: 0;
|
317
|
+
|
318
|
+
@include media($medium-screen) {
|
319
|
+
margin-top: 1rem;
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
.usa-footer-slim-logo-heading {
|
324
|
+
display: block;
|
325
|
+
padding-top: 1rem;
|
326
|
+
|
327
|
+
@include media($medium-screen) {
|
328
|
+
display: inline-block;
|
329
|
+
padding-left: 1em;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
.usa-social_link {
|
334
|
+
$background-height: 3rem; // Height of icon within hit area.
|
335
|
+
// Link hit target is 44 x 44 pixels following
|
336
|
+
// Apple iOS Human Interface Guidelines.
|
337
|
+
$hit-area: 4.4rem;
|
338
|
+
|
339
|
+
@include margin(2.5rem 1rem 1.5rem 0);
|
340
|
+
background-position: center center;
|
341
|
+
background-repeat: no-repeat;
|
342
|
+
background-size: auto $background-height;
|
343
|
+
display: inline-block;
|
344
|
+
height: $hit-area;
|
345
|
+
left: -1.6rem; // relative left positioning
|
346
|
+
position: relative;
|
347
|
+
text-align: center;
|
348
|
+
width: $hit-area;
|
349
|
+
|
350
|
+
@include media($medium-screen) {
|
351
|
+
@include margin(0 0 0 1rem);
|
352
|
+
left: 1.2rem;
|
353
|
+
}
|
354
|
+
|
355
|
+
span {
|
356
|
+
@include sr-only();
|
357
|
+
}
|
358
|
+
}
|
359
|
+
|
360
|
+
.usa-link-facebook {
|
361
|
+
@extend .usa-social_link;
|
362
|
+
background-image: url('#{$image-path}/social-icons/png/facebook25.png');
|
363
|
+
background-image: url('#{$image-path}/social-icons/svg/facebook25.svg');
|
364
|
+
}
|
365
|
+
|
366
|
+
.usa-link-twitter {
|
367
|
+
@extend .usa-social_link;
|
368
|
+
background-image: url('#{$image-path}/social-icons/png/twitter16.png');
|
369
|
+
background-image: url('#{$image-path}/social-icons/svg/twitter16.svg');
|
370
|
+
}
|
371
|
+
|
372
|
+
.usa-link-youtube {
|
373
|
+
@extend .usa-social_link;
|
374
|
+
background-image: url('#{$image-path}/social-icons/png/youtube15.png');
|
375
|
+
background-image: url('#{$image-path}/social-icons/svg/youtube15.svg');
|
376
|
+
}
|
377
|
+
|
378
|
+
.usa-link-rss {
|
379
|
+
@extend .usa-social_link;
|
380
|
+
background-image: url('#{$image-path}/social-icons/png/rss25.png');
|
381
|
+
background-image: url('#{$image-path}/social-icons/svg/rss25.svg');
|
382
|
+
}
|