uswds-jekyll 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/_sass/uswds/components/_header.scss +1 -1
  3. data/_sass/uswds/components/_sidenav.scss +23 -0
  4. data/_sass/uswds/core/_utilities.scss +3 -3
  5. data/_sass/uswds/core/_variables.scss +16 -15
  6. data/_sass/uswds/elements/_inputs.scss +3 -1
  7. data/assets/uswds/img/angle-arrow-down-hover.png +0 -0
  8. data/assets/uswds/img/angle-arrow-down-primary-hover.png +0 -0
  9. data/assets/uswds/img/angle-arrow-down-primary.png +0 -0
  10. data/assets/uswds/img/angle-arrow-down.png +0 -0
  11. data/assets/uswds/img/angle-arrow-up-primary-hover.png +0 -0
  12. data/assets/uswds/img/angle-arrow-up-primary.png +0 -0
  13. data/assets/uswds/img/arrow-both.png +0 -0
  14. data/assets/uswds/img/circle-124.png +0 -0
  15. data/assets/uswds/img/close-primary.png +0 -0
  16. data/assets/uswds/img/close.png +0 -0
  17. data/assets/uswds/img/external-link-alt-hover.png +0 -0
  18. data/assets/uswds/img/external-link-alt.png +0 -0
  19. data/assets/uswds/img/external-link-hover.png +0 -0
  20. data/assets/uswds/img/external-link.png +0 -0
  21. data/assets/uswds/img/favicons/favicon-114.png +0 -0
  22. data/assets/uswds/img/favicons/favicon-40.png +0 -0
  23. data/assets/uswds/img/favicons/favicon-57.png +0 -0
  24. data/assets/uswds/img/hero.png +0 -0
  25. data/assets/uswds/img/minus-alt.png +0 -0
  26. data/assets/uswds/img/plus-alt.png +0 -0
  27. data/assets/uswds/img/search-alt.png +0 -0
  28. data/assets/uswds/img/search-primary.png +0 -0
  29. data/assets/uswds/img/social-icons/png/facebook25.png +0 -0
  30. data/assets/uswds/img/social-icons/png/rss25.png +0 -0
  31. data/assets/uswds/img/social-icons/png/twitter16.png +0 -0
  32. data/assets/uswds/img/social-icons/png/youtube15.png +0 -0
  33. metadata +2 -4
  34. data/assets/uswds/scss/lib/_bourbon-deprecate.scss +0 -19
  35. data/assets/uswds/scss/lib/settings/_deprecation-warnings.scss +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b60fdf52cc03e41be3356d114d69d2e30b09f801
4
- data.tar.gz: ddb76510b0eac27b6d548c1e2d29c358eb7228f3
3
+ metadata.gz: 99ba6ecdaa6e2222ad5badd4f9995715631a5788
4
+ data.tar.gz: 0b1d99793cc2a1dd70ec365ff67d38875d973441
5
5
  SHA512:
6
- metadata.gz: 022d7e7f9e1e98aa847a7a95e521d9236217601764d8db30c332ca7d47bee691a91b1f3bbfb48036172fd2e1ed834917769dcb7e61161e0b539d989dbf484061
7
- data.tar.gz: a5439bd1bf2feabd53c31e9e41a93ed26c18d941e8511fe1e258738e7dcd4733c9d7a998dbcfb29573b1c9d989379c97ac6c21db608403dfecda17eabf592939
6
+ metadata.gz: d4de3616c9c518919782a0ec2f08eb344d2415923e470b0fbc9a786b01b2703fdee887c62bb7b9b5a874f29fdfa266411c0e956d2c6b56c1a38899e164efc1fe
7
+ data.tar.gz: 06667ae3524bad512cac7b7296dbe8f980f53653e68b40696e210b1a1c21849850cb17bc499635850f6b5934aa056f681cb86476f65e7a2844d9326314bac3c4
@@ -102,7 +102,7 @@ $z-index-nav: 9000;
102
102
  @include position(fixed, 0);
103
103
  background: $color-black;
104
104
  opacity: 0;
105
- transition: all 0.2s ease-in-out;
105
+ transition: opacity 0.2s ease-in-out;
106
106
  visibility: hidden;
107
107
  z-index: $z-index-overlay;
108
108
 
@@ -1,8 +1,31 @@
1
1
 
2
2
  .usa-sidenav-list {
3
3
  @include usa-sidenav-list;
4
+ border-bottom: 1px solid;
5
+ border-top: 1px solid;
6
+
7
+ @include media($large-screen) {
8
+ border-bottom: none;
9
+ border-top: none;
10
+ }
11
+
12
+ .usa-grid & {
13
+ @include margin(null (-$site-margins-mobile) null (-$site-margins-mobile));
14
+
15
+ @include media($medium-screen) {
16
+ @include margin(null 0);
17
+ }
18
+ }
4
19
  }
5
20
 
6
21
  .usa-sidenav-sub_list {
7
22
  @include usa-sidenav-sublist;
8
23
  }
24
+
25
+ .usa-layout-docs-sidenav {
26
+ padding-top: 2.4rem;
27
+
28
+ @include media($large-screen) {
29
+ padding-top: 0;
30
+ }
31
+ }
@@ -191,7 +191,7 @@
191
191
  display: block;
192
192
  font-family: $font-sans;
193
193
  line-height: 1.3;
194
- padding: 0.85rem 1rem 0.85rem 1.8rem;
194
+ padding: 0.85rem 1rem 0.85rem $site-margins-mobile;
195
195
  text-decoration: none;
196
196
 
197
197
  &:hover {
@@ -207,10 +207,10 @@
207
207
  }
208
208
 
209
209
  &.usa-current { /* stylelint-disable-line selector-no-qualifying-type */
210
- border-left: 0.4rem solid $color-primary;
210
+ border-left: $sidenav-current-border-width solid $color-primary;
211
211
  color: $color-primary;
212
212
  font-weight: $font-bold;
213
- padding-left: 1.4rem;
213
+ padding-left: $site-margins-mobile - $sidenav-current-border-width;
214
214
  }
215
215
  }
216
216
  }
@@ -128,21 +128,22 @@ $image-path: '../img' !default;
128
128
  $asset-pipeline: false !default;
129
129
 
130
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;
144
- $focus-spacing: 3px;
145
- $nav-width: 951px !default;
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
146
147
 
147
148
  // 44 x 44 pixels hit target following Apple iOS Human Interface
148
149
  // Guidelines
@@ -112,7 +112,9 @@ select {
112
112
  appearance: none;
113
113
  background-color: $color-white;
114
114
  background-image: url('#{$image-path}/arrow-both.png');
115
- background-image: url('#{$image-path}/arrow-both.svg');
115
+ // Ensure browsers that don't support SVG in background-image (IE 11 and below) fall back to PNG.
116
+ // See https://www.broken-links.com/2010/06/14/using-svg-in-backgrounds-with-png-fallback/
117
+ background-image: none, url('#{$image-path}/arrow-both.svg'), url('#{$image-path}/arrow-both.png');
116
118
  background-position: right 1.3rem center;
117
119
  background-repeat: no-repeat;
118
120
  background-size: 1rem;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uswds-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Allen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-01-11 00:00:00.000000000 Z
13
+ date: 2018-01-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jekyll
@@ -371,7 +371,6 @@ files:
371
371
  - assets/uswds/scss/elements/_list.scss
372
372
  - assets/uswds/scss/elements/_table.scss
373
373
  - assets/uswds/scss/elements/_typography.scss
374
- - assets/uswds/scss/lib/_bourbon-deprecate.scss
375
374
  - assets/uswds/scss/lib/_bourbon-deprecated-upcoming.scss
376
375
  - assets/uswds/scss/lib/_bourbon.scss
377
376
  - assets/uswds/scss/lib/_neat-helpers.scss
@@ -468,7 +467,6 @@ files:
468
467
  - assets/uswds/scss/lib/helpers/_str-to-num.scss
469
468
  - assets/uswds/scss/lib/mixins/_clearfix.scss
470
469
  - assets/uswds/scss/lib/settings/_asset-pipeline.scss
471
- - assets/uswds/scss/lib/settings/_deprecation-warnings.scss
472
470
  - assets/uswds/scss/lib/settings/_disable-warnings.scss
473
471
  - assets/uswds/scss/lib/settings/_grid.scss
474
472
  - assets/uswds/scss/lib/settings/_prefixer.scss
@@ -1,19 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- /// Throws Sass warnings to announce library deprecations. You can disable them
4
- /// by setting the `$output-bourbon-deprecation-warnings` variable to `false`.
5
- ///
6
- /// @access private
7
-
8
- @mixin _bourbon-deprecate($feature, $message: null) {
9
- @if $output-bourbon-deprecation-warnings == true {
10
- @warn "[Bourbon] [Deprecation] `#{$feature}` is deprecated and will be " +
11
- "removed in 5.0.0. #{$message}";
12
- @content;
13
- }
14
- }
15
-
16
- @mixin _bourbon-deprecate-for-prefixing($feature) {
17
- @include _bourbon-deprecate($feature, "We suggest using an automated " +
18
- "prefixing tool, like Autoprefixer.");
19
- }
@@ -1,8 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- /// Enable or disable output of Bourbon’s deprecation-related Sass warnings.
4
- /// This variable must be declared _before_ importing Bourbon.
5
- ///
6
- /// @type Bool
7
-
8
- $output-bourbon-deprecation-warnings: true !default;