uswds-rails 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/uswds/components/_footer.scss +6 -0
- data/app/assets/stylesheets/uswds/components/_navigation.scss +1 -2
- data/app/assets/stylesheets/uswds/uswds.scss +2 -1
- data/lib/uswds/rails/version.rb +1 -1
- data/vendor/assets/javascripts/uswds/uswds.js +20 -14
- data/vendor/assets/stylesheets/uswds/components/_banner.scss +1 -2
- data/vendor/assets/stylesheets/uswds/components/_footer.scss +6 -0
- data/vendor/assets/stylesheets/uswds/components/_header.scss +2 -4
- data/vendor/assets/stylesheets/uswds/components/_navigation.scss +1 -2
- data/vendor/assets/stylesheets/uswds/core/_grid.scss +1 -2
- data/vendor/assets/stylesheets/uswds/core/_variables-vendor.scss +12 -0
- data/vendor/assets/stylesheets/uswds/uswds.scss +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc17c3fcc4847ad7be78acfdb0455a4277d4b1e73dd345b36e11c820b4be8ea0
|
4
|
+
data.tar.gz: 86c69925422a17b3ed9e121155c28832dad828688a32921d165a5f6840903488
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e43190b00928693085f55eb7900b30383a1da286205040bc3892ef3b5b485668c5a7f6dc777816bdb74c6563563999833eccf62755e21a3e33399739d8e23f09
|
7
|
+
data.tar.gz: 4c7f09419ee54e5ae3df18894b936b7aee5b86ad933e23baab769eff39c277c1b3e0c92d183fdbd7bd26e806ec0761cd6ce98f77c954e955f090fe25ffbe56c3
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! uswds 1.6.
|
1
|
+
/*! uswds 1.6.1 */
|
2
2
|
|
3
3
|
// Relative font and image file paths
|
4
4
|
$font-path: 'uswds';
|
@@ -8,6 +8,7 @@ $image-path: 'uswds';
|
|
8
8
|
$asset-pipeline: true;
|
9
9
|
|
10
10
|
// Vendor -------------- //
|
11
|
+
@import 'uswds/core/variables-vendor';
|
11
12
|
@import 'bourbon';
|
12
13
|
@import 'neat';
|
13
14
|
@import 'normalize-css';
|
data/lib/uswds/rails/version.rb
CHANGED
@@ -1232,18 +1232,20 @@ var HIDE_MAX_WIDTH = 600;
|
|
1232
1232
|
var DEBOUNCE_RATE = 180;
|
1233
1233
|
|
1234
1234
|
var showPanel = function showPanel() {
|
1235
|
-
|
1236
|
-
|
1235
|
+
if (window.innerWidth < HIDE_MAX_WIDTH) {
|
1236
|
+
var list = this.closest(LIST);
|
1237
|
+
list.classList.toggle(HIDDEN);
|
1237
1238
|
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1239
|
+
// NB: this *should* always succeed because the button
|
1240
|
+
// selector is scoped to ".{prefix}-footer-big nav"
|
1241
|
+
var lists = list.closest(NAV).querySelectorAll('ul');
|
1241
1242
|
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1243
|
+
forEach(lists, function (el) {
|
1244
|
+
if (el !== list) {
|
1245
|
+
el.classList.add(HIDDEN);
|
1246
|
+
}
|
1247
|
+
});
|
1248
|
+
}
|
1247
1249
|
};
|
1248
1250
|
|
1249
1251
|
var resize = debounce(function () {
|
@@ -1575,15 +1577,19 @@ var once = require('receptor/once');
|
|
1575
1577
|
|
1576
1578
|
var CLICK = require('../events').CLICK;
|
1577
1579
|
var PREFIX = require('../config').prefix;
|
1578
|
-
var LINK = '.' + PREFIX + '-skipnav[href^="#"]';
|
1580
|
+
var LINK = '.' + PREFIX + '-skipnav[href^="#"], .' + PREFIX + '-footer-return-to-top [href^="#"]';
|
1581
|
+
var MAINCONTENT = 'main-content';
|
1579
1582
|
|
1580
1583
|
var setTabindex = function setTabindex(event) {
|
1581
1584
|
// NB: we know because of the selector we're delegating to below that the
|
1582
1585
|
// href already begins with '#'
|
1583
|
-
var id = this.getAttribute('href')
|
1584
|
-
var target = document.getElementById(id);
|
1586
|
+
var id = this.getAttribute('href');
|
1587
|
+
var target = document.getElementById(id === '#' ? MAINCONTENT : id.slice(1));
|
1588
|
+
|
1585
1589
|
if (target) {
|
1590
|
+
target.style.outline = '0';
|
1586
1591
|
target.setAttribute('tabindex', 0);
|
1592
|
+
target.focus();
|
1587
1593
|
target.addEventListener('blur', once(function (event) {
|
1588
1594
|
target.setAttribute('tabindex', -1);
|
1589
1595
|
}));
|
@@ -1921,4 +1927,4 @@ module.exports = function validate(el) {
|
|
1921
1927
|
};
|
1922
1928
|
|
1923
1929
|
},{"../config":25,"elem-dataset":5}]},{},[29])
|
1924
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJub2RlX21vZHVsZXMvYXJyYXktZmlsdGVyL2luZGV4LmpzIiwibm9kZV9tb2R1bGVzL2FycmF5LWZvcmVhY2gvaW5kZXguanMiLCJub2RlX21vZHVsZXMvY2xhc3NsaXN0LXBvbHlmaWxsL3NyYy9pbmRleC5qcyIsIm5vZGVfbW9kdWxlcy9kb21yZWFkeS9yZWFkeS5qcyIsIm5vZGVfbW9kdWxlcy9lbGVtLWRhdGFzZXQvZGlzdC9pbmRleC5qcyIsIm5vZGVfbW9kdWxlcy9lbGVtZW50LWNsb3Nlc3QvZWxlbWVudC1jbG9zZXN0LmpzIiwibm9kZV9tb2R1bGVzL2xvZGFzaC5kZWJvdW5jZS9pbmRleC5qcyIsIm5vZGVfbW9kdWxlcy9vYmplY3QtYXNzaWduL2luZGV4LmpzIiwibm9kZV9tb2R1bGVzL3JlY2VwdG9yL2JlaGF2aW9yL2luZGV4LmpzIiwibm9kZV9tb2R1bGVzL3JlY2VwdG9yL2NvbXBvc2UvaW5kZXguanMiLCJub2RlX21vZHVsZXMvcmVjZXB0b3IvZGV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AgICAgICB0aHJvdyBuZXcgRXJyb3IoXG4gICAgICAgICAgYE5vIHZhbGlkYXRvciBjaGVja2JveCBmb3VuZCBmb3I6IFwiJHt2YWxpZGF0b3JOYW1lfVwiYFxuICAgICAgICApO1xuICAgICAgfVxuXG4gICAgICBjb25zdCBjaGVja2VkID0gdmFsaWRhdG9yUGF0dGVybi50ZXN0KGVsLnZhbHVlKTtcbiAgICAgIHZhbGlkYXRvckNoZWNrYm94LmNsYXNzTGlzdC50b2dnbGUoQ0hFQ0tFRF9DTEFTUywgY2hlY2tlZCk7XG4gICAgICB2YWxpZGF0b3JDaGVja2JveC5zZXRBdHRyaWJ1dGUoQ0hFQ0tFRCwgY2hlY2tlZCk7XG4gICAgfVxuICB9XG59O1xuIl19
|
@@ -36,9 +36,8 @@
|
|
36
36
|
}
|
37
37
|
|
38
38
|
.usa-banner-inner {
|
39
|
-
@include outer-container();
|
39
|
+
@include outer-container($site-max-width);
|
40
40
|
@include padding(null $site-margins-mobile);
|
41
|
-
max-width: $site-max-width;
|
42
41
|
|
43
42
|
@include media($nav-width) {
|
44
43
|
@include padding(null $site-margins);
|
@@ -154,11 +154,10 @@ $z-index-nav: 9000;
|
|
154
154
|
|
155
155
|
.usa-navbar {
|
156
156
|
@include media($nav-width) {
|
157
|
-
@include outer-container();
|
157
|
+
@include outer-container($site-max-width);
|
158
158
|
@include padding(null $site-margins);
|
159
159
|
display: block;
|
160
160
|
height: auto;
|
161
|
-
max-width: $site-max-width;
|
162
161
|
}
|
163
162
|
}
|
164
163
|
|
@@ -173,10 +172,9 @@ $z-index-nav: 9000;
|
|
173
172
|
|
174
173
|
.usa-nav-inner {
|
175
174
|
@include media($nav-width) {
|
176
|
-
@include outer-container();
|
175
|
+
@include outer-container($site-max-width);
|
177
176
|
@include padding(null $site-margins null 1.5rem);
|
178
177
|
margin-top: -1px;
|
179
|
-
max-width: $site-max-width;
|
180
178
|
position: relative;
|
181
179
|
}
|
182
180
|
}
|
@@ -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;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uswds-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -355,6 +355,7 @@ files:
|
|
355
355
|
- vendor/assets/stylesheets/uswds/core/_fonts.scss
|
356
356
|
- vendor/assets/stylesheets/uswds/core/_grid.scss
|
357
357
|
- vendor/assets/stylesheets/uswds/core/_utilities.scss
|
358
|
+
- vendor/assets/stylesheets/uswds/core/_variables-vendor.scss
|
358
359
|
- vendor/assets/stylesheets/uswds/core/_variables.scss
|
359
360
|
- vendor/assets/stylesheets/uswds/elements/_buttons.scss
|
360
361
|
- vendor/assets/stylesheets/uswds/elements/_embed.scss
|