jekyll-athena 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: abbd6718fe98668a86553970954e8c796908831f
4
+ data.tar.gz: 0274afe1e14727b505401bc1460751f9f88d6802
5
+ SHA512:
6
+ metadata.gz: b4ee64276b1fe059a0efbf210aee51fd85a0c5a845bfb494b46823e7be090efe83e4bb40a8c1980e3bf1fc506a6e8c9fb8ebdf9f983f2e6c99c2fe8f21c9886d
7
+ data.tar.gz: 789a8fd2dd4ff60b1529e7a5f3c132d00e4b594dfe4c450d1f182a3bc9621ab0444b4d5c796e1399a16a8209bad900148b15b2f8cadb027f62f53408af6c3d5f
data/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # :construction: WIP :construction: Athena Jekyll Theme
2
+
3
+ A simple and elegant theme for Jekyll and GitHub Pages.
4
+
5
+ ### Features:
6
+ * Mobile-first design ensures this theme performs fastest on mobile while scaling elegantly to desktop-size screens.
7
+ * Designed for blogs and sites heavy on written content, with bold typography styles, homepage summaries, and previous/next snippets.
8
+ * Supports a wide range of HTML elements and markdown.
9
+ * Flexible styles that can be reused for customization without adding additional CSS.
10
+ * Dynamically generated navigation links. See docs for adding pages with specific post category for-loops.
11
+
12
+ ## Installation
13
+
14
+ Add this line to your Jekyll site's Gemfile:
15
+
16
+ ```ruby
17
+ gem "jekyll-athena"
18
+ ```
19
+
20
+ And add this line to your Jekyll site:
21
+
22
+ ```yaml
23
+ theme: jekyll-athena
24
+ ```
25
+
26
+ And then execute:
27
+
28
+ $ bundle
29
+
30
+ Or install it yourself as:
31
+
32
+ $ gem install jekyll-athena
33
+
34
+ ## Usage
35
+ This theme comes in eight different color variations. The default is set to the black theme, to change to a different theme edit the config under `theme-color: black` to one of the following colors:
36
+
37
+ | | |
38
+ | --- | --- |
39
+ | `theme-color: black` | `theme-color: red` |
40
+ | <img width="330" alt="black" src="https://cloud.githubusercontent.com/assets/334891/18476835/8d70b330-7999-11e6-8c84-a558906d636e.png"> | <img width="330" alt="red" src="https://cloud.githubusercontent.com/assets/334891/18477185/c53af09a-799a-11e6-9354-b9bf1a7f1826.png"> |
41
+ | `theme-color: white` | `theme-color: gray` |
42
+ | <img width="330" alt="white" src="https://cloud.githubusercontent.com/assets/334891/18477206/d9dc55fc-799a-11e6-89f2-b4ae150caa80.png"> | <img width="330" alt="gray" src="https://cloud.githubusercontent.com/assets/334891/18477058/4e61700c-799a-11e6-80a0-805e57f2563e.png"> |
43
+ | `theme-color: blue` | `theme-color: pink` |
44
+ | <img width="330" alt="blue" src="https://cloud.githubusercontent.com/assets/334891/18477240/f03646d2-799a-11e6-8895-25b37d3a1438.png"> | <img width="330" alt="pink" src="https://cloud.githubusercontent.com/assets/334891/18477252/fb2f5128-799a-11e6-8c8f-e79d9c1884b7.png"> |
45
+ | `theme-color: orange` | `theme-color: yellow` |
46
+ | <img width="330" alt="orange" src="https://cloud.githubusercontent.com/assets/334891/18477265/06e302bc-799b-11e6-970e-6461b2a89c57.png"> | <img width="330" alt="yellow" src="https://cloud.githubusercontent.com/assets/334891/18477278/117347aa-799b-11e6-83a8-f82341c143e0.png"> |
47
+
48
+ ## Contributing
49
+
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/broccolini/athena. 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.
51
+
52
+ ## Development
53
+
54
+ To set up your environment to develop this theme, run `bundle install`.
55
+
56
+ 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.
57
+
58
+ When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
59
+
60
+ ## License
61
+
62
+ The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,13 @@
1
+ <div class="container mx-auto clearfix mt-2 mt-lg-4 px-2">
2
+ <div class="border-top-thick">
3
+ <p class="col-8 sm-width-full left py-2 mb-0">This project is maintained by <a class="text-accent" href="https://github.com/{{ site.github_username }}">{{ site.github_username }}</a></p>
4
+ <ul class="list-reset right clearfix sm-width-full py-2 mb-2 mb-lg-0">
5
+ <li class="inline-block mr-1">
6
+ <a href="https://twitter.com/share" class="twitter-share-button" data-hashtags="{{ site.title }}">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
7
+ </li>
8
+ <li class="inline-block">
9
+ <a class="github-button" href="https://github.com/{{ site.github_username }}/{{ site.github_repo }}" data-icon="octicon-star" data-count-href="{{ site.github_username }}/{{ github_repo }}/stargazers" data-count-api="/repos/{{ site.github_username }}/{{ github_repo }}#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star {{ site.github_username }}/{{ github_repo }} on GitHub">Star</a>
10
+ </li>
11
+ </ul>
12
+ </div>
13
+ </div>
@@ -0,0 +1,4 @@
1
+ <a href="https://github.com/{{ site.github_username }}/{{ site.github_repo }}" title="Fork me on GitHub" class="link-social block">
2
+ <svg height="32" class="octicon octicon-mark-github header-social" viewBox="0 0 16 16" version="1.1" width="32" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
3
+ </svg>
4
+ </a>
@@ -0,0 +1,15 @@
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>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
+ <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8
+
9
+ <link rel="stylesheet" href="{{ "/assets/style.css" | prepend: site.baseurl }}">
10
+
11
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
12
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
13
+
14
+ <script async defer src="https://buttons.github.io/buttons.js"></script>
15
+ </head>
@@ -0,0 +1,29 @@
1
+ <header class="px-2 clearfix">
2
+ <!-- <div class="left-lg absolute-lg left-0 top-0 sm-width-full mt-2">
3
+ <a class="no-underline-hover px-1" href="{{ site.baseurl }}/">
4
+ <span class="inline-block h4 hide-sm ml-2">&#x261c;</span>
5
+ </a>
6
+ <a class="italic no-underline" href="{{ site.baseurl }}/">
7
+ home
8
+ </a>
9
+ </div> -->
10
+ <div class="right-lg absolute-lg right-0 top-0">
11
+ <ul class="mt-1 mt-lg-2 mr-2 mr-lg-3">
12
+ <li class="inline-block block-lg text-right ml-1 ml-lg-0">
13
+ <a class="italic h4 bold no-underline" href="{{ site.baseurl }}/">
14
+ <!-- {{ site.title }} -->
15
+ Home
16
+ </a>
17
+ </li>
18
+ {% for my_page in site.pages %}
19
+ {% if my_page.title %}
20
+ <li class="inline-block block-lg text-right ml-1 ml-lg-0">
21
+ <a class="italic no-underline h4" href="{{ my_page.url | prepend: site.baseurl }}">
22
+ {{ my_page.title }}
23
+ </a>
24
+ </li>
25
+ {% endif %}
26
+ {% endfor %}
27
+ </ul>
28
+ </div>
29
+ </header>
@@ -0,0 +1,6 @@
1
+ <div class="mt-4 mb-2 clearfix header-text">
2
+ <h1 class="h0 inline-block py-2 mt-4 header-title">{{ page.title }}</h1>
3
+ <div class="clearfix mb-4 py-1">
4
+ <div class="col-1 sm-width-full border-top-thick">
5
+ </div>
6
+ </div>
@@ -0,0 +1,8 @@
1
+ <!-- Renders post date, title, and snippet of text. -->
2
+ <div class="py-2 mb-2 prose">
3
+ <h2 class="h1 lh-condensed col-9 mb-0">
4
+ <a class="link-primary" title="{{ post.url | prepend: site.baseurl }}" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
5
+ </h2>
6
+ <a class="no-underline-hover h5 block py-1 mb-1" title="{{ post.url | prepend: site.baseurl }}" href="{{ post.url | prepend: site.baseurl }}">{{ post.date | date: "%b %-d, %Y" }}</a>
7
+ <p>{{ post.content | strip_html | truncatewords:30 }}</p>
8
+ </div>
@@ -0,0 +1,21 @@
1
+ <!-- Use if you want to show previous and next for all posts. -->
2
+ {% assign user_url = site.url | append: site.baseurl %}
3
+ {% assign full_base_url = user_url | default: site.github.url %}
4
+ {% if page.previous.url %}
5
+ <div class="col-4 sm-width-full left mr-lg-4 mt-3">
6
+ <a class="no-underline-hover py-1 block" href="{{ page.previous.url | prepend: full_base_url }}">
7
+ <span class="h5 bold">Previous</span>
8
+ <p class="bold h3 link-primary mb-1">{{ page.previous.title }}</p>
9
+ <p>{{ page.previous.content | strip_html | truncatewords:20 }}</p>
10
+ </a>
11
+ </div>
12
+ {% endif %}
13
+ {% if page.next.url %}
14
+ <div class="col-4 sm-width-full left mt-3">
15
+ <a class="no-underline-hover py-1 block" href="{{ page.next.url | prepend: full_base_url }}">
16
+ <span class="h5 bold">Next</span>
17
+ <p class="bold h3 link-primary mb-1">{{ page.next.title }}</p>
18
+ <p>{{ page.next.content | strip_html | truncatewords:20 }}</p>
19
+ </a>
20
+ </div>
21
+ {% endif %}
@@ -0,0 +1,39 @@
1
+ <!-- Use if you want to show previous and next for posts within a category. -->
2
+ {% if page.categories %}
3
+ {% assign category = page.categories[0] %}
4
+ {% assign posts = site.categories[category] %}
5
+ {% for post in posts %}
6
+ {% if post.url == page.url %}
7
+ {% assign post_index0 = forloop.index0 %}
8
+ {% assign post_index1 = forloop.index %}
9
+ {% endif %}
10
+ {% endfor %}
11
+ {% for post in posts %}
12
+ {% if post_index0 == forloop.index %}
13
+ {% assign next_post = post %}
14
+ {% endif %}
15
+ {% if post_index1 == forloop.index0 %}
16
+ {% assign prev_post = post %}
17
+ {% endif %}
18
+ {% endfor %}
19
+ {% endif %}
20
+ {% assign user_url = site.url | append: site.baseurl %}
21
+ {% assign full_base_url = user_url | default: site.github.url %}
22
+ {% if prev_post %}
23
+ <div class="col-4 sm-width-full left mr-lg-4 mt-3">
24
+ <a class="no-underline-hover py-1 block" href="{{ prev_post.url | prepend: full_base_url }}">
25
+ <span class="h5 bold">Previous</span>
26
+ <p class="bold h3 link-primary mb-1">{{ prev_post.title }}</p>
27
+ <p>{{ page.previous.content | strip_html | truncatewords:20 }}</p>
28
+ </a>
29
+ </div>
30
+ {% endif %}
31
+ {% if next_post %}
32
+ <div class="col-4 sm-width-full left mt-3">
33
+ <a class="no-underline-hover py-1 block" href="{{ next_post.url | prepend: full_base_url }}">
34
+ <span class="h5 bold">Next</span>
35
+ <p class="bold h3 link-primary mb-1">{{ next_post.title }}</p>
36
+ <p>{{ page.next.content | strip_html | truncatewords:20 }}</p>
37
+ </a>
38
+ </div>
39
+ {% endif %}
@@ -0,0 +1,9 @@
1
+ <a href="https://twitter.com/{{ site.social_username }}" title="Follow me on twitter" class="link-social block">
2
+ <svg height="32" class="header-social" version="1.1" width="32" viewBox="0 0 16 16" aria-hidden="true">
3
+ <path d="M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M12,6c0,0.1,0,0.2,0,0.3c0,2.7-2.1,5.8-5.8,5.8
4
+ c-1.2,0-2.2-0.3-3.1-0.9c0.2,0,0.3,0,0.5,0c1,0,1.8-0.3,2.5-0.9c-0.9,0-1.7-0.6-1.9-1.4c0.1,0,0.3,0,0.4,0c0.2,0,0.4,0,0.5-0.1
5
+ c-0.9-0.2-1.6-1-1.6-2v0C3.7,6.9,4,7,4.3,7.1c-0.5-0.4-0.9-1-0.9-1.7c0-0.4,0.1-0.7,0.3-1c1,1.2,2.5,2.1,4.2,2.1
6
+ c0-0.2-0.1-0.3-0.1-0.5c0-1.1,0.9-2,2.1-2c0.6,0,1.1,0.2,1.5,0.6c0.5-0.1,0.9-0.3,1.3-0.5c-0.2,0.5-0.5,0.9-0.9,1.1
7
+ c0.4,0,0.8-0.2,1.2-0.3h0C12.7,5.3,12.4,5.7,12,6z"/>
8
+ </svg>
9
+ </a>
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="container mx-auto px-2" itemscope itemtype="http://schema.org/BlogPosting">
6
+ <div class="mt-4 mb-2 clearfix header-text">
7
+ <h1 class="h0 inline-block py-2 mt-4 header-title">{{ page.title }}</h1>
8
+ <div class="clearfix mb-4 py-1">
9
+ <p class="h4 lh-condensed"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time></p>
10
+ <div class="col-1 sm-width-full border-top-thick">
11
+ </div>
12
+ </div>
13
+ </div>
14
+
15
+ <div class="prose py-4" itemprop="articleBody">
16
+ {{ content }}
17
+ </div>
18
+ </article>
19
+
20
+
21
+ <div class="container mx-auto px-2 py-2 clearfix">
22
+ {% include previous-next_has-categories.html %}
23
+ </div>
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% if page.category_name %}
6
+ {% assign category_name = page.category_name %}
7
+ {% endif %}
8
+
9
+ <div class="container mx-auto">
10
+ {% for post in site.categories[category_name] %}
11
+ {% include post_block.html %}
12
+ {% endfor %}
13
+ </div>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ {% include head.html %}
5
+
6
+ <!-- font-smoothing is only applied on dark themes -->
7
+ <body class="font-smoothing">
8
+
9
+ {% include header.html %}
10
+
11
+ <div>
12
+ {{ content }}
13
+ </div>
14
+
15
+ {% include footer.html %}
16
+
17
+ </body>
18
+
19
+ </html>
@@ -0,0 +1,48 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ <div>
9
+
10
+ <header class="clearfix">
11
+
12
+ <div class="right absolute-lg right-0 top-0">
13
+ <ul class="mt-2 mr-2 mr-lg-3">
14
+ {% for my_page in site.pages %}
15
+ {% if my_page.title %}
16
+ <li class="inline-block block-lg text-right ml-1 ml-lg-0">
17
+ <a class="italic no-underline h4 font-smoothing" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a>
18
+ </li>
19
+ {% endif %}
20
+ {% endfor %}
21
+ </ul>
22
+ </div>
23
+
24
+ <div class="container mx-auto px-2 mt-4 mb-2 clearfix header-text">
25
+ <h1 class="h0 inline-block py-2 mt-4 header-title">{{ site.title }}</h1>
26
+
27
+ <div class="clearfix mb-4 py-1">
28
+ <p class="h4 lh-condensed font-smoothing">{{ site.description }}</p>
29
+ <div class="col-1 sm-width-full border-top-thick">
30
+ </div>
31
+ </div>
32
+
33
+ </div>
34
+ </header>
35
+
36
+ <div class="container mx-auto px-2 py-2">
37
+ {% for post in site.posts %}
38
+ {% include post_block.html %}
39
+ {% endfor %}
40
+ </div>
41
+
42
+ </div>
43
+
44
+ {% include footer.html %}
45
+
46
+ </body>
47
+
48
+ </html>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="container mx-auto px-2">
5
+
6
+ {% include page_heading.html %}
7
+
8
+ <div class="prose mb-4 py-4">
9
+ {{ content }}
10
+ </div>
11
+ </article>
@@ -0,0 +1,22 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="container mx-auto px-2" itemscope itemtype="http://schema.org/BlogPosting">
6
+ <div class="mt-4 mb-2 clearfix header-text">
7
+ <h1 class="h0 inline-block py-2 mt-4 header-title">{{ page.title }}</h1>
8
+ <div class="clearfix mb-4 py-1">
9
+ <p class="h4 lh-condensed"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time></p>
10
+ <div class="col-1 sm-width-full border-top-thick">
11
+ </div>
12
+ </div>
13
+ </div>
14
+
15
+ <div class="prose py-4" itemprop="articleBody">
16
+ {{ content }}
17
+ </div>
18
+ </article>
19
+
20
+ <div class="container mx-auto px-2 py-2 clearfix">
21
+ {% include previous-next.html %}
22
+ </div>
data/_sass/_base.scss ADDED
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+
5
+ * {
6
+ box-sizing: border-box !important;
7
+ margin: 0; }
8
+
9
+ input,
10
+ select,
11
+ textarea,
12
+ button {
13
+ font-family: inherit;
14
+ font-size: inherit;
15
+ line-height: inherit;
16
+ }
17
+
18
+
19
+ body, h1, h2, h3, h4, h5, h6,
20
+ p, blockquote, pre, hr,
21
+ dl, dd, ol, ul, figure {
22
+ margin: 0;
23
+ padding: 0;
24
+ }
25
+
26
+
27
+ /**
28
+ * Basic styling
29
+ */
30
+ body {
31
+ font-family: $body-font-family;
32
+ font-size: $body-font-size;
33
+ line-height: 1.5;
34
+ color: $color-body-text;
35
+ background-color: $color-background;
36
+ }
37
+
38
+ p {
39
+ margin-top: 0;
40
+ margin-bottom: 0.5em;
41
+ }
42
+
43
+ h1, h2, h3, h4, h5, h6 {
44
+ margin-top: 1em;
45
+ margin-bottom: 0.25em;
46
+ }
47
+
48
+ h1, .h1 { font-size: $h1-size; }
49
+ h2, .h2 { font-size: $h2-size; }
50
+ h3, .h3 { font-size: $h3-size; }
51
+ h4, .h4 { font-size: $h4-size; }
52
+ h5, .h5 { font-size: $h5-size; }
53
+ h6, .h6 { font-size: $h6-size; text-transform: uppercase; letter-spacing: 0.02em; }
54
+
55
+ a {
56
+ color: inherit;
57
+ text-decoration: none;
58
+ padding-bottom: 1px;
59
+ border-bottom: 1px solid currentColor;
60
+ }
61
+
62
+ a:hover {
63
+ color: $color-primary-link;
64
+ text-decoration: none;
65
+ border-bottom: 1px dotted;
66
+ }
@@ -0,0 +1,130 @@
1
+ // Styling markdown output
2
+
3
+ // Code formatting
4
+ pre {
5
+ border-left: $spacer-1 solid $color-border;
6
+ margin: $spacer-3 0;
7
+ padding-left: 16px;
8
+ width: (9 / 12 * 100%); // matches col-9
9
+ overflow-x: auto;
10
+ }
11
+
12
+ code {
13
+ color: $color-code;
14
+ font-size: $body-font-size;
15
+ padding: 1px 4px;
16
+ }
17
+
18
+
19
+ .prose {
20
+
21
+ p, ol, ul {
22
+ font-size: $prose-font-size;
23
+ margin-bottom: 1em;
24
+ width: 100%;
25
+
26
+ // @media (min-width: $breakpoint-lg) {
27
+ // width: (10 / 12 * 100%); // matches col-10
28
+ // }
29
+
30
+ }
31
+
32
+ ul, ol {
33
+ padding-left: 40px;
34
+ }
35
+
36
+ li {
37
+ margin-bottom: 0.5em;
38
+
39
+ ul li, ol li {
40
+ margin-bottom: 0;
41
+ }
42
+ }
43
+
44
+ img {
45
+
46
+ max-width: 100%;
47
+
48
+ // @media (min-width: $breakpoint-lg) {
49
+ // max-width: (12 / 10 * 100%); // make image fill width of container on desktop
50
+ // }
51
+
52
+ }
53
+
54
+ blockquote {
55
+ line-height: 1.375;
56
+ padding-left: 20px;
57
+ margin: 40px 0 40px -16px;
58
+ border-left: $spacer-1 solid $color-border;
59
+ font-style: italic;
60
+
61
+ p {
62
+ font-size: 24px;
63
+ }
64
+
65
+ @media (min-width: $breakpoint-lg) {
66
+ padding-left: $spacer-3;
67
+ margin: $spacer-4 0 $spacer-4 -40px;
68
+ max-width: (11 / 10 * 100%);
69
+
70
+ p {
71
+ font-size: 32px;
72
+ }
73
+
74
+ }
75
+
76
+ }
77
+
78
+ hr {
79
+ color: $color-body-text;
80
+ border-style: solid;
81
+ border-width: thin;
82
+ margin-top: 0.5em;
83
+ margin-bottom: 0.5em;
84
+ }
85
+
86
+ dt {
87
+ font-weight: bold;
88
+ font-style: italic;
89
+ line-height: 1.25;
90
+ }
91
+
92
+ dd {
93
+ font-style: italic;
94
+ margin-bottom: 0.5em;
95
+ }
96
+
97
+ // Markdown tables
98
+ table {
99
+ border-collapse: collapse;
100
+ display: block;
101
+ width: 100%;
102
+ margin-bottom: 1.5em;
103
+ overflow: auto;
104
+ // For Firefox to horizontally scroll wider tables.
105
+ word-break: normal;
106
+ word-break: keep-all;
107
+
108
+ th {
109
+ font-weight: bold;
110
+ text-align: left;
111
+ }
112
+
113
+ th,
114
+ td {
115
+ padding: $spacer-2 $spacer-3 $spacer-2 2px;
116
+ border-top: 1px solid $color-body-text;
117
+ border-bottom: 1px solid $color-body-text;
118
+ }
119
+
120
+ tr {
121
+ border-top: 1px solid $color-body-text;
122
+ }
123
+
124
+ tr th {
125
+ border-top: 2px solid $color-body-text;
126
+ border-bottom: 2px solid $color-body-text;
127
+ }
128
+ }
129
+
130
+ }
@@ -0,0 +1,29 @@
1
+ // White theme
2
+
3
+ // Color variables
4
+ $black: #2B2826;
5
+ $gray-dark: #423F38;
6
+ $gray: #A09992;
7
+ $gray-light: #D7D5D1;
8
+ $white: #fff;
9
+ $burgundy: #B54545;
10
+ // Config
11
+ $color-background: $white !default;
12
+ $color-foreground: $black !default;
13
+ $color-title: $black !default;
14
+ $color-body-text: $black !default;
15
+ $color-text-accent: $gray-dark !default;
16
+ $color-code: $gray-dark !default;
17
+ $color-nav-link: $black !default;
18
+ $color-primary-link: $black !default;
19
+ $color-primary-underline: $gray !default;
20
+ $color-border: $gray-light !default;
21
+
22
+
23
+ // Import sass partials (used in all themes)
24
+ @import
25
+ "variables",
26
+ "base",
27
+ "components",
28
+ "utilities"
29
+ ;
@@ -0,0 +1,208 @@
1
+ /* Type utilities */
2
+ .h0 {
3
+ font-size: $h0-mobile;
4
+ line-height: 1.0125;
5
+ margin-top: 0.85em;
6
+ word-wrap: break-word;
7
+
8
+ @media (min-width: $breakpoint-lg) {
9
+ font-size: $h0-desktop;
10
+ }
11
+ }
12
+
13
+ .text-right { text-align: right; }
14
+
15
+ .no-underline, .no-underline-hover {
16
+ text-decoration: none;
17
+ border-bottom: none;
18
+ }
19
+
20
+ .no-underline-hover {
21
+
22
+ &:hover {
23
+ text-decoration: none !important;
24
+ border-bottom: none !important;
25
+ }
26
+ }
27
+
28
+
29
+
30
+ // Link styles for navigation
31
+ .link-primary {
32
+ font-weight: bold;
33
+ text-decoration: none;
34
+ border-bottom: 2px solid currentColor;
35
+ padding-bottom: 1px;
36
+
37
+ &:hover {
38
+ color: $color-primary-link;
39
+ text-decoration: none;
40
+ border-bottom: 2px dotted;
41
+ }
42
+ }
43
+
44
+ .bold { font-weight: bold; }
45
+ .italic { font-style: italic; }
46
+ .uppercase { text-transform: uppercase; }
47
+
48
+ .lh-condensed { line-height: 1.25; }
49
+
50
+ .list-reset {
51
+ list-style: none;
52
+ padding-left: 0;
53
+ }
54
+
55
+ /* Border utilities */
56
+ .border-bottom-thick { border-bottom: 2px solid; border-color: currentColor; }
57
+ .border-bottom-thin { border-bottom: 1px solid; border-color: currentColor; }
58
+ .border-top-thick { border-top: 2px solid; border-color: currentColor; }
59
+ .border-top-thin { border-top: 1px solid; border-color: currentColor; }
60
+ .border-0 { border: 0; }
61
+
62
+
63
+ /* Theme color utilities */
64
+ .header-background { background-color: $color-background; }
65
+ .header-border { border-color: $color-foreground; }
66
+ .header-title { color: $color-title; }
67
+ .header-text { color: $color-foreground; }
68
+ .header-social { fill: $color-foreground; }
69
+ .header-link:hover { color: $color-nav-link !important; } // used for navigation links on homepage
70
+ .text-accent { color: $color-text-accent; } // used for date in post list and home link
71
+
72
+ /* Layout utilities */
73
+ .container { max-width: $container-width; }
74
+
75
+ .col-1 { width: (1 / 12 * 100%); }
76
+ .col-2 { width: (2 / 12 * 100%); }
77
+ .col-3 { width: (3 / 12 * 100%); }
78
+ .col-4 { width: (4 / 12 * 100%); }
79
+ .col-5 { width: (5 / 12 * 100%); }
80
+ .col-6 { width: (6 / 12 * 100%); }
81
+ .col-7 { width: (7 / 12 * 100%); }
82
+ .col-8 { width: (8 / 12 * 100%); }
83
+ .col-9 { width: (9 / 12 * 100%); }
84
+ .col-10 { width: (10 / 12 * 100%); }
85
+ .col-11 { width: (11 / 12 * 100%); }
86
+ .col-12 { width: 100%; }
87
+
88
+ @media (max-width: $breakpoint-lg) {
89
+ .sm-width-full { width: 100% !important; }
90
+ }
91
+
92
+ .block { display: block !important; }
93
+ .inline-block { display: inline-block !important; }
94
+
95
+ .absolute { position: absolute; }
96
+ .fixed { position: fixed; }
97
+
98
+ .top-0 { top: 0; }
99
+ .right-0 { right: 0; }
100
+ .left-0 { left: 0; }
101
+
102
+ .table { display: table !important; }
103
+
104
+ .left { float: left; }
105
+ .right { float: right; }
106
+
107
+
108
+ // Responsive layout
109
+
110
+ @media (min-width: $breakpoint-lg) {
111
+
112
+ .right-lg { float: right !important; }
113
+ .left-lg { float: left !important; }
114
+
115
+ .absolute-lg { position: absolute; }
116
+
117
+ .block-lg { display: block !important; }
118
+ .inline-block-lg { display: inline-block; }
119
+
120
+ }
121
+
122
+ @media (max-width: $breakpoint-lg) {
123
+ .hide-sm { display: none !important; }
124
+ }
125
+
126
+
127
+ .clearfix:before,
128
+ .clearfix:after {
129
+ content: " ";
130
+ display: table
131
+ }
132
+ .clearfix:after { clear: both }
133
+
134
+ .align-middle { vertical-align: middle; }
135
+
136
+ /* Padding */
137
+ .px-0 { padding-left: 0; padding-right: 0 }
138
+ .py-0 { padding-top: 0; padding-bottom: 0 }
139
+
140
+ .px-1 { padding-left: $spacer-1; padding-right: $spacer-1 }
141
+ .py-1 { padding-top: $spacer-1; padding-bottom: $spacer-1 }
142
+
143
+ .px-2 { padding-left: $spacer-2; padding-right: $spacer-2; }
144
+ .py-2 { padding-top: $spacer-2; padding-bottom: $spacer-2; }
145
+
146
+ .px-3 { padding-left: $spacer-3; padding-right: $spacer-3; }
147
+ .py-3 { padding-top: $spacer-3; padding-bottom: $spacer-3; }
148
+
149
+ .px-4 { padding-left: $spacer-4; padding-right: $spacer-4; }
150
+ .py-4 { padding-top: $spacer-4; padding-bottom: $spacer-4; }
151
+
152
+ /* Margin */
153
+ .mx-auto { margin-left: auto; margin-right: auto; }
154
+
155
+ .mt-0 { margin-top: 0; }
156
+ .mr-0 { margin-right: 0; }
157
+ .mb-0 { margin-bottom: 0; }
158
+ .ml-0 { margin-left: 0; }
159
+
160
+ .mt-1 { margin-top: $spacer-1; }
161
+ .mr-1 { margin-right: $spacer-1; }
162
+ .mb-1 { margin-bottom: $spacer-1; }
163
+ .ml-1 { margin-left: $spacer-1; }
164
+
165
+ .mt-2 { margin-top: $spacer-2; }
166
+ .mr-2 { margin-right: $spacer-2; }
167
+ .mb-2 { margin-bottom: $spacer-2; }
168
+ .ml-2 { margin-left: $spacer-2; }
169
+
170
+ .mt-3 { margin-top: $spacer-3; }
171
+ .mr-3 { margin-right: $spacer-3; }
172
+ .mb-3 { margin-bottom: $spacer-3; }
173
+ .ml-3 { margin-left: $spacer-3; }
174
+
175
+ .mt-4 { margin-top: $spacer-4; }
176
+ .mr-4 { margin-right: $spacer-4; }
177
+ .mb-4 { margin-bottom: $spacer-4; }
178
+ .ml-4 { margin-left: $spacer-4; }
179
+
180
+ // Responsive margin
181
+ @media (min-width: $breakpoint-lg) {
182
+ .mx-lg-auto { margin-left: auto; margin-right: auto; }
183
+
184
+ .mt-lg-0 { margin-top: 0; }
185
+ .mr-lg-0 { margin-right: 0; }
186
+ .mb-lg-0 { margin-bottom: 0; }
187
+ .ml-lg-0 { margin-left: 0; }
188
+
189
+ .mt-lg-1 { margin-top: $spacer-1; }
190
+ .mr-lg-1 { margin-right: $spacer-1; }
191
+ .mb-lg-1 { margin-bottom: $spacer-1; }
192
+ .ml-lg-1 { margin-left: $spacer-1; }
193
+
194
+ .mt-lg-2 { margin-top: $spacer-2; }
195
+ .mr-lg-2 { margin-right: $spacer-2; }
196
+ .mb-lg-2 { margin-bottom: $spacer-2; }
197
+ .ml-lg-2 { margin-left: $spacer-2; }
198
+
199
+ .mt-lg-3 { margin-top: $spacer-3; }
200
+ .mr-lg-3 { margin-right: $spacer-3; }
201
+ .mb-lg-3 { margin-bottom: $spacer-3; }
202
+ .ml-lg-3 { margin-left: $spacer-3; }
203
+
204
+ .mt-lg-4 { margin-top: $spacer-4; }
205
+ .mr-lg-4 { margin-right: $spacer-4; }
206
+ .mb-lg-4 { margin-bottom: $spacer-4; }
207
+ .ml-lg-4 { margin-left: $spacer-4; }
208
+ }
@@ -0,0 +1,32 @@
1
+
2
+ // Font family
3
+ $body-font-family: Athelas, Palatino, Georgia, serif;
4
+ $body-font-size: 16px;
5
+ $prose-font-size: 24px;
6
+
7
+
8
+ // Type scale
9
+ $h0-mobile: 48px;
10
+ $h0-desktop: 96px;
11
+
12
+ $h1-size: 40px !default;
13
+ $h2-size: 32px !default;
14
+ $h3-size: 24px !default;
15
+ $h4-size: 20px !default;
16
+ $h5-size: 16px !default;
17
+ $h6-size: 12px !default;
18
+
19
+ // Container width
20
+ $container-width: 52em;
21
+
22
+ // Large breakpoint
23
+ $breakpoint-lg: 52em;
24
+
25
+ // Spacing unit
26
+ $spacer: 8px !default;
27
+
28
+ // Spacing scale
29
+ $spacer-1: $spacer !default; // 8px
30
+ $spacer-2: ($spacer * 2) !default; // 16px
31
+ $spacer-3: ($spacer * 4) !default; // 32px
32
+ $spacer-4: ($spacer * 8) !default; // 64px
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-athena
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - broccolini
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description:
56
+ email:
57
+ - diana.mounter@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - README.md
63
+ - _includes/footer.html
64
+ - _includes/github.html
65
+ - _includes/head.html
66
+ - _includes/header.html
67
+ - _includes/page_heading.html
68
+ - _includes/post_block.html
69
+ - _includes/previous-next.html
70
+ - _includes/previous-next_has-categories.html
71
+ - _includes/twitter.html
72
+ - _layouts/category-post.html
73
+ - _layouts/category_index.html
74
+ - _layouts/default.html
75
+ - _layouts/home.html
76
+ - _layouts/page.html
77
+ - _layouts/post.html
78
+ - _sass/_base.scss
79
+ - _sass/_components.scss
80
+ - _sass/_theme-light.scss
81
+ - _sass/_utilities.scss
82
+ - _sass/_variables.scss
83
+ homepage: http://broccolini.net/athena
84
+ licenses:
85
+ - MIT
86
+ metadata: {}
87
+ post_install_message:
88
+ rdoc_options: []
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ requirements: []
102
+ rubyforge_project:
103
+ rubygems_version: 2.4.5.1
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: A simple and elegant theme for Jekyll and GitHub Pages.
107
+ test_files: []