jekyll-text-theme 1.3.0
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 +21 -0
- data/README.md +161 -0
- data/_includes/blog/article-data.html +43 -0
- data/_includes/blog/footer.html +14 -0
- data/_includes/blog/header.html +22 -0
- data/_includes/blog/license.html +17 -0
- data/_includes/blog/tags.html +49 -0
- data/_includes/common-head.html +7 -0
- data/_includes/head-icons-rel.html +25 -0
- data/_includes/icon/mail.svg +6 -0
- data/_includes/icon/menu.svg +3 -0
- data/_includes/icon/next.svg +3 -0
- data/_includes/icon/previous.svg +3 -0
- data/_includes/icon/social/behance.svg +3 -0
- data/_includes/icon/social/douban.svg +5 -0
- data/_includes/icon/social/facebook.svg +3 -0
- data/_includes/icon/social/flicker.svg +5 -0
- data/_includes/icon/social/github.svg +3 -0
- data/_includes/icon/social/googleplus.svg +3 -0
- data/_includes/icon/social/linkedin.svg +3 -0
- data/_includes/icon/social/pinterest.svg +3 -0
- data/_includes/icon/social/qq.svg +3 -0
- data/_includes/icon/social/twitter.svg +3 -0
- data/_includes/icon/social/weibo.svg +6 -0
- data/_includes/icon/social/weixin.svg +3 -0
- data/_includes/icon/social/zhihu.svg +3 -0
- data/_includes/info/follow-me.html +74 -0
- data/_includes/logo/logo.svg +8 -0
- data/_includes/snippets/page-url.html +1 -0
- data/_includes/snippets/rss-url.html +1 -0
- data/_includes/utils/comment-disqus.html +22 -0
- data/_includes/utils/google-analytics.html +13 -0
- data/_includes/utils/mathjax.html +5 -0
- data/_layouts/all.html +114 -0
- data/_layouts/blog-base.html +34 -0
- data/_layouts/blog-default.html +9 -0
- data/_layouts/error-404.html +9 -0
- data/_layouts/home-base.html +15 -0
- data/_layouts/home.html +92 -0
- data/_layouts/none.html +1 -0
- data/_layouts/page.html +15 -0
- data/_layouts/post.html +206 -0
- data/_sass/base/_animate.scss +19 -0
- data/_sass/base/_base.scss +55 -0
- data/_sass/base/_image&icon.scss +20 -0
- data/_sass/base/_links.scss +84 -0
- data/_sass/base/_text.scss +50 -0
- data/_sass/blog/_layout.base.scss +3 -0
- data/_sass/blog/_layout.default.scss +20 -0
- data/_sass/blog/_layout.page.scss +1 -0
- data/_sass/blog/_layout.post.scss +66 -0
- data/_sass/blog/_page.all.scss +35 -0
- data/_sass/blog/_page.error-404.scss +7 -0
- data/_sass/blog/_page.index.scss +45 -0
- data/_sass/colors/_colors.dark.scss +38 -0
- data/_sass/colors/_colors.default.scss +39 -0
- data/_sass/colors/_colors.forest.scss +39 -0
- data/_sass/colors/_colors.ocean.scss +39 -0
- data/_sass/components/_article.content.scss +140 -0
- data/_sass/components/_article.data.scss +35 -0
- data/_sass/components/_follow-me.scss +70 -0
- data/_sass/components/_footer.scss +36 -0
- data/_sass/components/_header.scss +44 -0
- data/_sass/components/_license.scss +27 -0
- data/_sass/components/_pagination.scss +7 -0
- data/_sass/components/_tags.scss +33 -0
- data/_sass/components/_toc.scss +61 -0
- data/_sass/components/_wrapper.scss +23 -0
- data/_sass/mixins/_flex.scss +394 -0
- data/_sass/mixins/_link.scss +60 -0
- data/_sass/mixins/_media.scss +12 -0
- data/_sass/mixins/_prefix.scss +14 -0
- data/_sass/settings/_base.scss +12 -0
- data/_sass/settings/_colors.scss +4 -0
- data/_sass/settings/_font.scss +32 -0
- data/_sass/settings/_highlighting.scss +72 -0
- data/assets/css/blog.scss +46 -0
- data/assets/images/license-cc4.png +0 -0
- data/assets/images/logo/icon-120x120.png +0 -0
- data/assets/images/logo/icon-128x128.png +0 -0
- data/assets/images/logo/icon-150x150.png +0 -0
- data/assets/images/logo/icon-152x152.png +0 -0
- data/assets/images/logo/icon-167x167.png +0 -0
- data/assets/images/logo/icon-16x16.png +0 -0
- data/assets/images/logo/icon-180x180.png +0 -0
- data/assets/images/logo/icon-192x192.png +0 -0
- data/assets/images/logo/icon-310x150.png +0 -0
- data/assets/images/logo/icon-310x310.png +0 -0
- data/assets/images/logo/icon-48x48.png +0 -0
- data/assets/images/logo/icon-70x70.png +0 -0
- data/assets/images/logo/logo.svg +8 -0
- data/assets/images/octocat.jpg +0 -0
- metadata +234 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
.m-page-stage {
|
2
|
+
box-sizing: border-box;
|
3
|
+
min-height: 100%;
|
4
|
+
overflow:auto;
|
5
|
+
padding-bottom: $footer-height;
|
6
|
+
@include animation(fade-in-down .8s);
|
7
|
+
}
|
8
|
+
.m-page-content {
|
9
|
+
padding: $content-gap * 3 0 $content-gap * 2;
|
10
|
+
@include media-query($on-laptop) {
|
11
|
+
padding: $content-gap * 2 0;
|
12
|
+
}
|
13
|
+
@include media-query($on-palm) {
|
14
|
+
padding: $content-gap 0;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
.m-page-main {
|
18
|
+
margin: 0 auto;
|
19
|
+
}
|
20
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,66 @@
|
|
1
|
+
.m-post {
|
2
|
+
& > div {
|
3
|
+
display: block;
|
4
|
+
@include media-query($on-laptop) {
|
5
|
+
display: block;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
.col-1 {
|
9
|
+
@include flex(1);
|
10
|
+
max-width: $content-max-width;
|
11
|
+
& > article {
|
12
|
+
& > header {
|
13
|
+
color: $text-color-d;
|
14
|
+
margin-bottom: $spacing-unit / 6;
|
15
|
+
& > h1 {
|
16
|
+
margin-bottom: $spacing-unit;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.col-2 {
|
22
|
+
display: none;
|
23
|
+
& > aside {
|
24
|
+
box-sizing: border-box;
|
25
|
+
width: $aside-width;
|
26
|
+
position: absolute;
|
27
|
+
padding: $spacing-unit 0 $spacing-unit $spacing-unit * 2;
|
28
|
+
overflow: hidden;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
footer {
|
32
|
+
& > span {
|
33
|
+
color: $text-color-l;
|
34
|
+
}
|
35
|
+
& > .article-license {
|
36
|
+
position: relative;
|
37
|
+
max-width: 500px;
|
38
|
+
margin: 1.5em 0;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
.has-toc {
|
43
|
+
.m-post {
|
44
|
+
& > div {
|
45
|
+
@include flexbox;
|
46
|
+
@include media-query($on-laptop) {
|
47
|
+
display: block;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
.col-2 {
|
51
|
+
width: $aside-width;
|
52
|
+
position: relative;
|
53
|
+
display: block;
|
54
|
+
& > aside {
|
55
|
+
&.fixed {
|
56
|
+
position: fixed;
|
57
|
+
z-index: 2;
|
58
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
@include media-query($on-laptop) {
|
62
|
+
display: none;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.m-all {
|
2
|
+
& > div > section {
|
3
|
+
margin: $content-gap * 3 0;
|
4
|
+
& > section {
|
5
|
+
&:not(:last-child) {
|
6
|
+
padding: 0 0 $base-font-size * .4 0;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
.year-title {
|
10
|
+
font-size: $base-font-size * 1.6;
|
11
|
+
}
|
12
|
+
.year-list {
|
13
|
+
& > li {
|
14
|
+
list-style-type: none;
|
15
|
+
margin: $base-font-size * .4 0;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
.post-date {
|
19
|
+
font-family: $code-font-family;
|
20
|
+
display: inline-block;
|
21
|
+
font-size: $small-font-size;
|
22
|
+
color: $text-color-l;
|
23
|
+
padding: 0 $base-font-size 0 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
.post-link {
|
27
|
+
font-size: $base-font-size;
|
28
|
+
@include link-normal {
|
29
|
+
color: $text-color-d;
|
30
|
+
}
|
31
|
+
@include link-emphasize {
|
32
|
+
color: $main-color-1;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
.m-post-list {
|
2
|
+
& > article {
|
3
|
+
& > h1 {
|
4
|
+
font-size: $article-list-head;
|
5
|
+
& > a {
|
6
|
+
@include link-text-colors(
|
7
|
+
$text-color-d,
|
8
|
+
$main-color-1
|
9
|
+
);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
& > a {
|
13
|
+
font-size: $small-font-size;
|
14
|
+
}
|
15
|
+
margin: $content-gap * 3 0;
|
16
|
+
}
|
17
|
+
.m-article-content {
|
18
|
+
font-size: $small-font-size;
|
19
|
+
h1, h2, h3, h4, h5, h6 {
|
20
|
+
margin: $content-gap 0;
|
21
|
+
}
|
22
|
+
h1, h2, h3 {
|
23
|
+
color: $text-color;
|
24
|
+
}
|
25
|
+
h1, h2 {
|
26
|
+
padding: 0;
|
27
|
+
border: none;
|
28
|
+
}
|
29
|
+
h1 {
|
30
|
+
font-size: $h1-font-size-excerpt;
|
31
|
+
}
|
32
|
+
h2 {
|
33
|
+
font-size: $h2-font-size-excerpt;
|
34
|
+
}
|
35
|
+
h3 {
|
36
|
+
font-size: $h3-font-size-excerpt;
|
37
|
+
}
|
38
|
+
h4 {
|
39
|
+
font-size: $h4-font-size-excerpt;
|
40
|
+
}
|
41
|
+
img {
|
42
|
+
max-height: 200px;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
///
|
2
|
+
// Color Theme: Dark
|
3
|
+
// Author: Tian Qi
|
4
|
+
// Email: kitian616@outlook.com
|
5
|
+
///
|
6
|
+
|
7
|
+
// main colors
|
8
|
+
$main-color-1: #ffbf00;
|
9
|
+
$text-color-1: #dedede;
|
10
|
+
|
11
|
+
$main-color-2: #ff3366;
|
12
|
+
$text-color-2: #dedede;
|
13
|
+
$main-color-3: #21252b;
|
14
|
+
$text-color-3: #dedede;
|
15
|
+
|
16
|
+
// background colors
|
17
|
+
$background-color: #2e3744;
|
18
|
+
// text colors
|
19
|
+
$text-color-d: #f1f3f6;
|
20
|
+
$text-color: #dadfe6;
|
21
|
+
$text-color-l: #acb0b4;
|
22
|
+
$text-background-color:#1e242d;
|
23
|
+
|
24
|
+
// border and shadow colors
|
25
|
+
$border-color: #161b21;
|
26
|
+
$select-color: rgba($main-color-1, .5);
|
27
|
+
$decorate-color: rgba(#fff, .1);
|
28
|
+
$shadow-down: none;
|
29
|
+
|
30
|
+
// logo colors
|
31
|
+
$mail-color: #0072c5;
|
32
|
+
$weibo-color: #e6162d;
|
33
|
+
$facebook-color: #4267b2;
|
34
|
+
$google-plus-color:#ea4335;
|
35
|
+
$twitter-color: #1da1f2;
|
36
|
+
$douban-color: #42bd56;
|
37
|
+
$github-color: #000;
|
38
|
+
$linkedin-color: #1074af;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
///
|
2
|
+
// Color Theme: Default
|
3
|
+
// Author: Tian Qi
|
4
|
+
// Email: kitian616@outlook.com
|
5
|
+
///
|
6
|
+
|
7
|
+
// main colors
|
8
|
+
$main-color-1: #fc4d50;
|
9
|
+
$text-color-1: #fff;
|
10
|
+
|
11
|
+
$main-color-2: #fca24d;
|
12
|
+
$text-color-2: #fff;
|
13
|
+
|
14
|
+
$main-color-3: #f2f2f2;
|
15
|
+
$text-color-3: #666;
|
16
|
+
|
17
|
+
// background colors
|
18
|
+
$background-color: #fff;
|
19
|
+
// text colors
|
20
|
+
$text-color-d: #111;
|
21
|
+
$text-color: #333;
|
22
|
+
$text-color-l: #9c9c9c;
|
23
|
+
$text-background-color:#f2f2f2;
|
24
|
+
|
25
|
+
// border and shadow colors
|
26
|
+
$border-color: #aeaeae;
|
27
|
+
$select-color: rgba($main-color-1, .5);
|
28
|
+
$decorate-color: rgba(#000, .1);
|
29
|
+
$shadow-down: 0 2px 10px rgba(#000, .15), 0 0 16px rgba(#000, .05);
|
30
|
+
|
31
|
+
// logo colors
|
32
|
+
$mail-color: #0072c5;
|
33
|
+
$weibo-color: #e6162d;
|
34
|
+
$facebook-color: #4267b2;
|
35
|
+
$google-plus-color:#ea4335;
|
36
|
+
$twitter-color: #1da1f2;
|
37
|
+
$douban-color: #42bd56;
|
38
|
+
$github-color: #000;
|
39
|
+
$linkedin-color: #1074af;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
///
|
2
|
+
// Color Theme: Forest
|
3
|
+
// Author: Tian Qi
|
4
|
+
// Email: kitian616@outlook.com
|
5
|
+
///
|
6
|
+
|
7
|
+
// main colors
|
8
|
+
$main-color-1: #bb6170;
|
9
|
+
$text-color-1: #fff;
|
10
|
+
|
11
|
+
$main-color-2: #f3c584;
|
12
|
+
$text-color-2: #fff;
|
13
|
+
|
14
|
+
$main-color-3: #7cc7bb;
|
15
|
+
$text-color-3: #fff;
|
16
|
+
|
17
|
+
// background colors
|
18
|
+
$background-color: #f8fcfb;
|
19
|
+
// text colors
|
20
|
+
$text-color-d: #325f74;
|
21
|
+
$text-color: #3e758f;
|
22
|
+
$text-color-l: #619dbb;
|
23
|
+
$text-background-color:#f2f2f2;
|
24
|
+
|
25
|
+
// border and shadow colors
|
26
|
+
$border-color: #eacfd3;
|
27
|
+
$select-color: rgba($main-color-1, .5);
|
28
|
+
$decorate-color: rgba(#bb6170, .15);
|
29
|
+
$shadow-down: 0 2px 10px rgba(#000, .15), 0 0 16px rgba(#000, .05);
|
30
|
+
|
31
|
+
// logo colors
|
32
|
+
$mail-color: #0072c5;
|
33
|
+
$weibo-color: #e6162d;
|
34
|
+
$facebook-color: #4267b2;
|
35
|
+
$google-plus-color:#ea4335;
|
36
|
+
$twitter-color: #1da1f2;
|
37
|
+
$douban-color: #42bd56;
|
38
|
+
$github-color: #000;
|
39
|
+
$linkedin-color: #1074af;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
///
|
2
|
+
// Color Theme: Ocean
|
3
|
+
// Author: Tian Qi
|
4
|
+
// Email: kitian616@outlook.com
|
5
|
+
///
|
6
|
+
|
7
|
+
// main colors
|
8
|
+
$main-color-1: #09abff;
|
9
|
+
$text-color-1: #fff;
|
10
|
+
|
11
|
+
$main-color-2: #ead4d9;
|
12
|
+
$text-color-2: #444;
|
13
|
+
|
14
|
+
$main-color-3: #e1f5ff;
|
15
|
+
$text-color-3: #00537f;
|
16
|
+
|
17
|
+
// background colors
|
18
|
+
$background-color: #f5fcff;
|
19
|
+
// text colors
|
20
|
+
$text-color-d: #32434c;
|
21
|
+
$text-color: #00537f;
|
22
|
+
$text-color-l: #0079ba;
|
23
|
+
$text-background-color:#f2f2f2;
|
24
|
+
|
25
|
+
// border and shadow colors
|
26
|
+
$border-color: #aeaeae;
|
27
|
+
$select-color: rgba($main-color-1, .5);
|
28
|
+
$decorate-color: rgba(#000, .1);
|
29
|
+
$shadow-down: 0 2px 10px rgba(#000, .15), 0 0 16px rgba(#000, .05);
|
30
|
+
|
31
|
+
// logo colors
|
32
|
+
$mail-color: #0072c5;
|
33
|
+
$weibo-color: #e6162d;
|
34
|
+
$facebook-color: #4267b2;
|
35
|
+
$google-plus-color:#ea4335;
|
36
|
+
$twitter-color: #1da1f2;
|
37
|
+
$douban-color: #42bd56;
|
38
|
+
$github-color: #000;
|
39
|
+
$linkedin-color: #1074af;
|
@@ -0,0 +1,140 @@
|
|
1
|
+
.m-article-content {
|
2
|
+
line-height: $article-line-height;
|
3
|
+
h1, h2, h3, h4, h5, h6 {
|
4
|
+
margin: $content-gap * 2 0 $content-gap * .5 0;
|
5
|
+
}
|
6
|
+
h1, h2 {
|
7
|
+
padding: 0 0 $base-font-size * .3 0;
|
8
|
+
border: 0 dashed $border-color;
|
9
|
+
border-bottom-width: 2px;
|
10
|
+
margin-bottom: $content-gap;
|
11
|
+
}
|
12
|
+
|
13
|
+
p {
|
14
|
+
margin: $content-gap 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
blockquote {
|
18
|
+
padding: 0 0 0 $spacing-unit / 2;
|
19
|
+
border: 0 solid $border-color;
|
20
|
+
border-left-width: 4px;
|
21
|
+
margin: $content-gap 0;
|
22
|
+
font-size: $small-font-size;
|
23
|
+
color: $text-color-l;
|
24
|
+
background-color: $text-background-color;
|
25
|
+
p {
|
26
|
+
margin: $content-gap * .5 0;
|
27
|
+
}
|
28
|
+
> :last-child {
|
29
|
+
margin-bottom: 0;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
img:not(.emoji) {
|
34
|
+
max-width: 100%;
|
35
|
+
max-height: 600px;
|
36
|
+
vertical-align: middle;
|
37
|
+
}
|
38
|
+
.emoji {
|
39
|
+
display: inline-block;
|
40
|
+
vertical-align: text-bottom;
|
41
|
+
width: $base-font-size * $article-line-height * .7;
|
42
|
+
height: $base-font-size * $article-line-height * .7;
|
43
|
+
}
|
44
|
+
|
45
|
+
code {
|
46
|
+
padding: $code-font-size * .2 $code-font-size * .5;
|
47
|
+
border-radius: $code-font-size * .4;
|
48
|
+
background-color: $text-background-color;
|
49
|
+
span {
|
50
|
+
padding: 0;
|
51
|
+
margin: 0;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
pre {
|
55
|
+
display: block;
|
56
|
+
overflow: auto;
|
57
|
+
-webkit-overflow-scrolling: touch;
|
58
|
+
margin: $content-gap 0;
|
59
|
+
border-radius: $code-font-size * .4;;
|
60
|
+
background-size: auto $code-font-size * $code-line-height * 2;
|
61
|
+
background-origin: content-box;
|
62
|
+
& > code {
|
63
|
+
font-size: $code-font-size;
|
64
|
+
padding: $code-font-size;
|
65
|
+
margin: 0;
|
66
|
+
display: block;
|
67
|
+
line-height: $code-line-height;
|
68
|
+
background-color: transparent;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
figure {
|
72
|
+
margin: $content-gap 0;
|
73
|
+
&:before {
|
74
|
+
content: attr(data-lang);
|
75
|
+
background-color: $text-background-color;
|
76
|
+
display: block;
|
77
|
+
border-top-left-radius: $code-font-size / 2;
|
78
|
+
border-top-right-radius: $code-font-size / 2;
|
79
|
+
padding: $code-font-size / 2 $code-font-size $code-font-size / 2 0;
|
80
|
+
color: $decorate-color;
|
81
|
+
font-weight: $bold-font-weight;
|
82
|
+
font-size: $base-font-size;
|
83
|
+
text-align: right;
|
84
|
+
text-transform: uppercase;
|
85
|
+
}
|
86
|
+
& > pre {
|
87
|
+
border-top-left-radius: 0;
|
88
|
+
border-top-right-radius: 0;
|
89
|
+
margin: 0;
|
90
|
+
& > code {
|
91
|
+
padding-top: 0;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
ul, ol {
|
97
|
+
margin: $content-gap 0 $content-gap $spacing-unit;
|
98
|
+
li {
|
99
|
+
margin: 0;
|
100
|
+
p { margin: 0; }
|
101
|
+
}
|
102
|
+
}
|
103
|
+
dl {
|
104
|
+
margin: $content-gap 0;
|
105
|
+
dt, dd {
|
106
|
+
margin: 0;
|
107
|
+
p { margin: 0; }
|
108
|
+
}
|
109
|
+
dt {
|
110
|
+
font-weight: $bold-font-weight;
|
111
|
+
}
|
112
|
+
dd {
|
113
|
+
margin-left: 2em;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
table {
|
118
|
+
display: block;
|
119
|
+
width: 100%;
|
120
|
+
overflow-x: auto;
|
121
|
+
margin: $content-gap 0;
|
122
|
+
border-collapse: collapse;
|
123
|
+
th, td {
|
124
|
+
border: 1px solid $border-color;
|
125
|
+
padding: $base-font-size * .5;
|
126
|
+
}
|
127
|
+
thead, tbody {
|
128
|
+
border: 1px solid $border-color;
|
129
|
+
}
|
130
|
+
tbody > tr:nth-child(even) {
|
131
|
+
background-color: $text-background-color;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
hr {
|
136
|
+
border: 0 dashed $border-color;
|
137
|
+
border-top-width: 2px;
|
138
|
+
margin: $base-font-size 0;
|
139
|
+
}
|
140
|
+
}
|