jekyll-text-theme 1.4.0 → 1.4.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 +4 -4
- data/README.md +7 -3
- data/_includes/blog/article-data.html +40 -38
- data/_includes/blog/footer.html +8 -12
- data/_includes/blog/header.html +49 -50
- data/_includes/blog/license.html +24 -23
- data/_includes/blog/tags.html +42 -38
- data/_includes/icon/mail.svg +4 -4
- data/_includes/icon/menu.svg +2 -2
- data/_includes/icon/next.svg +2 -2
- data/_includes/icon/previous.svg +2 -2
- data/_includes/icon/social/behance.svg +1 -1
- data/_includes/icon/social/douban.svg +3 -3
- data/_includes/icon/social/facebook.svg +1 -1
- data/_includes/icon/social/flicker.svg +3 -3
- data/_includes/icon/social/github.svg +1 -1
- data/_includes/icon/social/googleplus.svg +1 -1
- data/_includes/icon/social/linkedin.svg +1 -1
- data/_includes/icon/social/pinterest.svg +1 -1
- data/_includes/icon/social/qq.svg +1 -1
- data/_includes/icon/social/twitter.svg +1 -1
- data/_includes/icon/social/weixin.svg +1 -1
- data/_includes/icon/social/zhihu.svg +1 -1
- data/_includes/info/follow-me.html +75 -75
- data/_includes/snippets/get-lang.html +5 -1
- data/_includes/snippets/locale-to-string.html +5 -1
- data/_includes/snippets/page-title.html +2 -2
- data/_layouts/all.html +122 -106
- data/_layouts/blog-base.html +31 -33
- data/_layouts/blog-default.html +2 -4
- data/_layouts/error-404.html +3 -3
- data/_layouts/home.html +108 -94
- data/_layouts/page.html +8 -11
- data/_layouts/post.html +178 -188
- data/_sass/base/_animate.scss +14 -14
- data/_sass/base/_base.scss +62 -34
- data/_sass/base/_image&icon.scss +9 -6
- data/_sass/base/_links.scss +60 -67
- data/_sass/base/_text.scss +30 -24
- data/_sass/blog/_layout.default.scss +15 -14
- data/_sass/blog/_layout.post.scss +56 -55
- data/_sass/blog/_page.all.scss +31 -31
- data/_sass/blog/_page.error-404.scss +5 -5
- data/_sass/blog/_page.index.scss +47 -42
- data/_sass/colors/_colors.chocolate.scss +39 -0
- data/_sass/colors/_colors.orange.scss +39 -0
- data/_sass/components/_article.content.scss +133 -125
- data/_sass/components/_article.data.scss +34 -33
- data/_sass/components/_follow-me.scss +38 -65
- data/_sass/components/_footer.scss +20 -23
- data/_sass/components/_header.scss +35 -38
- data/_sass/components/_license.scss +23 -23
- data/_sass/components/_pagination.scss +5 -5
- data/_sass/components/_tags.scss +23 -29
- data/_sass/components/_toc.scss +58 -53
- data/_sass/components/_wrapper.scss +19 -17
- data/_sass/mixins/_link.scss +46 -39
- data/_sass/mixins/_media.scss +3 -3
- data/_sass/mixins/_prefix.scss +6 -6
- data/_sass/settings/_colors.scss +3 -1
- data/_sass/settings/_highlighting.scss +63 -64
- data/assets/css/blog.scss +0 -1
- metadata +4 -3
- data/_sass/blog/_layout.page.scss +0 -1
data/_sass/blog/_page.all.scss
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
.m-all {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
}
|
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
|
+
}
|
25
8
|
}
|
26
|
-
.
|
27
|
-
|
28
|
-
@include link-normal {
|
29
|
-
color: $text-color-d;
|
30
|
-
}
|
31
|
-
@include link-emphasize {
|
32
|
-
color: $main-color-1;
|
33
|
-
}
|
9
|
+
.year-title {
|
10
|
+
font-size: $base-font-size * 1.6;
|
34
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
35
|
}
|
data/_sass/blog/_page.index.scss
CHANGED
@@ -1,45 +1,50 @@
|
|
1
1
|
.m-post-list {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
}
|
2
|
+
&>article {
|
3
|
+
&>h1 {
|
4
|
+
font-size: $article-list-head;
|
5
|
+
&>a {
|
6
|
+
@include link-text-colors( $text-color-d, $main-color-1);
|
7
|
+
}
|
44
8
|
}
|
9
|
+
&>a {
|
10
|
+
font-size: $small-font-size;
|
11
|
+
}
|
12
|
+
margin: $content-gap * 3 0;
|
13
|
+
}
|
14
|
+
.m-article-content {
|
15
|
+
font-size: $small-font-size;
|
16
|
+
h1,
|
17
|
+
h2,
|
18
|
+
h3,
|
19
|
+
h4,
|
20
|
+
h5,
|
21
|
+
h6 {
|
22
|
+
margin: $content-gap 0;
|
23
|
+
}
|
24
|
+
h1,
|
25
|
+
h2,
|
26
|
+
h3 {
|
27
|
+
color: $text-color;
|
28
|
+
}
|
29
|
+
h1,
|
30
|
+
h2 {
|
31
|
+
padding: 0;
|
32
|
+
border: none;
|
33
|
+
}
|
34
|
+
h1 {
|
35
|
+
font-size: $h1-font-size-excerpt;
|
36
|
+
}
|
37
|
+
h2 {
|
38
|
+
font-size: $h2-font-size-excerpt;
|
39
|
+
}
|
40
|
+
h3 {
|
41
|
+
font-size: $h3-font-size-excerpt;
|
42
|
+
}
|
43
|
+
h4 {
|
44
|
+
font-size: $h4-font-size-excerpt;
|
45
|
+
}
|
46
|
+
img {
|
47
|
+
max-height: 200px;
|
48
|
+
}
|
49
|
+
}
|
45
50
|
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
///
|
2
|
+
// Color Theme: Chocolate
|
3
|
+
// Author: Tian Qi
|
4
|
+
// Email: kitian616@outlook.com
|
5
|
+
///
|
6
|
+
|
7
|
+
// main colors
|
8
|
+
$main-color-1: #c68a45;
|
9
|
+
$text-color-1: #fff;
|
10
|
+
|
11
|
+
$main-color-2: #6e3e85;
|
12
|
+
$text-color-2: #fff;
|
13
|
+
|
14
|
+
$main-color-3: #7f5543;
|
15
|
+
$text-color-3: #fff;
|
16
|
+
|
17
|
+
// background colors
|
18
|
+
$background-color: #f2ebe6;
|
19
|
+
// text colors
|
20
|
+
$text-color-d: #251914;
|
21
|
+
$text-color: #3f2a21;
|
22
|
+
$text-color-l: #724c3c;
|
23
|
+
$text-background-color:#e3d1ca;
|
24
|
+
|
25
|
+
// border and shadow colors
|
26
|
+
$border-color: #dcc6bd;
|
27
|
+
$select-color: rgba($main-color-3, .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: Orange
|
3
|
+
// Author: Tian Qi
|
4
|
+
// Email: kitian616@outlook.com
|
5
|
+
///
|
6
|
+
|
7
|
+
// main colors
|
8
|
+
$main-color-1: #fca24d;
|
9
|
+
$text-color-1: #fff;
|
10
|
+
|
11
|
+
$main-color-2: #fc4d50;
|
12
|
+
$text-color-2: #fff;
|
13
|
+
|
14
|
+
$main-color-3: #fa510f;
|
15
|
+
$text-color-3: #fff;
|
16
|
+
|
17
|
+
// background colors
|
18
|
+
$background-color: #fff1eb;
|
19
|
+
// text colors
|
20
|
+
$text-color-d: rgba(#000, .95);
|
21
|
+
$text-color: rgba(#000, .85);
|
22
|
+
$text-color-l: rgba(#000, .5);
|
23
|
+
$text-background-color:rgba(#000, .05);
|
24
|
+
|
25
|
+
// border and shadow colors
|
26
|
+
$border-color: rgba(#000, .2);
|
27
|
+
$select-color: rgba($main-color-3, .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;
|
@@ -1,140 +1,148 @@
|
|
1
1
|
.m-article-content {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
line-height: $article-line-height;
|
3
|
+
h1,
|
4
|
+
h2,
|
5
|
+
h3,
|
6
|
+
h4,
|
7
|
+
h5,
|
8
|
+
h6 {
|
9
|
+
margin: $content-gap * 2 0 $content-gap * .5 0;
|
10
|
+
}
|
11
|
+
h1,
|
12
|
+
h2 {
|
13
|
+
padding: 0 0 $base-font-size * .3 0;
|
14
|
+
border: 0 dashed $border-color;
|
15
|
+
border-bottom-width: 2px;
|
16
|
+
margin-bottom: $content-gap;
|
17
|
+
}
|
18
|
+
p {
|
19
|
+
margin: $content-gap 0;
|
20
|
+
}
|
21
|
+
blockquote {
|
22
|
+
padding: 0 0 0 $spacing-unit / 2;
|
23
|
+
border: 0 solid $border-color;
|
24
|
+
border-left-width: 4px;
|
25
|
+
margin: $content-gap 0;
|
26
|
+
font-size: $small-font-size;
|
27
|
+
color: $text-color-l;
|
28
|
+
p {
|
29
|
+
margin: $content-gap * .5 0;
|
5
30
|
}
|
6
|
-
|
7
|
-
|
8
|
-
border: 0 dashed $border-color;
|
9
|
-
border-bottom-width: 2px;
|
10
|
-
margin-bottom: $content-gap;
|
31
|
+
> :last-child {
|
32
|
+
margin-bottom: 0;
|
11
33
|
}
|
12
|
-
|
13
|
-
|
14
|
-
|
34
|
+
}
|
35
|
+
img:not(.emoji) {
|
36
|
+
max-width: 100%;
|
37
|
+
max-height: 600px;
|
38
|
+
vertical-align: middle;
|
39
|
+
}
|
40
|
+
.emoji {
|
41
|
+
display: inline-block;
|
42
|
+
vertical-align: text-bottom;
|
43
|
+
width: $base-font-size * $article-line-height * .7;
|
44
|
+
height: $base-font-size * $article-line-height * .7;
|
45
|
+
}
|
46
|
+
code {
|
47
|
+
padding: $code-font-size * .2 $code-font-size * .5;
|
48
|
+
border-radius: $code-font-size * .4;
|
49
|
+
background-color: $text-background-color;
|
50
|
+
span {
|
51
|
+
padding: 0;
|
52
|
+
margin: 0;
|
15
53
|
}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
54
|
+
}
|
55
|
+
pre {
|
56
|
+
display: block;
|
57
|
+
overflow: auto;
|
58
|
+
-webkit-overflow-scrolling: touch;
|
59
|
+
margin: $content-gap 0;
|
60
|
+
border-radius: $code-font-size * .4;
|
61
|
+
;
|
62
|
+
background-size: auto $code-font-size * $code-line-height * 2;
|
63
|
+
background-origin: content-box;
|
64
|
+
&>code {
|
65
|
+
font-size: $code-font-size;
|
66
|
+
padding: $code-font-size;
|
67
|
+
margin: 0;
|
68
|
+
display: block;
|
69
|
+
line-height: $code-line-height;
|
70
|
+
background-color: transparent;
|
30
71
|
}
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
72
|
+
}
|
73
|
+
figure {
|
74
|
+
margin: $content-gap 0;
|
75
|
+
&:before {
|
76
|
+
content: attr(data-lang);
|
77
|
+
background-color: $text-background-color;
|
78
|
+
display: block;
|
79
|
+
border-top-left-radius: $code-font-size / 2;
|
80
|
+
border-top-right-radius: $code-font-size / 2;
|
81
|
+
padding: $code-font-size / 2 $code-font-size $code-font-size / 2 0;
|
82
|
+
color: $decorate-color;
|
83
|
+
font-weight: $bold-font-weight;
|
84
|
+
font-size: $base-font-size;
|
85
|
+
text-align: right;
|
86
|
+
text-transform: uppercase;
|
36
87
|
}
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
88
|
+
&>pre {
|
89
|
+
border-top-left-radius: 0;
|
90
|
+
border-top-right-radius: 0;
|
91
|
+
margin: 0;
|
92
|
+
&>code {
|
93
|
+
padding-top: 0;
|
94
|
+
}
|
42
95
|
}
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
96
|
+
}
|
97
|
+
ul,
|
98
|
+
ol {
|
99
|
+
margin: $content-gap 0 $content-gap $spacing-unit;
|
100
|
+
li {
|
101
|
+
margin: 0;
|
102
|
+
p {
|
103
|
+
margin: 0;
|
104
|
+
}
|
52
105
|
}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
font-size: $code-font-size;
|
63
|
-
padding: $code-font-size;
|
64
|
-
margin: 0;
|
65
|
-
display: block;
|
66
|
-
line-height: $code-line-height;
|
67
|
-
background-color: transparent;
|
68
|
-
}
|
106
|
+
}
|
107
|
+
dl {
|
108
|
+
margin: $content-gap 0;
|
109
|
+
dt,
|
110
|
+
dd {
|
111
|
+
margin: 0;
|
112
|
+
p {
|
113
|
+
margin: 0;
|
114
|
+
}
|
69
115
|
}
|
70
|
-
|
71
|
-
|
72
|
-
&:before {
|
73
|
-
content: attr(data-lang);
|
74
|
-
background-color: $text-background-color;
|
75
|
-
display: block;
|
76
|
-
border-top-left-radius: $code-font-size / 2;
|
77
|
-
border-top-right-radius: $code-font-size / 2;
|
78
|
-
padding: $code-font-size / 2 $code-font-size $code-font-size / 2 0;
|
79
|
-
color: $decorate-color;
|
80
|
-
font-weight: $bold-font-weight;
|
81
|
-
font-size: $base-font-size;
|
82
|
-
text-align: right;
|
83
|
-
text-transform: uppercase;
|
84
|
-
}
|
85
|
-
& > pre {
|
86
|
-
border-top-left-radius: 0;
|
87
|
-
border-top-right-radius: 0;
|
88
|
-
margin: 0;
|
89
|
-
& > code {
|
90
|
-
padding-top: 0;
|
91
|
-
}
|
92
|
-
}
|
116
|
+
dt {
|
117
|
+
font-weight: $bold-font-weight;
|
93
118
|
}
|
94
|
-
|
95
|
-
|
96
|
-
margin: $content-gap 0 $content-gap $spacing-unit;
|
97
|
-
li {
|
98
|
-
margin: 0;
|
99
|
-
p { margin: 0; }
|
100
|
-
}
|
119
|
+
dd {
|
120
|
+
margin-left: 2em;
|
101
121
|
}
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
122
|
+
}
|
123
|
+
table {
|
124
|
+
display: block;
|
125
|
+
width: 100%;
|
126
|
+
overflow-x: auto;
|
127
|
+
-webkit-overflow-scrolling: touch;
|
128
|
+
margin: $content-gap 0;
|
129
|
+
border-collapse: collapse;
|
130
|
+
th,
|
131
|
+
td {
|
132
|
+
border: 1px solid $border-color;
|
133
|
+
padding: $base-font-size * .5;
|
114
134
|
}
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
width: 100%;
|
119
|
-
overflow-x: auto;
|
120
|
-
-webkit-overflow-scrolling: touch;
|
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
|
-
}
|
135
|
+
thead,
|
136
|
+
tbody {
|
137
|
+
border: 1px solid $border-color;
|
133
138
|
}
|
134
|
-
|
135
|
-
|
136
|
-
border: 0 dashed $border-color;
|
137
|
-
border-top-width: 2px;
|
138
|
-
margin: $base-font-size 0;
|
139
|
+
tbody>tr:nth-child(even) {
|
140
|
+
background-color: $text-background-color;
|
139
141
|
}
|
142
|
+
}
|
143
|
+
hr {
|
144
|
+
border: 0 dashed $border-color;
|
145
|
+
border-top-width: 2px;
|
146
|
+
margin: $base-font-size 0;
|
147
|
+
}
|
140
148
|
}
|