uswds-jekyll 2.2.1 → 3.0.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 +24 -23
- data/_includes/components/footer--medium.html +100 -0
- data/_includes/components/header--basic.html +12 -10
- data/_includes/components/header--extended.html +16 -12
- data/_includes/footer.html +2 -1
- data/_includes/header.html +4 -0
- data/_includes/scripts.html +12 -3
- data/_sass/uswds/components/_header.scss +1 -1
- data/_sass/uswds/components/_sidenav.scss +0 -23
- data/_sass/uswds/core/_utilities.scss +3 -3
- data/_sass/uswds/core/_variables.scss +15 -16
- data/_sass/uswds/elements/_inputs.scss +1 -3
- data/assets/uswds/css/uswds.css +7 -38
- data/assets/uswds/css/uswds.min.css +2 -2
- data/assets/uswds/css/uswds.min.css.map +1 -1
- metadata +5 -140
- data/_includes/components/footer.html +0 -82
- data/_includes/last-modified.html +0 -3
- data/_layouts/search-results.html +0 -25
- data/assets/uswds/scss/_all.scss +0 -1
- data/assets/uswds/scss/components/_accordions.scss +0 -150
- data/assets/uswds/scss/components/_alerts.scss +0 -125
- data/assets/uswds/scss/components/_banner.scss +0 -204
- data/assets/uswds/scss/components/_footer.scss +0 -518
- data/assets/uswds/scss/components/_forms.scss +0 -164
- data/assets/uswds/scss/components/_graphic-list.scss +0 -35
- data/assets/uswds/scss/components/_header.scss +0 -218
- data/assets/uswds/scss/components/_hero.scss +0 -37
- data/assets/uswds/scss/components/_layout.scss +0 -36
- data/assets/uswds/scss/components/_media-block.scss +0 -12
- data/assets/uswds/scss/components/_navigation.scss +0 -549
- data/assets/uswds/scss/components/_search.scss +0 -111
- data/assets/uswds/scss/components/_section.scss +0 -37
- data/assets/uswds/scss/components/_sidenav.scss +0 -31
- data/assets/uswds/scss/components/_skipnav.scss +0 -19
- data/assets/uswds/scss/core/_base.scss +0 -35
- data/assets/uswds/scss/core/_defaults.scss +0 -8
- data/assets/uswds/scss/core/_fonts.scss +0 -65
- data/assets/uswds/scss/core/_grid-settings.scss +0 -3
- data/assets/uswds/scss/core/_grid.scss +0 -199
- data/assets/uswds/scss/core/_utilities.scss +0 -252
- data/assets/uswds/scss/core/_variables.scss +0 -156
- data/assets/uswds/scss/elements/_buttons.scss +0 -217
- data/assets/uswds/scss/elements/_embed.scss +0 -26
- data/assets/uswds/scss/elements/_figure.scss +0 -13
- data/assets/uswds/scss/elements/_inputs.scss +0 -353
- data/assets/uswds/scss/elements/_labels.scss +0 -20
- data/assets/uswds/scss/elements/_list.scss +0 -32
- data/assets/uswds/scss/elements/_table.scss +0 -55
- data/assets/uswds/scss/elements/_typography.scss +0 -260
- data/assets/uswds/scss/lib/_bourbon-deprecated-upcoming.scss +0 -411
- data/assets/uswds/scss/lib/_bourbon.scss +0 -87
- data/assets/uswds/scss/lib/_neat-helpers.scss +0 -11
- data/assets/uswds/scss/lib/_neat.scss +0 -23
- data/assets/uswds/scss/lib/_normalize.scss +0 -424
- data/assets/uswds/scss/lib/addons/_border-color.scss +0 -26
- data/assets/uswds/scss/lib/addons/_border-radius.scss +0 -48
- data/assets/uswds/scss/lib/addons/_border-style.scss +0 -25
- data/assets/uswds/scss/lib/addons/_border-width.scss +0 -25
- data/assets/uswds/scss/lib/addons/_buttons.scss +0 -64
- data/assets/uswds/scss/lib/addons/_clearfix.scss +0 -25
- data/assets/uswds/scss/lib/addons/_ellipsis.scss +0 -30
- data/assets/uswds/scss/lib/addons/_font-stacks.scss +0 -31
- data/assets/uswds/scss/lib/addons/_hide-text.scss +0 -27
- data/assets/uswds/scss/lib/addons/_margin.scss +0 -26
- data/assets/uswds/scss/lib/addons/_padding.scss +0 -26
- data/assets/uswds/scss/lib/addons/_position.scss +0 -48
- data/assets/uswds/scss/lib/addons/_prefixer.scss +0 -66
- data/assets/uswds/scss/lib/addons/_retina-image.scss +0 -25
- data/assets/uswds/scss/lib/addons/_size.scss +0 -51
- data/assets/uswds/scss/lib/addons/_text-inputs.scss +0 -113
- data/assets/uswds/scss/lib/addons/_timing-functions.scss +0 -34
- data/assets/uswds/scss/lib/addons/_triangle.scss +0 -63
- data/assets/uswds/scss/lib/addons/_word-wrap.scss +0 -29
- data/assets/uswds/scss/lib/css3/_animation.scss +0 -43
- data/assets/uswds/scss/lib/css3/_appearance.scss +0 -3
- data/assets/uswds/scss/lib/css3/_backface-visibility.scss +0 -3
- data/assets/uswds/scss/lib/css3/_background-image.scss +0 -42
- data/assets/uswds/scss/lib/css3/_background.scss +0 -55
- data/assets/uswds/scss/lib/css3/_border-image.scss +0 -59
- data/assets/uswds/scss/lib/css3/_calc.scss +0 -4
- data/assets/uswds/scss/lib/css3/_columns.scss +0 -47
- data/assets/uswds/scss/lib/css3/_filter.scss +0 -4
- data/assets/uswds/scss/lib/css3/_flex-box.scss +0 -287
- data/assets/uswds/scss/lib/css3/_font-face.scss +0 -24
- data/assets/uswds/scss/lib/css3/_font-feature-settings.scss +0 -4
- data/assets/uswds/scss/lib/css3/_hidpi-media-query.scss +0 -10
- data/assets/uswds/scss/lib/css3/_hyphens.scss +0 -4
- data/assets/uswds/scss/lib/css3/_image-rendering.scss +0 -14
- data/assets/uswds/scss/lib/css3/_keyframes.scss +0 -36
- data/assets/uswds/scss/lib/css3/_linear-gradient.scss +0 -38
- data/assets/uswds/scss/lib/css3/_perspective.scss +0 -8
- data/assets/uswds/scss/lib/css3/_placeholder.scss +0 -8
- data/assets/uswds/scss/lib/css3/_radial-gradient.scss +0 -39
- data/assets/uswds/scss/lib/css3/_selection.scss +0 -42
- data/assets/uswds/scss/lib/css3/_text-decoration.scss +0 -19
- data/assets/uswds/scss/lib/css3/_transform.scss +0 -15
- data/assets/uswds/scss/lib/css3/_transition.scss +0 -71
- data/assets/uswds/scss/lib/css3/_user-select.scss +0 -3
- data/assets/uswds/scss/lib/functions/_assign-inputs.scss +0 -11
- data/assets/uswds/scss/lib/functions/_contains-falsy.scss +0 -20
- data/assets/uswds/scss/lib/functions/_contains.scss +0 -26
- data/assets/uswds/scss/lib/functions/_is-length.scss +0 -11
- data/assets/uswds/scss/lib/functions/_is-light.scss +0 -21
- data/assets/uswds/scss/lib/functions/_is-number.scss +0 -11
- data/assets/uswds/scss/lib/functions/_is-size.scss +0 -13
- data/assets/uswds/scss/lib/functions/_modular-scale.scss +0 -69
- data/assets/uswds/scss/lib/functions/_new-breakpoint.scss +0 -49
- data/assets/uswds/scss/lib/functions/_private.scss +0 -114
- data/assets/uswds/scss/lib/functions/_px-to-em.scss +0 -13
- data/assets/uswds/scss/lib/functions/_px-to-rem.scss +0 -15
- data/assets/uswds/scss/lib/functions/_shade.scss +0 -24
- data/assets/uswds/scss/lib/functions/_strip-units.scss +0 -17
- data/assets/uswds/scss/lib/functions/_tint.scss +0 -24
- data/assets/uswds/scss/lib/functions/_transition-property-name.scss +0 -22
- data/assets/uswds/scss/lib/functions/_unpack.scss +0 -27
- data/assets/uswds/scss/lib/grid/_box-sizing.scss +0 -15
- data/assets/uswds/scss/lib/grid/_direction-context.scss +0 -33
- data/assets/uswds/scss/lib/grid/_display-context.scss +0 -28
- data/assets/uswds/scss/lib/grid/_fill-parent.scss +0 -22
- data/assets/uswds/scss/lib/grid/_media.scss +0 -92
- data/assets/uswds/scss/lib/grid/_omega.scss +0 -87
- data/assets/uswds/scss/lib/grid/_outer-container.scss +0 -34
- data/assets/uswds/scss/lib/grid/_pad.scss +0 -25
- data/assets/uswds/scss/lib/grid/_private.scss +0 -35
- data/assets/uswds/scss/lib/grid/_row.scss +0 -52
- data/assets/uswds/scss/lib/grid/_shift.scss +0 -50
- data/assets/uswds/scss/lib/grid/_span-columns.scss +0 -94
- data/assets/uswds/scss/lib/grid/_to-deprecate.scss +0 -97
- data/assets/uswds/scss/lib/grid/_visual-grid.scss +0 -42
- data/assets/uswds/scss/lib/helpers/_convert-units.scss +0 -21
- data/assets/uswds/scss/lib/helpers/_directional-values.scss +0 -96
- data/assets/uswds/scss/lib/helpers/_font-source-declaration.scss +0 -43
- data/assets/uswds/scss/lib/helpers/_gradient-positions-parser.scss +0 -13
- data/assets/uswds/scss/lib/helpers/_linear-angle-parser.scss +0 -25
- data/assets/uswds/scss/lib/helpers/_linear-gradient-parser.scss +0 -41
- data/assets/uswds/scss/lib/helpers/_linear-positions-parser.scss +0 -61
- data/assets/uswds/scss/lib/helpers/_linear-side-corner-parser.scss +0 -31
- data/assets/uswds/scss/lib/helpers/_radial-arg-parser.scss +0 -69
- data/assets/uswds/scss/lib/helpers/_radial-gradient-parser.scss +0 -50
- data/assets/uswds/scss/lib/helpers/_radial-positions-parser.scss +0 -18
- data/assets/uswds/scss/lib/helpers/_render-gradients.scss +0 -26
- data/assets/uswds/scss/lib/helpers/_shape-size-stripper.scss +0 -10
- data/assets/uswds/scss/lib/helpers/_str-to-num.scss +0 -50
- data/assets/uswds/scss/lib/mixins/_clearfix.scss +0 -25
- data/assets/uswds/scss/lib/settings/_asset-pipeline.scss +0 -7
- data/assets/uswds/scss/lib/settings/_disable-warnings.scss +0 -13
- data/assets/uswds/scss/lib/settings/_grid.scss +0 -51
- data/assets/uswds/scss/lib/settings/_prefixer.scss +0 -9
- data/assets/uswds/scss/lib/settings/_px-to-em.scss +0 -1
- data/assets/uswds/scss/lib/settings/_visual-grid.scss +0 -27
- data/assets/uswds/scss/uswds.scss +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8833f4d71fde3ce27a1a1e93a4668d850fabd94
|
4
|
+
data.tar.gz: 076066966ac5df1f30f5a700947d5934c4fda813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 587a658fb06380eb70d10527ef86ad9a6a70883e21dbc00af0285dac43bf1d75ef9c7b0f725525a685c4a2cb90a3bb624835cb3e9b7e6934a7da654e3b554dd8
|
7
|
+
data.tar.gz: b4694ce851e925d33a86260fa3b0dac4684e5c1cc2ac739f5f1dec7255d123049f03e9e99429122e535897cade21643bb697b61b3931e71803daa9374516e278
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# Jekyll + U.S. Web Design
|
1
|
+
# Jekyll + U.S. Web Design System
|
2
2
|
|
3
3
|
This is a [Jekyll theme](https://jekyllrb.com/docs/themes/) for the
|
4
|
-
[U.S. Web Design
|
4
|
+
[U.S. Web Design System](https://designsystem.digital.gov).
|
5
5
|
|
6
6
|
## Table of contents
|
7
7
|
1. [Installation](#installation)
|
@@ -13,6 +13,7 @@ This is a [Jekyll theme](https://jekyllrb.com/docs/themes/) for the
|
|
13
13
|
- [Page subnavigation](#page-subnavigation)
|
14
14
|
- [Search](#search)
|
15
15
|
- [Analytics](#analytics)
|
16
|
+
- [Last modified date](#last-modified-date)
|
16
17
|
1. [Assets](#assets)
|
17
18
|
- [Stylesheets](#stylesheets)
|
18
19
|
- [Scripts](#scripts)
|
@@ -41,12 +42,6 @@ This is a [Jekyll theme](https://jekyllrb.com/docs/themes/) for the
|
|
41
42
|
```ruby
|
42
43
|
gem 'uswds-jekyll'
|
43
44
|
```
|
44
|
-
1. Install the `jekyll_pages_api_search` by adding it to your `Gemfile`
|
45
|
-
```
|
46
|
-
group :jekyll_plugins do
|
47
|
-
gem 'jekyll_pages_api_search'
|
48
|
-
end
|
49
|
-
```
|
50
45
|
|
51
46
|
1. Fetch and update your bundled gems by running:
|
52
47
|
|
@@ -74,12 +69,7 @@ You will need to restart your Jekyll server to see the effects.
|
|
74
69
|
```ruby
|
75
70
|
gem 'uswds-jekyll', :git => 'https://github.com/18F/uswds-jekyll.git'
|
76
71
|
```
|
77
|
-
|
78
|
-
```
|
79
|
-
group :jekyll_plugins do
|
80
|
-
gem 'jekyll_pages_api_search'
|
81
|
-
end
|
82
|
-
```
|
72
|
+
|
83
73
|
1. Set the `theme` in your site's Jekyll configuration,
|
84
74
|
`_config.yml`:
|
85
75
|
|
@@ -235,11 +225,12 @@ redcarpet:
|
|
235
225
|
|
236
226
|
### Search
|
237
227
|
|
238
|
-
[
|
228
|
+
[Search.gov](https://search.gov/) is used for search and can be configured in `_config.yml`.
|
239
229
|
|
240
|
-
|
230
|
+
Before configuring your search you will need to create a search.gov account and set up your website
|
231
|
+
with search.gov.
|
241
232
|
|
242
|
-
|
233
|
+
After setting up your site on search.gov you can then add your `site handle` to the `config.yml`.
|
243
234
|
|
244
235
|
### Analytics
|
245
236
|
|
@@ -261,10 +252,20 @@ You can add DAP to your site by uncommenting the `dap_agency` line and, if need
|
|
261
252
|
# dap_agency: GSA
|
262
253
|
```
|
263
254
|
|
255
|
+
### Last modified date
|
256
|
+
|
257
|
+
You can show the last date a page was last modified by uncommenting this line from the `footer.yml` data file.
|
258
|
+
This will add the date right before the footer component and uses the `last-modified.html` include.
|
259
|
+
|
260
|
+
```yml
|
261
|
+
# Used to show the "Last updated" date and time;
|
262
|
+
# last_updated: true
|
263
|
+
```
|
264
|
+
|
264
265
|
## Assets
|
265
266
|
|
266
267
|
The [stylesheet](_includes/styles.html) and [script](_includes/scripts.html)
|
267
|
-
includes each incorporate the
|
268
|
+
includes each incorporate the USWDS CSS and JS files if the corresponding
|
268
269
|
`styles` and `scripts` lists aren't defined in your `_config.yml`. So unless
|
269
270
|
you add one or both of those manually, your HTML will include the following:
|
270
271
|
|
@@ -368,7 +369,7 @@ and layouts.
|
|
368
369
|
- /assets/main.css
|
369
370
|
```
|
370
371
|
|
371
|
-
All of the
|
372
|
+
All of the USWDS [SCSS source files](https://github.com/uswds/uswds/tree/master/src/stylesheets)
|
372
373
|
are placed in the [_sass/uswds](_sass/uswds) directory and are available as
|
373
374
|
Sass imports via `@import 'uswds/<path>';`. See the [Jekyll docs][Jekyll Sass]
|
374
375
|
for more information about its Sass/SCSS support, and configuring its Sass
|
@@ -419,7 +420,7 @@ your site by placing a file with the same name into your site's
|
|
419
420
|
|
420
421
|
## Components
|
421
422
|
|
422
|
-
For some [
|
423
|
+
For some [USWDS components](https://designsystem.digital.gov/components/),
|
423
424
|
there are two different files that control how data is passed to
|
424
425
|
the template:
|
425
426
|
|
@@ -479,7 +480,7 @@ layout: name
|
|
479
480
|
|
480
481
|
### `layout: default`
|
481
482
|
|
482
|
-
This is the bare-bones
|
483
|
+
This is the bare-bones USWDS layout, which does all of the
|
483
484
|
basic page scaffolding then drops the page content into the
|
484
485
|
`<main>` element. All of the other layouts "inherit" this one and
|
485
486
|
provide other features in the content block.
|
@@ -492,7 +493,7 @@ the [page layout](_layouts/page.html#L3-L4).
|
|
492
493
|
### `layout: home`
|
493
494
|
|
494
495
|
This layout implements the [home page
|
495
|
-
template](https://
|
496
|
+
template](https://designsystem.digital.gov/page-templates/landing/), which
|
496
497
|
accommodates the following [front matter]:
|
497
498
|
|
498
499
|
```yml
|
@@ -533,7 +534,7 @@ page](demo/home.html) for an example of how to structure it.
|
|
533
534
|
### `layout: page`
|
534
535
|
|
535
536
|
This layout implements the [document page
|
536
|
-
template](https://
|
537
|
+
template](https://designsystem.digital.gov/page-templates/docs/), and
|
537
538
|
accommodates an optional side navigation. Supported [front matter]:
|
538
539
|
|
539
540
|
* `sidenav` is a key _into_ `_data/navigation.yml`. See the
|
@@ -0,0 +1,100 @@
|
|
1
|
+
{% if footer %}
|
2
|
+
<footer class="usa-footer usa-footer-medium" role="contentinfo">
|
3
|
+
|
4
|
+
{% if footer.last_updated %}
|
5
|
+
<div class="usa-grid">
|
6
|
+
<div class="usa-width-one-whole">
|
7
|
+
<p>Last updated: {{ page.last_modified_at | date: '%B %d, %Y at %I:%M %p' }}</p>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
{% endif %}
|
11
|
+
|
12
|
+
{% if footer.top %}
|
13
|
+
<div class="usa-grid usa-footer-return-to-top">
|
14
|
+
<a href="{{ footer.top.href | default: '#' }}">{{ footer.top.text | default: 'Return to top' }}</a>
|
15
|
+
</div>
|
16
|
+
{% endif %}
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
{% if footer.links %}
|
21
|
+
{% assign footer_links = site.data.navigation[footer.links] | default: footer.links %}
|
22
|
+
{% assign _sizes = 'whole half third fourth sixth' | split: ' ' %}
|
23
|
+
{% assign _size = footer_links.size | minus: 1 %}
|
24
|
+
{% assign _size = _sizes[_size] | default: 'whole' %}
|
25
|
+
<div class="usa-footer-primary-section">
|
26
|
+
<div class="usa-grid">
|
27
|
+
<nav class="usa-footer-nav">
|
28
|
+
<ul class="usa-unstyled-list">
|
29
|
+
{% for _link in footer_links %}
|
30
|
+
<li class="usa-width-one-{{ _size }} usa-footer-primary-content">
|
31
|
+
<a class="usa-footer-primary-link" href="{% if _link.external == true %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">
|
32
|
+
{{ _link.text }}
|
33
|
+
</a>
|
34
|
+
</li>
|
35
|
+
{% endfor %}
|
36
|
+
</ul>
|
37
|
+
</nav>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
{% endif %}
|
41
|
+
|
42
|
+
{% if footer.logos or footer.heading or footer.contact %}
|
43
|
+
<div class="usa-footer-secondary_section">
|
44
|
+
<div class="usa-grid">
|
45
|
+
<div class="usa-footer-logo usa-width-one-half">
|
46
|
+
{% if footer.logos %}
|
47
|
+
{% for logo in footer.logos -%}
|
48
|
+
{% if logo.url %}
|
49
|
+
<a href="{{ logo.url }}">
|
50
|
+
{% endif %}
|
51
|
+
<img class="usa-footer-logo-img" src="{% if logo.external %}{{ logo.src }}{% else %}{{ logo.src | relative_url }}{% endif %}" alt="{{ logo.alt }}"{% if logo.width %}width="{{ logo.width }}"{% endif %}{% if logo.height %}height="{{ logo.height }}"{% endif %}>
|
52
|
+
{% if logo.url %}
|
53
|
+
</a>
|
54
|
+
{% endif %}
|
55
|
+
{% endfor %}
|
56
|
+
{% endif %}
|
57
|
+
|
58
|
+
{% if footer.heading %}
|
59
|
+
<h3 class="usa-footer-logo-heading">{{ footer.heading }}</h3>
|
60
|
+
{% endif %}
|
61
|
+
</div>
|
62
|
+
|
63
|
+
{% if footer.contact %}
|
64
|
+
<div class="usa-footer-contact-links usa-width-one-half">
|
65
|
+
{% assign social_links = site.data.footer.contact.social_links %}
|
66
|
+
{% if footer.contact.contact_links %}
|
67
|
+
{% for _link in social_links %}
|
68
|
+
<a class="usa-link-{{ _link.type | default: 'generic' }}" href="{% if _link.external == true %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">
|
69
|
+
<span>{{ _link.text }}</span>
|
70
|
+
</a>
|
71
|
+
{% endfor %}
|
72
|
+
{% endif %}
|
73
|
+
{% if footer.contact.heading %}
|
74
|
+
<h3 class="usa-footer-contact-heading">{{ footer.contact.heading }}</h3>
|
75
|
+
{% endif %}
|
76
|
+
{% if footer.contact.contact_links %}
|
77
|
+
<address>
|
78
|
+
{% assign contact_links = site.data.footer.contact.contact_links %}
|
79
|
+
{% for _link in contact_links %}
|
80
|
+
<div class="usa-footer-primary-content usa-footer-contact_info">
|
81
|
+
<p>
|
82
|
+
<a href="{% if _link.external == true %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">
|
83
|
+
{{ _link.text }}
|
84
|
+
</a>
|
85
|
+
</p>
|
86
|
+
</div>
|
87
|
+
{% endfor %}
|
88
|
+
</address>
|
89
|
+
{% endif %}
|
90
|
+
{% endif %}
|
91
|
+
{% if footer.edit_page %}
|
92
|
+
<small><a href="https://github.com/{{ site.github.organization }}/{{ site.github.repository }}/edit/{{ site.github.default_branch }}/{{ page.path }}" class="usa-sidenav-edit" target="_blank">{{ footer.edit_page.text | default: 'Edit this page' }}</a></small>
|
93
|
+
{% endif %}
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
{% endif %}
|
98
|
+
|
99
|
+
</footer>
|
100
|
+
{% endif %}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{% if header %}
|
2
2
|
<header class="usa-header usa-header-basic" role="banner">
|
3
|
-
|
3
|
+
|
4
4
|
<div class="usa-nav-container">
|
5
5
|
<div class="usa-navbar">
|
6
6
|
<button class="usa-menu-btn">Menu</button>
|
@@ -50,18 +50,20 @@
|
|
50
50
|
{% endif %}
|
51
51
|
|
52
52
|
{% assign _secondary = header.secondary %}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
<
|
53
|
+
{% if site.search_site_handle %}
|
54
|
+
<form accept-charset="UTF-8" action="https://search.usa.gov/search" id="search_form" method="get" class="usa-search usa-search-small js-search-form">
|
55
|
+
<div style="margin:0;padding:0;display:inline">
|
56
|
+
<input name="utf8" type="hidden" value="✓" />
|
57
|
+
</div>
|
58
|
+
<input id="affiliate" name="affiliate" type="hidden" value="{{ site.search_site_handle }}" />
|
59
|
+
<div role="search">
|
60
|
+
<label for="query" class="usa-sr-only">Enter Search Term(s):</label>
|
61
|
+
<input autocomplete="off" class="usagov-search-autocomplete" id="query" name="query" type="search" />
|
62
|
+
<button type="submit" name="commit">
|
61
63
|
<span class="usa-sr-only">Search</span>
|
62
64
|
</button>
|
65
|
+
</div>
|
63
66
|
</form>
|
64
|
-
</div>
|
65
67
|
{% endif %}
|
66
68
|
</div>
|
67
69
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{% if header %}
|
2
2
|
<header class="usa-header usa-header-extended" role="banner">
|
3
|
-
|
3
|
+
|
4
4
|
<div class="usa-navbar">
|
5
5
|
<button class="usa-menu-btn">Menu</button>
|
6
6
|
<div class="usa-logo" id="logo">
|
@@ -51,19 +51,23 @@
|
|
51
51
|
{% assign _secondary = header.secondary %}
|
52
52
|
{% if _secondary %}
|
53
53
|
<div class="usa-nav-secondary">
|
54
|
-
{% if
|
55
|
-
<form action="
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
<
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
54
|
+
{% if site.search_site_handle %}
|
55
|
+
<form accept-charset="UTF-8" action="https://search.usa.gov/search" id="search_form" method="get" class="usa-search usa-search-small js-search-form usa-sr-only">
|
56
|
+
<div style="margin:0;padding:0;display:inline">
|
57
|
+
<input name="utf8" type="hidden" value="✓" />
|
58
|
+
</div>
|
59
|
+
<input id="affiliate" name="affiliate" type="hidden" value="{{ site.search_site_handle }}" />
|
60
|
+
<div role="search">
|
61
|
+
<label for="query" class="usa-sr-only">Enter Search Term(s):</label>
|
62
|
+
<input autocomplete="off" class="usagov-search-autocomplete" id="query" name="query" type="search" />
|
63
|
+
<button type="submit" name="commit">
|
64
|
+
<span class="usa-sr-only">Search</span>
|
65
|
+
</button>
|
66
|
+
</div>
|
67
|
+
</form>
|
64
68
|
{% endif %}
|
65
69
|
<ul class="usa-unstyled-list usa-nav-secondary-links">
|
66
|
-
{% if
|
70
|
+
{% if site.search_site_handle %}
|
67
71
|
<li class="js-search-button-container">
|
68
72
|
<button class="usa-header-search-button js-search-button">Search</button>
|
69
73
|
</li>
|
data/_includes/footer.html
CHANGED
data/_includes/header.html
CHANGED
data/_includes/scripts.html
CHANGED
@@ -23,8 +23,17 @@
|
|
23
23
|
<script src="{{ _src | replace: _async_marker, '' | relative_url }}"{% if _script.async or _src contains _async_marker %} async{% endif %}></script>
|
24
24
|
{% endfor %}{% endfor %}
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
<script
|
26
|
+
|
27
|
+
{% if site.search %}
|
28
|
+
<script type="text/javascript">
|
29
|
+
//<![CDATA[
|
30
|
+
var usasearch_config = { siteHandle:"{{ site.search.site_handle }}" };
|
31
|
+
|
32
|
+
var script = document.createElement("script");
|
33
|
+
script.type = "text/javascript";
|
34
|
+
script.src = "//search.usa.gov/javascripts/remote.loader.js";
|
35
|
+
document.getElementsByTagName("head")[0].appendChild(script);
|
36
|
+
|
37
|
+
//]]>
|
29
38
|
</script>
|
30
39
|
{% endif %}
|
@@ -1,31 +1,8 @@
|
|
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
|
-
}
|
19
4
|
}
|
20
5
|
|
21
6
|
.usa-sidenav-sub_list {
|
22
7
|
@include usa-sidenav-sublist;
|
23
8
|
}
|
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
|
194
|
+
padding: 0.85rem 1rem 0.85rem 1.8rem;
|
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:
|
210
|
+
border-left: 0.4rem solid $color-primary;
|
211
211
|
color: $color-primary;
|
212
212
|
font-weight: $font-bold;
|
213
|
-
padding-left:
|
213
|
+
padding-left: 1.4rem;
|
214
214
|
}
|
215
215
|
}
|
216
216
|
}
|
@@ -128,22 +128,21 @@ $image-path: '../img' !default;
|
|
128
128
|
$asset-pipeline: false !default;
|
129
129
|
|
130
130
|
// Magic Numbers
|
131
|
-
$text-max-width:
|
132
|
-
$lead-max-width:
|
133
|
-
$site-max-width:
|
134
|
-
$site-margins:
|
135
|
-
$site-margins-mobile:
|
136
|
-
$article-max-width:
|
137
|
-
$input-max-width:
|
138
|
-
$label-border-radius:
|
139
|
-
$checkbox-border-radius:
|
140
|
-
$border-radius:
|
141
|
-
$button-border-radius:
|
142
|
-
$box-shadow:
|
143
|
-
$focus-outline:
|
144
|
-
$focus-spacing:
|
145
|
-
$nav-width:
|
146
|
-
$sidenav-current-border-width: 0.4rem !default; // must be in rem for math
|
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;
|
147
146
|
|
148
147
|
// 44 x 44 pixels hit target following Apple iOS Human Interface
|
149
148
|
// Guidelines
|