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.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -23
  3. data/_includes/components/footer--medium.html +100 -0
  4. data/_includes/components/header--basic.html +12 -10
  5. data/_includes/components/header--extended.html +16 -12
  6. data/_includes/footer.html +2 -1
  7. data/_includes/header.html +4 -0
  8. data/_includes/scripts.html +12 -3
  9. data/_sass/uswds/components/_header.scss +1 -1
  10. data/_sass/uswds/components/_sidenav.scss +0 -23
  11. data/_sass/uswds/core/_utilities.scss +3 -3
  12. data/_sass/uswds/core/_variables.scss +15 -16
  13. data/_sass/uswds/elements/_inputs.scss +1 -3
  14. data/assets/uswds/css/uswds.css +7 -38
  15. data/assets/uswds/css/uswds.min.css +2 -2
  16. data/assets/uswds/css/uswds.min.css.map +1 -1
  17. metadata +5 -140
  18. data/_includes/components/footer.html +0 -82
  19. data/_includes/last-modified.html +0 -3
  20. data/_layouts/search-results.html +0 -25
  21. data/assets/uswds/scss/_all.scss +0 -1
  22. data/assets/uswds/scss/components/_accordions.scss +0 -150
  23. data/assets/uswds/scss/components/_alerts.scss +0 -125
  24. data/assets/uswds/scss/components/_banner.scss +0 -204
  25. data/assets/uswds/scss/components/_footer.scss +0 -518
  26. data/assets/uswds/scss/components/_forms.scss +0 -164
  27. data/assets/uswds/scss/components/_graphic-list.scss +0 -35
  28. data/assets/uswds/scss/components/_header.scss +0 -218
  29. data/assets/uswds/scss/components/_hero.scss +0 -37
  30. data/assets/uswds/scss/components/_layout.scss +0 -36
  31. data/assets/uswds/scss/components/_media-block.scss +0 -12
  32. data/assets/uswds/scss/components/_navigation.scss +0 -549
  33. data/assets/uswds/scss/components/_search.scss +0 -111
  34. data/assets/uswds/scss/components/_section.scss +0 -37
  35. data/assets/uswds/scss/components/_sidenav.scss +0 -31
  36. data/assets/uswds/scss/components/_skipnav.scss +0 -19
  37. data/assets/uswds/scss/core/_base.scss +0 -35
  38. data/assets/uswds/scss/core/_defaults.scss +0 -8
  39. data/assets/uswds/scss/core/_fonts.scss +0 -65
  40. data/assets/uswds/scss/core/_grid-settings.scss +0 -3
  41. data/assets/uswds/scss/core/_grid.scss +0 -199
  42. data/assets/uswds/scss/core/_utilities.scss +0 -252
  43. data/assets/uswds/scss/core/_variables.scss +0 -156
  44. data/assets/uswds/scss/elements/_buttons.scss +0 -217
  45. data/assets/uswds/scss/elements/_embed.scss +0 -26
  46. data/assets/uswds/scss/elements/_figure.scss +0 -13
  47. data/assets/uswds/scss/elements/_inputs.scss +0 -353
  48. data/assets/uswds/scss/elements/_labels.scss +0 -20
  49. data/assets/uswds/scss/elements/_list.scss +0 -32
  50. data/assets/uswds/scss/elements/_table.scss +0 -55
  51. data/assets/uswds/scss/elements/_typography.scss +0 -260
  52. data/assets/uswds/scss/lib/_bourbon-deprecated-upcoming.scss +0 -411
  53. data/assets/uswds/scss/lib/_bourbon.scss +0 -87
  54. data/assets/uswds/scss/lib/_neat-helpers.scss +0 -11
  55. data/assets/uswds/scss/lib/_neat.scss +0 -23
  56. data/assets/uswds/scss/lib/_normalize.scss +0 -424
  57. data/assets/uswds/scss/lib/addons/_border-color.scss +0 -26
  58. data/assets/uswds/scss/lib/addons/_border-radius.scss +0 -48
  59. data/assets/uswds/scss/lib/addons/_border-style.scss +0 -25
  60. data/assets/uswds/scss/lib/addons/_border-width.scss +0 -25
  61. data/assets/uswds/scss/lib/addons/_buttons.scss +0 -64
  62. data/assets/uswds/scss/lib/addons/_clearfix.scss +0 -25
  63. data/assets/uswds/scss/lib/addons/_ellipsis.scss +0 -30
  64. data/assets/uswds/scss/lib/addons/_font-stacks.scss +0 -31
  65. data/assets/uswds/scss/lib/addons/_hide-text.scss +0 -27
  66. data/assets/uswds/scss/lib/addons/_margin.scss +0 -26
  67. data/assets/uswds/scss/lib/addons/_padding.scss +0 -26
  68. data/assets/uswds/scss/lib/addons/_position.scss +0 -48
  69. data/assets/uswds/scss/lib/addons/_prefixer.scss +0 -66
  70. data/assets/uswds/scss/lib/addons/_retina-image.scss +0 -25
  71. data/assets/uswds/scss/lib/addons/_size.scss +0 -51
  72. data/assets/uswds/scss/lib/addons/_text-inputs.scss +0 -113
  73. data/assets/uswds/scss/lib/addons/_timing-functions.scss +0 -34
  74. data/assets/uswds/scss/lib/addons/_triangle.scss +0 -63
  75. data/assets/uswds/scss/lib/addons/_word-wrap.scss +0 -29
  76. data/assets/uswds/scss/lib/css3/_animation.scss +0 -43
  77. data/assets/uswds/scss/lib/css3/_appearance.scss +0 -3
  78. data/assets/uswds/scss/lib/css3/_backface-visibility.scss +0 -3
  79. data/assets/uswds/scss/lib/css3/_background-image.scss +0 -42
  80. data/assets/uswds/scss/lib/css3/_background.scss +0 -55
  81. data/assets/uswds/scss/lib/css3/_border-image.scss +0 -59
  82. data/assets/uswds/scss/lib/css3/_calc.scss +0 -4
  83. data/assets/uswds/scss/lib/css3/_columns.scss +0 -47
  84. data/assets/uswds/scss/lib/css3/_filter.scss +0 -4
  85. data/assets/uswds/scss/lib/css3/_flex-box.scss +0 -287
  86. data/assets/uswds/scss/lib/css3/_font-face.scss +0 -24
  87. data/assets/uswds/scss/lib/css3/_font-feature-settings.scss +0 -4
  88. data/assets/uswds/scss/lib/css3/_hidpi-media-query.scss +0 -10
  89. data/assets/uswds/scss/lib/css3/_hyphens.scss +0 -4
  90. data/assets/uswds/scss/lib/css3/_image-rendering.scss +0 -14
  91. data/assets/uswds/scss/lib/css3/_keyframes.scss +0 -36
  92. data/assets/uswds/scss/lib/css3/_linear-gradient.scss +0 -38
  93. data/assets/uswds/scss/lib/css3/_perspective.scss +0 -8
  94. data/assets/uswds/scss/lib/css3/_placeholder.scss +0 -8
  95. data/assets/uswds/scss/lib/css3/_radial-gradient.scss +0 -39
  96. data/assets/uswds/scss/lib/css3/_selection.scss +0 -42
  97. data/assets/uswds/scss/lib/css3/_text-decoration.scss +0 -19
  98. data/assets/uswds/scss/lib/css3/_transform.scss +0 -15
  99. data/assets/uswds/scss/lib/css3/_transition.scss +0 -71
  100. data/assets/uswds/scss/lib/css3/_user-select.scss +0 -3
  101. data/assets/uswds/scss/lib/functions/_assign-inputs.scss +0 -11
  102. data/assets/uswds/scss/lib/functions/_contains-falsy.scss +0 -20
  103. data/assets/uswds/scss/lib/functions/_contains.scss +0 -26
  104. data/assets/uswds/scss/lib/functions/_is-length.scss +0 -11
  105. data/assets/uswds/scss/lib/functions/_is-light.scss +0 -21
  106. data/assets/uswds/scss/lib/functions/_is-number.scss +0 -11
  107. data/assets/uswds/scss/lib/functions/_is-size.scss +0 -13
  108. data/assets/uswds/scss/lib/functions/_modular-scale.scss +0 -69
  109. data/assets/uswds/scss/lib/functions/_new-breakpoint.scss +0 -49
  110. data/assets/uswds/scss/lib/functions/_private.scss +0 -114
  111. data/assets/uswds/scss/lib/functions/_px-to-em.scss +0 -13
  112. data/assets/uswds/scss/lib/functions/_px-to-rem.scss +0 -15
  113. data/assets/uswds/scss/lib/functions/_shade.scss +0 -24
  114. data/assets/uswds/scss/lib/functions/_strip-units.scss +0 -17
  115. data/assets/uswds/scss/lib/functions/_tint.scss +0 -24
  116. data/assets/uswds/scss/lib/functions/_transition-property-name.scss +0 -22
  117. data/assets/uswds/scss/lib/functions/_unpack.scss +0 -27
  118. data/assets/uswds/scss/lib/grid/_box-sizing.scss +0 -15
  119. data/assets/uswds/scss/lib/grid/_direction-context.scss +0 -33
  120. data/assets/uswds/scss/lib/grid/_display-context.scss +0 -28
  121. data/assets/uswds/scss/lib/grid/_fill-parent.scss +0 -22
  122. data/assets/uswds/scss/lib/grid/_media.scss +0 -92
  123. data/assets/uswds/scss/lib/grid/_omega.scss +0 -87
  124. data/assets/uswds/scss/lib/grid/_outer-container.scss +0 -34
  125. data/assets/uswds/scss/lib/grid/_pad.scss +0 -25
  126. data/assets/uswds/scss/lib/grid/_private.scss +0 -35
  127. data/assets/uswds/scss/lib/grid/_row.scss +0 -52
  128. data/assets/uswds/scss/lib/grid/_shift.scss +0 -50
  129. data/assets/uswds/scss/lib/grid/_span-columns.scss +0 -94
  130. data/assets/uswds/scss/lib/grid/_to-deprecate.scss +0 -97
  131. data/assets/uswds/scss/lib/grid/_visual-grid.scss +0 -42
  132. data/assets/uswds/scss/lib/helpers/_convert-units.scss +0 -21
  133. data/assets/uswds/scss/lib/helpers/_directional-values.scss +0 -96
  134. data/assets/uswds/scss/lib/helpers/_font-source-declaration.scss +0 -43
  135. data/assets/uswds/scss/lib/helpers/_gradient-positions-parser.scss +0 -13
  136. data/assets/uswds/scss/lib/helpers/_linear-angle-parser.scss +0 -25
  137. data/assets/uswds/scss/lib/helpers/_linear-gradient-parser.scss +0 -41
  138. data/assets/uswds/scss/lib/helpers/_linear-positions-parser.scss +0 -61
  139. data/assets/uswds/scss/lib/helpers/_linear-side-corner-parser.scss +0 -31
  140. data/assets/uswds/scss/lib/helpers/_radial-arg-parser.scss +0 -69
  141. data/assets/uswds/scss/lib/helpers/_radial-gradient-parser.scss +0 -50
  142. data/assets/uswds/scss/lib/helpers/_radial-positions-parser.scss +0 -18
  143. data/assets/uswds/scss/lib/helpers/_render-gradients.scss +0 -26
  144. data/assets/uswds/scss/lib/helpers/_shape-size-stripper.scss +0 -10
  145. data/assets/uswds/scss/lib/helpers/_str-to-num.scss +0 -50
  146. data/assets/uswds/scss/lib/mixins/_clearfix.scss +0 -25
  147. data/assets/uswds/scss/lib/settings/_asset-pipeline.scss +0 -7
  148. data/assets/uswds/scss/lib/settings/_disable-warnings.scss +0 -13
  149. data/assets/uswds/scss/lib/settings/_grid.scss +0 -51
  150. data/assets/uswds/scss/lib/settings/_prefixer.scss +0 -9
  151. data/assets/uswds/scss/lib/settings/_px-to-em.scss +0 -1
  152. data/assets/uswds/scss/lib/settings/_visual-grid.scss +0 -27
  153. data/assets/uswds/scss/uswds.scss +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99ba6ecdaa6e2222ad5badd4f9995715631a5788
4
- data.tar.gz: 0b1d99793cc2a1dd70ec365ff67d38875d973441
3
+ metadata.gz: f8833f4d71fde3ce27a1a1e93a4668d850fabd94
4
+ data.tar.gz: 076066966ac5df1f30f5a700947d5934c4fda813
5
5
  SHA512:
6
- metadata.gz: d4de3616c9c518919782a0ec2f08eb344d2415923e470b0fbc9a786b01b2703fdee887c62bb7b9b5a874f29fdfa266411c0e956d2c6b56c1a38899e164efc1fe
7
- data.tar.gz: 06667ae3524bad512cac7b7296dbe8f980f53653e68b40696e210b1a1c21849850cb17bc499635850f6b5934aa056f681cb86476f65e7a2844d9326314bac3c4
6
+ metadata.gz: 587a658fb06380eb70d10527ef86ad9a6a70883e21dbc00af0285dac43bf1d75ef9c7b0f725525a685c4a2cb90a3bb624835cb3e9b7e6934a7da654e3b554dd8
7
+ data.tar.gz: b4694ce851e925d33a86260fa3b0dac4684e5c1cc2ac739f5f1dec7255d123049f03e9e99429122e535897cade21643bb697b61b3931e71803daa9374516e278
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # Jekyll + U.S. Web Design Standards
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 Standards](https://standards.usa.gov).
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
- 1. Install the `jekyll_pages_api_search` by adding it to your `Gemfile`:
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
- [Jekyll pages api search](https://github.com/18F/jekyll_pages_api_search) is used for search and can be configured in `_config.yml` and `_data/header.yml`.
228
+ [Search.gov](https://search.gov/) is used for search and can be configured in `_config.yml`.
239
229
 
240
- Search uses the [Search results](#search-results) page layout.
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
- **Pro tip:** use [Jekyll front matter defaults](https://jekyllrb.com/docs/configuration/#front-matter-defaults) to hide directories from showing in search results.
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 Standards CSS and JS files if the corresponding
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 Standards' [SCSS source files](https://github.com/18F/web-design-standards/tree/master/src/stylesheets)
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 [Standards components](https://standards.usa.gov/components/),
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 Standards layout, which does all of the
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://standards.usa.gov/page-templates/landing/), which
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://standards.usa.gov/page-templates/docs/), and
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
- {% include banner.html %}
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
- {% if _secondary.search %}
56
- <div class="usa-search usa-search-small" role="search">
57
- <form action="{{ _secondary.search.action | relative_url }}">
58
- <label class="usa-sr-only" for="search-field-small">Search small</label>
59
- <input id="search-field-small" type="search" name="{{ _secondary.search.query | default: 'search' }}">
60
- <button type="submit">
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="&#x2713;" />
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
- {% include banner.html %}
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 _secondary.search %}
55
- <form action="{{ _secondary.search.action | relative_url }}" class="usa-search usa-search-small js-search-form usa-sr-only">
56
- <div role="search">
57
- <label class="usa-sr-only" for="search-input">Search small</label>
58
- <input id="search-input" type="search" name="{{ _secondary.search.query | default: 'search' }}">
59
- <button type="submit">
60
- <span class="usa-sr-only">Search</span>
61
- </button>
62
- </div>
63
- </form>
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="&#x2713;" />
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 _secondary.search %}
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>
@@ -1,2 +1,3 @@
1
1
  {% assign footer = site.data.footer %}
2
- {% include components/footer.html %}
2
+
3
+ {% include components/footer--medium.html %}
@@ -1,5 +1,9 @@
1
1
  {% assign header = site.data.header %}
2
2
 
3
+ {% if header.usa_banner %}
4
+ {% include components/banner.html %}
5
+ {% endif %}
6
+
3
7
  {% if header.type == 'basic' %}
4
8
  {% include components/header--basic.html %}
5
9
  {% else %}
@@ -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
- {% if site.jekyll_pages_api_search and page.layout == 'search-results' %}
27
- <script>JEKYLL_PAGES_API_SEARCH_BASEURL = '{{ site.baseurl }}';</script>
28
- <script async src="{{ site.baseurl }}/assets/js/search-bundle.js">
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 %}
@@ -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: opacity 0.2s ease-in-out;
105
+ transition: all 0.2s ease-in-out;
106
106
  visibility: hidden;
107
107
  z-index: $z-index-overlay;
108
108
 
@@ -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 $site-margins-mobile;
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: $sidenav-current-border-width solid $color-primary;
210
+ border-left: 0.4rem solid $color-primary;
211
211
  color: $color-primary;
212
212
  font-weight: $font-bold;
213
- padding-left: $site-margins-mobile - $sidenav-current-border-width;
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: 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
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