uswds-jekyll 5.0.1 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -93
- data/_includes/components/banner.html +11 -9
- data/_sass/uswds/components/_header.scss +1 -1
- data/_sass/uswds/components/_nav-buttons.scss +4 -4
- data/_sass/uswds/src/components/_alerts.scss +8 -9
- data/_sass/uswds/src/components/_banner.scss +102 -31
- data/_sass/uswds/src/components/_breadcrumb.scss +168 -0
- data/_sass/uswds/src/components/_footer.scss +14 -4
- data/_sass/uswds/src/components/_header.scss +1 -1
- data/_sass/uswds/src/components/_identifier.scss +146 -0
- data/_sass/uswds/src/components/_media-block.scss +6 -1
- data/_sass/uswds/src/components/_megamenu.scss +4 -1
- data/_sass/uswds/src/components/_section.scss +6 -2
- data/_sass/uswds/src/components/_skipnav.scss +2 -2
- data/_sass/uswds/src/components/_step-indicator.scss +444 -0
- data/_sass/uswds/src/components/_tooltip.scss +114 -0
- data/_sass/uswds/src/core/_functions.scss +631 -0
- data/_sass/uswds/src/core/_notifications.scss +14 -0
- data/_sass/uswds/src/core/_properties.scss +120 -108
- data/_sass/uswds/src/core/_system-tokens.scss +140 -155
- data/_sass/uswds/src/core/_variables.scss +134 -32
- data/_sass/uswds/src/core/mixins/_add-link-styles.scss +20 -0
- data/_sass/uswds/src/core/mixins/_all.scss +4 -0
- data/_sass/uswds/src/core/mixins/_font-face.scss +1 -1
- data/_sass/uswds/src/core/mixins/_icon.scss +119 -0
- data/_sass/uswds/src/core/mixins/_media-block-img.scss +1 -1
- data/_sass/uswds/src/core/mixins/_set-link-from-bg.scss +30 -0
- data/_sass/uswds/src/core/mixins/_set-text-from-bg.scss +28 -0
- data/_sass/uswds/src/core/mixins/utilities/_align-self.scss +11 -0
- data/_sass/uswds/src/core/mixins/utilities/_border.scss +1 -1
- data/_sass/uswds/src/core/mixins/utilities/_flex.scss +6 -1
- data/_sass/uswds/src/core/mixins/utilities/_text.scss +6 -1
- data/_sass/uswds/src/core/placeholders/_list.scss +5 -0
- data/_sass/uswds/src/core/system-tokens/_blue-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_blue-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_blue.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_cyan.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_gold.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_gray-cool.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_gray-warm.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_gray.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_green-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_green-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_green.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_indigo-cool.scss +6 -6
- data/_sass/uswds/src/core/system-tokens/_indigo-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_indigo.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_magenta.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_mint-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_mint.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_orange-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_orange.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_violet-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_violet.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_yellow.scss +3 -3
- data/_sass/uswds/src/elements/_buttons.scss +31 -24
- data/_sass/uswds/src/elements/form-controls/_all.scss +2 -0
- data/_sass/uswds/src/elements/form-controls/_checkbox-and-radio.scss +4 -2
- data/_sass/uswds/src/elements/form-controls/_combo-box.scss +80 -9
- data/_sass/uswds/src/elements/form-controls/_date-picker.scss +325 -0
- data/_sass/uswds/src/elements/form-controls/_file-input.scss +195 -0
- data/_sass/uswds/src/elements/form-controls/_global.scss +10 -3
- data/_sass/uswds/src/elements/form-controls/_time-picker.scss +3 -0
- data/_sass/uswds/src/packages/_usa-breadcrumb.scss +4 -0
- data/_sass/uswds/src/packages/_usa-identifier.scss +1 -0
- data/_sass/uswds/src/packages/_usa-step-indicator.scss +2 -0
- data/_sass/uswds/src/packages/_usa-tooltip.scss +2 -0
- data/_sass/uswds/src/packages/_uswds-components.scss +4 -0
- data/_sass/uswds/src/settings/_settings-color.scss +6 -1
- data/_sass/uswds/src/settings/_settings-components.scss +45 -1
- data/_sass/uswds/src/settings/_settings-general.scss +4 -4
- data/_sass/uswds/src/settings/_settings-typography.scss +5 -5
- data/_sass/uswds/src/settings/_settings-utilities.scss +89 -75
- data/_sass/uswds/src/theme/_uswds-theme-color.scss +4 -1
- data/_sass/uswds/src/theme/_uswds-theme-components.scss +45 -1
- data/_sass/uswds/src/theme/_uswds-theme-general.scss +4 -4
- data/_sass/uswds/src/theme/_uswds-theme-typography.scss +5 -5
- data/_sass/uswds/src/theme/_uswds-theme-utilities.scss +90 -77
- data/_sass/uswds/src/theme/styles.scss +5 -1
- data/_sass/uswds/src/utilities/palettes/_default-palettes.scss +2 -1
- data/_sass/uswds/src/utilities/palettes/_font-palettes.scss +478 -478
- data/_sass/uswds/src/utilities/palettes/_spacing-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_all-colors-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_black-transparent-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_blue-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_blue-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_blue-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_cyan-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_gold-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_gray-cool-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_gray-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_gray-warm-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_green-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_green-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_green-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_magenta-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_mint-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_mint-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_orange-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_orange-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_violet-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_violet-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_white-transparent-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_yellow-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/rules/_all.scss +1 -0
- data/_sass/uswds/src/utilities/rules/_package.scss +1 -0
- data/_sass/uswds/src/utilities/rules/add-aspect.scss +13 -13
- data/_sass/uswds/src/utilities/rules/add-list-reset.scss +5 -5
- data/_sass/uswds/src/utilities/rules/align-items.scss +2 -2
- data/_sass/uswds/src/utilities/rules/align-self.scss +27 -0
- data/_sass/uswds/src/utilities/rules/background-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-radius.scss +7 -7
- data/_sass/uswds/src/utilities/rules/border-style.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-width.scss +5 -5
- data/_sass/uswds/src/utilities/rules/border.scss +5 -5
- data/_sass/uswds/src/utilities/rules/bottom.scss +2 -2
- data/_sass/uswds/src/utilities/rules/box-shadow.scss +2 -2
- data/_sass/uswds/src/utilities/rules/circle.scss +4 -4
- data/_sass/uswds/src/utilities/rules/clearfix.scss +5 -5
- data/_sass/uswds/src/utilities/rules/color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/cursor.scss +2 -2
- data/_sass/uswds/src/utilities/rules/display.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex-direction.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex-wrap.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex.scss +2 -2
- data/_sass/uswds/src/utilities/rules/float.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-family.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-feature.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-style.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-weight.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font.scss +2 -2
- data/_sass/uswds/src/utilities/rules/height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/justify-content.scss +2 -2
- data/_sass/uswds/src/utilities/rules/left.scss +2 -2
- data/_sass/uswds/src/utilities/rules/letter-spacing.scss +2 -2
- data/_sass/uswds/src/utilities/rules/line-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/margin.scss +9 -9
- data/_sass/uswds/src/utilities/rules/max-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/max-width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/measure.scss +2 -2
- data/_sass/uswds/src/utilities/rules/min-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/min-width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/opacity.scss +3 -5
- data/_sass/uswds/src/utilities/rules/order.scss +2 -2
- data/_sass/uswds/src/utilities/rules/outline-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/outline.scss +2 -2
- data/_sass/uswds/src/utilities/rules/overflow.scss +3 -3
- data/_sass/uswds/src/utilities/rules/padding.scss +5 -5
- data/_sass/uswds/src/utilities/rules/pin.scss +19 -19
- data/_sass/uswds/src/utilities/rules/position.scss +2 -2
- data/_sass/uswds/src/utilities/rules/right.scss +2 -2
- data/_sass/uswds/src/utilities/rules/square.scss +4 -4
- data/_sass/uswds/src/utilities/rules/text-align.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-decoration-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-decoration.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-indent.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-transform.scss +2 -2
- data/_sass/uswds/src/utilities/rules/top.scss +2 -2
- data/_sass/uswds/src/utilities/rules/vertical-align.scss +2 -2
- data/_sass/uswds/src/utilities/rules/whitespace.scss +2 -2
- data/_sass/uswds/src/utilities/rules/width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/z-index.scss +2 -2
- data/assets/uswds/img/angle-arrow-down-gray-90.svg +1 -0
- data/assets/uswds/img/angle-arrow-right-white.svg +1 -0
- data/assets/uswds/img/angle-arrow-right.svg +1 -0
- data/assets/uswds/img/angle-double-left-solid.svg +1 -0
- data/assets/uswds/img/angle-double-right-solid.svg +1 -0
- data/assets/uswds/img/angle-left-solid.svg +1 -0
- data/assets/uswds/img/angle-right-solid.svg +1 -0
- data/assets/uswds/img/arrow-down-gray-60.svg +1 -0
- data/assets/uswds/img/arrow-left-indigo-cool-50v.svg +1 -0
- data/assets/uswds/img/arrow-left-white.svg +1 -0
- data/assets/uswds/img/arrow-left.svg +1 -0
- data/assets/uswds/img/calendar-alt-solid.svg +1 -0
- data/assets/uswds/img/chevron-right-white.svg +1 -0
- data/assets/uswds/img/chevron-right.svg +1 -0
- data/assets/uswds/img/chevron-white.svg +1 -0
- data/assets/uswds/img/chevron.svg +1 -0
- data/assets/uswds/img/circle-gray-20.svg +1 -0
- data/assets/uswds/img/close-alt-blue-60v.svg +3 -0
- data/assets/uswds/img/close-alt.svg +3 -0
- data/assets/uswds/img/close-gray-60.svg +1 -0
- data/assets/uswds/img/file-excel.svg +1 -0
- data/assets/uswds/img/file-pdf.svg +1 -0
- data/assets/uswds/img/file-video.svg +1 -0
- data/assets/uswds/img/file-word.svg +1 -0
- data/assets/uswds/img/file.svg +1 -0
- data/assets/uswds/img/loader.gif +0 -0
- data/assets/uswds/img/loader.svg +1 -0
- data/assets/uswds/img/lock.svg +1 -0
- data/assets/uswds/js/uswds.js +3570 -216
- data/assets/uswds/js/uswds.min.js +1 -1
- data/assets/uswds/js/uswds.min.js.map +1 -1
- metadata +59 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84151ee36e5dee15c291972675e4d0729dbcf813886683f27efa8548b2cb550d
|
4
|
+
data.tar.gz: 68991524fdfd3a08ca5642dd9d41bf1c7308eade2477802f0d8dceb7a83d8eeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eccde348a2be434e4f280293b1e181069f1487766317cce3dbd4a5fe5caaed4d0424f13225659b32f6c2535aae2150afe9a5860179d57b6529aa68457880084
|
7
|
+
data.tar.gz: 9c451c5628afca130330ea6336c945c780959bcab350fd8c5cf133ab27eaf142098691fa6dc6bb3578059c39f1511036b541f371898c4c42336737ac3a01b5f4
|
data/README.md
CHANGED
@@ -25,8 +25,6 @@ This is a [Jekyll theme](https://jekyllrb.com/docs/themes/) for the
|
|
25
25
|
- [Scripts](#scripts)
|
26
26
|
- [Asset load order](#asset-load-order)
|
27
27
|
1. [Customization](#customization)
|
28
|
-
- [Customizing with Sass](#customizing-with-sass)
|
29
|
-
- [Customizing with CSS overrides](#customizing-with-css-overrides)
|
30
28
|
- [Overriding includes and layouts](#overriding-includes-and-layouts)
|
31
29
|
1. [Components](#components)
|
32
30
|
- [Header](#header)
|
@@ -77,8 +75,7 @@ You will need to restart your Jekyll server to see the effects.
|
|
77
75
|
gem 'uswds-jekyll'
|
78
76
|
```
|
79
77
|
|
80
|
-
1. Set the `theme` in your site's Jekyll configuration,
|
81
|
-
`_config.yml`:
|
78
|
+
1. Set the `theme` in your site's Jekyll configuration, `_config.yml`:
|
82
79
|
|
83
80
|
```yml
|
84
81
|
theme: uswds-jekyll
|
@@ -96,8 +93,7 @@ You will need to restart your Jekyll server to see the effects.
|
|
96
93
|
|
97
94
|
To reference a specific version of this theme:
|
98
95
|
|
99
|
-
1. Visit the [releases page](https://github.com/18F/uswds-jekyll/releases) and
|
100
|
-
decide which version you want to use.
|
96
|
+
1. Visit the [releases page](https://github.com/18F/uswds-jekyll/releases) and decide which version you want to use.
|
101
97
|
1. Specify the version in your `Gemfile`.
|
102
98
|
|
103
99
|
```ruby
|
@@ -106,9 +102,7 @@ To reference a specific version of this theme:
|
|
106
102
|
|
107
103
|
## Configuration
|
108
104
|
|
109
|
-
Configuration of common elements ([header](#header),
|
110
|
-
[footer](#footer), [navigation](#navigation), etc.) happens in your project's [data files](https://jekyllrb.com/docs/datafiles/). See this project's [data directory](_data) for reference configurations
|
111
|
-
of each component.
|
105
|
+
Configuration of common elements ([header](#header), [footer](#footer), [navigation](#navigation), etc.) happens in your project's [data files](https://jekyllrb.com/docs/datafiles/). See this project's [data directory](_data) for reference configurations of each component.
|
112
106
|
|
113
107
|
The [default layout](#layout-default) also provides a mechanism for automatically including [stylesheets](#stylesheets) and [scripts](#scripts) on a site-wide, layout-wide, and per-page basis. See [asset load order](#asset-load-order) for more information.
|
114
108
|
|
@@ -148,10 +142,7 @@ primary:
|
|
148
142
|
links: <links>
|
149
143
|
```
|
150
144
|
|
151
|
-
This scheme allows you to define navigational elements that can be
|
152
|
-
shared by different components, such as the [header](#header) and
|
153
|
-
[footer](#footer). See the documentation for those components for
|
154
|
-
more info.
|
145
|
+
This scheme allows you to define navigational elements that can be shared by different components, such as the [header](#header) and [footer](#footer). See the documentation for those components for more info.
|
155
146
|
|
156
147
|
### Page title
|
157
148
|
|
@@ -192,8 +183,7 @@ A page's "current" or "active" state in the sidenav is determined by whether a l
|
|
192
183
|
|
193
184
|
`subnav` is a list of links to display on this page under its own link in the side navigation.
|
194
185
|
|
195
|
-
**Note that subnav link hrefs are not prefixed with
|
196
|
-
`site.baseurl`** because this breaks hash links prefixed with `#`.
|
186
|
+
**Note that subnav link hrefs are not prefixed with `site.baseurl`** because this breaks hash links prefixed with `#`.
|
197
187
|
|
198
188
|
**Pro tip:** Unless your Jekyll configuration specifies otherwise, the default Markdown formatter (Kramdown) will automatically generate predictable `id` attributes for your page headings and convert markdown like this:
|
199
189
|
|
@@ -207,8 +197,7 @@ into:
|
|
207
197
|
<h2 id="section-one">Section one</h2>
|
208
198
|
```
|
209
199
|
|
210
|
-
If you're using Redcarpet, you will need to configure it to enable
|
211
|
-
the `with_toc_data` extension in your `_config.yml`, like so:
|
200
|
+
If you're using Redcarpet, you will need to configure it to enable the `with_toc_data` extension in your `_config.yml`, like so:
|
212
201
|
|
213
202
|
```yml
|
214
203
|
markdown: redcarpet
|
@@ -286,9 +275,7 @@ You can add Google Analytics to your site by uncommenting the `google_analytics_
|
|
286
275
|
|
287
276
|
#### Digital Analytics Program (DAP)
|
288
277
|
|
289
|
-
You can add DAP to your site by uncommenting the `dap_agency` line and, if need be, replacing `GSA` with the appropriate agency key.
|
290
|
-
And optionally, `dap_subagency` may also be specified.
|
291
|
-
For more information visit <https://www.digitalgov.gov/services/dap/>
|
278
|
+
You can add DAP to your site by uncommenting the `dap_agency` line and, if need be, replacing `GSA` with the appropriate agency key. And optionally, `dap_subagency` may also be specified. For more information visit <https://www.digitalgov.gov/services/dap/>
|
292
279
|
|
293
280
|
```
|
294
281
|
# Configuration for DAP, add your agency ID here:
|
@@ -298,12 +285,23 @@ For more information visit <https://www.digitalgov.gov/services/dap/>
|
|
298
285
|
|
299
286
|
### Last modified date
|
300
287
|
|
301
|
-
|
288
|
+
To show the last date a page was last modified by:
|
302
289
|
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
290
|
+
1. Add this line to the `footer.yml` data file:
|
291
|
+
|
292
|
+
```yml
|
293
|
+
last_updated: true
|
294
|
+
```
|
295
|
+
|
296
|
+
1. Add the following to your `Gemfile`:
|
297
|
+
|
298
|
+
```ruby
|
299
|
+
group :jekyll_plugins do
|
300
|
+
gem "jekyll-last-modified-at"
|
301
|
+
end
|
302
|
+
```
|
303
|
+
|
304
|
+
This will add the date right before the footer component.
|
307
305
|
|
308
306
|
### Anchor JS
|
309
307
|
|
@@ -328,8 +326,7 @@ Read more about customizing [stylesheets](#stylesheets) and [scripts](#scripts)
|
|
328
326
|
|
329
327
|
### Stylesheets
|
330
328
|
|
331
|
-
As a general rule, all stylesheets are inserted in a layouts'
|
332
|
-
`<head>`, which qualifies them as "render-blocking". Site stylesheets can be specified in `_config.yml` or a layout or page's [front matter] YAML in the following form:
|
329
|
+
As a general rule, all stylesheets are inserted in a layouts' `<head>`, which qualifies them as "render-blocking". Site stylesheets can be specified in `_config.yml` or a layout or page's [front matter] YAML in the following form:
|
333
330
|
|
334
331
|
```yml
|
335
332
|
styles:
|
@@ -338,15 +335,11 @@ styles:
|
|
338
335
|
media: (screen|print|all) # optional
|
339
336
|
```
|
340
337
|
|
341
|
-
Stylesheets specified as objects (in the latter item above) must
|
342
|
-
have an `href` property. The `media` defaults to `screen`.
|
338
|
+
Stylesheets specified as objects (in the latter item above) must have an `href` property. The `media` defaults to `screen`.
|
343
339
|
|
344
340
|
### Scripts
|
345
341
|
|
346
|
-
As a general rule, all scripts are inserted before a layouts'
|
347
|
-
`</body>`, which prevents them from blocking the rendering of your
|
348
|
-
page's content. Scripts can be specified in `_config.yml` or a
|
349
|
-
layout or page's [front matter] YAML in the following form:
|
342
|
+
As a general rule, all scripts are inserted before a layouts' `</body>`, which prevents them from blocking the rendering of your page's content. Scripts can be specified in `_config.yml` or a layout or page's [front matter] YAML in the following form:
|
350
343
|
|
351
344
|
```yml
|
352
345
|
scripts:
|
@@ -355,8 +348,7 @@ scripts:
|
|
355
348
|
async: true # optional
|
356
349
|
```
|
357
350
|
|
358
|
-
Scripts specified as objects (in the latter item above) must have a `src`
|
359
|
-
property. Scripts with `async: true` will get an `async` attribute, which tells the browser _not_ to let this script's loading block the execution of subsequent scripts. If the execution order of your scripts is **not** important, setting `async: true` may provide performance benefits to your users. (Conversely, if you don't know whether your scripts need to execute in a particular order, then you should not set `async: true` because it may prevent your scripts from running propertly.)
|
351
|
+
Scripts specified as objects (in the latter item above) must have a `src` property. Scripts with `async: true` will get an `async` attribute, which tells the browser _not_ to let this script's loading block the execution of subsequent scripts. If the execution order of your scripts is **not** important, setting `async: true` may provide performance benefits to your users. (Conversely, if you don't know whether your scripts need to execute in a particular order, then you should not set `async: true` because it may prevent your scripts from running propertly.)
|
360
352
|
|
361
353
|
### Asset load order
|
362
354
|
|
@@ -372,18 +364,17 @@ Both [stylesheets](#stylesheets) and [scripts](#scripts) can be configured
|
|
372
364
|
|
373
365
|
## Customization
|
374
366
|
|
375
|
-
Customize the USWDS Jekyll theme with [USWDS theme settings files](https://designsystem.digital.gov/documentation/settings/), [USWDS design tokens](https://designsystem.digital.gov/design-tokens/), and custom Sass or CSS. You'll need to
|
367
|
+
Customize the USWDS Jekyll theme with [USWDS theme settings files](https://designsystem.digital.gov/documentation/settings/), [USWDS design tokens](https://designsystem.digital.gov/design-tokens/), and custom Sass or CSS. You'll need to place USWDS settings and custom Sass into a couple specific locations for the theme to find them.
|
376
368
|
|
377
|
-
1.
|
369
|
+
1. **Settings:** Add custom USWDS settings to `_sass/_uswds-theme-settings.scss`. Settings control the USWDS output. See all available settings in the [USWDS settings documentation](https://designsystem.digital.gov/documentation/settings/). We recommend adding only your modified settings to the `_uswds-theme-settings.scss` file.
|
378
370
|
|
379
|
-
|
371
|
+
To see an example of all the settings available to USWDS, see the files [in the USWDS GitHub repo](https://github.com/uswds/uswds/tree/develop/src/stylesheets/theme). The repo splits settings into multiple files. If you want to copy and mimic that structure, download the repo files using a tool like [DownGit](https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/uswds/uswds/tree/develop/src/stylesheets/theme). Then add them to the `_sass/` directory and `@import` them from `_uswds-theme-settings.scss`.
|
380
372
|
|
381
|
-
|
373
|
+
Whether you add only individual settings variables or import from multiple files, `_uswds-theme-settings.scss` needs to be the entry point.
|
382
374
|
|
383
|
-
1. Add any
|
375
|
+
1. **Custom Sass and variables:** Add any custom CSS or Sass to `_sass/_uswds-theme-custom-styles.scss`. You can use this custom styles file to `@import` any _additional_ Sass or CSS files your project needs, as long as any additional files exist in the `/_sass` directory.
|
384
376
|
|
385
|
-
|
386
|
-
[selectively override](#overriding-includes-and-layouts) individual includes and layouts.
|
377
|
+
Custom Sass loads after the USWDS and default Sass, so you can use it to override the defaults. Individual sites can also [selectively override](#overriding-includes-and-layouts) individual includes and layouts.
|
387
378
|
|
388
379
|
### Overriding includes and layouts
|
389
380
|
|
@@ -391,11 +382,6 @@ Any [include](_includes) or [layout](_layouts) can be overridden by
|
|
391
382
|
your site by placing a file with the same name into your site's
|
392
383
|
`_includes` or `_layouts` directory. For instance:
|
393
384
|
|
394
|
-
- To change how [stylesheets](#stylesheets) are loaded or
|
395
|
-
referenced, you can create your own `_includes/styles.html`,
|
396
|
-
which will subsequently change how stylesheets are loaded in all
|
397
|
-
layouts that inherit from the USWDS [default layout](#layout-default).
|
398
|
-
|
399
385
|
- You can change how the side navigation is rendered (but not which
|
400
386
|
data it receives) in the [page layout](#layout-page) by creating
|
401
387
|
your own `_includes/sidenav.html`.
|
@@ -406,24 +392,13 @@ your site by placing a file with the same name into your site's
|
|
406
392
|
|
407
393
|
## Components
|
408
394
|
|
409
|
-
For some [USWDS components](https://designsystem.digital.gov/components/),
|
410
|
-
there are two different files that control how data is passed to
|
395
|
+
For some [USWDS components](https://designsystem.digital.gov/components/), there are two different files that control how data is passed to
|
411
396
|
the template:
|
412
397
|
|
413
|
-
1. `components/{component}.html` is the low-level template that
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
1. `{component}.html` is the "concrete" implementation of the
|
418
|
-
component that sets the appropriate global variable then
|
419
|
-
includes the low-level template.
|
420
|
-
|
421
|
-
This separation allows you to override either of the component
|
422
|
-
includes in your own Jekyll site without having to re-implement
|
423
|
-
either the high- or low-level logic. For instance, if you want your
|
424
|
-
header data to come directly from the Jekyll configuration file
|
425
|
-
(`_config.yml`) rather than `_data/header.yml`, you can override
|
426
|
-
`_includes/header.html` to look like this:
|
398
|
+
1. `components/{component}.html` is the low-level template that assumes a similarly named global template variable. For instance, the header component operates on the `header` template variable.
|
399
|
+
1. `{component}.html` is the "concrete" implementation of the component that sets the appropriate global variable then includes the low-level template.
|
400
|
+
|
401
|
+
This separation allows you to override either of the component includes in your own Jekyll site without having to re-implement either the high- or low-level logic. For instance, if you want your header data to come directly from the Jekyll configuration file (`_config.yml`) rather than `_data/header.yml`, you can override `_includes/header.html` to look like this:
|
427
402
|
|
428
403
|
```html
|
429
404
|
{% assign header = site.data.header %} {% include components/header--basic.html
|
@@ -432,28 +407,20 @@ header data to come directly from the Jekyll configuration file
|
|
432
407
|
|
433
408
|
### Header
|
434
409
|
|
435
|
-
The [header.html include](_includes/header.html) sets the `header`
|
436
|
-
template variable to `site.data.header`, the value of which is set
|
437
|
-
in your Jekyll project's `_data/header.yml` file. Then it includes
|
438
|
-
[components/header.html](_includes/components/header.html) to
|
439
|
-
render the header's markup.
|
410
|
+
The [header.html include](_includes/header.html) sets the `header` template variable to `site.data.header`, the value of which is set in your Jekyll project's `_data/header.yml` file. Then it includes [components/header.html](_includes/components/header.html) to render the header's markup.
|
440
411
|
|
441
412
|
See this repo's [header.yml](_data/header.yml) for more info.
|
442
413
|
|
443
414
|
### Footer
|
444
415
|
|
445
|
-
The [footer.html include](_includes/footer.html) sets the `
|
446
|
-
template variable to `site.data.footer`, the value of which is set
|
447
|
-
in your Jekyll project's `_data/footer.yml` file. Then it includes
|
448
|
-
[components/footer.html](_includes/components/footer.html) to
|
416
|
+
The [footer.html include](_includes/footer.html) sets the `footer` template variable to `site.data.footer`, the value of which is set in your Jekyll project's `_data/footer.yml` file. Then it includes [components/footer.html](_includes/components/footer.html) to
|
449
417
|
render the footer's markup.
|
450
418
|
|
451
419
|
See this repo's [footer.yml](_data/footer.yml) for more info.
|
452
420
|
|
453
421
|
## Layouts
|
454
422
|
|
455
|
-
This theme provides the following layouts, which you can use by
|
456
|
-
setting the `layout` [front matter] on each page, like so:
|
423
|
+
This theme provides the following layouts, which you can use by setting the `layout` [front matter] on each page, like so:
|
457
424
|
|
458
425
|
```yml
|
459
426
|
---
|
@@ -471,32 +438,22 @@ Supported (optional) front matter for page layouts.
|
|
471
438
|
|
472
439
|
### `layout: default`
|
473
440
|
|
474
|
-
This is the bare-bones USWDS layout, which does all of the
|
475
|
-
basic page scaffolding then drops the page content into the
|
476
|
-
`<main>` element. All of the other layouts "inherit" this one and
|
477
|
-
provide other features in the content block.
|
441
|
+
This is the bare-bones USWDS layout, which does all of the basic page scaffolding then drops the page content into the `<main>` element. All of the other layouts "inherit" this one and provide other features in the content block.
|
478
442
|
|
479
|
-
The default layout provides a layout [front matter] hook to add
|
480
|
-
attributes to the `<main>` element. You can see how this works in
|
481
|
-
the [page layout](_layouts/page.html#L3-L4).
|
443
|
+
The default layout provides a layout [front matter] hook to add attributes to the `<main>` element. You can see how this works in the [page layout](_layouts/page.html#L3-L4).
|
482
444
|
|
483
445
|
### `layout: home`
|
484
446
|
|
485
447
|
This layout implements the [home page
|
486
|
-
template](https://designsystem.digital.gov/page-templates/landing/), which
|
487
|
-
accommodates the following [front matter]:
|
448
|
+
template](https://designsystem.digital.gov/page-templates/landing/), which accommodates the following [front matter]:
|
488
449
|
|
489
|
-
Check out the YAML front matter in the [home demo
|
490
|
-
page](demo/home.html) for an example of how to structure it.
|
450
|
+
Check out the YAML front matter in the [home demo page](demo/home.html) for an example of how to structure it.
|
491
451
|
|
492
452
|
### `layout: page`
|
493
453
|
|
494
|
-
This layout implements the [document page
|
495
|
-
template](https://designsystem.digital.gov/page-templates/docs/).
|
454
|
+
This layout implements the [document page template](https://designsystem.digital.gov/page-templates/docs/).
|
496
455
|
|
497
|
-
See the [page demo page](demo/page.md) for an example of how this
|
498
|
-
works, and see [\_data/navigation.yml](_data/navigation.yml) for how
|
499
|
-
to structure named navigation data for your site.
|
456
|
+
See the [page demo page](demo/page.md) for an example of how this works, and see [\_data/navigation.yml](_data/navigation.yml) for how to structure named navigation data for your site.
|
500
457
|
|
501
458
|
### `layout: post`
|
502
459
|
|
@@ -544,7 +501,7 @@ To show a listing of team members on a page add `{% include team-list.html %} to
|
|
544
501
|
|
545
502
|
See [this example pull request](https://github.com/18F/before-you-ship/pull/458).
|
546
503
|
|
547
|
-
### From
|
504
|
+
### From earlier versions
|
548
505
|
|
549
506
|
**Note:** `uswds-jekyll` 5.x is only compatible with Jekyll 4.0 and higher.
|
550
507
|
|
@@ -560,8 +517,10 @@ See [this example pull request](https://github.com/18F/before-you-ship/pull/458)
|
|
560
517
|
bundle update uswds-jekyll
|
561
518
|
```
|
562
519
|
|
563
|
-
1.
|
564
|
-
1.
|
520
|
+
1. If you have an existing `_sass` folder, it needs to move to the root level, and out of any directory like `/assets`.
|
521
|
+
1. Add or move any custom styles or variables to `/_sass/_uswds-theme-custom-styles.scss`.
|
522
|
+
|
523
|
+
If you have multiple custom styles files, add them to the `/_sass` directory and `@import` them from `_uswds-theme-custom-styles.scss`.
|
565
524
|
1. Convert manual values to tokenized values using the guidance on the [USWDS migration page](https://designsystem.digital.gov/documentation/migration/#spacing-units).
|
566
525
|
1. Don't duplicate the `h1` in the body content of `page` template pages. (This is automatically inserted at the top with the content of `page.title`.)
|
567
526
|
1. Check that certain data keys exist
|
@@ -18,26 +18,28 @@
|
|
18
18
|
<div class="usa-banner__content usa-accordion__content" id="gov-banner">
|
19
19
|
<div class="grid-row grid-gap-lg">
|
20
20
|
<div class="usa-banner__guidance tablet:grid-col-6">
|
21
|
-
<img class="usa-banner__icon usa-media-block__img" src="{{ site.baseurl }}/assets/uswds/img/icon-dot-gov.svg" alt="Dot gov">
|
21
|
+
<img class="usa-banner__icon usa-media-block__img" src="{{ site.baseurl }}/assets/uswds/img/icon-dot-gov.svg" role="img" alt="Dot gov">
|
22
22
|
<div class="usa-media-block__body">
|
23
23
|
<p>
|
24
|
-
<strong>
|
25
|
-
<br
|
26
|
-
|
24
|
+
<strong>Official websites use .gov</strong>
|
25
|
+
<br/>
|
26
|
+
A <strong>.gov</strong> website belongs to an official government organization in the United States.
|
27
27
|
</p>
|
28
28
|
</div>
|
29
29
|
</div>
|
30
30
|
<div class="usa-banner__guidance tablet:grid-col-6">
|
31
|
-
<img class="usa-banner__icon usa-media-block__img" src="{{ site.baseurl }}/assets/uswds/img/icon-https.svg" alt="Https">
|
31
|
+
<img class="usa-banner__icon usa-media-block__img" src="{{ site.baseurl }}/assets/uswds/img/icon-https.svg" role="img" alt="Https">
|
32
32
|
<div class="usa-media-block__body">
|
33
33
|
<p>
|
34
|
-
<strong>
|
35
|
-
<br
|
36
|
-
|
34
|
+
<strong>Secure .gov websites use HTTPS</strong>
|
35
|
+
<br/>
|
36
|
+
A <strong>lock</strong> (
|
37
|
+
<span class="icon-lock"><svg xmlns="http://www.w3.org/2000/svg" width="52" height="64" viewBox="0 0 52 64" class="usa-banner__lock-image" role="img" aria-labelledby="banner-lock-title banner-lock-description"><title id="banner-lock-title">Lock</title><desc id="banner-lock-description">A locked padlock</desc><path fill="#000000" fill-rule="evenodd" d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"/></svg></span>
|
38
|
+
) or <strong>https://</strong> means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.
|
37
39
|
</p>
|
38
40
|
</div>
|
39
41
|
</div>
|
40
42
|
</div>
|
41
43
|
</div>
|
42
44
|
</div>
|
43
|
-
</section>
|
45
|
+
</section>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
.usa-header,
|
2
2
|
.usa-sidenav-list {
|
3
|
-
@media($theme-header-min-width) {
|
3
|
+
@include at-media($theme-header-min-width) {
|
4
4
|
.usa-button {
|
5
5
|
margin: 0;
|
6
6
|
width: auto;
|
7
7
|
}
|
8
8
|
}
|
9
9
|
.usa-button {
|
10
|
-
color:
|
10
|
+
color: color("white");
|
11
11
|
padding: units(1.5);
|
12
12
|
&:hover {
|
13
|
-
background-color: color(
|
14
|
-
color:
|
13
|
+
background-color: color("primary-dark");
|
14
|
+
color: color("white");
|
15
15
|
text-decoration: none;
|
16
16
|
}
|
17
17
|
}
|
@@ -8,14 +8,14 @@ $usa-alerts: (
|
|
8
8
|
success: "success-lighter",
|
9
9
|
warning: "warning-lighter",
|
10
10
|
error: "error-lighter",
|
11
|
-
info: "info-lighter"
|
11
|
+
info: "info-lighter",
|
12
12
|
);
|
13
13
|
|
14
14
|
$usa-alerts-bar: (
|
15
15
|
success: "success",
|
16
16
|
warning: "warning",
|
17
17
|
error: "error",
|
18
|
-
info: "info"
|
18
|
+
info: "info",
|
19
19
|
);
|
20
20
|
|
21
21
|
$alerts: map-merge($usa-alerts, $usa-custom-alerts);
|
@@ -51,14 +51,13 @@ $alert-padding-left: units($theme-alert-padding-x) +
|
|
51
51
|
width: units($theme-alert-bar-width);
|
52
52
|
}
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
margin-top: units(1);
|
57
|
-
padding-left: units(1);
|
58
|
-
}
|
59
|
-
|
60
|
-
.usa-checklist {
|
54
|
+
> .usa-list,
|
55
|
+
.usa-alert__body > .usa-list {
|
61
56
|
padding-left: 0;
|
57
|
+
|
58
|
+
&:last-child {
|
59
|
+
margin-bottom: 0;
|
60
|
+
}
|
62
61
|
}
|
63
62
|
}
|
64
63
|
|
@@ -1,7 +1,40 @@
|
|
1
|
+
$banner-guidance-measure: 3;
|
2
|
+
$banner-icon-colors: get-link-tokens-from-bg(
|
3
|
+
$theme-banner-background-color,
|
4
|
+
$theme-banner-link-color
|
5
|
+
);
|
6
|
+
$banner-icon-color: nth($banner-icon-colors, 1);
|
7
|
+
$banner-icon-hover: nth($banner-icon-colors, 2);
|
8
|
+
$banner-icon-chevron: (
|
9
|
+
"name": "chevron",
|
10
|
+
"svg-height": 39,
|
11
|
+
"svg-width": 64,
|
12
|
+
"height": 0.8ex,
|
13
|
+
"color": $banner-icon-color,
|
14
|
+
"color-variant": "white",
|
15
|
+
"color-hover": $banner-icon-hover,
|
16
|
+
);
|
17
|
+
$banner-icon-chevron-up: map-merge(
|
18
|
+
$banner-icon-chevron,
|
19
|
+
(
|
20
|
+
"rotate": 180deg,
|
21
|
+
)
|
22
|
+
);
|
23
|
+
$banner-icon-close: (
|
24
|
+
"name": "close-alt",
|
25
|
+
"svg-height": 40,
|
26
|
+
"svg-width": 40,
|
27
|
+
"height": $theme-icon-image-size,
|
28
|
+
"color": "blue-60v",
|
29
|
+
"color-variant": "white",
|
30
|
+
"container-height": $size-touch-target,
|
31
|
+
"container-width": $size-touch-target,
|
32
|
+
);
|
33
|
+
|
1
34
|
.usa-banner {
|
2
35
|
@include typeset($theme-banner-font-family);
|
3
36
|
@include border-box-sizing;
|
4
|
-
background-color: color(
|
37
|
+
background-color: color($theme-banner-background-color);
|
5
38
|
|
6
39
|
@include at-media("tablet") {
|
7
40
|
font-size: font-size($theme-banner-font-family, "3xs");
|
@@ -13,6 +46,11 @@
|
|
13
46
|
}
|
14
47
|
}
|
15
48
|
|
49
|
+
.usa-banner__header,
|
50
|
+
.usa-banner__content {
|
51
|
+
@include set-text-from-bg($theme-banner-background-color);
|
52
|
+
}
|
53
|
+
|
16
54
|
.usa-banner__content {
|
17
55
|
@include grid-container($theme-banner-max-width);
|
18
56
|
@include add-responsive-site-margins;
|
@@ -36,6 +74,9 @@
|
|
36
74
|
}
|
37
75
|
|
38
76
|
.usa-banner__guidance {
|
77
|
+
@include u-display("flex");
|
78
|
+
@include u-flex("align-start");
|
79
|
+
@include u-measure($banner-guidance-measure);
|
39
80
|
padding-top: units(2);
|
40
81
|
|
41
82
|
@include at-media("tablet") {
|
@@ -43,6 +84,19 @@
|
|
43
84
|
}
|
44
85
|
}
|
45
86
|
|
87
|
+
.usa-banner__lock-image {
|
88
|
+
$lock-h: 64; // unitless height of svg
|
89
|
+
$lock-w: 52; // unitless width of svg
|
90
|
+
$lock-aspect: $lock-w / $lock-h;
|
91
|
+
$icon-height: 1.5ex; // height of the lock icon; use ex for resilience
|
92
|
+
|
93
|
+
height: $icon-height;
|
94
|
+
width: $icon-height * $lock-aspect;
|
95
|
+
path {
|
96
|
+
fill: currentColor;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
46
100
|
.usa-banner__inner {
|
47
101
|
@include add-responsive-site-margins;
|
48
102
|
@include grid-container($theme-banner-max-width);
|
@@ -68,23 +122,6 @@
|
|
68
122
|
}
|
69
123
|
}
|
70
124
|
|
71
|
-
.usa-banner__header-close-text {
|
72
|
-
@include u-margin-y(0);
|
73
|
-
color: color("base-dark");
|
74
|
-
display: none;
|
75
|
-
font-size: font-size($theme-banner-font-family, 1);
|
76
|
-
line-height: line-height($theme-banner-font-family, 2);
|
77
|
-
padding-top: units(0.5);
|
78
|
-
|
79
|
-
.usa-banner__header--expanded & {
|
80
|
-
display: block;
|
81
|
-
|
82
|
-
@include at-media("tablet") {
|
83
|
-
display: none;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
125
|
.usa-banner__header-text {
|
89
126
|
@include u-margin-y(0);
|
90
127
|
font-size: font-size($theme-banner-font-family, 1);
|
@@ -92,8 +129,18 @@
|
|
92
129
|
}
|
93
130
|
|
94
131
|
.usa-banner__header-action {
|
95
|
-
@include
|
96
|
-
|
132
|
+
@include place-icon(
|
133
|
+
$banner-icon-chevron,
|
134
|
+
"after",
|
135
|
+
2px,
|
136
|
+
middle,
|
137
|
+
$theme-banner-background-color
|
138
|
+
);
|
139
|
+
@include set-link-from-bg(
|
140
|
+
$theme-banner-background-color,
|
141
|
+
$theme-banner-link-color
|
142
|
+
);
|
143
|
+
|
97
144
|
line-height: line-height($theme-banner-font-family, 2);
|
98
145
|
margin-bottom: units(0);
|
99
146
|
margin-top: units(2px);
|
@@ -124,7 +171,6 @@
|
|
124
171
|
|
125
172
|
@include at-media("tablet") {
|
126
173
|
background-color: transparent;
|
127
|
-
color: color("ink");
|
128
174
|
display: block;
|
129
175
|
font-size: font-size($theme-banner-font-family, 1);
|
130
176
|
font-weight: font-weight("normal");
|
@@ -150,6 +196,10 @@
|
|
150
196
|
@include u-pin("left");
|
151
197
|
@include u-pin("y");
|
152
198
|
@include u-text("primary", underline, baseline);
|
199
|
+
@include set-link-from-bg(
|
200
|
+
$theme-banner-background-color,
|
201
|
+
$theme-banner-link-color
|
202
|
+
);
|
153
203
|
display: block;
|
154
204
|
font-size: font-size($theme-banner-font-family, 1);
|
155
205
|
height: auto;
|
@@ -164,14 +214,23 @@
|
|
164
214
|
}
|
165
215
|
|
166
216
|
@include at-media("tablet") {
|
167
|
-
@include
|
217
|
+
@include place-icon(
|
218
|
+
$banner-icon-chevron,
|
219
|
+
"after",
|
220
|
+
2px,
|
221
|
+
middle,
|
222
|
+
$theme-banner-background-color
|
223
|
+
);
|
224
|
+
@include set-link-from-bg(
|
225
|
+
$theme-banner-background-color,
|
226
|
+
$theme-banner-link-color
|
227
|
+
);
|
168
228
|
@include u-pin("none");
|
169
229
|
display: inline;
|
170
230
|
margin-left: units(1);
|
171
231
|
position: relative;
|
172
232
|
|
173
233
|
&:hover {
|
174
|
-
@include u-text("primary-darker");
|
175
234
|
// Underline added to inner text instead.
|
176
235
|
text-decoration: none;
|
177
236
|
}
|
@@ -185,25 +244,37 @@
|
|
185
244
|
background-image: none;
|
186
245
|
|
187
246
|
@include at-media-max("tablet") {
|
188
|
-
@include
|
189
|
-
|
247
|
+
@include place-icon(
|
248
|
+
$banner-icon-close,
|
190
249
|
"after",
|
191
|
-
$theme-icon-image-size,
|
192
|
-
$size-touch-target,
|
193
250
|
0,
|
194
|
-
|
251
|
+
middle,
|
252
|
+
"base-lighter"
|
195
253
|
);
|
196
254
|
|
197
|
-
&::
|
255
|
+
&::before {
|
198
256
|
@include u-pin("y");
|
199
257
|
@include u-pin("right");
|
200
258
|
background-color: color("base-lighter");
|
201
|
-
|
259
|
+
content: "";
|
260
|
+
display: block;
|
261
|
+
height: units($size-touch-target);
|
262
|
+
width: units($size-touch-target);
|
263
|
+
}
|
264
|
+
&::after {
|
265
|
+
@include u-pin("y");
|
266
|
+
@include u-pin("right");
|
202
267
|
}
|
203
268
|
}
|
204
269
|
|
205
270
|
@include at-media("tablet") {
|
206
|
-
@include
|
271
|
+
@include place-icon(
|
272
|
+
$banner-icon-chevron-up,
|
273
|
+
"after",
|
274
|
+
2px,
|
275
|
+
middle,
|
276
|
+
$theme-banner-background-color
|
277
|
+
);
|
207
278
|
height: auto;
|
208
279
|
padding: units(0);
|
209
280
|
position: relative;
|