federalist-basic-report-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +31 -0
  3. data/README.md +164 -0
  4. data/_includes/analytics.html +20 -0
  5. data/_includes/banner.html +1 -0
  6. data/_includes/components/banner.html +20 -0
  7. data/_includes/components/footer--medium.html +81 -0
  8. data/_includes/components/graphic-list.html +16 -0
  9. data/_includes/components/header--basic.html +74 -0
  10. data/_includes/components/header--extended.html +88 -0
  11. data/_includes/components/hero.html +32 -0
  12. data/_includes/components/sidenav--default.html +26 -0
  13. data/_includes/favicon.html +24 -0
  14. data/_includes/footer.html +3 -0
  15. data/_includes/graphic-list.html +2 -0
  16. data/_includes/header.html +9 -0
  17. data/_includes/meta.html +6 -0
  18. data/_includes/scripts.html +39 -0
  19. data/_includes/sidenav.html +27 -0
  20. data/_includes/skipnav.html +1 -0
  21. data/_includes/styles.html +14 -0
  22. data/_includes/subnav.html +5 -0
  23. data/_layouts/default.html +24 -0
  24. data/_layouts/home.html +43 -0
  25. data/_layouts/page.html +13 -0
  26. data/_layouts/post.html +7 -0
  27. data/_sass/components/_all.scss +7 -0
  28. data/_sass/components/_alt-color-section.scss +35 -0
  29. data/_sass/components/_footer.scss +26 -0
  30. data/_sass/components/_header.scss +27 -0
  31. data/_sass/components/_hero.scss +45 -0
  32. data/_sass/components/_nav-buttons.scss +24 -0
  33. data/_sass/components/_side-nav.scss +56 -0
  34. data/_sass/components/_site-width.scss +12 -0
  35. data/_sass/components/_top-nav.scss +73 -0
  36. data/_sass/components/_usa-banner.scss +29 -0
  37. data/assets/css/federalist.scss +91 -0
  38. data/assets/css/theme.scss +38 -0
  39. data/assets/docs/sample-document.pdf +0 -0
  40. data/assets/img/circle.png +0 -0
  41. data/assets/img/hero.png +0 -0
  42. data/assets/img/us_seal.png +0 -0
  43. data/assets/js/main.js +14 -0
  44. data/assets/js/vendor/anchor.min.js +6 -0
  45. metadata +143 -0
@@ -0,0 +1,32 @@
1
+ {% if hero %}
2
+ <section class="usa-hero"{% if hero.image %}
3
+ style="background-image: url('{{ hero.image | relative_url }}')"{% endif %}>
4
+ <div class="usa-grid">
5
+ <div class="usa-hero-callout usa-section-dark">
6
+ {% if hero.callout %}
7
+ <h2>
8
+ {% if hero.callout.alt %}
9
+ <span class="usa-hero-callout-alt">{{ hero.callout.alt }}</span>
10
+ {% endif %}
11
+ {{ hero.callout.text | default: hero.callout }}
12
+ </h2>
13
+ {% endif %}
14
+
15
+ {% if hero.link %}
16
+ <a class="usa-hero-link" href="{{ hero.link.href | relative_url }}">
17
+ {{ hero.link.text }}
18
+ </a>
19
+ {% endif %}
20
+
21
+ {{ hero.content | markdownify }}
22
+
23
+ {% if hero.button %}
24
+ <a class="usa-button"
25
+ href="{{ hero.button.href | relative_url }}">
26
+ {{ hero.button.text }}
27
+ </a>
28
+ {% endif %}
29
+ </div>
30
+ </div>
31
+ </section>
32
+ {% endif %}
@@ -0,0 +1,26 @@
1
+ <ul class="usa-sidenav-list">
2
+ {% for p in site.pages %}
3
+ {% unless p.title %}
4
+ {% comment%}
5
+ Only show pages that have a title.
6
+ {% endcomment %}
7
+ {% continue %}
8
+ {% endunless %}
9
+ {% assign _current = false %}
10
+ {% if p.url == page.url %}
11
+ {% assign _current = true %}
12
+ {% endif %}
13
+ <li>
14
+ <a href="{{ p.url | relative_url }}"
15
+ {% if _current %} class="usa-current" {% endif %}
16
+ >
17
+ {{ p.title }}
18
+ </a>
19
+ {% if _current and page.subnav %}
20
+ <ul class="usa-sidenav-sub_list">
21
+ {% include subnav.html links=page.subnav %}
22
+ </ul>
23
+ {% endif %}
24
+ </li>
25
+ {% endfor %}
26
+ </ul>
@@ -0,0 +1,24 @@
1
+ <link rel="shortcut icon" type="image/ico"
2
+ href="/assets/uswds/img/favicons/favicon.ico">
3
+
4
+ <link rel="icon" type="image/png"
5
+ href="/assets/uswds/img/favicons/favicon.png">
6
+
7
+ <link rel="icon" type="image/png"
8
+ sizes="192x192"
9
+ href="/assets/uswds/img/favicons/favicon-192.png">
10
+
11
+ <link rel="apple-touch-icon-precomposed" type=""
12
+ href="/assets/uswds/img/favicons/favicon-57.png">
13
+
14
+ <link rel="apple-touch-icon-precomposed" type=""
15
+ sizes="72x72"
16
+ href="/assets/uswds/img/favicons/favicon-72.png">
17
+
18
+ <link rel="apple-touch-icon-precomposed" type=""
19
+ sizes="114x114"
20
+ href="/assets/uswds/img/favicons/favicon-114.png">
21
+
22
+ <link rel="apple-touch-icon-precomposed" type=""
23
+ sizes="144x144"
24
+ href="/assets/uswds/img/favicons/favicon-144.png">
@@ -0,0 +1,3 @@
1
+ {% assign footer = site.data.footer %}
2
+
3
+ {% include components/footer--medium.html %}
@@ -0,0 +1,2 @@
1
+ {% assign graphics = include.graphics %}
2
+ {% include components/graphic-list.html %}
@@ -0,0 +1,9 @@
1
+ {% assign header = site.data.header %}
2
+
3
+ {% include components/banner.html %}
4
+
5
+ {% if header.type == 'basic' %}
6
+ {% include components/header--basic.html %}
7
+ {% else %}
8
+ {% include components/header--extended.html %}
9
+ {% endif %}
@@ -0,0 +1,6 @@
1
+ <meta name="viewport" content="width=device-width, initial-scale=1">
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+
5
+ <title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
6
+ {% include favicon.html %}
@@ -0,0 +1,39 @@
1
+ {% assign _scripts = '' | split: '' %}
2
+ {% assign _async_marker = 'uswds_async=true' %}
3
+ {% assign _site_scripts = site.scripts %}
4
+ {% unless _site_scripts -%}
5
+ {% assign _uswds_js = '/assets/uswds/js/uswds.min.js' | append: '?' | append: _async_marker %}
6
+ {% assign _site_scripts = '' | split: ''
7
+ | push: _uswds_js %}
8
+ {% if site.anchor_js_targets %}
9
+ {% assign _anchor_js = '/assets/js/vendor/anchor.min.js' %}
10
+ {% assign _main_js = '/assets/js/main.js' %}
11
+ {% assign _site_scripts = _site_scripts
12
+ | push: _anchor_js
13
+ | push: _main_js %}
14
+ {% endif %}
15
+ {% endunless %}
16
+ {% assign _scripts = _scripts
17
+ | push: _site_scripts
18
+ | push: layout.scripts
19
+ | push: page.scripts
20
+ | uniq %}
21
+ {% for _list in _scripts %}{% for _script in _list %}
22
+ {% assign _src = _script.src | default: _script %}
23
+ <script src="{{ _src | replace: _async_marker, '' | relative_url }}"{% if _script.async or _src contains _async_marker %} async{% endif %}></script>
24
+ {% endfor %}{% endfor %}
25
+
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
+ //]]>
38
+ </script>
39
+ {% endif %}
@@ -0,0 +1,27 @@
1
+ {% if include.links %}
2
+
3
+ <ul class="usa-sidenav-list">
4
+ {% for link in include.links %}
5
+ {% assign _href = link.href %}
6
+ {% assign _current = false %}
7
+ {% if link.href == page.url or link.href == page.permalink %}
8
+ {% assign _current = true %}
9
+ {% endif %}
10
+ <li>
11
+ <a href="{% if link.external == true %}{{ link.href }}{% else %}{{ link.href | relative_url }}{% endif %}"
12
+ {% if _current %} class="usa-current" {% endif %}
13
+ {% if link.class %}class="{{ link.class }}" {% endif %} >
14
+ {{ link.text }}
15
+ </a>
16
+ {% if _current and page.subnav %}
17
+ <ul class="usa-sidenav-sub_list">
18
+ {% include subnav.html links=page.subnav %}
19
+ </ul>
20
+ {% endif %}
21
+ </li>
22
+ {% endfor %}
23
+ </ul>
24
+
25
+ {% else %}
26
+ {% include components/sidenav--default.html %}
27
+ {% endif %}
@@ -0,0 +1 @@
1
+ <a class="usa-skipnav" href="#main-content">Skip to main content</a>
@@ -0,0 +1,14 @@
1
+ {% assign _styles = '' | split: '' %}
2
+ {% assign _default_styles = '' | split: ''
3
+ | push: '/assets/css/federalist.css'
4
+ | push: '/assets/css/theme.css' %}
5
+ {% assign _styles = _styles
6
+ | push: _default_styles
7
+ | push: site.styles
8
+ | push: layout.styles
9
+ | push: page.styles %}
10
+ {% for _list in _styles %}{% for _style in _list %}
11
+ <link rel="stylesheet"
12
+ href="{{ _style.href | default: _style | relative_url }}"
13
+ media="{{ _style.media | default: 'screen' }}">
14
+ {% endfor %}{% endfor %}
@@ -0,0 +1,5 @@
1
+ {% for link in include.links %}
2
+ <li>
3
+ <a href="{% if link.external %}{{ link.href }}{% else %}{{ link.href }}{% endif %}" {% if link.class %} class="{{ link.class }}" {% endif %}>{{ link.text }} {{ link.class }}</a>
4
+ </li>
5
+ {% endfor %}
@@ -0,0 +1,24 @@
1
+ ---
2
+ ---
3
+ <!DOCTYPE html>
4
+ <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}">
5
+ <head>
6
+ {% include meta.html %}
7
+ {% include styles.html %}
8
+ {% if site.google_analytics_ua or site.dap_agency %}
9
+ {% include analytics.html %}
10
+ {% endif %}
11
+ </head>
12
+ <body class="{{ layout.class }} {{ page.class }} site-wide">
13
+
14
+ {% include skipnav.html %}
15
+ {% include header.html %}
16
+
17
+ <main id="main-content"{% for _attr in layout.main %} {{ _attr[0] }}="{{ _attr[1] }}"{% endfor %}>
18
+ {{ content }}
19
+ </main>
20
+
21
+ {% include footer.html %}
22
+ {% include scripts.html %}
23
+ </body>
24
+ </html>
@@ -0,0 +1,43 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% assign hero = page.hero %}
6
+ {% include components/hero.html %}
7
+
8
+ <section class="usa-grid usa-section">
9
+ <h1>Welcome to your Federalist site!</h1>
10
+ <p>
11
+ This is the Basic Report template that features a single report.
12
+ </p>
13
+ <p>
14
+ Place your site content under the `pages/` directory.
15
+ </p>
16
+ <p>
17
+ Look at the <a href="https://github.com/adborden/federalist-basic-report-theme">theme documentation</a> for more information on how to configure your site.
18
+ </p>
19
+ </section>
20
+
21
+ {% if page.tagline and page.intro %}
22
+ <section class="usa-grid usa-section">
23
+ <div class="usa-width-one-third">
24
+ <h2>{{ page.tagline }}</h2>
25
+ </div>
26
+ <div class="usa-width-two-thirds">
27
+ {{ page.intro | markdownify }}
28
+ </div>
29
+ </section>
30
+ {% endif %}
31
+
32
+ {% capture _graphics %}
33
+ {% include graphic-list.html graphics=page.graphics %}
34
+ {% endcapture %}
35
+ {% if page.graphics_position != 'after' %}{{ _graphics }}{% endif %}
36
+
37
+ <section class="usa-section">
38
+ <div class="usa-grid">
39
+ {{ content }}
40
+ </div>
41
+ </section>
42
+
43
+ {% if page.graphics_position == 'after' %}{{ _graphics }}{% endif %}
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ main:
4
+ class: usa-grid usa-section usa-content usa-layout-docs
5
+ ---
6
+ {% assign sidenav = page.sidenav | default: site.sidenav %}
7
+ <aside class="usa-layout-docs-sidenav sidenav">
8
+ {% include sidenav.html links=sidenav %}
9
+ </aside>
10
+
11
+ <div class="usa-layout-docs-main_content">
12
+ {{ content }}
13
+ </div>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: page
3
+ main:
4
+ class: usa-grid usa-section usa-content usa-layout-docs
5
+ ---
6
+
7
+ {{ content }}
@@ -0,0 +1,7 @@
1
+ @import 'alt-color-section';
2
+ @import 'footer';
3
+ @import 'header';
4
+ @import 'hero';
5
+ @import 'side-nav';
6
+ @import 'top-nav';
7
+ @import 'usa-banner';
@@ -0,0 +1,35 @@
1
+ .usa-section-dark {
2
+ @if variable-exists(alt-section-bg) {
3
+ background-color: $alt-section-bg;
4
+ }
5
+
6
+
7
+ h1,
8
+ h2,
9
+ h3,
10
+ h4,
11
+ h5,
12
+ h6 {
13
+ @if variable-exists(alt-section-header) {
14
+ color: $alt-section-header;
15
+ }
16
+ }
17
+
18
+ p {
19
+ @if variable-exists(alt-section-text) {
20
+ color: $alt-section-text;
21
+ }
22
+ }
23
+
24
+ a {
25
+ @if variable-exists(alt-section-link) {
26
+ color: $alt-section-link;
27
+ }
28
+
29
+ &:hover {
30
+ @if variable-exists(alt-section-link-hover) {
31
+ color: $alt-section-link-hover;
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,26 @@
1
+ .usa-footer-primary-section {
2
+ @if variable-exists(primary-footer-bg) {
3
+ background-color: $primary-footer-bg;
4
+ }
5
+
6
+ .usa-footer-primary-link {
7
+ @if variable-exists(primary-footer-link) {
8
+ color: $primary-footer-link;
9
+ }
10
+ }
11
+ }
12
+
13
+ .usa-footer-secondary_section {
14
+ @if variable-exists(footer-bg) {
15
+ background-color: $footer-bg;
16
+ }
17
+ @if variable-exists(footer-text) {
18
+ color: $footer-text;
19
+ }
20
+
21
+ a {
22
+ @if variable-exists(footer-link) {
23
+ color: $footer-link;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,27 @@
1
+ .usa-header {
2
+ @if variable-exists(header-bg) {
3
+ background-color: $header-bg;
4
+ }
5
+
6
+ .usa-logo {
7
+ a {
8
+ @if variable-exists(header-title) {
9
+ color: $header-title;
10
+ }
11
+ }
12
+ }
13
+
14
+ .usa-nav-secondary-links {
15
+ a {
16
+ @if variable-exists(header-link) {
17
+ color: $header-link;
18
+ }
19
+
20
+ &:hover {
21
+ @if variable-exists(header-link-hover) {
22
+ color: $header-link-hover;
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,45 @@
1
+ .usa-hero {
2
+ .usa-hero-callout {
3
+ @if variable-exists(hero-bg) {
4
+ background-color: $hero-bg;
5
+ }
6
+
7
+ h1,
8
+ h2,
9
+ h3,
10
+ h4,
11
+ h5,
12
+ h6 {
13
+ @if variable-exists(hero-header) {
14
+ color: $hero-header;
15
+ }
16
+ }
17
+
18
+ .usa-hero-callout-alt {
19
+ @if variable-exists(hero-header-alt) {
20
+ color: $hero-header-alt;
21
+ }
22
+ }
23
+
24
+ p {
25
+ @if variable-exists(hero-text) {
26
+ color: $hero-text;
27
+ }
28
+ }
29
+
30
+ .usa-hero-link {
31
+ @if variable-exists(hero-link) {
32
+ color: $hero-link;
33
+ }
34
+ }
35
+
36
+ .usa-button {
37
+ @if variable-exists(hero-button-bg) {
38
+ background-color: $hero-button-bg;
39
+ }
40
+ @if variable-exists(hero-button-text) {
41
+ color: $hero-button-text;
42
+ }
43
+ }
44
+ }
45
+ }