uswds-jekyll 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.md +31 -0
- data/README.md +547 -0
- data/_includes/banner.html +1 -0
- data/_includes/components/banner.html +20 -0
- data/_includes/components/footer.html +71 -0
- data/_includes/components/graphic-list.html +16 -0
- data/_includes/components/header--basic.html +72 -0
- data/_includes/components/header--extended.html +85 -0
- data/_includes/components/hero.html +32 -0
- data/_includes/favicon.html +5 -0
- data/_includes/footer.html +2 -0
- data/_includes/graphic-list.html +2 -0
- data/_includes/header.html +7 -0
- data/_includes/meta.html +6 -0
- data/_includes/scripts.html +21 -0
- data/_includes/sidenav.html +20 -0
- data/_includes/skipnav.html +1 -0
- data/_includes/styles.html +17 -0
- data/_includes/subnav.html +5 -0
- data/_layouts/base.html +21 -0
- data/_layouts/docs.html +19 -0
- data/_layouts/landing.html +30 -0
- data/_layouts/search-results.html +25 -0
- data/_sass/uswds/_all.scss +1 -0
- data/_sass/uswds/components/_accordions.scss +150 -0
- data/_sass/uswds/components/_alerts.scss +94 -0
- data/_sass/uswds/components/_banner.scss +204 -0
- data/_sass/uswds/components/_footer.scss +382 -0
- data/_sass/uswds/components/_forms.scss +164 -0
- data/_sass/uswds/components/_graphic-list.scss +35 -0
- data/_sass/uswds/components/_header.scss +221 -0
- data/_sass/uswds/components/_hero.scss +43 -0
- data/_sass/uswds/components/_layout.scss +36 -0
- data/_sass/uswds/components/_media-block.scss +12 -0
- data/_sass/uswds/components/_navigation.scss +454 -0
- data/_sass/uswds/components/_search.scss +106 -0
- data/_sass/uswds/components/_section.scss +37 -0
- data/_sass/uswds/components/_sidenav.scss +8 -0
- data/_sass/uswds/components/_skipnav.scss +19 -0
- data/_sass/uswds/core/_base.scss +30 -0
- data/_sass/uswds/core/_defaults.scss +8 -0
- data/_sass/uswds/core/_fonts.scss +65 -0
- data/_sass/uswds/core/_grid-settings.scss +3 -0
- data/_sass/uswds/core/_grid.scss +199 -0
- data/_sass/uswds/core/_utilities.scss +232 -0
- data/_sass/uswds/core/_variables.scss +123 -0
- data/_sass/uswds/elements/_buttons.scss +191 -0
- data/_sass/uswds/elements/_embed.scss +26 -0
- data/_sass/uswds/elements/_figure.scss +13 -0
- data/_sass/uswds/elements/_inputs.scss +346 -0
- data/_sass/uswds/elements/_labels.scss +20 -0
- data/_sass/uswds/elements/_list.scss +32 -0
- data/_sass/uswds/elements/_table.scss +47 -0
- data/_sass/uswds/elements/_typography.scss +257 -0
- data/_sass/uswds/lib/_bourbon-deprecated-upcoming.scss +411 -0
- data/_sass/uswds/lib/_bourbon.scss +87 -0
- data/_sass/uswds/lib/_neat-helpers.scss +11 -0
- data/_sass/uswds/lib/_neat.scss +23 -0
- data/_sass/uswds/lib/_normalize.scss +424 -0
- data/_sass/uswds/lib/addons/_border-color.scss +26 -0
- data/_sass/uswds/lib/addons/_border-radius.scss +48 -0
- data/_sass/uswds/lib/addons/_border-style.scss +25 -0
- data/_sass/uswds/lib/addons/_border-width.scss +25 -0
- data/_sass/uswds/lib/addons/_buttons.scss +64 -0
- data/_sass/uswds/lib/addons/_clearfix.scss +25 -0
- data/_sass/uswds/lib/addons/_ellipsis.scss +30 -0
- data/_sass/uswds/lib/addons/_font-stacks.scss +31 -0
- data/_sass/uswds/lib/addons/_hide-text.scss +27 -0
- data/_sass/uswds/lib/addons/_margin.scss +26 -0
- data/_sass/uswds/lib/addons/_padding.scss +26 -0
- data/_sass/uswds/lib/addons/_position.scss +48 -0
- data/_sass/uswds/lib/addons/_prefixer.scss +66 -0
- data/_sass/uswds/lib/addons/_retina-image.scss +25 -0
- data/_sass/uswds/lib/addons/_size.scss +51 -0
- data/_sass/uswds/lib/addons/_text-inputs.scss +113 -0
- data/_sass/uswds/lib/addons/_timing-functions.scss +34 -0
- data/_sass/uswds/lib/addons/_triangle.scss +63 -0
- data/_sass/uswds/lib/addons/_word-wrap.scss +29 -0
- data/_sass/uswds/lib/css3/_animation.scss +43 -0
- data/_sass/uswds/lib/css3/_appearance.scss +3 -0
- data/_sass/uswds/lib/css3/_backface-visibility.scss +3 -0
- data/_sass/uswds/lib/css3/_background-image.scss +42 -0
- data/_sass/uswds/lib/css3/_background.scss +55 -0
- data/_sass/uswds/lib/css3/_border-image.scss +59 -0
- data/_sass/uswds/lib/css3/_calc.scss +4 -0
- data/_sass/uswds/lib/css3/_columns.scss +47 -0
- data/_sass/uswds/lib/css3/_filter.scss +4 -0
- data/_sass/uswds/lib/css3/_flex-box.scss +287 -0
- data/_sass/uswds/lib/css3/_font-face.scss +24 -0
- data/_sass/uswds/lib/css3/_font-feature-settings.scss +4 -0
- data/_sass/uswds/lib/css3/_hidpi-media-query.scss +10 -0
- data/_sass/uswds/lib/css3/_hyphens.scss +4 -0
- data/_sass/uswds/lib/css3/_image-rendering.scss +14 -0
- data/_sass/uswds/lib/css3/_keyframes.scss +36 -0
- data/_sass/uswds/lib/css3/_linear-gradient.scss +38 -0
- data/_sass/uswds/lib/css3/_perspective.scss +8 -0
- data/_sass/uswds/lib/css3/_placeholder.scss +8 -0
- data/_sass/uswds/lib/css3/_radial-gradient.scss +39 -0
- data/_sass/uswds/lib/css3/_selection.scss +42 -0
- data/_sass/uswds/lib/css3/_text-decoration.scss +19 -0
- data/_sass/uswds/lib/css3/_transform.scss +15 -0
- data/_sass/uswds/lib/css3/_transition.scss +71 -0
- data/_sass/uswds/lib/css3/_user-select.scss +3 -0
- data/_sass/uswds/lib/functions/_assign-inputs.scss +11 -0
- data/_sass/uswds/lib/functions/_contains-falsy.scss +20 -0
- data/_sass/uswds/lib/functions/_contains.scss +26 -0
- data/_sass/uswds/lib/functions/_is-length.scss +11 -0
- data/_sass/uswds/lib/functions/_is-light.scss +21 -0
- data/_sass/uswds/lib/functions/_is-number.scss +11 -0
- data/_sass/uswds/lib/functions/_is-size.scss +13 -0
- data/_sass/uswds/lib/functions/_modular-scale.scss +69 -0
- data/_sass/uswds/lib/functions/_new-breakpoint.scss +49 -0
- data/_sass/uswds/lib/functions/_private.scss +114 -0
- data/_sass/uswds/lib/functions/_px-to-em.scss +13 -0
- data/_sass/uswds/lib/functions/_px-to-rem.scss +15 -0
- data/_sass/uswds/lib/functions/_shade.scss +24 -0
- data/_sass/uswds/lib/functions/_strip-units.scss +17 -0
- data/_sass/uswds/lib/functions/_tint.scss +24 -0
- data/_sass/uswds/lib/functions/_transition-property-name.scss +22 -0
- data/_sass/uswds/lib/functions/_unpack.scss +27 -0
- data/_sass/uswds/lib/grid/_box-sizing.scss +15 -0
- data/_sass/uswds/lib/grid/_direction-context.scss +33 -0
- data/_sass/uswds/lib/grid/_display-context.scss +28 -0
- data/_sass/uswds/lib/grid/_fill-parent.scss +22 -0
- data/_sass/uswds/lib/grid/_media.scss +92 -0
- data/_sass/uswds/lib/grid/_omega.scss +87 -0
- data/_sass/uswds/lib/grid/_outer-container.scss +34 -0
- data/_sass/uswds/lib/grid/_pad.scss +25 -0
- data/_sass/uswds/lib/grid/_private.scss +35 -0
- data/_sass/uswds/lib/grid/_row.scss +52 -0
- data/_sass/uswds/lib/grid/_shift.scss +50 -0
- data/_sass/uswds/lib/grid/_span-columns.scss +94 -0
- data/_sass/uswds/lib/grid/_to-deprecate.scss +97 -0
- data/_sass/uswds/lib/grid/_visual-grid.scss +42 -0
- data/_sass/uswds/lib/helpers/_convert-units.scss +21 -0
- data/_sass/uswds/lib/helpers/_directional-values.scss +96 -0
- data/_sass/uswds/lib/helpers/_font-source-declaration.scss +43 -0
- data/_sass/uswds/lib/helpers/_gradient-positions-parser.scss +13 -0
- data/_sass/uswds/lib/helpers/_linear-angle-parser.scss +25 -0
- data/_sass/uswds/lib/helpers/_linear-gradient-parser.scss +41 -0
- data/_sass/uswds/lib/helpers/_linear-positions-parser.scss +61 -0
- data/_sass/uswds/lib/helpers/_linear-side-corner-parser.scss +31 -0
- data/_sass/uswds/lib/helpers/_radial-arg-parser.scss +69 -0
- data/_sass/uswds/lib/helpers/_radial-gradient-parser.scss +50 -0
- data/_sass/uswds/lib/helpers/_radial-positions-parser.scss +18 -0
- data/_sass/uswds/lib/helpers/_render-gradients.scss +26 -0
- data/_sass/uswds/lib/helpers/_shape-size-stripper.scss +10 -0
- data/_sass/uswds/lib/helpers/_str-to-num.scss +50 -0
- data/_sass/uswds/lib/mixins/_clearfix.scss +25 -0
- data/_sass/uswds/lib/settings/_asset-pipeline.scss +7 -0
- data/_sass/uswds/lib/settings/_disable-warnings.scss +13 -0
- data/_sass/uswds/lib/settings/_grid.scss +51 -0
- data/_sass/uswds/lib/settings/_prefixer.scss +9 -0
- data/_sass/uswds/lib/settings/_px-to-em.scss +1 -0
- data/_sass/uswds/lib/settings/_visual-grid.scss +27 -0
- data/_sass/uswds/uswds.scss +41 -0
- data/assets/uswds/CONTRIBUTING.md +145 -0
- data/assets/uswds/LICENSE.md +63 -0
- data/assets/uswds/README.md +259 -0
- data/assets/uswds/css/uswds.css +4463 -0
- data/assets/uswds/css/uswds.min.css +4 -0
- data/assets/uswds/css/uswds.min.css.map +1 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-bold-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-italic-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-light-webfont.woff2 +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.eot +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.ttf +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.woff +0 -0
- data/assets/uswds/fonts/merriweather-regular-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-light-webfont.woff2 +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.eot +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.ttf +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.woff +0 -0
- data/assets/uswds/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
- data/assets/uswds/img/alerts/error.png +0 -0
- data/assets/uswds/img/alerts/error.svg +17 -0
- data/assets/uswds/img/alerts/info.png +0 -0
- data/assets/uswds/img/alerts/info.svg +18 -0
- data/assets/uswds/img/alerts/success.png +0 -0
- data/assets/uswds/img/alerts/success.svg +12 -0
- data/assets/uswds/img/alerts/warning.png +0 -0
- data/assets/uswds/img/alerts/warning.svg +16 -0
- data/assets/uswds/img/angle-arrow-down-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-down-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-down-primary-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-down-primary-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-down-primary.png +0 -0
- data/assets/uswds/img/angle-arrow-down-primary.svg +1 -0
- data/assets/uswds/img/angle-arrow-down.png +0 -0
- data/assets/uswds/img/angle-arrow-down.svg +1 -0
- data/assets/uswds/img/angle-arrow-up-primary-hover.png +0 -0
- data/assets/uswds/img/angle-arrow-up-primary-hover.svg +1 -0
- data/assets/uswds/img/angle-arrow-up-primary.png +0 -0
- data/assets/uswds/img/angle-arrow-up-primary.svg +1 -0
- data/assets/uswds/img/arrow-down.png +0 -0
- data/assets/uswds/img/arrow-down.svg +1 -0
- data/assets/uswds/img/arrow-right.png +0 -0
- data/assets/uswds/img/arrow-right.svg +1 -0
- data/assets/uswds/img/circle-124.png +0 -0
- data/assets/uswds/img/close.png +0 -0
- data/assets/uswds/img/close.svg +1 -0
- data/assets/uswds/img/correct8.png +0 -0
- data/assets/uswds/img/correct8.svg +1 -0
- data/assets/uswds/img/correct9.png +0 -0
- data/assets/uswds/img/correct9.svg +1 -0
- data/assets/uswds/img/external-link-alt-hover.png +0 -0
- data/assets/uswds/img/external-link-alt-hover.svg +1 -0
- data/assets/uswds/img/external-link-alt.png +0 -0
- data/assets/uswds/img/external-link-alt.svg +1 -0
- data/assets/uswds/img/external-link-hover.png +0 -0
- data/assets/uswds/img/external-link-hover.svg +1 -0
- data/assets/uswds/img/external-link.png +0 -0
- data/assets/uswds/img/external-link.svg +1 -0
- data/assets/uswds/img/favicons/favicon-114.png +0 -0
- data/assets/uswds/img/favicons/favicon-144.png +0 -0
- data/assets/uswds/img/favicons/favicon-16.png +0 -0
- data/assets/uswds/img/favicons/favicon-192.png +0 -0
- data/assets/uswds/img/favicons/favicon-40.png +0 -0
- data/assets/uswds/img/favicons/favicon-57.png +0 -0
- data/assets/uswds/img/favicons/favicon-72.png +0 -0
- data/assets/uswds/img/favicons/favicon.ico +0 -0
- data/assets/uswds/img/favicons/favicon.png +0 -0
- data/assets/uswds/img/hero.png +0 -0
- data/assets/uswds/img/icon-dot-gov.svg +1 -0
- data/assets/uswds/img/icon-https.svg +1 -0
- data/assets/uswds/img/logo-img.png +0 -0
- data/assets/uswds/img/minus-alt.png +0 -0
- data/assets/uswds/img/minus-alt.svg +1 -0
- data/assets/uswds/img/minus.png +0 -0
- data/assets/uswds/img/minus.svg +1 -0
- data/assets/uswds/img/plus-alt.png +0 -0
- data/assets/uswds/img/plus-alt.svg +1 -0
- data/assets/uswds/img/plus.png +0 -0
- data/assets/uswds/img/plus.svg +1 -0
- data/assets/uswds/img/search-alt.png +0 -0
- data/assets/uswds/img/search-alt.svg +1 -0
- data/assets/uswds/img/search.png +0 -0
- data/assets/uswds/img/search.svg +1 -0
- data/assets/uswds/img/social-icons/png/facebook25.png +0 -0
- data/assets/uswds/img/social-icons/png/rss25.png +0 -0
- data/assets/uswds/img/social-icons/png/twitter16.png +0 -0
- data/assets/uswds/img/social-icons/png/youtube15.png +0 -0
- data/assets/uswds/img/social-icons/svg/facebook25.svg +1 -0
- data/assets/uswds/img/social-icons/svg/rss25.svg +1 -0
- data/assets/uswds/img/social-icons/svg/twitter16.svg +1 -0
- data/assets/uswds/img/social-icons/svg/youtube15.svg +1 -0
- data/assets/uswds/img/us_flag_small.png +0 -0
- data/assets/uswds/js/uswds.js +1831 -0
- data/assets/uswds/js/uswds.min.js +2 -0
- data/assets/uswds/js/uswds.min.js.map +1 -0
- data/assets/uswds/scss/_all.scss +1 -0
- data/assets/uswds/scss/components/_accordions.scss +150 -0
- data/assets/uswds/scss/components/_alerts.scss +94 -0
- data/assets/uswds/scss/components/_banner.scss +204 -0
- data/assets/uswds/scss/components/_footer.scss +382 -0
- data/assets/uswds/scss/components/_forms.scss +164 -0
- data/assets/uswds/scss/components/_graphic-list.scss +35 -0
- data/assets/uswds/scss/components/_header.scss +221 -0
- data/assets/uswds/scss/components/_hero.scss +43 -0
- data/assets/uswds/scss/components/_layout.scss +36 -0
- data/assets/uswds/scss/components/_media-block.scss +12 -0
- data/assets/uswds/scss/components/_navigation.scss +454 -0
- data/assets/uswds/scss/components/_search.scss +106 -0
- data/assets/uswds/scss/components/_section.scss +37 -0
- data/assets/uswds/scss/components/_sidenav.scss +8 -0
- data/assets/uswds/scss/components/_skipnav.scss +19 -0
- data/assets/uswds/scss/core/_base.scss +30 -0
- data/assets/uswds/scss/core/_defaults.scss +8 -0
- data/assets/uswds/scss/core/_fonts.scss +65 -0
- data/assets/uswds/scss/core/_grid-settings.scss +3 -0
- data/assets/uswds/scss/core/_grid.scss +199 -0
- data/assets/uswds/scss/core/_utilities.scss +232 -0
- data/assets/uswds/scss/core/_variables.scss +123 -0
- data/assets/uswds/scss/elements/_buttons.scss +191 -0
- data/assets/uswds/scss/elements/_embed.scss +26 -0
- data/assets/uswds/scss/elements/_figure.scss +13 -0
- data/assets/uswds/scss/elements/_inputs.scss +346 -0
- data/assets/uswds/scss/elements/_labels.scss +20 -0
- data/assets/uswds/scss/elements/_list.scss +32 -0
- data/assets/uswds/scss/elements/_table.scss +47 -0
- data/assets/uswds/scss/elements/_typography.scss +257 -0
- data/assets/uswds/scss/lib/_bourbon-deprecated-upcoming.scss +411 -0
- data/assets/uswds/scss/lib/_bourbon.scss +87 -0
- data/assets/uswds/scss/lib/_neat-helpers.scss +11 -0
- data/assets/uswds/scss/lib/_neat.scss +23 -0
- data/assets/uswds/scss/lib/_normalize.scss +424 -0
- data/assets/uswds/scss/lib/addons/_border-color.scss +26 -0
- data/assets/uswds/scss/lib/addons/_border-radius.scss +48 -0
- data/assets/uswds/scss/lib/addons/_border-style.scss +25 -0
- data/assets/uswds/scss/lib/addons/_border-width.scss +25 -0
- data/assets/uswds/scss/lib/addons/_buttons.scss +64 -0
- data/assets/uswds/scss/lib/addons/_clearfix.scss +25 -0
- data/assets/uswds/scss/lib/addons/_ellipsis.scss +30 -0
- data/assets/uswds/scss/lib/addons/_font-stacks.scss +31 -0
- data/assets/uswds/scss/lib/addons/_hide-text.scss +27 -0
- data/assets/uswds/scss/lib/addons/_margin.scss +26 -0
- data/assets/uswds/scss/lib/addons/_padding.scss +26 -0
- data/assets/uswds/scss/lib/addons/_position.scss +48 -0
- data/assets/uswds/scss/lib/addons/_prefixer.scss +66 -0
- data/assets/uswds/scss/lib/addons/_retina-image.scss +25 -0
- data/assets/uswds/scss/lib/addons/_size.scss +51 -0
- data/assets/uswds/scss/lib/addons/_text-inputs.scss +113 -0
- data/assets/uswds/scss/lib/addons/_timing-functions.scss +34 -0
- data/assets/uswds/scss/lib/addons/_triangle.scss +63 -0
- data/assets/uswds/scss/lib/addons/_word-wrap.scss +29 -0
- data/assets/uswds/scss/lib/css3/_animation.scss +43 -0
- data/assets/uswds/scss/lib/css3/_appearance.scss +3 -0
- data/assets/uswds/scss/lib/css3/_backface-visibility.scss +3 -0
- data/assets/uswds/scss/lib/css3/_background-image.scss +42 -0
- data/assets/uswds/scss/lib/css3/_background.scss +55 -0
- data/assets/uswds/scss/lib/css3/_border-image.scss +59 -0
- data/assets/uswds/scss/lib/css3/_calc.scss +4 -0
- data/assets/uswds/scss/lib/css3/_columns.scss +47 -0
- data/assets/uswds/scss/lib/css3/_filter.scss +4 -0
- data/assets/uswds/scss/lib/css3/_flex-box.scss +287 -0
- data/assets/uswds/scss/lib/css3/_font-face.scss +24 -0
- data/assets/uswds/scss/lib/css3/_font-feature-settings.scss +4 -0
- data/assets/uswds/scss/lib/css3/_hidpi-media-query.scss +10 -0
- data/assets/uswds/scss/lib/css3/_hyphens.scss +4 -0
- data/assets/uswds/scss/lib/css3/_image-rendering.scss +14 -0
- data/assets/uswds/scss/lib/css3/_keyframes.scss +36 -0
- data/assets/uswds/scss/lib/css3/_linear-gradient.scss +38 -0
- data/assets/uswds/scss/lib/css3/_perspective.scss +8 -0
- data/assets/uswds/scss/lib/css3/_placeholder.scss +8 -0
- data/assets/uswds/scss/lib/css3/_radial-gradient.scss +39 -0
- data/assets/uswds/scss/lib/css3/_selection.scss +42 -0
- data/assets/uswds/scss/lib/css3/_text-decoration.scss +19 -0
- data/assets/uswds/scss/lib/css3/_transform.scss +15 -0
- data/assets/uswds/scss/lib/css3/_transition.scss +71 -0
- data/assets/uswds/scss/lib/css3/_user-select.scss +3 -0
- data/assets/uswds/scss/lib/functions/_assign-inputs.scss +11 -0
- data/assets/uswds/scss/lib/functions/_contains-falsy.scss +20 -0
- data/assets/uswds/scss/lib/functions/_contains.scss +26 -0
- data/assets/uswds/scss/lib/functions/_is-length.scss +11 -0
- data/assets/uswds/scss/lib/functions/_is-light.scss +21 -0
- data/assets/uswds/scss/lib/functions/_is-number.scss +11 -0
- data/assets/uswds/scss/lib/functions/_is-size.scss +13 -0
- data/assets/uswds/scss/lib/functions/_modular-scale.scss +69 -0
- data/assets/uswds/scss/lib/functions/_new-breakpoint.scss +49 -0
- data/assets/uswds/scss/lib/functions/_private.scss +114 -0
- data/assets/uswds/scss/lib/functions/_px-to-em.scss +13 -0
- data/assets/uswds/scss/lib/functions/_px-to-rem.scss +15 -0
- data/assets/uswds/scss/lib/functions/_shade.scss +24 -0
- data/assets/uswds/scss/lib/functions/_strip-units.scss +17 -0
- data/assets/uswds/scss/lib/functions/_tint.scss +24 -0
- data/assets/uswds/scss/lib/functions/_transition-property-name.scss +22 -0
- data/assets/uswds/scss/lib/functions/_unpack.scss +27 -0
- data/assets/uswds/scss/lib/grid/_box-sizing.scss +15 -0
- data/assets/uswds/scss/lib/grid/_direction-context.scss +33 -0
- data/assets/uswds/scss/lib/grid/_display-context.scss +28 -0
- data/assets/uswds/scss/lib/grid/_fill-parent.scss +22 -0
- data/assets/uswds/scss/lib/grid/_media.scss +92 -0
- data/assets/uswds/scss/lib/grid/_omega.scss +87 -0
- data/assets/uswds/scss/lib/grid/_outer-container.scss +34 -0
- data/assets/uswds/scss/lib/grid/_pad.scss +25 -0
- data/assets/uswds/scss/lib/grid/_private.scss +35 -0
- data/assets/uswds/scss/lib/grid/_row.scss +52 -0
- data/assets/uswds/scss/lib/grid/_shift.scss +50 -0
- data/assets/uswds/scss/lib/grid/_span-columns.scss +94 -0
- data/assets/uswds/scss/lib/grid/_to-deprecate.scss +97 -0
- data/assets/uswds/scss/lib/grid/_visual-grid.scss +42 -0
- data/assets/uswds/scss/lib/helpers/_convert-units.scss +21 -0
- data/assets/uswds/scss/lib/helpers/_directional-values.scss +96 -0
- data/assets/uswds/scss/lib/helpers/_font-source-declaration.scss +43 -0
- data/assets/uswds/scss/lib/helpers/_gradient-positions-parser.scss +13 -0
- data/assets/uswds/scss/lib/helpers/_linear-angle-parser.scss +25 -0
- data/assets/uswds/scss/lib/helpers/_linear-gradient-parser.scss +41 -0
- data/assets/uswds/scss/lib/helpers/_linear-positions-parser.scss +61 -0
- data/assets/uswds/scss/lib/helpers/_linear-side-corner-parser.scss +31 -0
- data/assets/uswds/scss/lib/helpers/_radial-arg-parser.scss +69 -0
- data/assets/uswds/scss/lib/helpers/_radial-gradient-parser.scss +50 -0
- data/assets/uswds/scss/lib/helpers/_radial-positions-parser.scss +18 -0
- data/assets/uswds/scss/lib/helpers/_render-gradients.scss +26 -0
- data/assets/uswds/scss/lib/helpers/_shape-size-stripper.scss +10 -0
- data/assets/uswds/scss/lib/helpers/_str-to-num.scss +50 -0
- data/assets/uswds/scss/lib/mixins/_clearfix.scss +25 -0
- data/assets/uswds/scss/lib/settings/_asset-pipeline.scss +7 -0
- data/assets/uswds/scss/lib/settings/_disable-warnings.scss +13 -0
- data/assets/uswds/scss/lib/settings/_grid.scss +51 -0
- data/assets/uswds/scss/lib/settings/_prefixer.scss +9 -0
- data/assets/uswds/scss/lib/settings/_px-to-em.scss +1 -0
- data/assets/uswds/scss/lib/settings/_visual-grid.scss +27 -0
- data/assets/uswds/scss/uswds.scss +41 -0
- data/assets/uswds/uswds-1.3.1.zip +0 -0
- metadata +490 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1ef75b2d7d836bddafdb82b872209c91745294ca
|
4
|
+
data.tar.gz: 93ea359defb24c65bddb2df65c4a734d6a5b8649
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2a499c57a4ac50e9d768d5c5b77a18fbe5a502e9db01591ff400c36d222466677134ed58610306f68922e3591c5f4ae65231b41979367683345d61fdeffd4be5
|
7
|
+
data.tar.gz: 225e549ef3286f9ca5267c2f2deea723bb41f58af30812d01d670ae5cda1570a8f57644bad92202c5cf6f4c761229a075f325539396e828e153d8df7eedf0c8c
|
data/LICENSE.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
As a work of the United States government, this project is in the
|
2
|
+
public domain within the United States.
|
3
|
+
|
4
|
+
Additionally, we waive copyright and related rights in the work
|
5
|
+
worldwide through the CC0 1.0 Universal public domain dedication.
|
6
|
+
|
7
|
+
## CC0 1.0 Universal summary
|
8
|
+
|
9
|
+
This is a human-readable summary of the [Legal Code (read the full text)](https://creativecommons.org/publicdomain/zero/1.0/legalcode).
|
10
|
+
|
11
|
+
### No copyright
|
12
|
+
|
13
|
+
The person who associated a work with this deed has dedicated the work to
|
14
|
+
the public domain by waiving all rights to the work worldwide
|
15
|
+
under copyright law, including all related and neighboring rights, to the
|
16
|
+
extent allowed by law.
|
17
|
+
|
18
|
+
You can copy, modify, distribute and perform the work, even for commercial
|
19
|
+
purposes, all without asking permission.
|
20
|
+
|
21
|
+
### Other information
|
22
|
+
|
23
|
+
In no way are the patent or trademark rights of any person affected by CC0,
|
24
|
+
nor are the rights that other persons may have in the work or in how the
|
25
|
+
work is used, such as publicity or privacy rights.
|
26
|
+
|
27
|
+
Unless expressly stated otherwise, the person who associated a work with
|
28
|
+
this deed makes no warranties about the work, and disclaims liability for
|
29
|
+
all uses of the work, to the fullest extent permitted by applicable law.
|
30
|
+
When using or citing the work, you should not imply endorsement by the
|
31
|
+
author or the affirmer.
|
data/README.md
ADDED
@@ -0,0 +1,547 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
|
4
|
+
# Jekyll + U.S. Web Design Standards
|
5
|
+
|
6
|
+
This is a [Jekyll theme](https://jekyllrb.com/docs/themes/) for the
|
7
|
+
[U.S. Web Design Standards](https://standards.usa.gov).
|
8
|
+
|
9
|
+
## Table of contents
|
10
|
+
1. [Installation](#installation)
|
11
|
+
- [Development](#development)
|
12
|
+
- [Versioning](#versioning)
|
13
|
+
1. [Configuration](#configuration)
|
14
|
+
- [Site title](#site-title)
|
15
|
+
- [Navigation](#navigation)
|
16
|
+
- [Page subnavigation](#page-subnavigation)
|
17
|
+
- [Search](#search)
|
18
|
+
1. [Assets](#assets)
|
19
|
+
- [Stylesheets](#stylesheets)
|
20
|
+
- [Scripts](#scripts)
|
21
|
+
- [Asset load order](#asset-load-order)
|
22
|
+
1. [Customization](#customization)
|
23
|
+
- [Customizing with Sass](#customizing-with-sass)
|
24
|
+
- [Customizing with CSS overrides](#customizing-with-css-overrides)
|
25
|
+
- [Overriding includes and layouts](#overriding-includes-and-layouts)
|
26
|
+
1. [Components](#components)
|
27
|
+
- [Header](#header)
|
28
|
+
- [Footer](#footer)
|
29
|
+
1. [Layouts](#layouts)
|
30
|
+
- [Base](#layout-base)
|
31
|
+
- [Docs](#layout-docs)
|
32
|
+
- [Landing](#layout-landing)
|
33
|
+
- [Search results](#search-results)
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
## Installation
|
38
|
+
|
39
|
+
1. Install the theme as a Ruby Gem by adding it to your `Gemfile`
|
40
|
+
like so:
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
gem 'uswds-jekyll', :git => 'https://github.com/18F/uswds-jekyll.git'
|
44
|
+
```
|
45
|
+
1. Install the `jekyll_pages_api_search` by adding it to your `Gemfile`
|
46
|
+
```
|
47
|
+
group :jekyll_plugins do
|
48
|
+
gem 'jekyll_pages_api_search'
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
1. Fetch and update your bundled gems by running:
|
53
|
+
|
54
|
+
```sh
|
55
|
+
bundle
|
56
|
+
```
|
57
|
+
|
58
|
+
1. Set the `theme` in your site's Jekyll configuration,
|
59
|
+
`_config.yml`:
|
60
|
+
|
61
|
+
```yml
|
62
|
+
theme: uswds-jekyll
|
63
|
+
```
|
64
|
+
|
65
|
+
You will need to restart your Jekyll server to see the effects.
|
66
|
+
|
67
|
+
### Install as a new Jekyll site
|
68
|
+
|
69
|
+
1. Create a new Jekyll site:
|
70
|
+
```
|
71
|
+
jekyll new
|
72
|
+
```
|
73
|
+
1. Replace the default `gem "minima", "~> 2.0"` gem with the `uswds-jekyll` gem in your `Gemfile`:
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
gem 'uswds-jekyll', :git => 'https://github.com/18F/uswds-jekyll.git'
|
77
|
+
```
|
78
|
+
1. Set the `theme` in your site's Jekyll configuration,
|
79
|
+
`_config.yml`:
|
80
|
+
|
81
|
+
```yml
|
82
|
+
theme: uswds-jekyll
|
83
|
+
```
|
84
|
+
1. Update the layouts used on the following pages to use [uswds-jekyll layouts](https://github.com/18F/uswds-jekyll/tree/master/_layouts)
|
85
|
+
```
|
86
|
+
404.html
|
87
|
+
index.md
|
88
|
+
about.md
|
89
|
+
posts/2017-08-07-welcome-to-jekyll.markdown
|
90
|
+
```
|
91
|
+
1. Fetch and update your bundled gems by running:
|
92
|
+
|
93
|
+
```sh
|
94
|
+
bundle
|
95
|
+
```
|
96
|
+
1. Run Jekyll `jekyll serve` to build your site locally at http://localhost:4000/
|
97
|
+
|
98
|
+
### Development
|
99
|
+
|
100
|
+
To develop this theme and/or test it locally:
|
101
|
+
|
102
|
+
1. Clone this repo
|
103
|
+
|
104
|
+
1. Run Jekyll (`jekyll serve`) in the local clone of this repo;
|
105
|
+
**or**
|
106
|
+
|
107
|
+
1. Create a new Jekyll project, follow the
|
108
|
+
[installation](#installation) instructions, then change your
|
109
|
+
`Gemfile` to point at the local clone of this repo:
|
110
|
+
|
111
|
+
```ruby
|
112
|
+
gem 'uswds-jekyll', :path => '../path/to/uswds-jekyll'
|
113
|
+
```
|
114
|
+
|
115
|
+
### Versioning
|
116
|
+
|
117
|
+
To reference a specific version of this plugin:
|
118
|
+
|
119
|
+
1. Visit the [releases page](https://github.com/18F/uswds-jekyll/releases) and
|
120
|
+
decide which version you want to use.
|
121
|
+
|
122
|
+
1. Add or update the `:tag` argument for this gem in your `Gemfile` to the name
|
123
|
+
of the release tag, e.g.
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
gem 'uswds-jekyll', \
|
127
|
+
:git => 'https://github.com/18F/uswds-jekyll.git', \
|
128
|
+
:tag => 'v0.1.1'
|
129
|
+
```
|
130
|
+
|
131
|
+
## Configuration
|
132
|
+
|
133
|
+
Configuration of common elements ([header](#header),
|
134
|
+
[footer](#footer), [navigation](#navigation), etc.) happens in your
|
135
|
+
project's [data files](https://jekyllrb.com/docs/datafiles/). See
|
136
|
+
this project's [data directory](_data) for reference configurations
|
137
|
+
of each component.
|
138
|
+
|
139
|
+
The [base layout](#layout-base) also provides a mechanism for
|
140
|
+
automatically including [stylesheets](#stylesheets) and
|
141
|
+
[scripts](#scripts) on a site-wide, layout-wide, and per-page
|
142
|
+
basis. See [asset load order](#asset-load-order) for more
|
143
|
+
information.
|
144
|
+
|
145
|
+
|
146
|
+
### Site title
|
147
|
+
|
148
|
+
You can change your site's title with the `title` field in your
|
149
|
+
`_config.yml`. If you want to provide an alternate title for use
|
150
|
+
_only_ in the site header, you can set the `title` field in
|
151
|
+
`_data/header.yml`.
|
152
|
+
|
153
|
+
|
154
|
+
### Navigation
|
155
|
+
|
156
|
+
This theme's navigation system is powerful and flexible. Named
|
157
|
+
navigational lists live in your project's `_data/navigation.yml`,
|
158
|
+
e.g.
|
159
|
+
|
160
|
+
By default all links are assumed to be internal to the site. You can add `external: true` to links that are external.
|
161
|
+
|
162
|
+
```yml
|
163
|
+
# _data/navigation.yml
|
164
|
+
primary:
|
165
|
+
- text: Documentation
|
166
|
+
href: /docs/
|
167
|
+
- text: Support
|
168
|
+
href: /help/
|
169
|
+
- text: External link
|
170
|
+
href: https://18f.gsa.gov
|
171
|
+
external: true
|
172
|
+
|
173
|
+
# link objects with a 'links' field will be presented as
|
174
|
+
# collapsible link lists. The 'links' field can either be a
|
175
|
+
# reference to another link list in this file, or a literal list.
|
176
|
+
- text: Section title
|
177
|
+
links: <links>
|
178
|
+
```
|
179
|
+
|
180
|
+
This scheme allows you to define navigational elements that can be
|
181
|
+
shared by different components, such as the [header](#header) and
|
182
|
+
[footer](#footer). See the documentation for those components for
|
183
|
+
more info.
|
184
|
+
|
185
|
+
|
186
|
+
### Page subnavigation
|
187
|
+
|
188
|
+
If you're using the [docs layout](#layout-docs), each page may declare its own
|
189
|
+
side navigation and subnavigation in its [front matter]:
|
190
|
+
|
191
|
+
```md
|
192
|
+
---
|
193
|
+
sidenav: documentation
|
194
|
+
subnav:
|
195
|
+
- text: Section one
|
196
|
+
href: '#section-one'
|
197
|
+
- text: Section two
|
198
|
+
href: '#section-two
|
199
|
+
---
|
200
|
+
## Section one
|
201
|
+
|
202
|
+
## Section two
|
203
|
+
```
|
204
|
+
|
205
|
+
As with the [header](#header) and [footer](#footer), the `sidenav` field may
|
206
|
+
either reference a common [navigation list](#navigation) from
|
207
|
+
`_data/navigation.yml` (recommended) or be a literal list of links.
|
208
|
+
|
209
|
+
The `subnav` field should be used to link to sections _within_ the current
|
210
|
+
page, because links to other pages will cause the linking page's side
|
211
|
+
navigation to collapse when visited.
|
212
|
+
|
213
|
+
**Pro tip:** Unless your Jekyll configuration specifies otherwise, the default
|
214
|
+
Markdown formatter (Kramdown) will automatically generate predictable `id`
|
215
|
+
attributes for your page headings and convert markdown like this:
|
216
|
+
|
217
|
+
```md
|
218
|
+
## Section one
|
219
|
+
```
|
220
|
+
|
221
|
+
into:
|
222
|
+
|
223
|
+
```html
|
224
|
+
<h2 id="section-one">Section one</h2>
|
225
|
+
```
|
226
|
+
|
227
|
+
If you're using Redcarpet, you will need to configure it to enable
|
228
|
+
the `with_toc_data` extension in your `_config.yml`, like so:
|
229
|
+
|
230
|
+
```yml
|
231
|
+
markdown: redcarpet
|
232
|
+
redcarpet:
|
233
|
+
extensions:
|
234
|
+
- with_toc_data
|
235
|
+
```
|
236
|
+
|
237
|
+
### Search
|
238
|
+
|
239
|
+
[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`.
|
240
|
+
|
241
|
+
Search uses the [Search results](#search-results) page layout.
|
242
|
+
|
243
|
+
**Pro tip:** use [Jekyll front matter defaults](https://jekyllrb.com/docs/configuration/#front-matter-defaults) to hide directories from showing in search results.
|
244
|
+
|
245
|
+
## Assets
|
246
|
+
|
247
|
+
The [stylesheet](_includes/styles.html) and [script](_includes/scripts.html)
|
248
|
+
includes each incorporate the Standards CSS and JS files if the corresponding
|
249
|
+
`styles` and `scripts` lists aren't defined in your `_config.yml`. So unless
|
250
|
+
you add one or both of those manually, your HTML will include the following:
|
251
|
+
|
252
|
+
```html
|
253
|
+
<!-- in the <head> -->
|
254
|
+
<link rel="stylesheet" href="/assets/uswds/css/uswds.min.css" media="screen">
|
255
|
+
<!-- before </body> -->
|
256
|
+
<script src="/assets/uswds/js/uswds.min.js" async>
|
257
|
+
```
|
258
|
+
|
259
|
+
Read more about customizing [stylesheets](#stylesheets) and [scripts](#scripts)
|
260
|
+
below.
|
261
|
+
|
262
|
+
|
263
|
+
### Stylesheets
|
264
|
+
|
265
|
+
As a general rule, all stylesheets are inserted in a layouts'
|
266
|
+
`<head>`, which qualifies them as "render-blocking". Site
|
267
|
+
stylesheets can be specified in `_config.yml` or a layout or page's
|
268
|
+
[front matter] YAML in the following form:
|
269
|
+
|
270
|
+
```yml
|
271
|
+
styles:
|
272
|
+
- /path/to/sheet.css
|
273
|
+
- href: /path/to/sheet.css
|
274
|
+
media: (screen|print|all) # optional
|
275
|
+
```
|
276
|
+
|
277
|
+
Stylesheets specified as objects (in the latter item above) must
|
278
|
+
have an `href` property. The `media` defaults to `screen`.
|
279
|
+
|
280
|
+
|
281
|
+
### Scripts
|
282
|
+
|
283
|
+
As a general rule, all scripts are inserted before a layouts'
|
284
|
+
`</body>`, which prevents them from blocking the rendering of your
|
285
|
+
page's content. Scripts can be specified in `_config.yml` or a
|
286
|
+
layout or page's [front matter] YAML in the following form:
|
287
|
+
|
288
|
+
```yml
|
289
|
+
scripts:
|
290
|
+
- /path/to/script.js
|
291
|
+
- href: /path/to/script.js
|
292
|
+
async: true # optional
|
293
|
+
```
|
294
|
+
|
295
|
+
Scripts specified as objects (in the latter item above) must have a `src`
|
296
|
+
property. Scripts with `async: true` will get an `async` attribute, which tells
|
297
|
+
the browser _not_ to let this script's loading block the execution of
|
298
|
+
subsequent scripts. If the execution order of your scripts is **not**
|
299
|
+
important, setting `async: true` may provide performance benefits to your
|
300
|
+
users. (Conversely, if you don't know whether your scripts need to execute in a
|
301
|
+
particular order, then you should not set `async: true` because it may prevent
|
302
|
+
your scripts from running propertly.)
|
303
|
+
|
304
|
+
|
305
|
+
### Asset load order
|
306
|
+
|
307
|
+
Both [stylesheets](#stylesheets) and [scripts](#scripts) can be configured
|
308
|
+
|
309
|
+
1. Assets configured at the `site` level (in your `_config.yml`) will be loaded
|
310
|
+
in all pages that use the USWDS [layouts](#layouts).
|
311
|
+
1. Those configured at the layout level (in that layout's [front
|
312
|
+
matter]) will be loaded on all pages that use that layout, after
|
313
|
+
site assets.
|
314
|
+
1. Those configured at the page level (in the page's [front matter])
|
315
|
+
will be loaded last.
|
316
|
+
|
317
|
+
|
318
|
+
## Customization
|
319
|
+
|
320
|
+
You have two options for customizing the CSS: [Sass](#customizing-with-sass) or
|
321
|
+
[CSS overrides](#customizing-with-css-overrides). Individual sites can also
|
322
|
+
[selectively override](#overriding-includes-and-layouts) individual includes
|
323
|
+
and layouts.
|
324
|
+
|
325
|
+
|
326
|
+
### Customizing with Sass
|
327
|
+
|
328
|
+
1. Create a [Sass][] (or SCSS) entry point that sets variables and then imports
|
329
|
+
the USWDS source files:
|
330
|
+
|
331
|
+
```scss
|
332
|
+
---
|
333
|
+
# assets/main.scss
|
334
|
+
---
|
335
|
+
// set your variables or @import them here.
|
336
|
+
|
337
|
+
// at the very least, you should set the USWDS font and image paths
|
338
|
+
// to the correct paths relative to assets/main.css, like so:
|
339
|
+
$font-path: 'uswds/fonts';
|
340
|
+
$image-path: 'uswds/img';
|
341
|
+
|
342
|
+
@import 'uswds/all';
|
343
|
+
```
|
344
|
+
|
345
|
+
1. Change the path to your site's default stylesheet in your `_config.yml`:
|
346
|
+
|
347
|
+
```yml
|
348
|
+
styles:
|
349
|
+
- /assets/main.css
|
350
|
+
```
|
351
|
+
|
352
|
+
All of the Standards' [SCSS source files](https://github.com/18F/web-design-standards/tree/master/src/stylesheets)
|
353
|
+
are placed in the [_sass/uswds](_sass/uswds) directory and are available as
|
354
|
+
Sass imports via `@import 'uswds/<path>';`. See the [Jekyll docs][Jekyll Sass]
|
355
|
+
for more information about its Sass/SCSS support, and configuring its Sass
|
356
|
+
renderer in your site's config.
|
357
|
+
|
358
|
+
|
359
|
+
### Customizing with CSS overrides
|
360
|
+
|
361
|
+
1. Create a new CSS or Sass file that defines your customizations,
|
362
|
+
e.g.
|
363
|
+
|
364
|
+
```scss
|
365
|
+
---
|
366
|
+
# assets/uswds-overrides.scss
|
367
|
+
---
|
368
|
+
.usa-header {
|
369
|
+
// overrides here
|
370
|
+
}
|
371
|
+
```
|
372
|
+
|
373
|
+
1. Add the new stylesheet's path to your `_config.yml` _after_
|
374
|
+
`uswds.min.css`:
|
375
|
+
|
376
|
+
```yml
|
377
|
+
styles:
|
378
|
+
- /assets/uswds/css/uswds.min.css
|
379
|
+
- /assets/uswds-overrides.css
|
380
|
+
```
|
381
|
+
|
382
|
+
### Overriding includes and layouts
|
383
|
+
|
384
|
+
Any [include](_includes) or [layout](_layouts) can be overridden by
|
385
|
+
your site by placing a file with the same name into your site's
|
386
|
+
`_includes` or `_layouts` directory. For instance:
|
387
|
+
|
388
|
+
- To change how [stylesheets](#stylesheets) are loaded or
|
389
|
+
referenced, you can create your own `_includes/styles.html`,
|
390
|
+
which will subsequently change how stylesheets are loaded in all
|
391
|
+
layouts that inherit from the USWDS [base layout](#layout-base).
|
392
|
+
|
393
|
+
- You can change how the side navigation is rendered (but not which
|
394
|
+
data it receives) in the [docs layout](#layout-docs) by creating
|
395
|
+
your own `_includes/sidenav.html`.
|
396
|
+
|
397
|
+
- You can change how and whether the side navigation is displayed
|
398
|
+
at all in the [docs layout](#layout-docs) by overriding
|
399
|
+
`_layouts/docs.html`.
|
400
|
+
|
401
|
+
## Components
|
402
|
+
|
403
|
+
For some [Standards components](https://standards.usa.gov/components/),
|
404
|
+
there are two different files that control how data is passed to
|
405
|
+
the template:
|
406
|
+
|
407
|
+
1. `components/{component}.html` is the low-level template that
|
408
|
+
assumes a similarly named global template variable. For
|
409
|
+
instance, the header component operates on the `header` template
|
410
|
+
variable.
|
411
|
+
1. `{component}.html` is the "concrete" implementation of the
|
412
|
+
component that sets the appropriate global variable then
|
413
|
+
includes the low-level template.
|
414
|
+
|
415
|
+
This separation allows you to override either of the component
|
416
|
+
includes in your own Jekyll site without having to re-implement
|
417
|
+
either the high- or low-level logic. For instance, if you want your
|
418
|
+
header data to come directly from the Jekyll configuration file
|
419
|
+
(`_config.yml`) rather than `_data/header.yml`, you can override
|
420
|
+
`_includes/header.html` to look like this:
|
421
|
+
|
422
|
+
```html
|
423
|
+
{% assign header = site.header %}
|
424
|
+
{% include components/header--basic.html %}
|
425
|
+
```
|
426
|
+
|
427
|
+
|
428
|
+
### Header
|
429
|
+
|
430
|
+
The [header.html include](_includes/header.html) sets the `header`
|
431
|
+
template variable to `site.data.header`, the value of which is set
|
432
|
+
in your Jekyll project's `_data/header.yml` file. Then it includes
|
433
|
+
[components/header.html](_includes/components/header.html) to
|
434
|
+
render the header's markup.
|
435
|
+
|
436
|
+
See this repo's [header.yml](_data/header.yml) for more info.
|
437
|
+
|
438
|
+
|
439
|
+
### Footer
|
440
|
+
|
441
|
+
The [footer.html include](_includes/footer.html) sets the `header`
|
442
|
+
template variable to `site.data.footer`, the value of which is set
|
443
|
+
in your Jekyll project's `_data/footer.yml` file. Then it includes
|
444
|
+
[components/footer.html](_includes/components/footer.html) to
|
445
|
+
render the footer's markup.
|
446
|
+
|
447
|
+
See this repo's [footer.yml](_data/footer.yml) for more info.
|
448
|
+
|
449
|
+
|
450
|
+
## Layouts
|
451
|
+
|
452
|
+
This theme provides the following layouts, which you can use by
|
453
|
+
setting the `layout` [front matter] on each page, like so:
|
454
|
+
|
455
|
+
```yaml
|
456
|
+
---
|
457
|
+
layout: name
|
458
|
+
---
|
459
|
+
```
|
460
|
+
|
461
|
+
### `layout: base`
|
462
|
+
|
463
|
+
This is the bare-bones Standards layout, which does all of the
|
464
|
+
basic page scaffolding then drops the page content into the
|
465
|
+
`<main>` element. All of the other layouts "inherit" this one and
|
466
|
+
provide other features in the content block.
|
467
|
+
|
468
|
+
The base layout provides a layout [front matter] hook to add
|
469
|
+
attributes to the `<main>` element. You can see how this works in
|
470
|
+
the [docs layout](_layouts/docs.html#L3-L4).
|
471
|
+
|
472
|
+
|
473
|
+
### `layout: landing`
|
474
|
+
|
475
|
+
This layout implements the [landing page
|
476
|
+
template](https://standards.usa.gov/page-templates/landing/), which
|
477
|
+
accommodates the following [front matter]:
|
478
|
+
|
479
|
+
```yml
|
480
|
+
hero: # optional
|
481
|
+
image: /path/to/image.jpg # optional
|
482
|
+
callout:
|
483
|
+
alt: Callout white text! # optional
|
484
|
+
text: The rest of the callout
|
485
|
+
button: # optional
|
486
|
+
text: The button text
|
487
|
+
href: /button-href/
|
488
|
+
|
489
|
+
# optional, but must be used in conjunction with 'intro', below
|
490
|
+
tagline: A tagline for your page
|
491
|
+
# also optional, but must be used with 'tagline', above
|
492
|
+
intro: |
|
493
|
+
Some introductory text content.
|
494
|
+
|
495
|
+
This will be processed as **Markdown**.
|
496
|
+
|
497
|
+
# an optional list of graphics to display before or after the content
|
498
|
+
graphics:
|
499
|
+
- image:
|
500
|
+
# note the indentation here: graphics[n].image.src
|
501
|
+
src: /path/to/image.ext
|
502
|
+
alt: optional alt text
|
503
|
+
title: Optional graphic title, rendered as an <h3>
|
504
|
+
description: Graphic description text, processed as _Markdown_.
|
505
|
+
|
506
|
+
# optional
|
507
|
+
graphics_position: (before|after)
|
508
|
+
```
|
509
|
+
|
510
|
+
Check out the YAML front matter in the [landing demo
|
511
|
+
page](demo/landing.html) for an example of how to structure it.
|
512
|
+
|
513
|
+
|
514
|
+
### `layout: docs`
|
515
|
+
|
516
|
+
This layout implements the [document page
|
517
|
+
template](https://standards.usa.gov/page-templates/docs/), and
|
518
|
+
accommodates an optional side navigation. Supported [front matter]:
|
519
|
+
|
520
|
+
* `sidenav` is a key _into_ `_data/navigation.yml`. See the
|
521
|
+
[navigation](#navigation) docs for more info.
|
522
|
+
|
523
|
+
A page's "current" or "active" state in the sidenav is
|
524
|
+
determined by whether a link's `href` matches `page.url` or
|
525
|
+
`page.permalink` for each page being rendered.
|
526
|
+
|
527
|
+
* `subnav` is a list of links to display on this page under its own
|
528
|
+
link in the side navigation.
|
529
|
+
|
530
|
+
**Note that subnav link hrefs are not prefixed with
|
531
|
+
`site.baseurl`** because this breaks hash links prefixed with
|
532
|
+
`#`.
|
533
|
+
|
534
|
+
See the [docs demo page](demo/docs.md) for an example of how this
|
535
|
+
works, and see [_data/navigation.yml](_data/navigation.yml) for how
|
536
|
+
to structure named navigation data for your site.
|
537
|
+
|
538
|
+
### `layout: search-results`
|
539
|
+
|
540
|
+
This layout is for search results and contains the `jekyll_pages_api_search_results`
|
541
|
+
that renders the results into the `<main>` element. All of the other layouts "inherit" this one and
|
542
|
+
provide other features in the content block.
|
543
|
+
|
544
|
+
|
545
|
+
[Sass]: http://sass-lang.com/guide
|
546
|
+
[Jekyll Sass]: https://jekyllrb.com/docs/assets/#sassscss
|
547
|
+
[front matter]: https://jekyllrb.com/docs/frontmatter/
|