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
@@ -1,23 +1,25 @@
|
|
1
1
|
.main {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
margin: 0 auto;
|
3
|
+
padding: 0 $spacing-unit;
|
4
|
+
max-width: $content-max-width;
|
5
|
+
@include media-query($on-laptop) {
|
6
|
+
padding: 0 $spacing-unit / 2;
|
7
|
+
}
|
8
8
|
}
|
9
|
+
|
9
10
|
.has-toc .main {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
max-width: $content-max-width + $aside-width;
|
12
|
+
@include media-query($on-laptop) {
|
13
|
+
max-width: $content-max-width;
|
14
|
+
padding: 0 $spacing-unit / 2;
|
15
|
+
}
|
15
16
|
}
|
17
|
+
|
16
18
|
.inline-list {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
&>li {
|
20
|
+
display: inline-block;
|
21
|
+
list-style-type: none;
|
22
|
+
vertical-align: bottom;
|
23
|
+
margin: $content-gap / 6 0;
|
24
|
+
}
|
23
25
|
}
|
data/_sass/mixins/_link.scss
CHANGED
@@ -1,60 +1,67 @@
|
|
1
1
|
@mixin link-normal {
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
&,
|
3
|
+
&:visited {
|
4
|
+
@content;
|
5
|
+
}
|
5
6
|
}
|
6
7
|
|
7
8
|
@mixin link-emphasize {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
&.hover,
|
10
|
+
&.active,
|
11
|
+
&.focus,
|
12
|
+
&:hover,
|
13
|
+
&:active,
|
14
|
+
&:focus {
|
15
|
+
@content;
|
16
|
+
}
|
12
17
|
}
|
13
18
|
|
14
19
|
@mixin link-emphasize-no-focus {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
20
|
+
&.hover,
|
21
|
+
&.active,
|
22
|
+
&:hover,
|
23
|
+
&:active {
|
24
|
+
@content;
|
25
|
+
}
|
19
26
|
}
|
20
27
|
|
21
28
|
@mixin link-colors($nc, $nbc, $ec, $ebc) {
|
29
|
+
@include link-normal {
|
30
|
+
color: $nc;
|
31
|
+
background-color: $nbc;
|
32
|
+
}
|
33
|
+
@include link-emphasize {
|
34
|
+
color: $ec;
|
35
|
+
background-color: $ebc;
|
36
|
+
}
|
37
|
+
svg {
|
22
38
|
@include link-normal {
|
23
|
-
|
24
|
-
|
39
|
+
path {
|
40
|
+
fill: $nc;
|
41
|
+
}
|
25
42
|
}
|
26
43
|
@include link-emphasize {
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
svg {
|
31
|
-
@include link-normal {
|
32
|
-
path {
|
33
|
-
fill: $nc;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
@include link-emphasize {
|
37
|
-
path {
|
38
|
-
fill: $ec;
|
39
|
-
}
|
40
|
-
}
|
44
|
+
path {
|
45
|
+
fill: $ec;
|
46
|
+
}
|
41
47
|
}
|
48
|
+
}
|
42
49
|
}
|
43
50
|
|
44
51
|
@mixin link-text-colors($nc, $ec) {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
52
|
+
@include link-normal {
|
53
|
+
color: $nc;
|
54
|
+
}
|
55
|
+
@include link-emphasize {
|
56
|
+
color: $ec;
|
57
|
+
}
|
51
58
|
}
|
52
59
|
|
53
60
|
@mixin link-background-colors($nbc, $ebc) {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
61
|
+
@include link-normal {
|
62
|
+
background-color: $nbc;
|
63
|
+
}
|
64
|
+
@include link-emphasize {
|
65
|
+
background-color: $ebc;
|
66
|
+
}
|
60
67
|
}
|
data/_sass/mixins/_media.scss
CHANGED
data/_sass/mixins/_prefix.scss
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
@mixin transition($value) {
|
2
|
-
|
3
|
-
|
2
|
+
-webkit-transition: $value;
|
3
|
+
transition: $value;
|
4
4
|
}
|
5
5
|
|
6
6
|
@mixin transform($value) {
|
7
|
-
|
8
|
-
|
7
|
+
-webkit-transform: $value;
|
8
|
+
transform: $value;
|
9
9
|
}
|
10
10
|
|
11
11
|
@mixin animation($value) {
|
12
|
-
|
13
|
-
|
12
|
+
-webkit-animation: $value;
|
13
|
+
animation: $value;
|
14
14
|
}
|
data/_sass/settings/_colors.scss
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
@import './colors/_colors.default.scss';
|
2
2
|
// @import './colors/_colors.dark.scss';
|
3
3
|
// @import './colors/_colors.forest.scss';
|
4
|
-
// @import './colors/_colors.ocean.scss';
|
4
|
+
// @import './colors/_colors.ocean.scss';
|
5
|
+
// @import './colors/_colors.chocolate.scss';
|
6
|
+
// @import './colors/_colors.orange.scss';
|
@@ -2,71 +2,70 @@
|
|
2
2
|
* Syntax highlighting styles
|
3
3
|
*/
|
4
4
|
pre {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
background-color: $text-background-color;
|
6
|
+
code {
|
7
|
+
color: $text-color;
|
8
|
+
}
|
9
9
|
}
|
10
10
|
|
11
11
|
.highlight {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
12
|
+
.c { color: #998; font-style: italic } // Comment
|
13
|
+
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
14
|
+
.k { font-weight: bold } // Keyword
|
15
|
+
.o { font-weight: bold } // Operator
|
16
|
+
.cm { color: #998; font-style: italic } // Comment.Multiline
|
17
|
+
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
18
|
+
.c1 { color: #998; font-style: italic } // Comment.Single
|
19
|
+
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
20
|
+
.gd { color: #000; background-color: #fdd } // Generic.Deleted
|
21
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
22
|
+
.ge { font-style: italic } // Generic.Emph
|
23
|
+
.gr { color: #a00 } // Generic.Error
|
24
|
+
.gh { color: #999 } // Generic.Heading
|
25
|
+
.gi { color: #000; background-color: #dfd } // Generic.Inserted
|
26
|
+
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
|
27
|
+
.go { color: #888 } // Generic.Output
|
28
|
+
.gp { color: #555 } // Generic.Prompt
|
29
|
+
.gs { font-weight: bold } // Generic.Strong
|
30
|
+
.gu { color: #aaa } // Generic.Subheading
|
31
|
+
.gt { color: #a00 } // Generic.Traceback
|
32
|
+
.kc { font-weight: bold } // Keyword.Constant
|
33
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
34
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
35
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
36
|
+
.kt { color: #458; font-weight: bold } // Keyword.Type
|
37
|
+
.m { color: #099 } // Literal.Number
|
38
|
+
.s { color: #d14 } // Literal.String
|
39
|
+
.na { color: #008080 } // Name.Attribute
|
40
|
+
.nb { color: #0086B3 } // Name.Builtin
|
41
|
+
.nc { color: #458; font-weight: bold } // Name.Class
|
42
|
+
.no { color: #008080 } // Name.Constant
|
43
|
+
.ni { color: #800080 } // Name.Entity
|
44
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
45
|
+
.nf { color: #900; font-weight: bold } // Name.Function
|
46
|
+
.nn { color: #555 } // Name.Namespace
|
47
|
+
.nt { color: #000080 } // Name.Tag
|
48
|
+
.nv { color: #008080 } // Name.Variable
|
49
|
+
.ow { font-weight: bold } // Operator.Word
|
50
|
+
.w { color: #bbb } // Text.Whitespace
|
51
|
+
.mf { color: #099 } // Literal.Number.Float
|
52
|
+
.mh { color: #099 } // Literal.Number.Hex
|
53
|
+
.mi { color: #099 } // Literal.Number.Integer
|
54
|
+
.mo { color: #099 } // Literal.Number.Oct
|
55
|
+
.sb { color: #d14 } // Literal.String.Backtick
|
56
|
+
.sc { color: #d14 } // Literal.String.Char
|
57
|
+
.sd { color: #d14 } // Literal.String.Doc
|
58
|
+
.s2 { color: #d14 } // Literal.String.Double
|
59
|
+
.se { color: #d14 } // Literal.String.Escape
|
60
|
+
.sh { color: #d14 } // Literal.String.Heredoc
|
61
|
+
.si { color: #d14 } // Literal.String.Interpol
|
62
|
+
.sx { color: #d14 } // Literal.String.Other
|
63
|
+
.sr { color: #009926 } // Literal.String.Regex
|
64
|
+
.s1 { color: #d14 } // Literal.String.Single
|
65
|
+
.ss { color: #990073 } // Literal.String.Symbol
|
66
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
67
|
+
.vc { color: #008080 } // Name.Variable.Class
|
68
|
+
.vg { color: #008080 } // Name.Variable.Global
|
69
|
+
.vi { color: #008080 } // Name.Variable.Instance
|
70
|
+
.il { color: #099 } // Literal.Number.Integer.Long
|
72
71
|
}
|
data/assets/css/blog.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-text-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kitian616
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -167,15 +167,16 @@ files:
|
|
167
167
|
- _sass/base/_text.scss
|
168
168
|
- _sass/blog/_layout.base.scss
|
169
169
|
- _sass/blog/_layout.default.scss
|
170
|
-
- _sass/blog/_layout.page.scss
|
171
170
|
- _sass/blog/_layout.post.scss
|
172
171
|
- _sass/blog/_page.all.scss
|
173
172
|
- _sass/blog/_page.error-404.scss
|
174
173
|
- _sass/blog/_page.index.scss
|
174
|
+
- _sass/colors/_colors.chocolate.scss
|
175
175
|
- _sass/colors/_colors.dark.scss
|
176
176
|
- _sass/colors/_colors.default.scss
|
177
177
|
- _sass/colors/_colors.forest.scss
|
178
178
|
- _sass/colors/_colors.ocean.scss
|
179
|
+
- _sass/colors/_colors.orange.scss
|
179
180
|
- _sass/components/_article.content.scss
|
180
181
|
- _sass/components/_article.data.scss
|
181
182
|
- _sass/components/_follow-me.scss
|
@@ -1 +0,0 @@
|
|
1
|
-
|