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/base/_animate.scss
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
@keyframes fade-in {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
from {
|
3
|
+
opacity: 0;
|
4
|
+
}
|
5
|
+
to {
|
6
|
+
opacity: 1;
|
7
|
+
}
|
8
8
|
}
|
9
9
|
|
10
10
|
@keyframes fade-in-down {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
from {
|
12
|
+
opacity: 0;
|
13
|
+
@include transform(translateY(-$spacing-unit));
|
14
|
+
}
|
15
|
+
to {
|
16
|
+
opacity: 1;
|
17
|
+
@include transform(translateY(0));
|
18
|
+
}
|
19
19
|
}
|
data/_sass/base/_base.scss
CHANGED
@@ -1,55 +1,83 @@
|
|
1
1
|
/**
|
2
2
|
* Reset some basic elements
|
3
3
|
*/
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
|
5
|
+
body,
|
6
|
+
h1,
|
7
|
+
h2,
|
8
|
+
h3,
|
9
|
+
h4,
|
10
|
+
h5,
|
11
|
+
h6,
|
12
|
+
p,
|
13
|
+
blockquote,
|
14
|
+
pre,
|
15
|
+
hr,
|
16
|
+
dl,
|
17
|
+
dd,
|
18
|
+
ol,
|
19
|
+
ul,
|
20
|
+
figure {
|
21
|
+
margin: 0;
|
22
|
+
padding: 0;
|
9
23
|
}
|
10
|
-
|
11
|
-
|
12
|
-
|
24
|
+
|
25
|
+
h1,
|
26
|
+
h2,
|
27
|
+
h3,
|
28
|
+
h4,
|
29
|
+
h5,
|
30
|
+
h6,
|
31
|
+
p,
|
32
|
+
blockquote,
|
33
|
+
pre,
|
34
|
+
ul,
|
35
|
+
ol,
|
36
|
+
dl,
|
37
|
+
figure,
|
13
38
|
%vertical-rhythm {
|
14
|
-
|
39
|
+
margin: $base-font-size / 2 0;
|
15
40
|
}
|
16
41
|
|
17
42
|
html {
|
18
|
-
|
43
|
+
height: 100%;
|
19
44
|
}
|
45
|
+
|
20
46
|
body {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
47
|
+
height: 100%;
|
48
|
+
::-moz-selection {
|
49
|
+
background: $select-color;
|
50
|
+
}
|
51
|
+
::-webkit-selection {
|
52
|
+
background: $select-color;
|
53
|
+
}
|
54
|
+
::selection {
|
55
|
+
background: $select-color;
|
56
|
+
}
|
31
57
|
}
|
32
58
|
|
33
59
|
.clearfix {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
60
|
+
&:after {
|
61
|
+
content: "";
|
62
|
+
display: table;
|
63
|
+
clear: both;
|
64
|
+
}
|
39
65
|
}
|
66
|
+
|
40
67
|
.left {
|
41
|
-
|
68
|
+
float: left;
|
42
69
|
}
|
70
|
+
|
43
71
|
.right {
|
44
|
-
|
72
|
+
float: right;
|
45
73
|
}
|
46
74
|
|
47
75
|
button {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
76
|
+
cursor: pointer;
|
77
|
+
outline: none;
|
78
|
+
background-color: transparent;
|
79
|
+
padding: 0;
|
80
|
+
margin: 0;
|
81
|
+
border-width: 0;
|
82
|
+
font-size: $base-font-size;
|
55
83
|
}
|
data/_sass/base/_image&icon.scss
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
/**
|
2
2
|
* Figures
|
3
3
|
*/
|
4
|
-
|
5
|
-
|
4
|
+
|
5
|
+
figure>img {
|
6
|
+
display: block;
|
6
7
|
}
|
7
8
|
|
8
9
|
figcaption {
|
9
|
-
|
10
|
+
font-size: $small-font-size;
|
10
11
|
}
|
11
12
|
|
13
|
+
|
12
14
|
/**
|
13
15
|
* Icons
|
14
16
|
*/
|
17
|
+
|
15
18
|
.icon {
|
19
|
+
display: block;
|
20
|
+
>svg {
|
16
21
|
display: block;
|
17
|
-
|
18
|
-
display: block;
|
19
|
-
}
|
22
|
+
}
|
20
23
|
}
|
data/_sass/base/_links.scss
CHANGED
@@ -1,84 +1,77 @@
|
|
1
1
|
%cursor-pointer {
|
2
|
-
|
2
|
+
cursor: pointer;
|
3
3
|
}
|
4
|
+
|
4
5
|
%cursor-default {
|
5
|
-
|
6
|
+
cursor: default;
|
6
7
|
}
|
8
|
+
|
7
9
|
%cursor-not-allowed {
|
8
|
-
|
10
|
+
cursor: not-allowed;
|
9
11
|
}
|
10
12
|
|
11
13
|
a {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
14
|
+
font-weight: $bold-font-weight;
|
15
|
+
text-decoration: none;
|
16
|
+
@include link-normal {
|
17
|
+
color: $main-color-1;
|
18
|
+
}
|
19
|
+
@include link-emphasize {
|
20
|
+
text-decoration: underline;
|
21
|
+
color: $main-color-1;
|
22
|
+
}
|
23
|
+
@include transition(all .8s ease 0s);
|
22
24
|
}
|
23
25
|
|
24
26
|
.round-button {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
font-weight: $bold-font-weight;
|
28
|
+
line-height: 1;
|
29
|
+
@include flexbox;
|
30
|
+
@include justify-content(center);
|
31
|
+
@include align-items(center);
|
32
|
+
box-sizing: border-box;
|
33
|
+
width: $base-font-size * 2;
|
34
|
+
height: $base-font-size * 2;
|
35
|
+
text-decoration: none;
|
36
|
+
border-radius: 50%;
|
37
|
+
@extend %cursor-pointer;
|
38
|
+
@include link-colors( $text-color-3, $main-color-3, $text-color-1, $main-color-1);
|
39
|
+
@include link-normal {
|
33
40
|
text-decoration: none;
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
svg {
|
48
|
-
width: $base-font-size;
|
49
|
-
height: $base-font-size;
|
50
|
-
}
|
51
|
-
&.inactive {
|
52
|
-
@extend %cursor-not-allowed;
|
53
|
-
@include link-colors(
|
54
|
-
rgba($text-color-3, .5), $main-color-3,
|
55
|
-
rgba($text-color-3, .5), $main-color-3
|
56
|
-
);
|
57
|
-
}
|
41
|
+
}
|
42
|
+
@include link-emphasize {
|
43
|
+
text-decoration: none;
|
44
|
+
}
|
45
|
+
@include transition(all .8s ease 0s);
|
46
|
+
svg {
|
47
|
+
width: $base-font-size;
|
48
|
+
height: $base-font-size;
|
49
|
+
}
|
50
|
+
&.inactive {
|
51
|
+
@extend %cursor-not-allowed;
|
52
|
+
@include link-colors( rgba($text-color-3, .5), $main-color-3, rgba($text-color-3, .5), $main-color-3);
|
53
|
+
}
|
58
54
|
}
|
59
55
|
|
60
56
|
.round-rect-button {
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
57
|
+
font-weight: $bold-font-weight;
|
58
|
+
line-height: 1;
|
59
|
+
display: block;
|
60
|
+
box-sizing: border-box;
|
61
|
+
padding: $base-font-size * .4 $base-font-size * .6;
|
62
|
+
text-decoration: none;
|
63
|
+
border-radius: $base-font-size * 2;
|
64
|
+
@extend %cursor-pointer;
|
65
|
+
@include link-colors( $text-color-3, $main-color-3, $text-color-1, $main-color-1);
|
66
|
+
@include link-normal {
|
67
|
+
text-decoration: none;
|
68
|
+
}
|
69
|
+
@include link-emphasize {
|
66
70
|
text-decoration: none;
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
@include link-normal {
|
74
|
-
text-decoration: none;
|
75
|
-
}
|
76
|
-
@include link-emphasize {
|
77
|
-
text-decoration: none;
|
78
|
-
}
|
79
|
-
@include transition(all .8s ease 0s);
|
80
|
-
svg {
|
81
|
-
width: $base-font-size;
|
82
|
-
height: $base-font-size;
|
83
|
-
}
|
71
|
+
}
|
72
|
+
@include transition(all .8s ease 0s);
|
73
|
+
svg {
|
74
|
+
width: $base-font-size;
|
75
|
+
height: $base-font-size;
|
76
|
+
}
|
84
77
|
}
|
data/_sass/base/_text.scss
CHANGED
@@ -1,50 +1,56 @@
|
|
1
1
|
body {
|
2
|
-
|
3
|
-
|
2
|
+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
|
3
|
+
color: $text-color;
|
4
4
|
}
|
5
5
|
|
6
|
-
h1,
|
7
|
-
|
6
|
+
h1,
|
7
|
+
h2,
|
8
|
+
h3,
|
9
|
+
h4,
|
10
|
+
h5,
|
11
|
+
h6,
|
12
|
+
strong {
|
13
|
+
font-weight: $bold-font-weight;
|
8
14
|
}
|
9
15
|
|
10
16
|
h1 {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
17
|
+
font-size: $h1-font-size;
|
18
|
+
color: $text-color-d;
|
19
|
+
@include media-query($on-palm) {
|
20
|
+
font-size: $h1-font-size-palm;
|
21
|
+
}
|
16
22
|
}
|
17
23
|
|
18
24
|
h2 {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
25
|
+
font-size: $h2-font-size;
|
26
|
+
color: $text-color-d;
|
27
|
+
@include media-query($on-palm) {
|
28
|
+
font-size: $h2-font-size-palm;
|
29
|
+
}
|
24
30
|
}
|
25
31
|
|
26
32
|
h3 {
|
27
|
-
|
28
|
-
|
33
|
+
font-size: $h3-font-size;
|
34
|
+
color: $text-color-d;
|
29
35
|
}
|
30
36
|
|
31
37
|
h4 {
|
32
|
-
|
33
|
-
|
38
|
+
font-size: $h4-font-size;
|
39
|
+
color: $text-color;
|
34
40
|
}
|
35
41
|
|
36
42
|
h5 {
|
37
|
-
|
38
|
-
|
43
|
+
font-size: $h5-font-size;
|
44
|
+
color: $text-color;
|
39
45
|
}
|
40
46
|
|
41
47
|
h6 {
|
42
|
-
|
43
|
-
|
48
|
+
font-size: $h6-font-size;
|
49
|
+
color: $text-color-l;
|
44
50
|
}
|
45
51
|
|
46
52
|
pre,
|
47
53
|
code {
|
48
|
-
|
49
|
-
|
54
|
+
font-family: $code-font-family;
|
55
|
+
font-size: $code-font-size;
|
50
56
|
}
|
@@ -1,20 +1,21 @@
|
|
1
1
|
.m-page-stage {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
7
|
}
|
8
|
+
|
8
9
|
.m-page-content {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
padding: $content-gap * 3 0 $content-gap * 2;
|
11
|
+
@include media-query($on-laptop) {
|
12
|
+
padding: $content-gap * 2 0;
|
13
|
+
}
|
14
|
+
@include media-query($on-palm) {
|
15
|
+
padding: $content-gap 0;
|
16
|
+
}
|
16
17
|
}
|
18
|
+
|
17
19
|
.m-page-main {
|
18
|
-
|
20
|
+
margin: 0 auto;
|
19
21
|
}
|
20
|
-
|
@@ -1,66 +1,67 @@
|
|
1
1
|
.m-post {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}
|
2
|
+
&>div {
|
3
|
+
display: block;
|
4
|
+
@include media-query($on-laptop) {
|
5
|
+
display: block;
|
7
6
|
}
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
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;
|
19
17
|
}
|
18
|
+
}
|
20
19
|
}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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;
|
30
29
|
}
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
& > .article-license {
|
36
|
-
position: relative;
|
37
|
-
max-width: 500px;
|
38
|
-
margin: 1.5em 0;
|
39
|
-
}
|
30
|
+
}
|
31
|
+
footer {
|
32
|
+
&>span {
|
33
|
+
color: $text-color-l;
|
40
34
|
}
|
35
|
+
&>.article-license {
|
36
|
+
position: relative;
|
37
|
+
max-width: 500px;
|
38
|
+
margin: 1.5em 0;
|
39
|
+
}
|
40
|
+
}
|
41
41
|
}
|
42
|
+
|
42
43
|
.has-toc {
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
}
|
60
|
-
}
|
61
|
-
@include media-query($on-laptop) {
|
62
|
-
display: none;
|
63
|
-
}
|
44
|
+
.m-post {
|
45
|
+
&>div {
|
46
|
+
@include flexbox;
|
47
|
+
@include media-query($on-laptop) {
|
48
|
+
display: block;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
.col-2 {
|
52
|
+
width: $aside-width;
|
53
|
+
position: relative;
|
54
|
+
display: block;
|
55
|
+
&>aside {
|
56
|
+
&.fixed {
|
57
|
+
position: fixed;
|
58
|
+
z-index: 2;
|
59
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
64
60
|
}
|
61
|
+
}
|
62
|
+
@include media-query($on-laptop) {
|
63
|
+
display: none;
|
64
|
+
}
|
65
65
|
}
|
66
|
+
}
|
66
67
|
}
|