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,106 @@
|
|
1
|
+
$usa-btn-small-width: 4.5rem;
|
2
|
+
$usa-btn-medium-width: 8.5rem;
|
3
|
+
$usa-btn-big-width: 11.6rem;
|
4
|
+
|
5
|
+
@mixin search-icon {
|
6
|
+
background-image: asset-url('#{$image-path}/search.png');
|
7
|
+
background-image: asset-url('#{$image-path}/search.svg');
|
8
|
+
background-position: 50%;
|
9
|
+
background-repeat: no-repeat;
|
10
|
+
}
|
11
|
+
|
12
|
+
.usa-search {
|
13
|
+
@include clearfix;
|
14
|
+
max-width: none;
|
15
|
+
position: relative;
|
16
|
+
|
17
|
+
[type=search],
|
18
|
+
.usa-search-input {
|
19
|
+
@include padding(0 null);
|
20
|
+
-webkit-appearance: none;
|
21
|
+
border-bottom-right-radius: 0;
|
22
|
+
border-right: none;
|
23
|
+
border-top-right-radius: 0;
|
24
|
+
box-sizing: border-box;
|
25
|
+
float: left;
|
26
|
+
font-size: $small-font-size;
|
27
|
+
height: 3.3rem;
|
28
|
+
margin: 0;
|
29
|
+
width: calc(100% - #{$usa-btn-small-width});
|
30
|
+
|
31
|
+
@include media($small-screen) {
|
32
|
+
width: calc(100% - #{$usa-btn-medium-width});
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
[type=submit],
|
37
|
+
.usa-search-submit {
|
38
|
+
@include search-icon;
|
39
|
+
border-bottom-left-radius: 0;
|
40
|
+
border-top-left-radius: 0;
|
41
|
+
height: 3.3rem;
|
42
|
+
margin: 0;
|
43
|
+
padding: 0;
|
44
|
+
width: $usa-btn-small-width;
|
45
|
+
|
46
|
+
@include media($small-screen) {
|
47
|
+
background-image: none;
|
48
|
+
width: $usa-btn-medium-width;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.usa-search-submit-text {
|
53
|
+
display: none;
|
54
|
+
|
55
|
+
@include media($small-screen) {
|
56
|
+
display: block;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
&.usa-search-big {
|
61
|
+
@include media($small-screen) {
|
62
|
+
$height: 4.4rem;
|
63
|
+
$width: $usa-btn-big-width;
|
64
|
+
|
65
|
+
[type=search],
|
66
|
+
.usa-search-input {
|
67
|
+
font-size: $base-font-size;
|
68
|
+
height: $height;
|
69
|
+
width: calc(100% - #{$width});
|
70
|
+
}
|
71
|
+
|
72
|
+
[type=submit],
|
73
|
+
.usa-search-submit {
|
74
|
+
font-size: $h3-font-size;
|
75
|
+
height: $height;
|
76
|
+
width: $width;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
&.usa-search-small {
|
82
|
+
@include media($small-screen) {
|
83
|
+
$width: $usa-btn-small-width;
|
84
|
+
|
85
|
+
[type=search],
|
86
|
+
.usa-search-input {
|
87
|
+
width: calc(100% - #{$width});
|
88
|
+
}
|
89
|
+
|
90
|
+
[type=submit],
|
91
|
+
.usa-search-submit {
|
92
|
+
@include search-icon;
|
93
|
+
width: $width;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
$lt-nav-width: $nav-width - 1px;
|
98
|
+
|
99
|
+
@media screen and (max-width: $lt-nav-width) {
|
100
|
+
&.usa-sr-only {
|
101
|
+
left: auto;
|
102
|
+
position: relative;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
@@ -0,0 +1,232 @@
|
|
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-family: $font-sans;
|
34
|
+
font-size: $h6-font-size;
|
35
|
+
font-weight: $font-normal;
|
36
|
+
text-transform: uppercase;
|
37
|
+
}
|
38
|
+
|
39
|
+
// Mobile-first media query helper
|
40
|
+
@mixin media($bp) {
|
41
|
+
@media screen and (min-width: #{$bp}) {
|
42
|
+
@content;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
// Screen reader only helper
|
47
|
+
@mixin sr-only() {
|
48
|
+
position: absolute;
|
49
|
+
left: -999em;
|
50
|
+
}
|
51
|
+
|
52
|
+
.usa-sr-only {
|
53
|
+
@include sr-only();
|
54
|
+
}
|
55
|
+
|
56
|
+
// Aria hidden helper
|
57
|
+
@mixin accessibly-hidden() {
|
58
|
+
&[aria-hidden=true] {
|
59
|
+
display: none;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// Unstyled list helper
|
64
|
+
@mixin unstyled-list() {
|
65
|
+
@include margin(0 null);
|
66
|
+
list-style-type: none;
|
67
|
+
padding-left: 0;
|
68
|
+
|
69
|
+
> li {
|
70
|
+
margin-bottom: 0;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
// Font smoothing mixin
|
75
|
+
// Only use for light text on dark background
|
76
|
+
// TODO: Remove after adding PostCSS
|
77
|
+
@mixin font-smoothing {
|
78
|
+
-moz-osx-font-smoothing: grayscale;
|
79
|
+
-webkit-font-smoothing: antialiased;
|
80
|
+
}
|
81
|
+
|
82
|
+
// Content size helpers
|
83
|
+
@mixin allow-layout-classes {
|
84
|
+
@include margin(null auto);
|
85
|
+
|
86
|
+
&.width-one-half {
|
87
|
+
@include media($medium-screen) {
|
88
|
+
width: 50%;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
&.width-one-third {
|
93
|
+
@include media($medium-screen) {
|
94
|
+
width: 33%;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
&.width-two-thirds {
|
99
|
+
@include media($medium-screen) {
|
100
|
+
width: 67%;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
&.width-one-fourth {
|
105
|
+
@include media($medium-screen) {
|
106
|
+
width: 25%;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
&.width-three-fourths {
|
111
|
+
@include media($medium-screen) {
|
112
|
+
width: 75%;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
&.align-left {
|
117
|
+
@include media($medium-screen) {
|
118
|
+
float: left;
|
119
|
+
margin-right: 2em;
|
120
|
+
margin-top: 0.5em;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
&.align-right {
|
125
|
+
@include media($medium-screen) {
|
126
|
+
float: right;
|
127
|
+
margin-left: 2em;
|
128
|
+
margin-top: 0.5em;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
@mixin display-icon($icon, $direction, $size, $margin, $hover) {
|
134
|
+
&::#{$direction} {
|
135
|
+
background-image: asset-url('#{$image-path}/#{$icon}.png');
|
136
|
+
background-image: asset-url('#{$image-path}/#{$icon}.svg');
|
137
|
+
background-size: 100%;
|
138
|
+
content: '';
|
139
|
+
display: inline-block;
|
140
|
+
height: $size;
|
141
|
+
width: $size;
|
142
|
+
|
143
|
+
/* stylelint-disable block-closing-brace-newline-after, at-rule-empty-line-before */
|
144
|
+
@if $direction == 'after' {
|
145
|
+
margin-left: $margin;
|
146
|
+
} @else {
|
147
|
+
margin-right: $margin;
|
148
|
+
}
|
149
|
+
/* stylelint-enable */
|
150
|
+
}
|
151
|
+
|
152
|
+
@if $hover == 'hover' {
|
153
|
+
&:hover::#{$direction} {
|
154
|
+
background-image: asset-url('#{$image-path}/#{$icon}-hover.png');
|
155
|
+
background-image: asset-url('#{$image-path}/#{$icon}-hover.svg');
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
@mixin usa-sidenav-list {
|
161
|
+
@include unstyled-list();
|
162
|
+
|
163
|
+
> li {
|
164
|
+
background-color: transparent;
|
165
|
+
border-top: 1px solid $color-gray;
|
166
|
+
font-size: $h4-font-size;
|
167
|
+
|
168
|
+
&:first-child {
|
169
|
+
border-top: none;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
a {
|
174
|
+
border: none;
|
175
|
+
color: $color-base;
|
176
|
+
display: block;
|
177
|
+
font-family: $font-sans;
|
178
|
+
line-height: 1.3;
|
179
|
+
padding: 0.85rem 1rem 0.85rem 1.8rem;
|
180
|
+
text-decoration: none;
|
181
|
+
|
182
|
+
&:hover {
|
183
|
+
background-color: $color-gray-lightest;
|
184
|
+
color: $color-primary;
|
185
|
+
text-decoration: none;
|
186
|
+
}
|
187
|
+
|
188
|
+
&:focus {
|
189
|
+
position: relative;
|
190
|
+
z-index: 1;
|
191
|
+
}
|
192
|
+
|
193
|
+
&.usa-current { /* stylelint-disable-line selector-no-qualifying-type */
|
194
|
+
border-left: 4px solid $color-primary;
|
195
|
+
color: $color-primary;
|
196
|
+
font-weight: $font-bold;
|
197
|
+
padding-left: 1.4rem;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
@mixin usa-sidenav-sublist {
|
203
|
+
@include unstyled-list();
|
204
|
+
margin: 0;
|
205
|
+
width: 100%;
|
206
|
+
|
207
|
+
li {
|
208
|
+
border: none;
|
209
|
+
font-size: $h5-font-size;
|
210
|
+
}
|
211
|
+
|
212
|
+
a {
|
213
|
+
padding-left: 2.8rem;
|
214
|
+
line-height: $heading-line-height;
|
215
|
+
|
216
|
+
&:hover,
|
217
|
+
&.usa-current { /* stylelint-disable-line selector-no-qualifying-type */
|
218
|
+
border: none;
|
219
|
+
padding-left: 2.8rem;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
.usa-sidenav-sub_list {
|
224
|
+
a {
|
225
|
+
padding-left: 3.8rem;
|
226
|
+
|
227
|
+
&:hover {
|
228
|
+
padding-left: 3.8rem;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
// Typography
|
2
|
+
$em-base: 10px;
|
3
|
+
$base-font-size: rem(17px);
|
4
|
+
$small-font-size: rem(14px);
|
5
|
+
$lead-font-size: rem(20px);
|
6
|
+
$title-font-size: rem(52px);
|
7
|
+
$h1-font-size: rem(40px);
|
8
|
+
$h2-font-size: rem(30px);
|
9
|
+
$h3-font-size: rem(20px);
|
10
|
+
$h4-font-size: rem(17px);
|
11
|
+
$h5-font-size: rem(15px);
|
12
|
+
$h6-font-size: rem(13px);
|
13
|
+
$base-line-height: 1.5;
|
14
|
+
$heading-line-height: 1.3;
|
15
|
+
$lead-line-height: 1.7;
|
16
|
+
|
17
|
+
$font-sans: 'Source Sans Pro', $helvetica;
|
18
|
+
$font-serif: 'Merriweather', $georgia;
|
19
|
+
|
20
|
+
$font-normal: 400;
|
21
|
+
$font-bold: 700;
|
22
|
+
|
23
|
+
// Color
|
24
|
+
$color-primary: #0071bc;
|
25
|
+
$color-primary-darker: #205493;
|
26
|
+
$color-primary-darkest: #112e51;
|
27
|
+
|
28
|
+
$color-primary-alt: #02bfe7;
|
29
|
+
$color-primary-alt-dark: #00a6d2;
|
30
|
+
$color-primary-alt-darkest: #046b99;
|
31
|
+
$color-primary-alt-light: #9bdaf1; // lighten($color-primary-alt, 60%)
|
32
|
+
$color-primary-alt-lightest: #e1f3f8; // lighten($color-primary-alt, 90%)
|
33
|
+
|
34
|
+
$color-secondary: #e31c3d;
|
35
|
+
$color-secondary-dark: #cd2026;
|
36
|
+
$color-secondary-darkest: #981b1e;
|
37
|
+
$color-secondary-light: #e59393; // lighten($color-secondary, 60%)
|
38
|
+
$color-secondary-lightest: #f9dede; // lighten($color-secondary, 90%)
|
39
|
+
|
40
|
+
$color-white: #ffffff;
|
41
|
+
$color-base: #212121;
|
42
|
+
$color-black: #000000;
|
43
|
+
|
44
|
+
$color-gray-dark: #323a45;
|
45
|
+
$color-gray: #5b616b; // lighten($color-gray-dark, 20%)
|
46
|
+
$color-gray-medium: #757575; // lightest gray that passes color contrast
|
47
|
+
$color-gray-light: #aeb0b5; // lighten($color-gray-dark, 60%)
|
48
|
+
$color-gray-lighter: #d6d7d9; // lighten($color-gray-dark, 80%)
|
49
|
+
$color-gray-lightest: #f1f1f1; // lighten($color-gray-dark, 91%)
|
50
|
+
|
51
|
+
$color-gray-warm-dark: #494440;
|
52
|
+
$color-gray-warm-light: #e4e2e0; // lighten($color-gray-warm-dark, 90%)
|
53
|
+
$color-gray-cool-light: #dce4ef; // lighten($color-primary, 90%)
|
54
|
+
|
55
|
+
$color-gold: #fdb81e;
|
56
|
+
$color-gold-light: #f9c642; // lighten($color-gold, 20%)
|
57
|
+
$color-gold-lighter: #fad980; // lighten($color-gold, 60%)
|
58
|
+
$color-gold-lightest: #fff1d2; // lighten($color-gold, 83%)
|
59
|
+
|
60
|
+
$color-green: #2e8540;
|
61
|
+
$color-green-light: #4aa564; // lighten($color-green, 20%)
|
62
|
+
$color-green-lighter: #94bfa2; // lighten($color-green, 60%)
|
63
|
+
$color-green-lightest: #e7f4e4; // lighten($color-green, 60%)
|
64
|
+
|
65
|
+
$color-cool-blue: #205493;
|
66
|
+
$color-cool-blue-light: #4773aa; // lighten($color-cool-blue, 20%)
|
67
|
+
$color-cool-blue-lighter: #8ba6ca; // lighten($color-cool-blue, 60%)
|
68
|
+
$color-cool-blue-lightest: #dce4ef; // lighten($color-cool-blue, 90%)
|
69
|
+
|
70
|
+
$color-focus: #3e94cf;
|
71
|
+
$color-visited: #4c2c92;
|
72
|
+
|
73
|
+
$color-shadow: rgba(#000, 0.3);
|
74
|
+
|
75
|
+
// Mobile First Breakpoints
|
76
|
+
$small-screen: 481px;
|
77
|
+
$medium-screen: 600px;
|
78
|
+
$large-screen: 1201px;
|
79
|
+
|
80
|
+
// Grid column counts by screen size
|
81
|
+
$grid-columns-small: 1;
|
82
|
+
$grid-columns-medium: 6;
|
83
|
+
$grid-columns-large: 12;
|
84
|
+
|
85
|
+
// @media single-keyword helpers
|
86
|
+
$small: new-breakpoint(min-width $small-screen $grid-columns-small);
|
87
|
+
$medium: new-breakpoint(min-width $medium-screen $grid-columns-medium);
|
88
|
+
$large: new-breakpoint(min-width $large-screen $grid-columns-large);
|
89
|
+
|
90
|
+
// Relative font and image file paths
|
91
|
+
$font-path: 'uswds';
|
92
|
+
$image-path: 'uswds';
|
93
|
+
|
94
|
+
// Set $asset-pipeline to true if you're using the Rails Asset Pipeline
|
95
|
+
$asset-pipeline: true;
|
96
|
+
|
97
|
+
// Magic Numbers
|
98
|
+
$text-max-width: 53rem;
|
99
|
+
$lead-max-width: 77rem;
|
100
|
+
$site-max-width: 1040px;
|
101
|
+
$site-margins: 3rem;
|
102
|
+
$site-margins-mobile: 1.5rem;
|
103
|
+
$article-max-width: 600px;
|
104
|
+
$input-max-width: 46rem;
|
105
|
+
$border-radius: rem(3px);
|
106
|
+
$box-shadow: 0 0 2px $color-shadow;
|
107
|
+
$focus-shadow: 0 0 3px $color-focus, 0 0 7px $color-focus;
|
108
|
+
$nav-width: 951px;
|
109
|
+
|
110
|
+
// 44 x 44 pixels hit target following Apple iOS Human Interface
|
111
|
+
// Guidelines
|
112
|
+
$hit-area: 4.4rem;
|