jekyll-text-theme 2.0.2 → 2.1.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 +4 -4
- data/README.md +2 -2
- data/_data/locale.yml +12 -0
- data/_includes/analytics-providers/google.html +7 -9
- data/_includes/article-info.html +19 -35
- data/_includes/article-list.html +73 -0
- data/_includes/author-links.html +7 -0
- data/_includes/header.html +13 -9
- data/_includes/markdown-enhancements.html +3 -3
- data/_includes/paginator.html +73 -72
- data/_includes/scripts/archieve.js +57 -160
- data/_includes/scripts/aside/affix.js +2 -0
- data/_includes/scripts/lib/affix.js +8 -6
- data/_includes/scripts/lib/toc.js +3 -5
- data/_includes/scripts/search-data.js +14 -0
- data/_includes/scripts/search.js +177 -0
- data/_includes/scripts/utils.js +1 -1
- data/_includes/scripts/variables.html +6 -0
- data/_includes/search.html +24 -0
- data/_includes/snippets/is_collection.html +6 -0
- data/_includes/snippets/prepend-baseurl.html +4 -1
- data/_includes/snippets/prepend-path.html +1 -0
- data/_includes/svg/icon/social/npm.svg +9 -0
- data/_includes/tags.html +2 -2
- data/_layouts/archive.html +3 -9
- data/_layouts/base.html +1 -0
- data/_layouts/home.html +1 -28
- data/_layouts/landing.html +11 -4
- data/_layouts/page.html +18 -8
- data/_sass/common/_classes.scss +1 -0
- data/_sass/common/_function.scss +2 -2
- data/_sass/common/_reset.scss +5 -5
- data/_sass/common/_variables.scss +22 -14
- data/_sass/common/classes/_animation.scss +1 -1
- data/_sass/common/classes/_clearfix.scss +7 -3
- data/_sass/common/classes/_clickable.scss +13 -13
- data/_sass/common/classes/_display.scss +3 -0
- data/_sass/common/classes/_flex.scss +131 -131
- data/_sass/common/classes/_grid.scss +3 -3
- data/_sass/common/classes/_horizontal-rules.scss +3 -3
- data/_sass/common/classes/_overflow.scss +3 -3
- data/_sass/common/classes/_spacing.scss +24 -24
- data/_sass/common/classes/_transform.scss +1 -1
- data/_sass/common/classes/_transition.scss +1 -1
- data/_sass/common/classes/_user-select.scss +3 -3
- data/_sass/common/components/_button.scss +19 -9
- data/_sass/common/components/_card.scss +2 -2
- data/_sass/common/components/_item.scss +90 -0
- data/_sass/common/components/_menu.scss +8 -4
- data/_sass/common/components/_toc.scss +7 -2
- data/_sass/components/_article-content.scss +25 -18
- data/_sass/components/_article-info.scss +2 -2
- data/_sass/components/_article-list.scss +3 -0
- data/_sass/components/_author-links.scss +3 -0
- data/_sass/components/_author-profile.scss +5 -5
- data/_sass/components/_footer.scss +13 -5
- data/_sass/components/_header.scss +80 -46
- data/_sass/components/_main.scss +3 -3
- data/_sass/components/_search.scss +97 -0
- data/_sass/components/_tags.scss +3 -2
- data/_sass/layout/_archive.scss +5 -82
- data/_sass/layout/_article.scss +2 -2
- data/_sass/layout/_base.scss +1 -1
- data/_sass/layout/_home.scss +10 -68
- data/_sass/layout/_landing.scss +5 -6
- data/_sass/layout/_page.scss +34 -12
- data/_sass/skins/_chocolate.scss +2 -1
- data/_sass/skins/_dark.scss +3 -2
- data/_sass/skins/_default.scss +2 -1
- data/_sass/skins/_forest.scss +2 -1
- data/_sass/skins/_ocean.scss +2 -1
- data/_sass/skins/_orange.scss +2 -1
- data/_sass/skins/highlight/tomorrow/_highlight.scss +65 -65
- data/_sass/skins/highlight/tomorrow/_night-blue.scss +2 -2
- data/_sass/skins/highlight/tomorrow/_night-bright.scss +1 -1
- data/_sass/skins/highlight/tomorrow/_night-eighties.scss +7 -7
- data/_sass/skins/highlight/tomorrow/_night.scss +1 -1
- data/assets/css/main.scss +4 -1
- data/assets/search.js +3 -0
- metadata +14 -3
- data/_includes/scripts/article-list.html +0 -25
data/_sass/layout/_base.scss
CHANGED
data/_sass/layout/_home.scss
CHANGED
@@ -1,73 +1,15 @@
|
|
1
1
|
.layout--home {
|
2
|
-
.post-list {
|
3
|
-
& > article {
|
4
|
-
& > h1, h2 {
|
5
|
-
font-size: map-get($base, font-size-h3);
|
6
|
-
& > a {
|
7
|
-
@include link-colors($text-color-d, $main-color-1);
|
8
|
-
}
|
9
|
-
}
|
10
|
-
& > a {
|
11
|
-
font-size: map-get($base, font-size-sm);
|
12
|
-
}
|
13
|
-
padding-bottom: map-get($spacers, 4);
|
14
|
-
margin-bottom: map-get($spacers, 4);
|
15
|
-
&:not(:last-child) {
|
16
|
-
@include split-line(bottom);
|
17
|
-
}
|
18
|
-
}
|
19
|
-
.article__content {
|
20
|
-
font-size: map-get($base, font-size-sm);
|
21
|
-
line-height: map-get($base, line-height);
|
22
|
-
@include block-elements() {
|
23
|
-
margin-top: map-get($base, vertical-space);
|
24
|
-
margin-bottom: map-get($base, vertical-space);
|
25
|
-
}
|
26
|
-
@include heading-elements() {
|
27
|
-
margin-top: map-get($base, vertical-space) * 1.5;
|
28
|
-
}
|
29
|
-
|
30
|
-
h1,
|
31
|
-
h2,
|
32
|
-
h3 {
|
33
|
-
color: $text-color;
|
34
|
-
}
|
35
|
-
h1,
|
36
|
-
h2 {
|
37
|
-
padding: 0;
|
38
|
-
border: none;
|
39
|
-
}
|
40
|
-
h1 {
|
41
|
-
font-size: map-get($base, font-size-h1-xs);
|
42
|
-
}
|
43
|
-
h2 {
|
44
|
-
font-size: map-get($base, font-size-h2-xs);
|
45
|
-
}
|
46
|
-
h3 {
|
47
|
-
font-size: map-get($base, font-size-h3-xs);
|
48
|
-
}
|
49
|
-
h4 {
|
50
|
-
font-size: map-get($base, font-size-h4-xs);
|
51
|
-
}
|
52
|
-
h5 {
|
53
|
-
font-size: map-get($base, font-size-h5-xs);
|
54
|
-
}
|
55
|
-
h6 {
|
56
|
-
font-size: map-get($base, font-size-h6-xs);
|
57
|
-
}
|
58
|
-
img {
|
59
|
-
max-height: 12rem;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
.post-list__readmore {
|
63
|
-
font-size: map-get($base, font-size-sm);
|
64
|
-
}
|
65
|
-
}
|
66
|
-
|
67
2
|
.pagination {
|
68
3
|
margin: map-get($base, vertical-space-lg) 0;
|
69
|
-
|
70
|
-
|
71
|
-
|
4
|
+
}
|
5
|
+
.pagination__menu {
|
6
|
+
max-width: 100%;
|
7
|
+
@include overflow(auto);
|
8
|
+
}
|
9
|
+
.pagination__omit {
|
10
|
+
color: $text-color-l;
|
11
|
+
}
|
12
|
+
.items {
|
13
|
+
margin-top: map-get($spacers, 4) * 1.5;
|
72
14
|
}
|
73
15
|
}
|
data/_sass/layout/_landing.scss
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
.section {
|
9
9
|
text-align: center;
|
10
10
|
background-color: $text-background-color;
|
11
|
+
background-size: cover;
|
11
12
|
@include flexbox();
|
12
13
|
@include align-items(center);
|
13
14
|
h1 {
|
@@ -68,16 +69,14 @@
|
|
68
69
|
.overlay {
|
69
70
|
min-height: 40rem;
|
70
71
|
padding: map-get($spacers, 5) 0;
|
71
|
-
background-image: url(/docs/assets/images/cover1.jpeg);
|
72
|
-
background-size: cover;
|
73
72
|
@include media-breakpoint-down(md) {
|
74
73
|
min-height: 28rem;
|
75
74
|
}
|
76
75
|
.section__content {
|
77
76
|
min-width: 400px;
|
78
77
|
@include media-breakpoint-down(md) {
|
79
|
-
min-width: auto;
|
80
78
|
width: 100%;
|
79
|
+
min-width: auto;
|
81
80
|
padding: 0 map-get($spacers, 3);
|
82
81
|
}
|
83
82
|
}
|
@@ -87,18 +86,18 @@
|
|
87
86
|
}
|
88
87
|
|
89
88
|
.feature {
|
90
|
-
margin: map-get($spacers, 5);
|
91
89
|
padding: map-get($spacers, 5);
|
92
90
|
padding-bottom: 0;
|
91
|
+
margin: map-get($spacers, 5);
|
93
92
|
@include media-breakpoint-down(lg) {
|
94
|
-
margin: map-get($spacers, 3);
|
95
93
|
padding: map-get($spacers, 5) map-get($spacers, 3);
|
96
94
|
padding-bottom: 0;
|
95
|
+
margin: map-get($spacers, 3);
|
97
96
|
}
|
98
97
|
@include media-breakpoint-down(md) {
|
99
|
-
margin: map-get($spacers, 2) 0;
|
100
98
|
padding: map-get($spacers, 4) map-get($spacers, 3);
|
101
99
|
padding-bottom: 0;
|
100
|
+
margin: map-get($spacers, 2) 0;
|
102
101
|
}
|
103
102
|
}
|
104
103
|
}
|
data/_sass/layout/_page.scss
CHANGED
@@ -22,8 +22,8 @@
|
|
22
22
|
display: none;
|
23
23
|
float: right;
|
24
24
|
& > aside {
|
25
|
-
width: map-get($layout, aside-width);
|
26
25
|
position: absolute;
|
26
|
+
width: map-get($layout, aside-width);
|
27
27
|
overflow: hidden;
|
28
28
|
}
|
29
29
|
@include media-breakpoint-down(lg) {
|
@@ -33,8 +33,8 @@
|
|
33
33
|
}
|
34
34
|
|
35
35
|
.page__content {
|
36
|
-
margin: 0 auto;
|
37
36
|
padding-bottom: map-get($layout, footer-height);
|
37
|
+
margin: 0 auto;
|
38
38
|
}
|
39
39
|
|
40
40
|
.article__header {
|
@@ -56,10 +56,10 @@
|
|
56
56
|
|
57
57
|
.page__actions {
|
58
58
|
position: absolute;
|
59
|
-
left: 1rem;
|
60
59
|
bottom: 1rem;
|
60
|
+
left: 1rem;
|
61
|
+
z-index: map-get($z-index, actions);
|
61
62
|
display: none;
|
62
|
-
z-index: 996;
|
63
63
|
}
|
64
64
|
|
65
65
|
.sidebar-button {
|
@@ -67,13 +67,13 @@
|
|
67
67
|
}
|
68
68
|
|
69
69
|
.page__sidebar {
|
70
|
+
z-index: map-get($z-index, sidebar);
|
70
71
|
display: block;
|
72
|
+
float: left;
|
71
73
|
width: 80%;
|
72
74
|
max-width: map-get($layout, sidebar-width);
|
73
|
-
float: left;
|
74
75
|
height: 100%;
|
75
76
|
background-color: $background-color;
|
76
|
-
z-index: 998;
|
77
77
|
@include split-line(right);
|
78
78
|
@include transition(transform .4s);
|
79
79
|
@include overflow(auto);
|
@@ -83,15 +83,15 @@
|
|
83
83
|
}
|
84
84
|
|
85
85
|
.page__mask {
|
86
|
-
background-color: $mask-color;
|
87
86
|
position: absolute;
|
88
87
|
top: 0;
|
89
|
-
left: 0;
|
90
88
|
right: 0;
|
91
89
|
bottom: 0;
|
92
|
-
|
90
|
+
left: 0;
|
91
|
+
z-index: map-get($z-index, mask);
|
93
92
|
display: none;
|
94
93
|
cursor: pointer;
|
94
|
+
background-color: $mask-color;
|
95
95
|
}
|
96
96
|
|
97
97
|
.page__aside {
|
@@ -115,13 +115,12 @@
|
|
115
115
|
}
|
116
116
|
}
|
117
117
|
.col-aside {
|
118
|
-
width: map-get($layout, aside-width);
|
119
118
|
position: relative;
|
120
119
|
display: block;
|
121
|
-
|
120
|
+
width: map-get($layout, aside-width);
|
121
|
+
& > aside {
|
122
122
|
&.fixed {
|
123
123
|
position: fixed;
|
124
|
-
z-index: 2;
|
125
124
|
-webkit-font-smoothing: subpixel-antialiased;
|
126
125
|
}
|
127
126
|
}
|
@@ -151,4 +150,27 @@
|
|
151
150
|
}
|
152
151
|
}
|
153
152
|
}
|
153
|
+
.page__content {
|
154
|
+
display: block;
|
155
|
+
}
|
156
|
+
.page__search-panel {
|
157
|
+
position: absolute;
|
158
|
+
top: 0;
|
159
|
+
right: 0;
|
160
|
+
bottom: 0;
|
161
|
+
left: 0;
|
162
|
+
z-index: map-get($z-index, search);
|
163
|
+
display: none;
|
164
|
+
color: $text-color;
|
165
|
+
background-color: $background-color;
|
166
|
+
@include overflow(auto);
|
167
|
+
}
|
168
|
+
&.show-search-panel {
|
169
|
+
.page__main {
|
170
|
+
@include overflow(hidden);
|
171
|
+
}
|
172
|
+
.page__search-panel {
|
173
|
+
display: block;
|
174
|
+
}
|
175
|
+
}
|
154
176
|
}
|
data/_sass/skins/_chocolate.scss
CHANGED
data/_sass/skins/_dark.scss
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
///
|
6
6
|
|
7
7
|
// main colors
|
8
|
-
$main-color-1: #
|
8
|
+
$main-color-1: #ff9500;
|
9
9
|
$text-color-1: rgba(#fff, .8);
|
10
10
|
|
11
11
|
$main-color-2: #ff006a;
|
@@ -62,6 +62,7 @@ $twitter-color: #1da1f2;
|
|
62
62
|
$douban-color: #42bd56;
|
63
63
|
$github-color: #000;
|
64
64
|
$linkedin-color: #1074af;
|
65
|
+
$npm-color: #fff;
|
65
66
|
|
66
67
|
// highlight colors
|
67
|
-
@import
|
68
|
+
@import "skins/highlight/tomorrow-night";
|
data/_sass/skins/_default.scss
CHANGED
data/_sass/skins/_forest.scss
CHANGED
data/_sass/skins/_ocean.scss
CHANGED
data/_sass/skins/_orange.scss
CHANGED
@@ -1,74 +1,74 @@
|
|
1
1
|
figure.highlight::before {
|
2
|
-
background-color: $highlight-background !important;
|
3
2
|
color: $highlight-comment !important;
|
3
|
+
background-color: $highlight-background !important;
|
4
4
|
}
|
5
5
|
pre.lineno {
|
6
6
|
color: $highlight-comment !important;
|
7
7
|
}
|
8
8
|
.highlight > pre {
|
9
|
-
background-color: $highlight-background !important;
|
10
9
|
color: $highlight-foreground;
|
11
|
-
|
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
|
-
.
|
72
|
-
.
|
73
|
-
.
|
10
|
+
background-color: $highlight-background !important;
|
11
|
+
.c { color: $highlight-comment; } /* Comment */
|
12
|
+
.err { color: $highlight-red; } /* Error */
|
13
|
+
.k { color: $highlight-purple; } /* Keyword */
|
14
|
+
.l { color: $highlight-orange; } /* Literal */
|
15
|
+
.n { color: $highlight-foreground; } /* Name */
|
16
|
+
.o { color: $highlight-aqua; } /* Operator */
|
17
|
+
.p { color: $highlight-foreground; } /* Punctuation */
|
18
|
+
.cm { color: $highlight-comment; } /* Comment.Multiline */
|
19
|
+
.cp { color: $highlight-comment; } /* Comment.Preproc */
|
20
|
+
.c1 { color: $highlight-comment; } /* Comment.Single */
|
21
|
+
.cs { color: $highlight-comment; } /* Comment.Special */
|
22
|
+
.gd { color: $highlight-red; } /* Generic.Deleted */
|
23
|
+
.ge { font-style: italic; } /* Generic.Emph */
|
24
|
+
.gh { font-weight: bold; color: $highlight-foreground; } /* Generic.Heading */
|
25
|
+
.gi { color: $highlight-green; } /* Generic.Inserted */
|
26
|
+
.gp { font-weight: bold; color: $highlight-comment; } /* Generic.Prompt */
|
27
|
+
.gs { font-weight: bold; } /* Generic.Strong */
|
28
|
+
.gu { font-weight: bold; color: $highlight-aqua; } /* Generic.Subheading */
|
29
|
+
.kc { color: $highlight-purple; } /* Keyword.Constant */
|
30
|
+
.kd { color: $highlight-purple; } /* Keyword.Declaration */
|
31
|
+
.kn { color: $highlight-aqua; } /* Keyword.Namespace */
|
32
|
+
.kp { color: $highlight-purple; } /* Keyword.Pseudo */
|
33
|
+
.kr { color: $highlight-purple; } /* Keyword.Reserved */
|
34
|
+
.kt { color: $highlight-yellow; } /* Keyword.Type */
|
35
|
+
.ld { color: $highlight-green; } /* Literal.Date */
|
36
|
+
.m { color: $highlight-orange; } /* Literal.Number */
|
37
|
+
.s { color: $highlight-green; } /* Literal.String */
|
38
|
+
.na { color: $highlight-blue; } /* Name.Attribute */
|
39
|
+
.nb { color: $highlight-foreground; } /* Name.Builtin */
|
40
|
+
.nc { color: $highlight-yellow; } /* Name.Class */
|
41
|
+
.no { color: $highlight-red; } /* Name.Constant */
|
42
|
+
.nd { color: $highlight-aqua; } /* Name.Decorator */
|
43
|
+
.ni { color: $highlight-foreground; } /* Name.Entity */
|
44
|
+
.ne { color: $highlight-red; } /* Name.Exception */
|
45
|
+
.nf { color: $highlight-blue; } /* Name.Function */
|
46
|
+
.nl { color: $highlight-foreground; } /* Name.Label */
|
47
|
+
.nn { color: $highlight-yellow; } /* Name.Namespace */
|
48
|
+
.nx { color: $highlight-blue; } /* Name.Other */
|
49
|
+
.py { color: $highlight-foreground; } /* Name.Property */
|
50
|
+
.nt { color: $highlight-aqua; } /* Name.Tag */
|
51
|
+
.nv { color: $highlight-red; } /* Name.Variable */
|
52
|
+
.ow { color: $highlight-aqua; } /* Operator.Word */
|
53
|
+
.w { color: $highlight-foreground; } /* Text.Whitespace */
|
54
|
+
.mf { color: $highlight-orange; } /* Literal.Number.Float */
|
55
|
+
.mh { color: $highlight-orange; } /* Literal.Number.Hex */
|
56
|
+
.mi { color: $highlight-orange; } /* Literal.Number.Integer */
|
57
|
+
.mo { color: $highlight-orange; } /* Literal.Number.Oct */
|
58
|
+
.sb { color: $highlight-green; } /* Literal.String.Backtick */
|
59
|
+
.sc { color: $highlight-foreground; } /* Literal.String.Char */
|
60
|
+
.sd { color: $highlight-comment; } /* Literal.String.Doc */
|
61
|
+
.s2 { color: $highlight-green; } /* Literal.String.Double */
|
62
|
+
.se { color: $highlight-orange; } /* Literal.String.Escape */
|
63
|
+
.sh { color: $highlight-green; } /* Literal.String.Heredoc */
|
64
|
+
.si { color: $highlight-orange; } /* Literal.String.Interpol */
|
65
|
+
.sx { color: $highlight-green; } /* Literal.String.Other */
|
66
|
+
.sr { color: $highlight-green; } /* Literal.String.Regex */
|
67
|
+
.s1 { color: $highlight-green; } /* Literal.String.Single */
|
68
|
+
.ss { color: $highlight-green; } /* Literal.String.Symbol */
|
69
|
+
.bp { color: $highlight-foreground; } /* Name.Builtin.Pseudo */
|
70
|
+
.vc { color: $highlight-red; } /* Name.Variable.Class */
|
71
|
+
.vg { color: $highlight-red; } /* Name.Variable.Global */
|
72
|
+
.vi { color: $highlight-red; } /* Name.Variable.Instance */
|
73
|
+
.il { color: $highlight-orange; } /* Literal.Number.Integer.Long */
|
74
74
|
}
|