Skip to content

Commit dca09c3

Browse files
authored
Revert "Updates for latest DataTables sort files (#431)" (#434)
This reverts commit e780fe1.
1 parent e780fe1 commit dca09c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+18748
-1108
lines changed

.gitignore

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,3 @@ _site
44
node_modules
55
.bundle
66
.jekyll-cache/
7-
8-
## Assets
9-
assets/uswds/*
10-
!assets/uswds/.gitkeep
11-
assets/js/uswds*
12-
assets/video-js
13-
assets/youtube-video-js
14-
assets/swiper
15-
assets/stickyfilljs
16-
assets/netlify-cms
17-
assets/jquery
18-
assets/fontawesome-free
19-
assets/jquery-toast-plugin
20-
assets/dompurify

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gemfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@ source "https://rubygems.org"
88
#
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
11-
gem "jekyll", "4.2.2" # pinned awaiting release of https://github.com/jekyll/jekyll/pull/9304
11+
gem "jekyll", "~> 4.0"
1212
gem "execjs", "2.7.0" # https://github.com/rails/execjs/issues/99
1313
gem "autoprefixer-rails"
14-
gem "webrick" # not included in jekyll directly until 4.3.0 https://github.com/jekyll/jekyll/pull/8524
1514

1615
# If you have any plugins, put them here!
1716
group :jekyll_plugins do
17+
gem 'jekyll-include-cache'
1818
gem "jekyll-feed", "~> 0.6"
1919
gem 'jekyll-redirect-from'
20+
gem 'jekyll-paginate-v2', "~> 3.0"
2021
gem 'jekyll-sitemap'
2122
gem 'jekyll-seo-tag'
23+
gem 'jekyll-assets', git: "https://github.com/envygeeks/jekyll-assets"
2224
end
2325

2426
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
@@ -27,5 +29,5 @@ gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
2729
# Performance-booster for watching directories on Windows
2830
gem "wdm", "~> 0.1.0" if Gem.win_platform?
2931

30-
gem "html-proofer", "~> 5"
32+
gem "html-proofer", "~> 3.15"
3133
gem "kramdown-parser-gfm"

Gemfile.lock

Lines changed: 81 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,60 @@
1+
GIT
2+
remote: https://github.com/envygeeks/jekyll-assets
3+
revision: 056d2c88719ef3b1f90967a606dd1441581dd832
4+
specs:
5+
jekyll-assets (4.0.0.alpha)
6+
activesupport (>= 5, < 7)
7+
execjs (~> 2.7)
8+
extras (~> 0.2)
9+
fastimage (~> 2.0, >= 1.8)
10+
jekyll (>= 3.5, < 5.0)
11+
jekyll-sanity (~> 1.2)
12+
liquid-tag-parser (>= 1, < 3)
13+
nokogiri (~> 1.10)
14+
pathutil (~> 0.16)
15+
sassc (>= 1.11, < 3.0)
16+
sprockets (~> 4.0.beta7)
17+
118
GEM
219
remote: https://rubygems.org/
320
specs:
4-
Ascii85 (1.1.0)
5-
addressable (2.8.5)
6-
public_suffix (>= 2.0.2, < 6.0)
7-
afm (0.2.2)
8-
async (2.6.3)
9-
console (~> 1.10)
10-
fiber-annotation
11-
io-event (~> 1.1)
12-
timers (~> 4.1)
13-
autoprefixer-rails (10.4.13.0)
21+
activesupport (6.1.6)
22+
concurrent-ruby (~> 1.0, >= 1.0.2)
23+
i18n (>= 1.6, < 2)
24+
minitest (>= 5.1)
25+
tzinfo (~> 2.0)
26+
zeitwerk (~> 2.3)
27+
addressable (2.8.0)
28+
public_suffix (>= 2.0.2, < 5.0)
29+
autoprefixer-rails (10.4.7.0)
1430
execjs (~> 2)
1531
colorator (1.1.0)
16-
concurrent-ruby (1.2.2)
17-
console (1.20.0)
18-
fiber-annotation
19-
fiber-local
32+
concurrent-ruby (1.1.10)
2033
em-websocket (0.5.3)
2134
eventmachine (>= 0.12.9)
2235
http_parser.rb (~> 0)
23-
ethon (0.16.0)
36+
ethon (0.15.0)
2437
ffi (>= 1.15.0)
2538
eventmachine (1.2.7)
39+
eventmachine (1.2.7-x64-mingw32)
2640
execjs (2.7.0)
41+
extras (0.3.0)
42+
forwardable-extended (~> 2.5)
43+
fastimage (2.2.6)
2744
ffi (1.15.5)
28-
fiber-annotation (0.2.0)
29-
fiber-local (1.0.0)
45+
ffi (1.15.5-x64-mingw32)
3046
forwardable-extended (2.6.0)
31-
hashery (2.1.2)
32-
html-proofer (5.0.7)
47+
html-proofer (3.19.3)
3348
addressable (~> 2.3)
34-
async (~> 2.1)
35-
nokogiri (~> 1.13)
36-
pdf-reader (~> 2.11)
49+
mercenary (~> 0.3)
50+
nokogiri (~> 1.12)
51+
parallel (~> 1.3)
3752
rainbow (~> 3.0)
3853
typhoeus (~> 1.3)
3954
yell (~> 2.0)
40-
zeitwerk (~> 2.5)
4155
http_parser.rb (0.8.0)
42-
i18n (1.14.1)
56+
i18n (1.10.0)
4357
concurrent-ruby (~> 1.0)
44-
io-event (1.2.3)
4558
jekyll (4.2.2)
4659
addressable (~> 2.4)
4760
colorator (~> 1.0)
@@ -57,10 +70,17 @@ GEM
5770
rouge (~> 3.0)
5871
safe_yaml (~> 1.0)
5972
terminal-table (~> 2.0)
60-
jekyll-feed (0.17.0)
73+
jekyll-feed (0.16.0)
6174
jekyll (>= 3.7, < 5.0)
75+
jekyll-include-cache (0.2.1)
76+
jekyll (>= 3.7, < 5.0)
77+
jekyll-paginate-v2 (3.0.0)
78+
jekyll (>= 3.0, < 5.0)
6279
jekyll-redirect-from (0.16.0)
6380
jekyll (>= 3.3, < 5.0)
81+
jekyll-sanity (1.6.0)
82+
jekyll (>= 3.1, < 5.0)
83+
pathutil (~> 0.16)
6484
jekyll-sass-converter (2.2.0)
6585
sassc (> 2.0.1, < 3.0)
6686
jekyll-seo-tag (2.8.0)
@@ -73,61 +93,71 @@ GEM
7393
rexml
7494
kramdown-parser-gfm (1.1.0)
7595
kramdown (~> 2.0)
76-
liquid (4.0.4)
77-
listen (3.8.0)
96+
liquid (4.0.3)
97+
liquid-tag-parser (2.0.2)
98+
extras (~> 0.3)
99+
liquid (>= 3.0, < 5.0)
100+
listen (3.7.1)
78101
rb-fsevent (~> 0.10, >= 0.10.3)
79102
rb-inotify (~> 0.9, >= 0.9.10)
80103
mercenary (0.4.0)
81-
mini_portile2 (2.8.4)
82-
nokogiri (1.15.3)
83-
mini_portile2 (~> 2.8.2)
104+
mini_portile2 (2.8.0)
105+
minitest (5.15.0)
106+
nokogiri (1.13.6)
107+
mini_portile2 (~> 2.8.0)
108+
racc (~> 1.4)
109+
nokogiri (1.13.6-x64-mingw32)
84110
racc (~> 1.4)
111+
parallel (1.22.1)
85112
pathutil (0.16.2)
86113
forwardable-extended (~> 2.6)
87-
pdf-reader (2.11.0)
88-
Ascii85 (~> 1.0)
89-
afm (~> 0.2.1)
90-
hashery (~> 2.0)
91-
ruby-rc4
92-
ttfunk
93-
public_suffix (5.0.3)
94-
racc (1.7.1)
114+
public_suffix (4.0.7)
115+
racc (1.6.0)
116+
rack (2.2.4)
95117
rainbow (3.1.1)
96-
rb-fsevent (0.11.2)
118+
rb-fsevent (0.11.1)
97119
rb-inotify (0.10.1)
98120
ffi (~> 1.0)
99-
rexml (3.2.6)
100-
rouge (3.30.0)
101-
ruby-rc4 (0.1.5)
121+
rexml (3.2.5)
122+
rouge (3.28.0)
102123
safe_yaml (1.0.5)
103124
sassc (2.4.0)
104125
ffi (~> 1.9)
126+
sassc (2.4.0-x64-mingw32)
127+
ffi (~> 1.9)
128+
sprockets (4.0.3)
129+
concurrent-ruby (~> 1.0)
130+
rack (> 1, < 3)
105131
terminal-table (2.0.0)
106132
unicode-display_width (~> 1.1, >= 1.1.1)
107-
timers (4.3.5)
108-
ttfunk (1.7.0)
109133
typhoeus (1.4.0)
110134
ethon (>= 0.9.0)
135+
tzinfo (2.0.4)
136+
concurrent-ruby (~> 1.0)
137+
tzinfo-data (1.2022.1)
138+
tzinfo (>= 1.0.0)
111139
unicode-display_width (1.8.0)
112-
webrick (1.8.1)
113140
yell (2.2.2)
114-
zeitwerk (2.6.11)
141+
zeitwerk (2.5.4)
115142

116143
PLATFORMS
117144
ruby
145+
x64-mingw32
118146

119147
DEPENDENCIES
120148
autoprefixer-rails
121149
execjs (= 2.7.0)
122-
html-proofer (~> 5)
123-
jekyll (= 4.2.2)
150+
html-proofer (~> 3.15)
151+
jekyll (~> 4.0)
152+
jekyll-assets!
124153
jekyll-feed (~> 0.6)
154+
jekyll-include-cache
155+
jekyll-paginate-v2 (~> 3.0)
125156
jekyll-redirect-from
126157
jekyll-seo-tag
127158
jekyll-sitemap
128159
kramdown-parser-gfm
129160
tzinfo-data
130-
webrick
131161

132162
BUNDLED WITH
133-
2.3.26
163+
2.1.4
File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Override USWDS mixin to use jekyll-assets asset_url()
2+
3+
@mixin add-background-svg($image-name, $image-path: $theme-image-path) {
4+
background-image: asset_url("#{$image-path}/#{$image-name}.svg"),
5+
linear-gradient(transparent, transparent);
6+
background-repeat: no-repeat;
7+
}

_assets/css/overrides/_all.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@import "add-background-svg";
2+
@import "font-face";
3+
@import "hero";
4+
@import "icon";

_assets/css/overrides/_font-face.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Override USWDS mixin to use jekyll-assets asset_url()
2+
3+
@mixin at-font-face($display-name, $file-path, $font-weight, $font-style) {
4+
@font-face {
5+
font-family: $display-name;
6+
font-style: unquote($font-style);
7+
font-weight: $font-weight;
8+
font-display: fallback;
9+
src: asset_url("'#{$file-path}.woff2'") format("woff2"),
10+
asset_url("'#{$file-path}.woff'") format("woff"),
11+
asset_url("'#{$file-path}.ttf'") format("truetype");
12+
}
13+
}
File renamed without changes.

_assets/css/overrides/_icon.scss

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
// Override USWDS mixin to use jekyll-assets asset_url()
2+
3+
@mixin add-color-icon($icon-object, $contrast-bg: "default") {
4+
$filename-base: map-get($icon-object, "name");
5+
$svg-height: map-get($icon-object, "svg-height");
6+
$svg-width: map-get($icon-object, "svg-width");
7+
$aspect: divide($svg-width, $svg-height);
8+
$height: if(
9+
unitless(map-get($icon-object, "height")),
10+
units(map-get($icon-object, "height")),
11+
map-get($icon-object, "height")
12+
);
13+
$width: $height * $aspect;
14+
$container-height: if(
15+
map-has-key($icon-object, "container-height"),
16+
units(map-get($icon-object, "container-height")),
17+
null
18+
);
19+
$container-width: if(
20+
map-has-key($icon-object, "container-width"),
21+
units(map-get($icon-object, "container-width")),
22+
null
23+
);
24+
$color: if(
25+
map-has-key($icon-object, "color"),
26+
map-get($icon-object, "color"),
27+
"ink"
28+
);
29+
$color-variant: if(
30+
map-has-key($icon-object, "color-variant"),
31+
map-get($icon-object, "color-variant"),
32+
"white"
33+
);
34+
$color-hover: if(
35+
map-has-key($icon-object, "color-hover"),
36+
map-get($icon-object, "color-hover"),
37+
null
38+
);
39+
$rotate: if(
40+
map-has-key($icon-object, "rotate"),
41+
map-get($icon-object, "rotate"),
42+
null
43+
);
44+
$path: if(
45+
map-has-key($icon-object, "path"),
46+
map-get($icon-object, "path"),
47+
$theme-image-path
48+
);
49+
$ie11-variant: get-color-token-from-bg($contrast-bg, "white", "black");
50+
$filename-ie11: if(
51+
$ie11-variant == "white",
52+
"usa-icons-bg/#{$filename-base}--white.svg",
53+
"usa-icons/#{$filename-base}.svg"
54+
);
55+
56+
$mask-props: asset_url("#{$path}/usa-icons/#{$filename-base}.svg") no-repeat center /
57+
contain;
58+
$image-props: asset_url("#{$path}/#{$filename-ie11}") no-repeat center / contain;
59+
60+
// Default background shorthand for browsers that don't support mask or supports.
61+
background: $image-props;
62+
display: inline-block;
63+
height: if($container-height, $container-height, $height);
64+
width: if($container-width, $container-width, $width);
65+
@if $rotate {
66+
transform: rotate($rotate);
67+
}
68+
69+
// Mask supported styles
70+
@supports (mask: url("")) {
71+
background: none;
72+
background-color: if($color == currentColor, $color, color($color));
73+
mask: $mask-props;
74+
@if $color-hover {
75+
&:hover {
76+
background-color: color($color-hover);
77+
}
78+
}
79+
}
80+
}

assets/css/styles.scss renamed to _assets/css/styles.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
---
2-
---
1+
32

43
// Import individual theme settings
54
@import "theme/uswds-theme-general";
@@ -12,13 +11,14 @@
1211
@import "theme/uswds-theme-components";
1312

1413
// Set correct paths for use with asset pipeline
15-
$theme-font-path: "../uswds/fonts";
16-
$theme-image-path: "../uswds/img";
14+
$theme-font-path: "fonts";
15+
$theme-image-path: "img";
1716
$theme-hero-image: asset_path("hero-wc-temp.jpg");
1817

1918
// -------------------------------------
2019
// Import individual USWDS packages...
2120
@import "scss/packages/required";
21+
@import "overrides/all";
2222
@import "scss/packages/global";
2323

2424
@import "scss/packages/uswds-components";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)