jekyll-theme-kagami 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.txt +21 -0
- data/README.md +94 -0
- data/_includes/disqus.html +17 -0
- data/_includes/footer.html +23 -0
- data/_includes/google-analytics.html +11 -0
- data/_includes/head.html +23 -0
- data/_includes/header.html +22 -0
- data/_layouts/blank.html +5 -0
- data/_layouts/default.html +15 -0
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +9 -0
- data/_layouts/post-list.html +40 -0
- data/_layouts/post.html +42 -0
- data/_sass/kagami.scss +23 -0
- data/_sass/kagami/_layout.scss +163 -0
- data/_sass/kagami/_reset.scss +2 -0
- data/_sass/kagami/_scut.scss +1533 -0
- data/_sass/kagami/_typeface.scss +80 -0
- data/_sass/kagami/_typography.scss +235 -0
- data/_sass/kagami/_utility.scss +18 -0
- data/assets/font/fontello.eot +0 -0
- data/assets/font/fontello.svg +86 -0
- data/assets/font/fontello.ttf +0 -0
- data/assets/font/fontello.woff +0 -0
- data/assets/font/fontello.woff2 +0 -0
- data/assets/styles/core.scss +4 -0
- data/assets/styles/fontello.css +95 -0
- data/assets/styles/highlighting/README.md +23 -0
- data/assets/styles/highlighting/UNLICENSE.txt +24 -0
- data/assets/styles/highlighting/autumn.css +58 -0
- data/assets/styles/highlighting/borland.css +46 -0
- data/assets/styles/highlighting/bw.css +34 -0
- data/assets/styles/highlighting/colorful.css +61 -0
- data/assets/styles/highlighting/default.css +61 -0
- data/assets/styles/highlighting/emacs.css +61 -0
- data/assets/styles/highlighting/friendly.css +61 -0
- data/assets/styles/highlighting/fruity.css +70 -0
- data/assets/styles/highlighting/github.css +61 -0
- data/assets/styles/highlighting/manni.css +61 -0
- data/assets/styles/highlighting/monokai.css +65 -0
- data/assets/styles/highlighting/murphy.css +61 -0
- data/assets/styles/highlighting/native.css +70 -0
- data/assets/styles/highlighting/pastie.css +60 -0
- data/assets/styles/highlighting/perldoc.css +58 -0
- data/assets/styles/highlighting/tango.css +69 -0
- data/assets/styles/highlighting/trac.css +59 -0
- data/assets/styles/highlighting/vim.css +70 -0
- data/assets/styles/highlighting/vs.css +33 -0
- data/assets/styles/highlighting/zenburn.css +136 -0
- metadata +135 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: '01910bda24f50ac32cd1e78d1c408e6ece87fd1a'
|
4
|
+
data.tar.gz: c5726fac8880cf911ea58f9536456345f1115040
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e3a50cc5da0b8dfa5e73cbf14ced67f4b5bcac1ac84b40d61f49c0ae729280514afb16a8118a083a8d61b737dd45979d089e97913f2c68f16cdc9358a2fb8304
|
7
|
+
data.tar.gz: 53f9e5ba3640de394214633ec7f1cd6e0b7096cff610eb13b7f6ba0da1c8b4a2729c62e214e0218f2cc5bc818e1f17f698c6f39fd5e66a3d8eb27af6c10c4d54
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 kamikat
|
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,94 @@
|
|
1
|
+
# Kagami
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/kamikat/jekyll-theme-kagami.svg?branch=master)](https://travis-ci.org/kamikat/jekyll-theme-kagami)
|
4
|
+
|
5
|
+
A peaceful theme for Jekyll and GitHub Pages.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your Jekyll site's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "jekyll-theme-kagami"
|
13
|
+
```
|
14
|
+
|
15
|
+
And add this line to your Jekyll site's `_config.yml`:
|
16
|
+
|
17
|
+
```yaml
|
18
|
+
theme: jekyll-theme-kagami
|
19
|
+
```
|
20
|
+
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
$ bundle
|
24
|
+
|
25
|
+
Or install it yourself as:
|
26
|
+
|
27
|
+
$ gem install jekyll-theme-kagami
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
### Social Accounts
|
32
|
+
|
33
|
+
You can customize social account links by adding following lines to `_config.yml`
|
34
|
+
|
35
|
+
```yaml
|
36
|
+
github_username: my_github_username
|
37
|
+
twitter_username: my_twitter_username
|
38
|
+
instagram_username: my_instagram_username
|
39
|
+
```
|
40
|
+
|
41
|
+
You can customize footer by overriding `_includes/footer.html`.
|
42
|
+
|
43
|
+
### Syntax Highlighting
|
44
|
+
|
45
|
+
Kagami support color schemes from [jekyll-pygments-themes](https://github.com/jwarby/jekyll-pygments-themes).
|
46
|
+
|
47
|
+
Add the following lines to choose a color scheme:
|
48
|
+
|
49
|
+
```yaml
|
50
|
+
color_scheme: github
|
51
|
+
```
|
52
|
+
|
53
|
+
### Enabling comments (via Disqus)
|
54
|
+
|
55
|
+
Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
|
56
|
+
|
57
|
+
To enable it, add the following lines to your Jekyll site:
|
58
|
+
|
59
|
+
```yaml
|
60
|
+
disqus_shortname: my_disqus_shortname
|
61
|
+
```
|
62
|
+
|
63
|
+
You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
|
64
|
+
|
65
|
+
Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
|
66
|
+
|
67
|
+
If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
|
68
|
+
|
69
|
+
### Enabling Google Analytics
|
70
|
+
|
71
|
+
To enable Google Anaytics, add the following lines to your Jekyll site:
|
72
|
+
|
73
|
+
```yaml
|
74
|
+
google_analytics: UA-NNNNNNNN-N
|
75
|
+
```
|
76
|
+
|
77
|
+
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
78
|
+
|
79
|
+
## Contributing
|
80
|
+
|
81
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/kamikat/jekyll-theme-kagami>. 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.
|
82
|
+
|
83
|
+
## Development
|
84
|
+
|
85
|
+
To set up your environment to develop this theme, run `bundle install`.
|
86
|
+
|
87
|
+
Your theme is setup just like a normal Jekyll 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.
|
88
|
+
|
89
|
+
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
90
|
+
|
91
|
+
## License
|
92
|
+
|
93
|
+
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
94
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<div id="disqus_thread"></div>
|
2
|
+
<script>
|
3
|
+
var disqus_config = function () {
|
4
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
5
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
6
|
+
};
|
7
|
+
|
8
|
+
(function() {
|
9
|
+
var d = document, s = d.createElement('script');
|
10
|
+
|
11
|
+
s.src = 'https://{{ site.disqus_shortname }}.disqus.com/embed.js';
|
12
|
+
|
13
|
+
s.setAttribute('data-timestamp', +new Date());
|
14
|
+
(d.head || d.body).appendChild(s);
|
15
|
+
})();
|
16
|
+
</script>
|
17
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<footer class="site-footer">
|
2
|
+
|
3
|
+
<div class="wrapper">
|
4
|
+
<div class="credits">
|
5
|
+
KAGAMI, made with <i class="icon-heart"></i> by Kamikat
|
6
|
+
</div>
|
7
|
+
<div class="social-links">
|
8
|
+
<a class="social-link social-github" href="https://github.com/{{ site.github_username }}">
|
9
|
+
<i class="icon-github"></i>
|
10
|
+
</a>
|
11
|
+
<a class="social-link social-twitter" href="https://twitter.com/{{ site.twitter_username }}">
|
12
|
+
<i class="icon-twitter"></i>
|
13
|
+
</a>
|
14
|
+
<a class="social-link social-instagram" href="https://instagram.com/{{ site.instagram_username }}">
|
15
|
+
<i class="icon-instagram"></i>
|
16
|
+
</a>
|
17
|
+
<a class="social-link social-rss" href="{{ "/feed.xml" | relative_url }}" target="_blank">
|
18
|
+
<i class="icon-rss"></i>
|
19
|
+
</a>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
</footer>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<script>
|
2
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
3
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
4
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
5
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
6
|
+
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
|
10
|
+
</script>
|
11
|
+
|
data/_includes/head.html
ADDED
@@ -0,0 +1,23 @@
|
|
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 | append: " - " | append: site.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
7
|
+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="{{ "/assets/styles/core.css" | relative_url }}">
|
10
|
+
<link rel="stylesheet" href="{{ "/assets/styles/fontello.css" | relative_url }}">
|
11
|
+
<link rel="stylesheet" href="{{ page.color_scheme | default: site.color_scheme | default: "default" | prepend: "/assets/styles/highlighting/" | append: ".css" | relative_url }}">
|
12
|
+
|
13
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
14
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
15
|
+
|
16
|
+
{% if page.mathjax or site.mathjax %}
|
17
|
+
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
{% if jekyll.environment == 'production' and site.google_analytics %}
|
21
|
+
{% include google-analytics.html %}
|
22
|
+
{% endif %}
|
23
|
+
</head>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<header class="post-header">
|
2
|
+
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
3
|
+
<h1 class="post-title">{{ page.title }}</h1>
|
4
|
+
<nav class="site-nav">
|
5
|
+
<div class="page-list">
|
6
|
+
{% assign sorted_pages = site.pages | sort: "position" %}
|
7
|
+
{% for my_page in sorted_pages %}
|
8
|
+
{% if my_page.title and my_page.url != "/" %}
|
9
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}" >{{ my_page.name | downcase | remove: ".md" | escape }}</a>
|
10
|
+
{% endif %}
|
11
|
+
{% endfor %}
|
12
|
+
</div>
|
13
|
+
</nav>
|
14
|
+
</header>
|
15
|
+
|
16
|
+
{% if page.cover_url %}
|
17
|
+
<div class="post-cover" aria-label="Cover">
|
18
|
+
<div class="post-cover-wrapper">
|
19
|
+
<img src="{{ page.cover_url }}" alt="" />
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
{% endif %}
|
data/_layouts/blank.html
ADDED
data/_layouts/home.html
ADDED
data/_layouts/page.html
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% include header.html %}
|
6
|
+
|
7
|
+
<ul class="post-list">
|
8
|
+
{% for post in site.posts %}
|
9
|
+
<li class="post-list-item" data-tags="{{ post.tags | join: " " }}">
|
10
|
+
<a class="post-item-link" href="{{ post.url | relative_url }}" data-date="{{ post.date | date: "%m-%d" }}">
|
11
|
+
{{ post.title | escape }}
|
12
|
+
</a>
|
13
|
+
{% if post.description %}
|
14
|
+
<p class="post-description">{{ post.description }}</p>
|
15
|
+
{% endif %}
|
16
|
+
<div class="post-item-meta">
|
17
|
+
{{ post.date | date: "%B %-d, %Y" }}
|
18
|
+
/
|
19
|
+
{% capture lang %}{{ post.lang | default: site.lang | default: "en" }}{% endcapture %}
|
20
|
+
{% if lang == "en" %}
|
21
|
+
{% capture words %}{{ post.content | strip_html | number_of_words }}{% endcapture %}
|
22
|
+
{% else %}
|
23
|
+
{% capture words %}{{ post.content | strip_html | size }}{% endcapture %}
|
24
|
+
{% endif %}
|
25
|
+
{% unless words contains "-" %}
|
26
|
+
{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}
|
27
|
+
{% endunless %}
|
28
|
+
</div>
|
29
|
+
</li>
|
30
|
+
{% endfor %}
|
31
|
+
</ul>
|
32
|
+
|
33
|
+
<script type="text/javascript">
|
34
|
+
var argparse = /([^=]+)=(.*)+/;
|
35
|
+
var h = window.location.hash, h = h && h.substr(1).split('&') || [], filters = {};
|
36
|
+
h.forEach(function (e) { var p = argparse.exec(e); if (p) filters[decodeURIComponent(p[1])] = decodeURIComponent(p[2]) });
|
37
|
+
if (filters.tags) document.querySelectorAll('.post-list li').forEach(function (e) {
|
38
|
+
e.style.display = !!~e.dataset.tags.indexOf(filters.tags) ? '' : 'none'
|
39
|
+
});
|
40
|
+
</script>
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article class="post" lang="{{ page.lang | default: site.lang | default: "en" }}" itemscope itemtype="http://schema.org/BlogPosting" >
|
5
|
+
|
6
|
+
<header class="post-header">
|
7
|
+
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
8
|
+
<h1 class="post-title" itemprop="name headline">{{ page.title | escape | replace: "", "<wbr>" }}</h1>
|
9
|
+
</header>
|
10
|
+
|
11
|
+
{% if page.cover_url %}
|
12
|
+
<div class="post-cover" aria-label="Cover">
|
13
|
+
<div class="post-cover-wrapper">
|
14
|
+
<img src="{{ page.cover_url }}" alt="" />
|
15
|
+
</div>
|
16
|
+
<div class="cover-meta">{{ page.cover_meta | markdownify }}</div>
|
17
|
+
</div>
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
<div class="post-content" itemprop="articleBody">
|
21
|
+
{{ content }}
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<footer class="post-footer">
|
25
|
+
<div class="post-meta">
|
26
|
+
{% if page.date %} <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time> {% endif %}
|
27
|
+
{% if page.author %} by <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author | escape }}</span></span> {% endif %}
|
28
|
+
</div>
|
29
|
+
|
30
|
+
{% if page.tags.size > 0 %}
|
31
|
+
<ul class="post-tags" aria-label="TagList">
|
32
|
+
{% for tag in page.tags %}
|
33
|
+
<li><a class="tag-link" href="{{ tag | url_encode | prepend: "/#tags=" | relative_url }}">{{ tag | escape }}</a></li>
|
34
|
+
{% endfor %}
|
35
|
+
</ul>
|
36
|
+
{% endif %}
|
37
|
+
</footer>
|
38
|
+
|
39
|
+
{% if jekyll.environment == 'production' and site.disqus_shortname and page.comments != false %}
|
40
|
+
{% include disqus.html %}
|
41
|
+
{% endif %}
|
42
|
+
</article>
|
data/_sass/kagami.scss
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
$font-size: 18px;
|
4
|
+
|
5
|
+
// Dimensions
|
6
|
+
$content-width: 680px;
|
7
|
+
$spacing-unit: 32px;
|
8
|
+
|
9
|
+
// Colors
|
10
|
+
$content-color: #3c3c3c;
|
11
|
+
$background-color: #fff;
|
12
|
+
$border-color: #f0f0f0;
|
13
|
+
$inline-code-color: #d32f2f;
|
14
|
+
$inline-code-background: #fff6f6;
|
15
|
+
$block-code-background: #f2f2fa;
|
16
|
+
$mark-background: rgba(yellow, 0.35);
|
17
|
+
|
18
|
+
@import "kagami/scut";
|
19
|
+
@import "kagami/reset";
|
20
|
+
@import "kagami/utility";
|
21
|
+
@import "kagami/typeface";
|
22
|
+
@import "kagami/layout";
|
23
|
+
@import "kagami/typography";
|
@@ -0,0 +1,163 @@
|
|
1
|
+
$content-padding: $spacing-unit / 2;
|
2
|
+
$post-margin-width: 2 * $spacing-unit;
|
3
|
+
$post-header-spacing: 3.5 * $spacing-unit;
|
4
|
+
$post-footer-spacing: 3 * $spacing-unit;
|
5
|
+
|
6
|
+
html {
|
7
|
+
height: 100%;
|
8
|
+
overflow-x: hidden;
|
9
|
+
}
|
10
|
+
|
11
|
+
body {
|
12
|
+
min-height: 100%;
|
13
|
+
width: 100%;
|
14
|
+
overflow: hidden; // fixes margin-collapsing of body
|
15
|
+
}
|
16
|
+
|
17
|
+
.wrapper {
|
18
|
+
width: 100%;
|
19
|
+
max-width: $content-width;
|
20
|
+
margin: 0 auto;
|
21
|
+
padding-left: $content-padding;
|
22
|
+
padding-right: $content-padding;
|
23
|
+
@media screen and (min-width: $content-width) {
|
24
|
+
padding-left: $content-padding + $post-margin-width;
|
25
|
+
padding-right: $content-padding + $post-margin-width;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
article {
|
30
|
+
|
31
|
+
$vspacing: $spacing-unit;
|
32
|
+
$hspacing: $spacing-unit / 2;
|
33
|
+
|
34
|
+
h1, h2, h3, h4, h5, h6, p, ul, ol, pre, hr, blockquote, img:only-child {
|
35
|
+
display: block;
|
36
|
+
margin-top: $vspacing;
|
37
|
+
margin-bottom: $vspacing;
|
38
|
+
}
|
39
|
+
|
40
|
+
li > ul, li > ol {
|
41
|
+
margin-top: 0;
|
42
|
+
margin-bottom: 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
.highlight {
|
46
|
+
position: relative;
|
47
|
+
overflow: hidden;
|
48
|
+
|
49
|
+
code {
|
50
|
+
display: block;
|
51
|
+
overflow-x: auto;
|
52
|
+
}
|
53
|
+
|
54
|
+
@include exdent-horizontally($hspacing);
|
55
|
+
@include exdent-vertically(0.5 * $vspacing);
|
56
|
+
|
57
|
+
@media screen and (min-width: $content-width) {
|
58
|
+
@include exdent-horizontally(2 * $hspacing);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
blockquote {
|
63
|
+
margin-left: 0.5 * $spacing-unit;
|
64
|
+
margin-right: 0.5 * $spacing-unit;
|
65
|
+
@media screen and (min-width: $content-width) {
|
66
|
+
margin-left: $spacing-unit;
|
67
|
+
margin-right: $spacing-unit;
|
68
|
+
}
|
69
|
+
cite {
|
70
|
+
display: block;
|
71
|
+
text-align: right;
|
72
|
+
margin-top: -$spacing-unit;
|
73
|
+
white-space: nowrap;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.aside, .sidenote {
|
78
|
+
width: 160px;
|
79
|
+
float: left;
|
80
|
+
margin-left: -$post-margin-width;
|
81
|
+
margin-right: $vspacing;
|
82
|
+
padding: 0;
|
83
|
+
}
|
84
|
+
|
85
|
+
@media screen and (max-width: $content-width) {
|
86
|
+
h2, h3, h4, h5, h6 {
|
87
|
+
&::before { color: rgba(0,0,0,0); }
|
88
|
+
}
|
89
|
+
.aside, .sidenote {
|
90
|
+
display: none;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
h1, h2, h3, h4, h5, h6 { // reduce spacing after headings
|
95
|
+
& + *,
|
96
|
+
& + .aside + *,
|
97
|
+
& + .sidenote + * { margin-top: -0.5 * $hspacing; }
|
98
|
+
}
|
99
|
+
|
100
|
+
}
|
101
|
+
|
102
|
+
.post-header {
|
103
|
+
margin-top: $post-header-spacing;
|
104
|
+
margin-bottom: $post-header-spacing;
|
105
|
+
}
|
106
|
+
|
107
|
+
.post-cover {
|
108
|
+
margin-top: -$post-header-spacing + $spacing-unit;
|
109
|
+
}
|
110
|
+
|
111
|
+
.post-footer, #disqus_thread {
|
112
|
+
margin-top: $post-footer-spacing;
|
113
|
+
margin-bottom: $post-footer-spacing;
|
114
|
+
}
|
115
|
+
|
116
|
+
.page-link {
|
117
|
+
margin-right: 0.25em;
|
118
|
+
}
|
119
|
+
|
120
|
+
.site-footer {
|
121
|
+
margin-top: $post-footer-spacing;
|
122
|
+
margin-bottom: $spacing-unit;
|
123
|
+
vertical-align: middle;
|
124
|
+
text-align: justify;
|
125
|
+
-moz-text-align-last: center;
|
126
|
+
text-align-last: center;
|
127
|
+
}
|
128
|
+
|
129
|
+
.site-footer .wrapper::after {
|
130
|
+
display: inline-block;
|
131
|
+
content: '';
|
132
|
+
width: 100%;
|
133
|
+
}
|
134
|
+
|
135
|
+
.social-links {
|
136
|
+
display: inline-block;
|
137
|
+
text-align: center;
|
138
|
+
margin: 1em (-$content-padding);
|
139
|
+
padding: 0 0.3em;
|
140
|
+
}
|
141
|
+
|
142
|
+
.credits {
|
143
|
+
margin-left: -0.256em;
|
144
|
+
display: inline-block;
|
145
|
+
}
|
146
|
+
|
147
|
+
.post-list-item {
|
148
|
+
margin-top: $spacing-unit;
|
149
|
+
margin-bottom: $spacing-unit;
|
150
|
+
}
|
151
|
+
|
152
|
+
.post-description {
|
153
|
+
margin-top: 10px;
|
154
|
+
margin-bottom: 10px;
|
155
|
+
}
|
156
|
+
|
157
|
+
.cover-meta {
|
158
|
+
position: absolute;
|
159
|
+
bottom: 0;
|
160
|
+
right: 0;
|
161
|
+
margin: 4px 8px;
|
162
|
+
p { margin: 0; padding: 0; }
|
163
|
+
}
|