sparrow-theme 0.1.1 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/footer.html +12 -0
- data/_includes/head.html +16 -0
- data/_includes/header.html +21 -0
- data/_includes/modules/card.html +8 -0
- data/_includes/modules/heroBanner.html +29 -0
- data/_includes/modules/heroSearch.html +11 -0
- data/_includes/modules/modal.html +13 -0
- data/_includes/modules/navSearch.html +12 -0
- data/_includes/modules/spinner.html +5 -0
- data/_includes/svg/icon-back.svg +3 -0
- data/_includes/svg/icon-chevron-left.svg +3 -0
- data/_includes/svg/icon-chevron-right.svg +3 -0
- data/_includes/svg/icon-close.svg +3 -0
- data/_includes/svg/icon-search.svg +3 -0
- data/_includes/svg/logo-smartsparrow.svg +7 -0
- data/_includes/typekit.html +13 -0
- data/_layouts/404.html +14 -0
- data/_layouts/compress.html +9 -0
- data/_layouts/default.html +18 -0
- data/_layouts/page.html +18 -0
- data/_layouts/post.html +5 -0
- data/_sass/sparrow-theme/base/_base.scss +226 -0
- data/_sass/sparrow-theme/base/_mixins.scss +25 -0
- data/_sass/sparrow-theme/base/_variables.scss +62 -0
- data/_sass/sparrow-theme/layout/_404.scss +49 -0
- data/_sass/sparrow-theme/layout/_catalog.scss +79 -0
- data/_sass/sparrow-theme/layout/_component.scss +289 -0
- data/_sass/sparrow-theme/layout/_footer.scss +81 -0
- data/_sass/sparrow-theme/layout/_header.scss +418 -0
- data/_sass/sparrow-theme/layout/_layout.scss +15 -0
- data/_sass/sparrow-theme/layout/_page.scss +70 -0
- data/_sass/sparrow-theme/modules/_actionPrompt.scss +33 -0
- data/_sass/sparrow-theme/modules/_button.scss +107 -0
- data/_sass/sparrow-theme/modules/_card.scss +93 -0
- data/_sass/sparrow-theme/modules/_carousel.scss +182 -0
- data/_sass/sparrow-theme/modules/_componentCard.scss +92 -0
- data/_sass/sparrow-theme/modules/_heroBanner.scss +230 -0
- data/_sass/sparrow-theme/modules/_modal.scss +122 -0
- data/_sass/sparrow-theme/modules/_navSearch.scss +161 -0
- data/_sass/sparrow-theme/modules/_preview.scss +99 -0
- data/_sass/sparrow-theme/modules/_sideNav.scss +41 -0
- data/_sass/sparrow-theme/modules/_spinner.scss +68 -0
- data/_sass/sparrow-theme/modules/_stepsList.scss +43 -0
- data/_sass/sparrow-theme/modules/_video.scss +13 -0
- data/_sass/sparrow-theme/vendor/_normalize.scss +429 -0
- data/_sass/sparrow-theme/vendor/_vendor.scss +3 -0
- data/assets/css/main.scss +7 -0
- data/assets/css/sparrow-theme.scss +38 -0
- data/assets/img/404.gif +0 -0
- data/assets/img/favicon.png +0 -0
- data/assets/img/touch.png +0 -0
- data/assets/js/scripts.js +5 -0
- data/assets/js/sparrow-theme/_partials/carousel.js +24 -0
- data/assets/js/sparrow-theme/_partials/catalog.js +226 -0
- data/assets/js/sparrow-theme/_partials/copyInput.js +107 -0
- data/assets/js/sparrow-theme/_partials/getData.js +23 -0
- data/assets/js/sparrow-theme/_partials/modal.js +51 -0
- data/assets/js/sparrow-theme/_partials/navigation.js +29 -0
- data/assets/js/sparrow-theme/_partials/scroll.js +102 -0
- data/assets/js/sparrow-theme/_partials/search.js +134 -0
- data/assets/js/sparrow-theme/_vendor/jquery-3.1.1.min.js +4 -0
- data/assets/js/sparrow-theme/_vendor/lunr.min.js +6 -0
- data/assets/js/sparrow-theme/_vendor/slick.min.js +18 -0
- data/assets/js/sparrow-theme/_vendor/uri.js +56 -0
- data/assets/js/sparrow-theme/sparrow-theme.js +23 -0
- metadata +71 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69a796631e2d25a03bb46a8a6c4945b9db6b7c04
|
4
|
+
data.tar.gz: cf565d682a2f5caa1016effe090d6d2bd52e0f1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc75b07b8b3d905520c8f46725472af910f2af275c1abe6e42f7b90145bfb5f2edea2d9dc1fbb8d0692ffe300d46840914ca63f9c09511ea30719538e6a52c48
|
7
|
+
data.tar.gz: 5bb056a915cfb2c10d6612cc50aee9d2292b4281f2f60c0d3fe10f7fea022ff7212dfa663ab7d735cecaa50312fcc20ddad8fea3d9fb401151f841009090d980
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Hamish Williams
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# sparrow-theme
|
2
|
+
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your Jekyll site's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "sparrow-theme"
|
13
|
+
```
|
14
|
+
|
15
|
+
And add this line to your Jekyll site:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
theme: sparrow-theme
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install sparrow-theme
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## Development
|
38
|
+
|
39
|
+
To set up your environment to develop this theme, run `bundle install`.
|
40
|
+
|
41
|
+
You theme is setup just like a normal Jelyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
42
|
+
|
43
|
+
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
48
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<footer class="footer">
|
2
|
+
<div class="footer__wrapper">
|
3
|
+
<ul class="footer__list">
|
4
|
+
{% for link in site.footer-links %}
|
5
|
+
<li class="footer__listItem"><a class="footer__link" href="{{ link.url }}">{{ link.title }}</a></li>
|
6
|
+
{% endfor %}
|
7
|
+
</ul>
|
8
|
+
<ul class="footer__legal">
|
9
|
+
<li class="footer__text">© Smart Sparrow Pty Ltd, {{ 'now' | date: "%Y" }}</li>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
|
6
|
+
<title>{{ site.title }}{% if page.title %} | {{ page.title }}{% endif %}</title>
|
7
|
+
|
8
|
+
<link href="{{ "/assets/img/favicon.png" | prepend: site.baseurl }}" rel="shortcut icon">
|
9
|
+
<link href="{{ "/assets/img/touch.png" | prepend: site.baseurl }}" rel="apple-touch-icon-precomposed">
|
10
|
+
|
11
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
|
12
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
13
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
|
14
|
+
{% include typekit.html %}
|
15
|
+
<script async src="{{ "/assets/js/scripts.js" | prepend: site.baseurl }}"></script>
|
16
|
+
</head>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<header class="header {% if page._header == 'transparent' %}header--transparent{% endif %}">
|
2
|
+
<div class="header__title">
|
3
|
+
<a class="header__titleLink" href="{{ site.baseurl }}/">
|
4
|
+
<div class="header__logoContainer">{% include svg/logo-smartsparrow.svg class="header" %}</div>
|
5
|
+
<div class="header__titleText">{{ site.title }}</div>
|
6
|
+
</a>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
{% if site.search %}{% include modules/navSearch.html %}{% endif %}
|
10
|
+
|
11
|
+
<nav class="header__nav">
|
12
|
+
<button class="header__toggleButton">
|
13
|
+
<div class="header__toggleButtonInner"><div class="header__toggleIcon"></div>Menu</div>
|
14
|
+
</button>
|
15
|
+
<ul class="header__navList">
|
16
|
+
{% for link in site.nav-links %}
|
17
|
+
<li class="header__navItem"><a href="{{ link.url }}" class="header__navLink {% if page.url == {{ link.url }} %}header__navLink--active{% endif %}">{{ link.title }}</a></li>
|
18
|
+
{% endfor %}
|
19
|
+
</ul>
|
20
|
+
</nav>
|
21
|
+
</header>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<div class="card__item">
|
2
|
+
{% if include.thumbnail %}<div class="card__thumbnail"><img src="{{ include.thumbnail }}" alt="An example image"></div>{% endif %}
|
3
|
+
<div class="card__content">
|
4
|
+
{% if include.title %}<h3 class="card__title">{{ include.title }}</h3>{% endif %}
|
5
|
+
<p class="card__description">{{ include.description }}</p>
|
6
|
+
{% if include.actionTitle %}<a href="{{ include.actionLink }}" class="card__action button button--flat button--left button--bottom">{{ include.actionTitle }}</a>{% endif %}
|
7
|
+
</div>
|
8
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<section
|
2
|
+
class="heroBanner {% if page._header == 'transparent' %}heroBanner--transparentHeader{% endif %}
|
3
|
+
{% if include.collection %} heroBanner--imageBackground{% endif %}
|
4
|
+
{% if include.noBackground %} heroBanner--noBackground{% endif %}"
|
5
|
+
{% if include.collection %} style="background-image: url('{{ include.collection.image }}');"{% endif %}>
|
6
|
+
|
7
|
+
{{ include.injectedContent }}
|
8
|
+
|
9
|
+
<div class="heroBanner__wrapper">
|
10
|
+
|
11
|
+
<div class="heroBanner__content">
|
12
|
+
{% if include.collection %}
|
13
|
+
{% include modules/heroCollection.html
|
14
|
+
collection = include.collection
|
15
|
+
title = include.title
|
16
|
+
description = include.description
|
17
|
+
%}
|
18
|
+
{% else %}
|
19
|
+
<h1 class="heroBanner__title">{{ include.title }}</h1>
|
20
|
+
<p class="heroBanner__description">{{ include.description }}</p>
|
21
|
+
{% endif %}
|
22
|
+
</div>
|
23
|
+
|
24
|
+
{% if include.search %}
|
25
|
+
{% include modules/heroSearch.html %}
|
26
|
+
{% endif %}
|
27
|
+
|
28
|
+
</div>
|
29
|
+
</section>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div class="heroBanner__search">
|
2
|
+
<form class="heroBanner__searchForm" action="" method="get">
|
3
|
+
<input class="heroBanner__searchInput" type="search" placeholder="{{ include.searchPlaceholder }}" name="q" autocomplete="off" spellcheck="false" dir="auto">
|
4
|
+
{% include svg/icon-search.svg class="heroBanner__searchIcon" %}
|
5
|
+
</form>
|
6
|
+
<section class="heroBanner__searchResults" data-results="true" style="display: none;">
|
7
|
+
<div class="heroBanner__searchResultsContainer">
|
8
|
+
<div class="heroBanner__searchEntries" data-entries="true"></div>
|
9
|
+
</div>
|
10
|
+
</section>
|
11
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="{{ include.class }} modal" role="dialog" tabindex="-1" aria-labelledby="{{ include.id }}Label">
|
2
|
+
<div id="{{ include.id }}" class="modal__container">
|
3
|
+
<div class="modal__inner" role="document">
|
4
|
+
<div class="modal__header">
|
5
|
+
<h2 class="modal__title" id="{{ include.id }}Label">{{ include.title }}</h2>
|
6
|
+
<button class="modal__close" aria-label="Close">
|
7
|
+
{% include svg/icon-close.svg class = "modal__closeIcon" %}
|
8
|
+
</button>
|
9
|
+
</div>
|
10
|
+
{{ include.content }}
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
<div class="navSearch {% if page._header == 'transparent' %}navSearch--light{% endif %} {% if page.navSearch == false %}navSearch--hidden{% endif %}">
|
3
|
+
<form class="navSearch__form" action="/" method="get">
|
4
|
+
<input class="navSearch__input" type="search" placeholder="Search" name="q" autocomplete="off" spellcheck="false" dir="auto">
|
5
|
+
{% include svg/icon-search.svg class="navSearch__icon" %}
|
6
|
+
</form>
|
7
|
+
<section class="navSearch__results" data-results="true" style="display: none;">
|
8
|
+
<div class="navSearch__resultsContainer">
|
9
|
+
<div class="navSearch__entries" data-entries="true"></div>
|
10
|
+
</div>
|
11
|
+
</section>
|
12
|
+
</div>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg class="{{ include.class }}" fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<svg class="{{ include.class }}__logo" xmlns="http://www.w3.org/2000/svg" width="25" height="34" viewBox="0 0 25 34">
|
2
|
+
<g class="{{ include.class }}__logoColour">
|
3
|
+
<path fill="#FF0098" d="M0 8.84v15.887L25 0"/>
|
4
|
+
<path fill="#0098FF" d="M0 25.16L25 34 0 9.273"/>
|
5
|
+
</g>
|
6
|
+
<path class="{{ include.class }}__logoSolid" fill="#FFF" d="M8.168 16.648L25 0 .202 8.77l.15.147 7.816 7.73zM0 25.16L25 34 0 9.273"/>
|
7
|
+
</svg>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<script>
|
2
|
+
!function(e,t,n,a,c,l,m,o,d,f,h,i){c[l]&&(d=e.createElement(t),d[n]=c[l],e[a]("head")[0].appendChild(d),e.documentElement.className+=" wf-cached"),function s(){for(d=e[a](t),f="",h=0;h<d.length;h++)i=d[h][n],i.match(m)&&(f+=i);f&&(c[l]="/**/"+f),setTimeout(s,o+=o)}()}(document,"style","innerHTML","getElementsByTagName",localStorage,"tk",/^@font|^\.tk-/,100);
|
3
|
+
</script>
|
4
|
+
<script>
|
5
|
+
(function(d) {
|
6
|
+
var config = {
|
7
|
+
kitId: 'ewa1nfg',
|
8
|
+
scriptTimeout: 3000,
|
9
|
+
async: true
|
10
|
+
},
|
11
|
+
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
|
12
|
+
})(document);
|
13
|
+
</script>
|
data/_layouts/404.html
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="notFound">
|
6
|
+
<div class="notFound__wrapper" style="background-image: url({{ site.not-found-image }});">
|
7
|
+
<section class="notFound__content">
|
8
|
+
<span class="notFound__contextHeading">{{ page.context-heading }}</span>
|
9
|
+
<h1 class="notFound__title">{{ page.title }}</h1>
|
10
|
+
<p class="notFound__description">{{ page.description }}<p>
|
11
|
+
<a class="notFound__button button button--white" href="{{ page.action.url }}">{{ page.action.title }}</a>
|
12
|
+
</section>
|
13
|
+
</div>
|
14
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v2.0.0
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% case _pres.size %}{% when 2 %}{% capture _content %}{{ _content }}<pre{{ _pres.first }}</pre>{{ _pres.last | split: " " | join: " " }}{% endcapture %}{% when 1 %}{% capture _content %}{{ _content }}{{ _pres.last | split: " " | join: " " }}{% endcapture %}{% endcase %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% assign _comment_befores = _content | split: _comments.first %}{% for _comment_before in _comment_befores %}{% assign _comment_content = _comment_before | split: _comments.last | first %}{% if _comment_content %}{% capture _comment %}{{ _comments.first }}{{ _comment_content }}{{ _comments.last }}{% endcapture %}{% assign _content = _content | remove: _comment %}{% endif %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="basicPage">
|
5
|
+
|
6
|
+
{% include modules/heroBanner.html
|
7
|
+
title = page.title
|
8
|
+
description = page.description
|
9
|
+
transparentHeader = false
|
10
|
+
%}
|
11
|
+
|
12
|
+
<article class="basicPage__wrapper">
|
13
|
+
<div class="basicPage__content">
|
14
|
+
{{ content }}
|
15
|
+
</div>
|
16
|
+
</article>
|
17
|
+
|
18
|
+
</div>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,226 @@
|
|
1
|
+
/* ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
2
|
+
* Base CSS built on a modified Skeleton:
|
3
|
+
*
|
4
|
+
* Skeleton V2.0.4 | Dave Gamache | www.getskeleton.com
|
5
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
|
6
|
+
|
7
|
+
/* Table of contents
|
8
|
+
––––––––––––––––––––––––––––––––––––––––––––––––––
|
9
|
+
- Typography
|
10
|
+
- Links
|
11
|
+
- Buttons
|
12
|
+
- Forms
|
13
|
+
- Lists
|
14
|
+
- Code
|
15
|
+
- Tables
|
16
|
+
- Spacing
|
17
|
+
- Utilities
|
18
|
+
- Misc
|
19
|
+
*/
|
20
|
+
|
21
|
+
/* Typography
|
22
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
23
|
+
$modular-scale-ratio: $augmented-fourth;
|
24
|
+
$modular-scale-base: 18px;
|
25
|
+
$base-line-height: 1.6;
|
26
|
+
|
27
|
+
body {
|
28
|
+
@include font-feature-settings("kern", "liga", "pnum");
|
29
|
+
-webkit-font-smoothing: antialiased;
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
31
|
+
text-rendering: optimizeLegibility;
|
32
|
+
|
33
|
+
color: $text-color;
|
34
|
+
font-family: $base-font-family;
|
35
|
+
font-size: $base-font-size;
|
36
|
+
line-height: $base-line-height;
|
37
|
+
}
|
38
|
+
|
39
|
+
h1,
|
40
|
+
h2,
|
41
|
+
h3,
|
42
|
+
h4,
|
43
|
+
h5,
|
44
|
+
h6 {
|
45
|
+
font-family: $base-font-family;
|
46
|
+
font-size: $base-font-size;
|
47
|
+
line-height: $base-line-height;
|
48
|
+
font-weight: 400;
|
49
|
+
margin: 0 0 20px;
|
50
|
+
color: $heading-color;
|
51
|
+
}
|
52
|
+
|
53
|
+
h1 {
|
54
|
+
font-size: modular-scale(3);
|
55
|
+
line-height: 1.25;
|
56
|
+
letter-spacing: -1px;
|
57
|
+
}
|
58
|
+
|
59
|
+
h2 {
|
60
|
+
font-size: modular-scale(2);
|
61
|
+
line-height: 1.25;
|
62
|
+
letter-spacing: -1px;
|
63
|
+
}
|
64
|
+
|
65
|
+
h3 {
|
66
|
+
font-size: modular-scale(1);
|
67
|
+
line-height: 1.3;
|
68
|
+
letter-spacing: -0.7px;
|
69
|
+
}
|
70
|
+
|
71
|
+
h4 {
|
72
|
+
font-size: modular-scale(0);
|
73
|
+
line-height: 1.35;
|
74
|
+
letter-spacing: -0.6px;
|
75
|
+
}
|
76
|
+
|
77
|
+
h5 {
|
78
|
+
font-size: modular-scale(-1);
|
79
|
+
line-height: 1.5;
|
80
|
+
letter-spacing: -0.5px;
|
81
|
+
}
|
82
|
+
|
83
|
+
h6 {
|
84
|
+
font-size: modular-scale(-2);
|
85
|
+
line-height: 1.6;
|
86
|
+
letter-spacing: 0;
|
87
|
+
}
|
88
|
+
|
89
|
+
@include media($tablet) {
|
90
|
+
h1 { font-size: 40px; }
|
91
|
+
h2 { font-size: 36px; }
|
92
|
+
h3 { font-size: 24px; }
|
93
|
+
h4 { font-size: 18px; }
|
94
|
+
h5 { font-size: 15px; }
|
95
|
+
h6 { font-size: 12px; }
|
96
|
+
}
|
97
|
+
|
98
|
+
@include media($mobile) {
|
99
|
+
h1 { font-size: 32px; }
|
100
|
+
h2 { font-size: 28px; }
|
101
|
+
h3 { font-size: 24px; }
|
102
|
+
h4 { font-size: 20px; }
|
103
|
+
}
|
104
|
+
|
105
|
+
p {
|
106
|
+
margin-top: 0;
|
107
|
+
font-size: 18px;
|
108
|
+
}
|
109
|
+
|
110
|
+
p {
|
111
|
+
@include media($tablet) {
|
112
|
+
@include hyphens(auto);
|
113
|
+
-webkit-hyphenate-limit-before: 2;
|
114
|
+
-webkit-hyphenate-limit-after: 3;
|
115
|
+
-webkit-hyphenate-limit-lines: 2;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
/* Links
|
120
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
121
|
+
|
122
|
+
a {
|
123
|
+
color: $primary-color;
|
124
|
+
font-size: 18px;
|
125
|
+
text-decoration: none;
|
126
|
+
transition: color 0.3s ease, background 0.3s ease, border 0.3s ease;
|
127
|
+
border-bottom: 1px solid rgba($primary-color, 0);
|
128
|
+
|
129
|
+
&:hover {
|
130
|
+
color: $primary-color-dark;
|
131
|
+
border-bottom: 1px solid rgba($primary-color, 1);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
/* Forms
|
136
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
137
|
+
#{$all-text-inputs},
|
138
|
+
select {
|
139
|
+
box-sizing: border-box;
|
140
|
+
}
|
141
|
+
|
142
|
+
/* Lists
|
143
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
144
|
+
ul {
|
145
|
+
list-style: circle inside; }
|
146
|
+
ol {
|
147
|
+
list-style: decimal inside; }
|
148
|
+
ol, ul {
|
149
|
+
padding-left: 0;
|
150
|
+
margin-top: 0;
|
151
|
+
font-size: 18px;
|
152
|
+
}
|
153
|
+
ul ul,
|
154
|
+
ul ol,
|
155
|
+
ol ol,
|
156
|
+
ol ul {
|
157
|
+
margin: 15px 0 15px 30px;
|
158
|
+
font-size: 90%; }
|
159
|
+
li {
|
160
|
+
margin-bottom: 10px;
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
/* Code
|
165
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
166
|
+
code {
|
167
|
+
padding: 2px 5px;
|
168
|
+
margin: 0 2px;
|
169
|
+
font-size: 90%;
|
170
|
+
white-space: nowrap;
|
171
|
+
background: #F1F1F1;
|
172
|
+
border: 1px solid #E1E1E1;
|
173
|
+
border-radius: 4px; }
|
174
|
+
pre > code {
|
175
|
+
display: block;
|
176
|
+
padding: 10px 15px;
|
177
|
+
white-space: pre; }
|
178
|
+
|
179
|
+
|
180
|
+
/* Tables
|
181
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
182
|
+
th,
|
183
|
+
td {
|
184
|
+
padding: 12px 15px;
|
185
|
+
text-align: left;
|
186
|
+
border-bottom: 1px solid #E1E1E1; }
|
187
|
+
th:first-child,
|
188
|
+
td:first-child {
|
189
|
+
padding-left: 0; }
|
190
|
+
th:last-child,
|
191
|
+
td:last-child {
|
192
|
+
padding-right: 0; }
|
193
|
+
|
194
|
+
|
195
|
+
/* Spacing
|
196
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
197
|
+
input,
|
198
|
+
textarea,
|
199
|
+
select,
|
200
|
+
fieldset {
|
201
|
+
margin-bottom: 15px; }
|
202
|
+
pre,
|
203
|
+
blockquote,
|
204
|
+
dl,
|
205
|
+
figure,
|
206
|
+
table,
|
207
|
+
p,
|
208
|
+
ul,
|
209
|
+
ol,
|
210
|
+
form {
|
211
|
+
margin-bottom: 25px; }
|
212
|
+
|
213
|
+
|
214
|
+
/* Misc
|
215
|
+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
216
|
+
hr {
|
217
|
+
border-width: 0;
|
218
|
+
border-top: 1px solid $base-border-color;
|
219
|
+
margin: 0;
|
220
|
+
}
|
221
|
+
|
222
|
+
img,
|
223
|
+
picture {
|
224
|
+
margin: 0;
|
225
|
+
max-width: 100%;
|
226
|
+
}
|