federalist-basic-report-theme 0.1.0
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 +164 -0
- data/_includes/analytics.html +20 -0
- data/_includes/banner.html +1 -0
- data/_includes/components/banner.html +20 -0
- data/_includes/components/footer--medium.html +81 -0
- data/_includes/components/graphic-list.html +16 -0
- data/_includes/components/header--basic.html +74 -0
- data/_includes/components/header--extended.html +88 -0
- data/_includes/components/hero.html +32 -0
- data/_includes/components/sidenav--default.html +26 -0
- data/_includes/favicon.html +24 -0
- data/_includes/footer.html +3 -0
- data/_includes/graphic-list.html +2 -0
- data/_includes/header.html +9 -0
- data/_includes/meta.html +6 -0
- data/_includes/scripts.html +39 -0
- data/_includes/sidenav.html +27 -0
- data/_includes/skipnav.html +1 -0
- data/_includes/styles.html +14 -0
- data/_includes/subnav.html +5 -0
- data/_layouts/default.html +24 -0
- data/_layouts/home.html +43 -0
- data/_layouts/page.html +13 -0
- data/_layouts/post.html +7 -0
- data/_sass/components/_all.scss +7 -0
- data/_sass/components/_alt-color-section.scss +35 -0
- data/_sass/components/_footer.scss +26 -0
- data/_sass/components/_header.scss +27 -0
- data/_sass/components/_hero.scss +45 -0
- data/_sass/components/_nav-buttons.scss +24 -0
- data/_sass/components/_side-nav.scss +56 -0
- data/_sass/components/_site-width.scss +12 -0
- data/_sass/components/_top-nav.scss +73 -0
- data/_sass/components/_usa-banner.scss +29 -0
- data/assets/css/federalist.scss +91 -0
- data/assets/css/theme.scss +38 -0
- data/assets/docs/sample-document.pdf +0 -0
- data/assets/img/circle.png +0 -0
- data/assets/img/hero.png +0 -0
- data/assets/img/us_seal.png +0 -0
- data/assets/js/main.js +14 -0
- data/assets/js/vendor/anchor.min.js +6 -0
- 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">
|
data/_includes/meta.html
ADDED
@@ -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,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>
|
data/_layouts/home.html
ADDED
@@ -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 %}
|
data/_layouts/page.html
ADDED
@@ -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>
|
data/_layouts/post.html
ADDED
@@ -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
|
+
}
|