jekyll-theme-leap-month 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +113 -0
- data/README.md +63 -0
- data/_includes/banner.html +12 -0
- data/_includes/footer.html +5 -0
- data/_includes/head.html +29 -0
- data/_includes/header.html +4 -0
- data/_includes/nav-menu.html +8 -0
- data/_includes/page-info.html +7 -0
- data/_includes/post-list.html +5 -0
- data/_layouts/default.html +22 -0
- data/_layouts/post.html +9 -0
- data/_sass/fonts.scss +55 -0
- data/_sass/leap-month.scss +386 -0
- data/_sass/normalize.scss +492 -0
- data/_sass/rouge-base16-dark.scss +81 -0
- data/about.md +3 -0
- data/assets/css/style.scss +4 -0
- data/assets/fonts/copse-regular-webfont.eot +0 -0
- data/assets/fonts/copse-regular-webfont.svg +247 -0
- data/assets/fonts/copse-regular-webfont.ttf +0 -0
- data/assets/fonts/copse-regular-webfont.woff +0 -0
- data/assets/fonts/quattrocentosans-bold-webfont.eot +0 -0
- data/assets/fonts/quattrocentosans-bold-webfont.svg +247 -0
- data/assets/fonts/quattrocentosans-bold-webfont.ttf +0 -0
- data/assets/fonts/quattrocentosans-bold-webfont.woff +0 -0
- data/assets/fonts/quattrocentosans-bolditalic-webfont.eot +0 -0
- data/assets/fonts/quattrocentosans-bolditalic-webfont.svg +248 -0
- data/assets/fonts/quattrocentosans-bolditalic-webfont.ttf +0 -0
- data/assets/fonts/quattrocentosans-bolditalic-webfont.woff +0 -0
- data/assets/fonts/quattrocentosans-italic-webfont.eot +0 -0
- data/assets/fonts/quattrocentosans-italic-webfont.svg +247 -0
- data/assets/fonts/quattrocentosans-italic-webfont.ttf +0 -0
- data/assets/fonts/quattrocentosans-italic-webfont.woff +0 -0
- data/assets/fonts/quattrocentosans-regular-webfont.eot +0 -0
- data/assets/fonts/quattrocentosans-regular-webfont.svg +247 -0
- data/assets/fonts/quattrocentosans-regular-webfont.ttf +0 -0
- data/assets/fonts/quattrocentosans-regular-webfont.woff +0 -0
- data/assets/images/body-background.png +0 -0
- data/assets/images/bullet.png +0 -0
- data/assets/images/hr.gif +0 -0
- data/assets/js/main.js +72 -0
- data/index.md +74 -0
- data/log.md +3 -0
- metadata +116 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d12a8c6427ecf60f6033699759ed4de83b2ae1f7
|
4
|
+
data.tar.gz: f9417dc4222f6de20733a1059e1bb2ea86eb6dac
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 876008e1d60e3e00e40e435e7eb29662a8b6e97f8d575d1d1795506ad0e026631fe6b14a42270d6aaa2a61836550baf0caabaac5a496b48326999b7e109b6989
|
7
|
+
data.tar.gz: 71d61ec2995e649c1d74161afbeac3bd55fc99484e031869329f33b02648251d6798b61d0b3610cbf2bfb6a24b0691642ce006ee103a1eba24eb3de5f46bc350
|
data/LICENSE
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
CC0 1.0 Universal
|
2
|
+
|
3
|
+
Statement of Purpose
|
4
|
+
|
5
|
+
The laws of most jurisdictions throughout the world automatically confer
|
6
|
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
7
|
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
8
|
+
authorship and/or a database (each, a "Work").
|
9
|
+
|
10
|
+
Certain owners wish to permanently relinquish those rights to a Work for
|
11
|
+
the purpose of contributing to a commons of creative, cultural and
|
12
|
+
scientific works ("Commons") that the public can reliably and without fear
|
13
|
+
of later claims of infringement build upon, modify, incorporate in other
|
14
|
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
15
|
+
and for any purposes, including without limitation commercial purposes.
|
16
|
+
These owners may contribute to the Commons to promote the ideal of a free
|
17
|
+
culture and the further production of creative, cultural and scientific
|
18
|
+
works, or to gain reputation or greater distribution for their Work in
|
19
|
+
part through the use and efforts of others.
|
20
|
+
|
21
|
+
For these and/or other purposes and motivations, and without any
|
22
|
+
expectation of additional consideration or compensation, the person
|
23
|
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
24
|
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
25
|
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
26
|
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
27
|
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
28
|
+
|
29
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
30
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
31
|
+
Related Rights"). Copyright and Related Rights include, but are not
|
32
|
+
limited to, the following:
|
33
|
+
|
34
|
+
i. the right to reproduce, adapt, distribute, perform, display,
|
35
|
+
communicate, and translate a Work;
|
36
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
37
|
+
iii. publicity and privacy rights pertaining to a person's image or
|
38
|
+
likeness depicted in a Work;
|
39
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
40
|
+
subject to the limitations in paragraph 4(a), below;
|
41
|
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
42
|
+
in a Work;
|
43
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
44
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
45
|
+
protection of databases, and under any national implementation
|
46
|
+
thereof, including any amended or successor version of such
|
47
|
+
directive); and
|
48
|
+
vii. other similar, equivalent or corresponding rights throughout the
|
49
|
+
world based on applicable law or treaty, and any national
|
50
|
+
implementations thereof.
|
51
|
+
|
52
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
53
|
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
54
|
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
55
|
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
56
|
+
of action, whether now known or unknown (including existing as well as
|
57
|
+
future claims and causes of action), in the Work (i) in all territories
|
58
|
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
59
|
+
treaty (including future time extensions), (iii) in any current or future
|
60
|
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
61
|
+
including without limitation commercial, advertising or promotional
|
62
|
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
63
|
+
member of the public at large and to the detriment of Affirmer's heirs and
|
64
|
+
successors, fully intending that such Waiver shall not be subject to
|
65
|
+
revocation, rescission, cancellation, termination, or any other legal or
|
66
|
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
67
|
+
as contemplated by Affirmer's express Statement of Purpose.
|
68
|
+
|
69
|
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
70
|
+
be judged legally invalid or ineffective under applicable law, then the
|
71
|
+
Waiver shall be preserved to the maximum extent permitted taking into
|
72
|
+
account Affirmer's express Statement of Purpose. In addition, to the
|
73
|
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
74
|
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
75
|
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
76
|
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
77
|
+
maximum duration provided by applicable law or treaty (including future
|
78
|
+
time extensions), (iii) in any current or future medium and for any number
|
79
|
+
of copies, and (iv) for any purpose whatsoever, including without
|
80
|
+
limitation commercial, advertising or promotional purposes (the
|
81
|
+
"License"). The License shall be deemed effective as of the date CC0 was
|
82
|
+
applied by Affirmer to the Work. Should any part of the License for any
|
83
|
+
reason be judged legally invalid or ineffective under applicable law, such
|
84
|
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
85
|
+
of the License, and in such case Affirmer hereby affirms that he or she
|
86
|
+
will not (i) exercise any of his or her remaining Copyright and Related
|
87
|
+
Rights in the Work or (ii) assert any associated claims and causes of
|
88
|
+
action with respect to the Work, in either case contrary to Affirmer's
|
89
|
+
express Statement of Purpose.
|
90
|
+
|
91
|
+
4. Limitations and Disclaimers.
|
92
|
+
|
93
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
94
|
+
surrendered, licensed or otherwise affected by this document.
|
95
|
+
b. Affirmer offers the Work as-is and makes no representations or
|
96
|
+
warranties of any kind concerning the Work, express, implied,
|
97
|
+
statutory or otherwise, including without limitation warranties of
|
98
|
+
title, merchantability, fitness for a particular purpose, non
|
99
|
+
infringement, or the absence of latent or other defects, accuracy, or
|
100
|
+
the present or absence of errors, whether or not discoverable, all to
|
101
|
+
the greatest extent permissible under applicable law.
|
102
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
103
|
+
that may apply to the Work or any use thereof, including without
|
104
|
+
limitation any person's Copyright and Related Rights in the Work.
|
105
|
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
106
|
+
consents, permissions or other rights required for any use of the
|
107
|
+
Work.
|
108
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
109
|
+
party to this document and has no duty or obligation with respect to
|
110
|
+
this CC0 or use of the Work.
|
111
|
+
|
112
|
+
For more information, please see
|
113
|
+
<http://creativecommons.org/publicdomain/zero/1.0/>
|
data/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# 闰月主题 The Leap Month theme
|
2
|
+
|
3
|
+
[](https://github.com/qyxf/leap-month/releases)
|
4
|
+
[](https://creativecommons.org/share-your-work/public-domain/cc0/)
|
5
|
+
|
6
|
+
Leap month 或「闰月」主题,是一款为 GitHub Jekyll(GitHub Pages 所驱动的 Jekyll)定制的网页主题,fork 自 GitHub Pages 官方推出的 [Leap day](https://github.com/page-themes/leap-day) 或「闰日」主题。
|
7
|
+
|
8
|
+
> 由于本主题为 GitHub Jekyll 定制,因此依赖于其所额外引入的若干插件;在原生 Jekyll 下使用本主题时,可能出现若干问题。
|
9
|
+
|
10
|
+
相较于原来的闰日主题,闰月对页面样式、配色、框架等都做了较大的改动,改进了若干已知问题,对中文内容支持更佳。
|
11
|
+
|
12
|
+
本主题目前由[钱院学辅技术小组](https://github.com/qyxf)维护。事实上,本主题正好来自于钱院学辅使用 Leap day 主题过程中对其的优化与改进。
|
13
|
+
|
14
|
+
## 特性
|
15
|
+
|
16
|
+
- 为中文页面量身定制,更符合国内人士的建站需求;
|
17
|
+
- 充分优化了页面布局、正文排版,改善了移动端展示效果;
|
18
|
+
- 采用对比更鲜明的配色方案,视觉效果好;
|
19
|
+
- 页面内容精简,充分给予使用者自定义的空间;
|
20
|
+
- 默认引入 Font Awesome、pangu.js、MathJax 等基本插件,并使用国内 CDN([BootCDN](https://bootcdn.cn/))加载插件,提升效果的同时不影响页面加载速度;
|
21
|
+
|
22
|
+
本主题衍生自[钱院学辅信息站](https://qyxf.site)所采用的若干主题文件,因此更适合搭建「自由风」站点(不限于用 `_posts` 文件夹发布文章,而是在各级自定义目录下创建页面)——如项目主页、社团网站等,对一般的「博客风」站点也有较好支持。
|
23
|
+
|
24
|
+
## 使用
|
25
|
+
|
26
|
+
### 布置主题
|
27
|
+
|
28
|
+
如果您是从头开始新建一个用于 GitHub Pages 的代码仓库,请您:
|
29
|
+
|
30
|
+
- 将该仓库 fork 到自己名下;
|
31
|
+
- 将 fork 来的仓库克隆到本地,将仓库更名为自己所需的名称;
|
32
|
+
- 将新的仓库上传至 GitHub;
|
33
|
+
- 修改 `_config.yml` 配置文件,使之符合自己的需求;
|
34
|
+
- 撰写首页 `index.md`、关于页面 `about.md`、日志页面 `log.md`(该页面可在 `_config.yml` 中关闭);
|
35
|
+
- 基本工作完成,即可在 `_posts` 文件夹下以「博客风」新建文章,或在其他任何地方以「自由风」新建任意页面。
|
36
|
+
|
37
|
+
如果您已经有一个使用其他 Jekyll 主题的代码仓库,您需要:
|
38
|
+
|
39
|
+
- 在 `_config.yml` 或其他位置移除与旧主题相关的配置信息、样式文件;
|
40
|
+
- 克隆本仓库,并将本仓库中的:
|
41
|
+
- `_config.yml` 配置文件
|
42
|
+
- `_sass` 目录(Sass 样式表)
|
43
|
+
- `index.md`、`about.md`、`log.md` 文件(必要的基本页面,您可以自己创建或覆盖同名文件)
|
44
|
+
- `assets` 目录(JavaScript 代码、图片元素、webfonts)
|
45
|
+
|
46
|
+
复制/覆盖到自己的仓库中——注意保留好自己的信息;
|
47
|
+
- 提交改动,push 到 GitHub 上即可。
|
48
|
+
|
49
|
+
### 配置选项
|
50
|
+
|
51
|
+
本主题提供了五个选项接口,均已在本仓库的 `_config.yml` 展示:
|
52
|
+
|
53
|
+
- `title`:网站标题,默认值为 GitHub 上的项目标题;
|
54
|
+
- `subtitle`:网站副标题,默认值为 GitHub 上的项目描述;
|
55
|
+
- `author`:网站作者/维护者,默认值为 GitHub 上的项目所有者(用户/组织);
|
56
|
+
- `log_button` 选项:是否在导航栏打开「维护日志」选项;
|
57
|
+
- `cdnjs` 选项:是否采用 [cdnjs](https://cdnjs.com/) 提供的 CDN 服务加载插件,不声明或声明为 `false` 将使得网站用国内的 [BootCDN](https://bootcdn.cn/) 加载。
|
58
|
+
|
59
|
+
### 自定义
|
60
|
+
|
61
|
+
修改主题所定义的样式表,是最为普遍的需求。建议您在修改样式时,通过在 `assets/css` 目录下的 `style.scss` 增加条目来实现(覆盖),而尽量不要在 `_sass` 下已确定的主题文件中直接修改对应样式。
|
62
|
+
|
63
|
+
如您需要移除本主题默认支持的插件(不推荐),请您到 `_includes/head.html` 布局模块中移除代码引用,并同时在 `assets/js/main.js` 中移除对应的脚本实现。
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div id="banner">
|
2
|
+
<div class="menu">
|
3
|
+
<ul>
|
4
|
+
<li><a href="/" class="button"><i class="fa fa-home"></i> 网站首页</a></li>
|
5
|
+
{% if site.log_button %}
|
6
|
+
<li id="log"><a href="/log" class="button"><i class="fa fa-file-text"></i> 维护日志</a></li>
|
7
|
+
{% endif %}
|
8
|
+
<li><a href="/about" class="button"><i class="fa fa-users"></i> 关于我们</a></li>
|
9
|
+
<li id="project-page"><a href="{{ site.github.repository_url }}" class="button"><i class="fa fa-github"></i> 项目页面</a></li>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
</div><!-- end banner -->
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<footer><p>
|
2
|
+
<a href="/about">{{ site.author | default: site.github.owner_name }}</a>出品<br>
|
3
|
+
托管于 <a href="https://pages.github.com"><i class="fa fa-github-alt"></i> GitHub Pages</a>
|
4
|
+
并由 <a href="http://jekyllcn.com"><i class="fa fa-flask"></i> Jekyll</a> 强力驱动
|
5
|
+
</p></footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
|
5
|
+
{% seo %}
|
6
|
+
|
7
|
+
{% if site.cdnjs %}
|
8
|
+
{% assign cdn = 'cdnjs.cloudflare.com/ajax/libs' %}
|
9
|
+
{% else %}
|
10
|
+
{% assign cdn = 'cdn.bootcss.com' %}
|
11
|
+
{% endif %}
|
12
|
+
<link rel="stylesheet" href="{{ /assets/css/style.css | relative_url }}">
|
13
|
+
<link href="https://{{ cdn }}/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
14
|
+
<script src="https://{{ cdn }}/jquery/3.3.0/jquery.min.js"></script>
|
15
|
+
<script src="https://{{ cdn }}/pangu/4.0.7/pangu.min.js"></script>
|
16
|
+
<script src="https://{{ cdn }}/mathjax/2.7.6/latest.js"></script>
|
17
|
+
<script src="{{ /assets/js/main.js | relative_url }}"></script>
|
18
|
+
<script type="text/x-mathjax-config">
|
19
|
+
MathJax.Hub.Config({
|
20
|
+
extensions: ["MathMenu.js", "MathZoom.js", "AssistiveMML.js", "a11y/accessibility-menu.js"],
|
21
|
+
jax: ["input/TeX", "output/CommonHTML"],
|
22
|
+
TeX: { extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"] }
|
23
|
+
});
|
24
|
+
</script>
|
25
|
+
<!--[if lt IE 9]>
|
26
|
+
<script src="https://{{ cdn }}/html5shiv/3.7.3/html5shiv.min.js"></script>
|
27
|
+
<![endif]-->
|
28
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
29
|
+
</head>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!--- Jekyll theme: Leap month --->
|
2
|
+
<!--- repo: https://github.com/qyxf/leap-month --->
|
3
|
+
|
4
|
+
<!doctype html>
|
5
|
+
<html lang="{{ site.lang | default: 'zh-CN' }}">
|
6
|
+
{% include head.html %}
|
7
|
+
<body>
|
8
|
+
{% include header.html %}
|
9
|
+
{% include banner.html %}
|
10
|
+
|
11
|
+
<div class="wrapper">
|
12
|
+
{% include nav-menu.html %}
|
13
|
+
|
14
|
+
<section>
|
15
|
+
{{ content }}
|
16
|
+
</section>
|
17
|
+
|
18
|
+
{% include footer.html %}
|
19
|
+
</div>
|
20
|
+
|
21
|
+
</body>
|
22
|
+
</html>
|
data/_layouts/post.html
ADDED
data/_sass/fonts.scss
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
|
2
|
+
@font-face {
|
3
|
+
font-family: 'Quattrocento Sans';
|
4
|
+
src: url('../fonts/quattrocentosans-bold-webfont.eot');
|
5
|
+
src: url('../fonts/quattrocentosans-bold-webfont.eot?#iefix') format('embedded-opentype'),
|
6
|
+
url('../fonts/quattrocentosans-bold-webfont.woff') format('woff'),
|
7
|
+
url('../fonts/quattrocentosans-bold-webfont.ttf') format('truetype'),
|
8
|
+
url('../fonts/quattrocentosans-bold-webfont.svg#QuattrocentoSansBold') format('svg');
|
9
|
+
font-weight: bold;
|
10
|
+
font-style: normal;
|
11
|
+
}
|
12
|
+
|
13
|
+
@font-face {
|
14
|
+
font-family: 'Quattrocento Sans';
|
15
|
+
src: url('../fonts/quattrocentosans-bolditalic-webfont.eot');
|
16
|
+
src: url('../fonts/quattrocentosans-bolditalic-webfont.eot?#iefix') format('embedded-opentype'),
|
17
|
+
url('../fonts/quattrocentosans-bolditalic-webfont.woff') format('woff'),
|
18
|
+
url('../fonts/quattrocentosans-bolditalic-webfont.ttf') format('truetype'),
|
19
|
+
url('../fonts/quattrocentosans-bolditalic-webfont.svg#QuattrocentoSansBoldItalic') format('svg');
|
20
|
+
font-weight: bold;
|
21
|
+
font-style: italic;
|
22
|
+
}
|
23
|
+
|
24
|
+
@font-face {
|
25
|
+
font-family: 'Quattrocento Sans';
|
26
|
+
src: url('../fonts/quattrocentosans-italic-webfont.eot');
|
27
|
+
src: url('../fonts/quattrocentosans-italic-webfont.eot?#iefix') format('embedded-opentype'),
|
28
|
+
url('../fonts/quattrocentosans-italic-webfont.woff') format('woff'),
|
29
|
+
url('../fonts/quattrocentosans-italic-webfont.ttf') format('truetype'),
|
30
|
+
url('../fonts/quattrocentosans-italic-webfont.svg#QuattrocentoSansItalic') format('svg');
|
31
|
+
font-weight: normal;
|
32
|
+
font-style: italic;
|
33
|
+
}
|
34
|
+
|
35
|
+
@font-face {
|
36
|
+
font-family: 'Quattrocento Sans';
|
37
|
+
src: url('../fonts/quattrocentosans-regular-webfont.eot');
|
38
|
+
src: url('../fonts/quattrocentosans-regular-webfont.eot?#iefix') format('embedded-opentype'),
|
39
|
+
url('../fonts/quattrocentosans-regular-webfont.woff') format('woff'),
|
40
|
+
url('../fonts/quattrocentosans-regular-webfont.ttf') format('truetype'),
|
41
|
+
url('../fonts/quattrocentosans-regular-webfont.svg#QuattrocentoSansRegular') format('svg');
|
42
|
+
font-weight: normal;
|
43
|
+
font-style: normal;
|
44
|
+
}
|
45
|
+
|
46
|
+
@font-face {
|
47
|
+
font-family: 'Copse';
|
48
|
+
src: url('../fonts/copse-regular-webfont.eot');
|
49
|
+
src: url('../fonts/copse-regular-webfont.eot?#iefix') format('embedded-opentype'),
|
50
|
+
url('../fonts/copse-regular-webfont.woff') format('woff'),
|
51
|
+
url('../fonts/copse-regular-webfont.ttf') format('truetype'),
|
52
|
+
url('../fonts/copse-regular-webfont.svg#CopseRegular') format('svg');
|
53
|
+
font-weight: normal;
|
54
|
+
font-style: normal;
|
55
|
+
}
|
@@ -0,0 +1,386 @@
|
|
1
|
+
/* Leap Month Theme <https://github.com/qyxf/leap-month> */
|
2
|
+
/* Forked from Leap Day Theme <https://github.com/pages-themes/leap-day> */
|
3
|
+
|
4
|
+
@import "normalize";
|
5
|
+
@import "fonts";
|
6
|
+
@import "rouge-base16-dark";
|
7
|
+
|
8
|
+
$background-color: #333;
|
9
|
+
$default-color: #555;
|
10
|
+
$light-color: #999;
|
11
|
+
$title-color: #111;
|
12
|
+
$border-color: #111;
|
13
|
+
$image-border-color: #777;
|
14
|
+
$light-border-color: #ccc;
|
15
|
+
$section-color: #fcfcfc;
|
16
|
+
$highlight-color: #fff;
|
17
|
+
$link-color: #4276b6;
|
18
|
+
$theme-color: #7cafc2;
|
19
|
+
|
20
|
+
body {
|
21
|
+
font: 14px 'Quattrocento Sans', sans-serif;
|
22
|
+
line-height: 1.7em;
|
23
|
+
color: $default-color;
|
24
|
+
font-weight: normal;
|
25
|
+
margin: 0px;
|
26
|
+
padding: 0px 0 20px 0px;
|
27
|
+
background: url(../images/body-background.png) $background-color;
|
28
|
+
@media print, screen and (max-width: 720px) {
|
29
|
+
word-wrap: break-word; }}
|
30
|
+
|
31
|
+
h1, h2, h3, h4, h5, h6 {
|
32
|
+
color: $title-color;
|
33
|
+
margin: 0 0 1em; }
|
34
|
+
|
35
|
+
p, ul, ol, table, pre, dl {
|
36
|
+
margin: 0 0 1em; }
|
37
|
+
|
38
|
+
small { font-size: 0.9em; }
|
39
|
+
|
40
|
+
strong, dt {
|
41
|
+
font-weight: bold;
|
42
|
+
color: $background-color; }
|
43
|
+
|
44
|
+
a {
|
45
|
+
color: $link-color;
|
46
|
+
font-weight: normal;
|
47
|
+
text-decoration: none;
|
48
|
+
strong {
|
49
|
+
color: inherit;
|
50
|
+
} }
|
51
|
+
|
52
|
+
ul { list-style-image: url('../images/bullet.png'); }
|
53
|
+
|
54
|
+
.wrapper {
|
55
|
+
width: 1000px;
|
56
|
+
margin: 0 auto;
|
57
|
+
position: relative;
|
58
|
+
@media print, screen and (max-width: 1060px) {
|
59
|
+
width: auto;
|
60
|
+
margin: 0; }}
|
61
|
+
|
62
|
+
code {
|
63
|
+
font-family: 'Lucida Sans', Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, monospace;
|
64
|
+
font-size: 0.9em;
|
65
|
+
color: $highlight-color;
|
66
|
+
text-shadow: 0px 1px 0px $border-color;
|
67
|
+
margin: 0;
|
68
|
+
padding: 1px 4px;
|
69
|
+
background: $background-color;
|
70
|
+
border-radius: 2px; }
|
71
|
+
|
72
|
+
kbd {
|
73
|
+
border: 1px solid lightgray;
|
74
|
+
padding: 0px;
|
75
|
+
border-radius: 2px;
|
76
|
+
background: #eee; }
|
77
|
+
|
78
|
+
pre {
|
79
|
+
padding: 8px 15px;
|
80
|
+
background: $background-color;
|
81
|
+
border-radius: 3px;
|
82
|
+
border: 1px solid #c7c7c7;
|
83
|
+
overflow: auto;
|
84
|
+
overflow-y: hidden;
|
85
|
+
code {
|
86
|
+
margin: 0px;
|
87
|
+
padding: 0px;
|
88
|
+
} }
|
89
|
+
|
90
|
+
table {
|
91
|
+
width: 100%;
|
92
|
+
border-collapse: collapse; }
|
93
|
+
|
94
|
+
td {
|
95
|
+
text-align:left;
|
96
|
+
padding:5px 10px;
|
97
|
+
border-bottom:1px solid $light-border-color;
|
98
|
+
border-right: 1px solid $theme-color;
|
99
|
+
&:first-child {
|
100
|
+
border-left: 1px solid $theme-color;
|
101
|
+
} }
|
102
|
+
|
103
|
+
th {
|
104
|
+
@extend td;
|
105
|
+
border-top: 1px solid $light-border-color; }
|
106
|
+
|
107
|
+
hr {
|
108
|
+
border: 0;
|
109
|
+
outline: none;
|
110
|
+
height: 11px;
|
111
|
+
background: transparent url('../images/hr.gif') center center repeat-x;
|
112
|
+
margin: 0 0 20px;
|
113
|
+
&.heading {
|
114
|
+
height: 2px;
|
115
|
+
background-image: linear-gradient(to right, #fbfbfb 15%, #333333 50%, #fbfbfb 85%);
|
116
|
+
} }
|
117
|
+
|
118
|
+
header {
|
119
|
+
padding: 25px 20px 40px 20px;
|
120
|
+
margin: 0;
|
121
|
+
position: absolute;
|
122
|
+
top: 0;
|
123
|
+
left: 0;
|
124
|
+
right: 0;
|
125
|
+
text-align: center;
|
126
|
+
background: linear-gradient(to bottom, #30cfd0 0%, #330867 100%);
|
127
|
+
box-shadow: 1px 0px 2px rgba(0,0,0,.75);
|
128
|
+
z-index: 99;
|
129
|
+
-webkit-font-smoothing: antialiased;
|
130
|
+
min-height: 76px;
|
131
|
+
@media print, screen and (max-width: 1060px) {
|
132
|
+
padding-left: 0;
|
133
|
+
padding-right: 0;
|
134
|
+
float: none; }
|
135
|
+
@media print, screen and (max-width: 720px) {
|
136
|
+
padding: 20px 0;
|
137
|
+
margin: 0; }
|
138
|
+
@media print, screen and (max-width: 480px) {
|
139
|
+
position: relative;
|
140
|
+
padding: 5px 0px;
|
141
|
+
min-height: 0px; }
|
142
|
+
p {
|
143
|
+
font: 18px/30px 'Copse', serif;
|
144
|
+
color: $light-border-color;
|
145
|
+
text-shadow: 1px 1px 1px darken($theme-color, 40%);
|
146
|
+
margin: 0px;
|
147
|
+
@media print, screen and (max-width: 720px) {
|
148
|
+
display: none; } }
|
149
|
+
h1 {
|
150
|
+
font: 40px/48px 'Copse', sans-serif;
|
151
|
+
text-shadow: 2px 2px 2px darken($theme-color, 40%);
|
152
|
+
margin: 0px;
|
153
|
+
white-space: normal;
|
154
|
+
overflow: hidden;
|
155
|
+
text-overflow: ellipsis;
|
156
|
+
-o-text-overflow: ellipsis;
|
157
|
+
-ms-text-overflow: ellipsis;
|
158
|
+
@media print, screen and (max-width: 720px) { font-size: 32px; }
|
159
|
+
@media print, screen and (max-width: 480px) { font-size: 24px; }
|
160
|
+
a {
|
161
|
+
color: $highlight-color;
|
162
|
+
} } }
|
163
|
+
|
164
|
+
#banner {
|
165
|
+
z-index: 100;
|
166
|
+
left: 0;
|
167
|
+
right: 0;
|
168
|
+
height: 50px;
|
169
|
+
position: absolute;
|
170
|
+
top: 115px;
|
171
|
+
background: $background-color;
|
172
|
+
border: 1px solid $border-color;
|
173
|
+
border-left: 0;
|
174
|
+
border-right: 0;
|
175
|
+
box-shadow: 0px 1px 3px rgba(0,0,0,.25);
|
176
|
+
@media print, screen and (max-width: 1060px) { width: 100%; }
|
177
|
+
@media print, screen and (max-width: 720px) { top: 80px; }
|
178
|
+
@media print, screen and (max-width: 480px) { top: 55px; }
|
179
|
+
.menu {
|
180
|
+
float: unset;
|
181
|
+
display: flex;
|
182
|
+
margin: 0; }
|
183
|
+
.button {
|
184
|
+
border: 1px solid $light-border-color;
|
185
|
+
background: none;
|
186
|
+
border-radius: 2px;
|
187
|
+
margin-left: 5px;
|
188
|
+
padding: 10px 12px;
|
189
|
+
margin-top: 6px;
|
190
|
+
line-height: 14px;
|
191
|
+
font-size: 1em;
|
192
|
+
color: $light-border-color;
|
193
|
+
font-weight: bold;
|
194
|
+
display: inline-block;
|
195
|
+
text-align: center;
|
196
|
+
@media print, screen and (max-width: 480px) { font-size: small; }
|
197
|
+
&:hover {
|
198
|
+
color: $highlight-color;
|
199
|
+
} }
|
200
|
+
ul {
|
201
|
+
list-style: none;
|
202
|
+
height: 40px;
|
203
|
+
padding: 0;
|
204
|
+
float: left;
|
205
|
+
display: block;
|
206
|
+
margin: 0 auto;
|
207
|
+
li {
|
208
|
+
display:inline; } } }
|
209
|
+
|
210
|
+
section {
|
211
|
+
width: 80%;
|
212
|
+
padding: 30px 30px 50px;
|
213
|
+
margin: 20px auto;
|
214
|
+
margin-top: 190px;
|
215
|
+
position: relative;
|
216
|
+
background: $section-color;
|
217
|
+
border-radius: 3px;
|
218
|
+
border: 1px solid $light-border-color;
|
219
|
+
box-shadow: 0px 1px 2px rgba(0,0,0,.09),
|
220
|
+
inset 0px 0px 2px 2px rgba(255,255,255,.5),
|
221
|
+
inset 0 0 5px 5px rgba(255,255,255,.4);
|
222
|
+
@media print, screen and (max-width: 1060px) {
|
223
|
+
float: none;
|
224
|
+
border:1px solid #e5e5e5;
|
225
|
+
border-width:1px 0;
|
226
|
+
padding:20px auto;
|
227
|
+
margin: 190px auto 20px;
|
228
|
+
max-width: 720px; }
|
229
|
+
@media print, screen and (max-width: 720px) {
|
230
|
+
margin-top: 130px;
|
231
|
+
margin-bottom: 0px;
|
232
|
+
width: auto; }
|
233
|
+
@media print, screen and (max-width: 480px) {
|
234
|
+
margin-top: 40px; }
|
235
|
+
h2, h3, h4 {
|
236
|
+
padding-top: 1em;
|
237
|
+
+ h3, + h4 {
|
238
|
+
padding-top: 0; }}
|
239
|
+
h1 {
|
240
|
+
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
|
241
|
+
text-align: center;
|
242
|
+
white-space: pre-wrap;
|
243
|
+
padding-top: 0.8em; }
|
244
|
+
h2 {
|
245
|
+
border-bottom: 1px solid $light-border-color;
|
246
|
+
padding-bottom: 10px; }
|
247
|
+
u { text-underline-position: under; }
|
248
|
+
li p { margin-bottom: 5px; }
|
249
|
+
li + li { margin-top: 5px; }
|
250
|
+
img + img { margin-top: 10px; }
|
251
|
+
&> p > img {
|
252
|
+
max-width: 90%;
|
253
|
+
display: block;
|
254
|
+
margin-left: auto;
|
255
|
+
margin-right: auto;
|
256
|
+
border-radius: 5px;
|
257
|
+
border: 2px solid $image-border-color;
|
258
|
+
box-shadow: 1px 1px 3px $background-color; }
|
259
|
+
blockquote {
|
260
|
+
border: 1px solid $theme-color;
|
261
|
+
border-radius: 5px;
|
262
|
+
margin: 10px;
|
263
|
+
padding: 12px 10px 7px;
|
264
|
+
font-size: 0.9em;
|
265
|
+
& > * { margin-bottom: 5px; } } }
|
266
|
+
.footnotes {
|
267
|
+
background: linear-gradient(to top left, rgba(255, 140, 0, .4), rgba(144, 238, 144, .4));
|
268
|
+
border: 1px solid $light-border-color;
|
269
|
+
border-radius: 5px;
|
270
|
+
padding: 5px;
|
271
|
+
margin: 10px;
|
272
|
+
ol {
|
273
|
+
padding-left: 20px;
|
274
|
+
margin: 5px 5px 0;
|
275
|
+
li p {
|
276
|
+
margin-bottom: 5px; } }
|
277
|
+
h2 {
|
278
|
+
text-align: center;
|
279
|
+
margin: 10px 20px 10px 0;
|
280
|
+
padding: 0;
|
281
|
+
border: 0; } }
|
282
|
+
|
283
|
+
#nav-wrapper {
|
284
|
+
background: $background-color;
|
285
|
+
color: $light-border-color;
|
286
|
+
border: 1px solid $border-color;
|
287
|
+
border-left: 0;
|
288
|
+
border-radius: 0 5px 5px 0;
|
289
|
+
position: fixed;
|
290
|
+
width: 250px;
|
291
|
+
height: 280px;
|
292
|
+
z-index: 100;
|
293
|
+
top: 35%;
|
294
|
+
left: 0;
|
295
|
+
overflow: hidden;
|
296
|
+
transition: width 0.3s, height 0.3s;
|
297
|
+
display: none;
|
298
|
+
#toc {
|
299
|
+
border-bottom: 1px solid $border-color;
|
300
|
+
display: flex;
|
301
|
+
justify-content: center;
|
302
|
+
align-items: center;
|
303
|
+
padding: 5px;
|
304
|
+
font-weight: bold;
|
305
|
+
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25);
|
306
|
+
height: 20px; }
|
307
|
+
#nav-bar {
|
308
|
+
height: 250px;
|
309
|
+
width: 100%;
|
310
|
+
overflow-x: hidden;
|
311
|
+
overflow-y: auto;
|
312
|
+
transition: height 0.3s, opacity 0.3s 0.3s;
|
313
|
+
nav {
|
314
|
+
position: relative;
|
315
|
+
text-align: left;
|
316
|
+
ul {
|
317
|
+
list-style: none;
|
318
|
+
list-style-image: none;
|
319
|
+
font-size: 14px;
|
320
|
+
line-height: 24px;
|
321
|
+
margin-bottom: unset;
|
322
|
+
padding: 0 0 0 10px;
|
323
|
+
a {
|
324
|
+
color: $light-border-color; }
|
325
|
+
li {
|
326
|
+
padding: 5px 0px;
|
327
|
+
line-height: 16px;
|
328
|
+
&.tag-h2 {
|
329
|
+
+ .tag-h1 {
|
330
|
+
margin-top:10px; } }
|
331
|
+
&.active {
|
332
|
+
a {
|
333
|
+
color: $highlight-color;
|
334
|
+
text-shadow: 2px 2px $border-color;
|
335
|
+
font-weight: bold; } } } } } } }
|
336
|
+
|
337
|
+
footer {
|
338
|
+
text-align: center;
|
339
|
+
margin: 20px auto;
|
340
|
+
position: relative;
|
341
|
+
left: auto;
|
342
|
+
bottom: auto;
|
343
|
+
width: auto;
|
344
|
+
color: $light-color;
|
345
|
+
@media print, screen and (max-width: 1060px) {
|
346
|
+
float: none; } }
|
347
|
+
|
348
|
+
.page-info {
|
349
|
+
display: flex;
|
350
|
+
justify-content: center;
|
351
|
+
flex-wrap: wrap;
|
352
|
+
.metadata {
|
353
|
+
display: inline-flex;
|
354
|
+
align-items: baseline;
|
355
|
+
i {
|
356
|
+
margin: {
|
357
|
+
left: 6px;
|
358
|
+
right: 3px; } } } }
|
359
|
+
|
360
|
+
h1 {
|
361
|
+
@media print, screen and (max-width: 1060px) {
|
362
|
+
white-space: normal;
|
363
|
+
overflow: hidden;
|
364
|
+
text-overflow: ellipsis;
|
365
|
+
-o-text-overflow: ellipsis;
|
366
|
+
-ms-text-overflow: ellipsis; } }
|
367
|
+
|
368
|
+
@-webkit-keyframes blink {
|
369
|
+
0% { color: $background-color; }
|
370
|
+
80% { color: $background-color; }
|
371
|
+
100% { color: $light-border-color; } }
|
372
|
+
|
373
|
+
@keyframes blink {
|
374
|
+
0% {color: $background-color; }
|
375
|
+
80% {color: $background-color; }
|
376
|
+
100% {color: $light-border-color;} }
|
377
|
+
|
378
|
+
@-webkit-keyframes blinkback {
|
379
|
+
0% {color: $background-color; }
|
380
|
+
80% {color: $background-color; }
|
381
|
+
100% {color: $light-border-color; } }
|
382
|
+
|
383
|
+
@keyframes blinkback {
|
384
|
+
0% {color: $background-color; }
|
385
|
+
80% {color: $background-color; }
|
386
|
+
100% {color: $light-border-color; } }
|