jekyll-theme-chirpy 5.2.1 → 5.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/_data/assets/cross_origin.yml +2 -2
- data/_data/assets/self_host.yml +1 -1
- data/_data/locales/bg-BG.yml +83 -0
- data/_data/locales/de-DE.yml +82 -0
- data/_data/locales/en.yml +10 -0
- data/_data/locales/hu-HU.yml +81 -0
- data/_data/locales/ko-KR.yml +7 -0
- data/_data/locales/pt-BR.yml +1 -1
- data/_data/locales/tr-TR.yml +79 -0
- data/_data/locales/zh-CN.yml +8 -1
- data/_includes/comments/giscus.html +1 -1
- data/_includes/datetime.html +2 -8
- data/_includes/footer.html +26 -26
- data/_includes/head.html +0 -5
- data/_includes/js-selector.html +1 -5
- data/_includes/post-nav.html +4 -4
- data/_includes/post-paginator.html +1 -1
- data/_includes/post-sharing.html +3 -3
- data/_includes/read-time.html +3 -3
- data/_includes/refactor-content.html +10 -6
- data/_includes/related-posts.html +3 -3
- data/_includes/search-loader.html +1 -1
- data/_includes/sidebar.html +3 -3
- data/_includes/toc.html +1 -1
- data/_includes/topbar.html +9 -9
- data/_includes/trending-tags.html +1 -1
- data/_includes/update-list.html +1 -1
- data/_layouts/archives.html +23 -37
- data/_layouts/categories.html +12 -14
- data/_layouts/category.html +0 -2
- data/_layouts/default.html +6 -9
- data/_layouts/home.html +1 -3
- data/_layouts/page.html +6 -7
- data/_layouts/post.html +22 -24
- data/_layouts/tag.html +0 -2
- data/_sass/addon/commons.scss +131 -136
- data/_sass/addon/module.scss +5 -2
- data/_sass/addon/syntax.scss +15 -20
- data/_sass/addon/variables.scss +0 -4
- data/_sass/colors/dark-syntax.scss +17 -18
- data/_sass/colors/dark-typography.scss +22 -22
- data/_sass/colors/light-syntax.scss +2 -3
- data/_sass/colors/light-typography.scss +13 -14
- data/_sass/jekyll-theme-chirpy.scss +1 -1
- data/_sass/layout/archives.scss +76 -87
- data/_sass/layout/categories.scss +12 -13
- data/_sass/layout/category-tag.scss +4 -4
- data/_sass/layout/home.scss +20 -26
- data/_sass/layout/post.scss +132 -132
- data/_sass/layout/tags.scss +1 -1
- data/assets/404.html +1 -3
- data/assets/js/data/search.json +1 -1
- data/assets/js/data/swcache.js +35 -36
- data/assets/js/dist/categories.min.js +2 -2
- data/assets/js/dist/commons.min.js +2 -2
- data/assets/js/dist/home.min.js +2 -2
- data/assets/js/dist/misc.min.js +2 -2
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/pvreport.min.js +2 -2
- data/assets/js/pwa/app.js +33 -33
- data/assets/js/pwa/sw.js +54 -53
- data/assets/js/pwa/unregister.js +5 -5
- metadata +6 -10
- data/_config.yml +0 -201
- data/_includes/lang.html +0 -8
- data/_plugins/posts-lastmod-hook.rb +0 -14
- data/_tabs/about.md +0 -8
- data/_tabs/archives.md +0 -7
- data/_tabs/categories.md +0 -6
- data/_tabs/tags.md +0 -6
- data/index.html +0 -4
data/_sass/addon/module.scss
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
%heading {
|
8
8
|
color: var(--heading-color);
|
9
9
|
font-weight: 400;
|
10
|
-
font-family:
|
10
|
+
font-family: Lato, "Microsoft Yahei", sans-serif;
|
11
11
|
}
|
12
12
|
|
13
13
|
%section {
|
@@ -73,6 +73,8 @@
|
|
73
73
|
}
|
74
74
|
|
75
75
|
%no-cursor {
|
76
|
+
-webkit-user-select: none;
|
77
|
+
-moz-user-select: none;
|
76
78
|
user-select: none;
|
77
79
|
}
|
78
80
|
|
@@ -101,6 +103,8 @@
|
|
101
103
|
|
102
104
|
%sidebar-links {
|
103
105
|
color: rgba(117, 117, 117, 0.9);
|
106
|
+
-webkit-user-select: none;
|
107
|
+
-moz-user-select: none;
|
104
108
|
user-select: none;
|
105
109
|
}
|
106
110
|
|
@@ -134,7 +138,6 @@
|
|
134
138
|
position: relative;
|
135
139
|
left: 50%;
|
136
140
|
-webkit-transform: translateX(-50%);
|
137
|
-
-ms-transform: translateX(-50%);
|
138
141
|
transform: translateX(-50%);
|
139
142
|
}
|
140
143
|
|
data/_sass/addon/syntax.scss
CHANGED
@@ -8,22 +8,22 @@
|
|
8
8
|
html {
|
9
9
|
@media (prefers-color-scheme: light) {
|
10
10
|
&:not([data-mode]),
|
11
|
-
&[data-mode=light] {
|
11
|
+
&[data-mode="light"] {
|
12
12
|
@include light-syntax;
|
13
13
|
}
|
14
14
|
|
15
|
-
&[data-mode=dark] {
|
15
|
+
&[data-mode="dark"] {
|
16
16
|
@include dark-syntax;
|
17
17
|
}
|
18
18
|
}
|
19
19
|
|
20
20
|
@media (prefers-color-scheme: dark) {
|
21
21
|
&:not([data-mode]),
|
22
|
-
&[data-mode=dark] {
|
22
|
+
&[data-mode="dark"] {
|
23
23
|
@include dark-syntax;
|
24
24
|
}
|
25
25
|
|
26
|
-
&[data-mode=light] {
|
26
|
+
&[data-mode="light"] {
|
27
27
|
@include light-syntax;
|
28
28
|
}
|
29
29
|
}
|
@@ -87,29 +87,27 @@ $code-radius: 6px;
|
|
87
87
|
text-align: right;
|
88
88
|
color: var(--highlight-lineno-color);
|
89
89
|
-webkit-user-select: none;
|
90
|
-
-khtml-user-select: none;
|
91
90
|
-moz-user-select: none;
|
92
|
-
-ms-user-select: none;
|
93
91
|
-o-user-select: none;
|
94
92
|
user-select: none;
|
95
93
|
}
|
96
94
|
|
97
95
|
/* set the dollar sign to non-selectable */
|
98
96
|
.gp {
|
97
|
+
-webkit-user-select: none;
|
98
|
+
-moz-user-select: none;
|
99
99
|
user-select: none;
|
100
100
|
}
|
101
|
-
|
102
101
|
} /* .highlight */
|
103
102
|
|
104
103
|
code {
|
105
104
|
-webkit-hyphens: none;
|
106
|
-
-ms-hyphens: none;
|
107
|
-
-moz-hyphens: none;
|
108
105
|
hyphens: none;
|
109
106
|
|
110
107
|
&.highlighter-rouge {
|
111
108
|
font-size: $code-font-size;
|
112
109
|
padding: 3px 5px;
|
110
|
+
word-break: break-word;
|
113
111
|
border-radius: 4px;
|
114
112
|
background-color: var(--inline-code-bg);
|
115
113
|
}
|
@@ -151,16 +149,15 @@ td.rouge-code {
|
|
151
149
|
border-bottom: none !important;
|
152
150
|
pointer-events: none;
|
153
151
|
}
|
154
|
-
|
155
152
|
}
|
156
153
|
|
157
154
|
/* Hide line numbers for default, console, and terminal code snippets */
|
158
155
|
div {
|
159
|
-
&[class^=
|
156
|
+
&[class^="highlighter-rouge"],
|
157
|
+
&.nolineno,
|
160
158
|
&.language-plaintext.highlighter-rouge,
|
161
159
|
&.language-console.highlighter-rouge,
|
162
|
-
&.language-terminal.highlighter-rouge
|
163
|
-
&.nolineno {
|
160
|
+
&.language-terminal.highlighter-rouge {
|
164
161
|
pre.lineno {
|
165
162
|
display: none;
|
166
163
|
}
|
@@ -251,6 +248,10 @@ div {
|
|
251
248
|
}
|
252
249
|
}
|
253
250
|
|
251
|
+
&:focus {
|
252
|
+
outline: none;
|
253
|
+
}
|
254
|
+
|
254
255
|
&:not([timeout]):hover {
|
255
256
|
background-color: rgba(128, 128, 128, 0.37);
|
256
257
|
|
@@ -258,18 +259,12 @@ div {
|
|
258
259
|
color: white;
|
259
260
|
}
|
260
261
|
}
|
261
|
-
|
262
|
-
&:focus {
|
263
|
-
outline: none;
|
264
|
-
}
|
265
|
-
|
266
262
|
}
|
267
|
-
|
268
263
|
}
|
269
264
|
|
270
265
|
@media all and (max-width: 576px) {
|
271
266
|
.post-content {
|
272
|
-
> div[class^=
|
267
|
+
> div[class^="language-"] {
|
273
268
|
@include ml-mr(-1.25rem);
|
274
269
|
|
275
270
|
border-radius: 0;
|
data/_sass/addon/variables.scss
CHANGED
@@ -13,20 +13,16 @@ $sidebar-width-large: 350px !default; /* screen width: >= 1650px */
|
|
13
13
|
$tab-count: 5 !default; /* backward compatible (version <= 4.0.2) */
|
14
14
|
$tab-height: 3rem !default;
|
15
15
|
$tab-cursor-height: 1.6rem !default;
|
16
|
-
|
17
16
|
$cursor-width: 2px !default; /* the cursor width of the selected tab */
|
18
17
|
|
19
18
|
/* other framework sizes */
|
20
19
|
|
21
20
|
$topbar-height: 3rem !default;
|
22
|
-
|
23
21
|
$search-max-width: 210px !default;
|
24
|
-
|
25
22
|
$footer-height: 5rem !default;
|
26
23
|
$footer-height-mobile: 6rem !default; /* screen width: <= 576px */
|
27
24
|
|
28
25
|
$main-content-max-width: 1250px !default;
|
29
|
-
|
30
26
|
$bottom-min-height: 35rem !default;
|
31
27
|
|
32
28
|
/* syntax highlight */
|
@@ -3,7 +3,24 @@
|
|
3
3
|
*/
|
4
4
|
|
5
5
|
@mixin dark-syntax {
|
6
|
+
--highlight-bg-color: #252525;
|
7
|
+
--highlighter-rouge-color: #de6b18;
|
8
|
+
--highlight-lineno-color: #6c6c6d;
|
9
|
+
--inline-code-bg: #272822;
|
10
|
+
--code-header-text-color: #6a6a6a;
|
11
|
+
--code-header-muted-color: rgb(60, 60, 60);
|
12
|
+
--code-header-icon-color: rgb(86, 86, 86);
|
13
|
+
--clipboard-checked-color: #2bcc2b;
|
14
|
+
--filepath-text-color: #bdbdbd;
|
15
|
+
|
16
|
+
pre { color: #bfbfbf; } /* override Bootstrap */
|
17
|
+
|
18
|
+
.highlight {
|
19
|
+
.gp { color: #818c96; }
|
20
|
+
}
|
21
|
+
|
6
22
|
/* syntax highlight colors from https://raw.githubusercontent.com/jwarby/pygments-css/master/monokai.css */
|
23
|
+
|
7
24
|
.highlight pre { background-color: var(--highlight-bg-color); }
|
8
25
|
.highlight .hll { background-color: var(--highlight-bg-color); }
|
9
26
|
.highlight .c { color: #75715e; } /* Comment */
|
@@ -67,22 +84,4 @@
|
|
67
84
|
.highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
|
68
85
|
.highlight .gd { color: #f92672; background-color: #561c08; } /* Generic.Deleted & Diff Deleted */
|
69
86
|
.highlight .gi { color: #a6e22e; background-color: #0b5858; } /* Generic.Inserted & Diff Inserted */
|
70
|
-
|
71
|
-
/* ----- custom styles ------ */
|
72
|
-
|
73
|
-
--highlight-bg-color: #252525;
|
74
|
-
--highlighter-rouge-color: #de6b18;
|
75
|
-
--highlight-lineno-color: #6c6c6d;
|
76
|
-
--inline-code-bg: #272822;
|
77
|
-
--code-header-text-color: #6a6a6a;
|
78
|
-
--code-header-muted-color: rgb(60 60 60);
|
79
|
-
--code-header-icon-color: rgb(86 86 86);
|
80
|
-
--clipboard-checked-color: #2bcc2b;
|
81
|
-
--filepath-text-color: #bdbdbd;
|
82
|
-
|
83
|
-
.highlight {
|
84
|
-
.gp { color: #818c96; }
|
85
|
-
}
|
86
|
-
|
87
|
-
pre { color: #bfbfbf; } /* override Bootstrap */
|
88
87
|
}
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
@mixin dark-scheme {
|
6
6
|
/* Framework color */
|
7
|
-
--body-bg: var(--main-
|
7
|
+
--body-bg: var(--main-bg);
|
8
8
|
--mask-bg: rgb(68, 69, 70);
|
9
|
-
--main-
|
9
|
+
--main-bg: rgb(27, 27, 30);
|
10
10
|
--main-border-color: rgb(44, 45, 45);
|
11
11
|
|
12
12
|
/* Common color */
|
@@ -21,18 +21,18 @@
|
|
21
21
|
--btn-border-color: rgb(63, 65, 68);
|
22
22
|
--btn-backtotop-color: var(--text-color);
|
23
23
|
--btn-backtotop-border-color: var(--btn-border-color);
|
24
|
-
--btn-box-shadow: var(--main-
|
24
|
+
--btn-box-shadow: var(--main-bg);
|
25
25
|
--card-header-bg: rgb(51, 50, 50);
|
26
26
|
--label-color: rgb(108, 117, 125);
|
27
|
-
--checkbox-color: rgb(118 120 121);
|
27
|
+
--checkbox-color: rgb(118, 120, 121);
|
28
28
|
--checkbox-checked-color: var(--link-color);
|
29
29
|
|
30
30
|
/* Sidebar */
|
31
31
|
--sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);
|
32
32
|
--sidebar-muted-color: #6d6c6b;
|
33
|
-
--sidebar-active-color: rgb(255 255 255
|
33
|
+
--sidebar-active-color: rgb(255, 255, 255, 0.8);
|
34
34
|
--nav-cursor-color: rgb(183, 182, 182);
|
35
|
-
--sidebar-btn-bg: rgb(117 116 116
|
35
|
+
--sidebar-btn-bg: rgb(117, 116, 116, 0.2);
|
36
36
|
|
37
37
|
/* Topbar */
|
38
38
|
--topbar-text-color: var(--text-color);
|
@@ -48,7 +48,7 @@
|
|
48
48
|
--btn-paginator-hover-color: rgb(64, 65, 66);
|
49
49
|
--btn-paginator-border-color: var(--btn-border-color);
|
50
50
|
--btn-text-color: var(--text-color);
|
51
|
-
--pin-bg: rgb(34 35 37);
|
51
|
+
--pin-bg: rgb(34, 35, 37);
|
52
52
|
--pin-color: inherit;
|
53
53
|
|
54
54
|
/* Posts */
|
@@ -64,19 +64,19 @@
|
|
64
64
|
--relate-post-date: var(--text-muted-color);
|
65
65
|
--card-bg: rgb(39, 40, 43);
|
66
66
|
--card-border-color: rgb(53, 53, 60);
|
67
|
-
--card-box-shadow: var(--main-
|
68
|
-
--preview-img-bg: radial-gradient(circle, rgb(22 22 24) 0%, rgb(32 32 32) 100%);
|
67
|
+
--card-box-shadow: var(--main-bg);
|
68
|
+
--preview-img-bg: radial-gradient(circle, rgb(22, 22, 24) 0%, rgb(32, 32, 32) 100%);
|
69
69
|
--kbd-wrap-color: #6a6a6a;
|
70
70
|
--kbd-text-color: #d3d3d3;
|
71
71
|
--kbd-bg-color: #242424;
|
72
|
-
--prompt-text-color: rgb(216 212 212
|
72
|
+
--prompt-text-color: rgb(216, 212, 212, 0.75);
|
73
73
|
--prompt-tip-bg: rgba(77, 187, 95, 0.2);
|
74
|
-
--prompt-tip-icon-color: rgb(5 223 5
|
75
|
-
--prompt-info-bg: rgb(7 59 104
|
74
|
+
--prompt-tip-icon-color: rgb(5, 223, 5, 0.68);
|
75
|
+
--prompt-info-bg: rgb(7, 59, 104, 0.8);
|
76
76
|
--prompt-info-icon-color: #0075d1;
|
77
|
-
--prompt-warning-bg: rgb(90 69 3
|
78
|
-
--prompt-warning-icon-color: rgb(255 165 0
|
79
|
-
--prompt-danger-bg: rgb(86 28 8
|
77
|
+
--prompt-warning-bg: rgb(90, 69, 3, 0.95);
|
78
|
+
--prompt-warning-icon-color: rgb(255, 165, 0, 0.8);
|
79
|
+
--prompt-danger-bg: rgb(86, 28, 8, 0.8);
|
80
80
|
--prompt-danger-icon-color: #cd0202;
|
81
81
|
|
82
82
|
/* tags */
|
@@ -96,6 +96,7 @@
|
|
96
96
|
--timeline-year-dot-color: var(--timeline-color);
|
97
97
|
|
98
98
|
.post img[data-src] {
|
99
|
+
-webkit-filter: brightness(95%);
|
99
100
|
filter: brightness(95%);
|
100
101
|
}
|
101
102
|
|
@@ -104,11 +105,11 @@
|
|
104
105
|
}
|
105
106
|
|
106
107
|
/* posts' toc, override BS */
|
107
|
-
nav[data-toggle=toc] .nav-link.active,
|
108
|
-
nav[data-toggle=toc] .nav-link.active:focus,
|
109
|
-
nav[data-toggle=toc] .nav-link.active:hover,
|
110
|
-
nav[data-toggle=toc] .nav > li > a:focus,
|
111
|
-
nav[data-toggle=toc] .nav > li > a:hover {
|
108
|
+
nav[data-toggle="toc"] .nav-link.active,
|
109
|
+
nav[data-toggle="toc"] .nav-link.active:focus,
|
110
|
+
nav[data-toggle="toc"] .nav-link.active:hover,
|
111
|
+
nav[data-toggle="toc"] .nav > li > a:focus,
|
112
|
+
nav[data-toggle="toc"] .nav > li > a:hover {
|
112
113
|
color: var(--toc-highlight) !important;
|
113
114
|
border-left-color: var(--toc-highlight) !important;
|
114
115
|
}
|
@@ -150,8 +151,7 @@
|
|
150
151
|
|
151
152
|
color-scheme: dark;
|
152
153
|
|
153
|
-
#disqus_thread {
|
154
|
+
#disqus_thread { /* stylelint-disable-line selector-id-pattern */
|
154
155
|
color-scheme: none;
|
155
156
|
}
|
156
|
-
|
157
157
|
} /* dark-scheme */
|
@@ -76,9 +76,8 @@
|
|
76
76
|
--code-header-icon-color: #d1d1d1;
|
77
77
|
--clipboard-checked-color: #43c743;
|
78
78
|
|
79
|
-
[class^=prompt-] {
|
79
|
+
[class^="prompt-"] {
|
80
80
|
--inline-code-bg: #fbfafa;
|
81
|
-
--highlighter-rouge-color: rgb(82 82 82);
|
81
|
+
--highlighter-rouge-color: rgb(82, 82, 82);
|
82
82
|
}
|
83
|
-
|
84
83
|
} /* light-syntax */
|
@@ -6,18 +6,18 @@
|
|
6
6
|
/* Framework color */
|
7
7
|
--body-bg: #fafafa;
|
8
8
|
--mask-bg: #c1c3c5;
|
9
|
-
--main-
|
9
|
+
--main-bg: white;
|
10
10
|
--main-border-color: #f3f3f3;
|
11
11
|
|
12
12
|
/* Common color */
|
13
13
|
--text-color: #34343c;
|
14
14
|
--text-muted-color: gray;
|
15
15
|
--heading-color: black;
|
16
|
-
--blockquote-border-color: #
|
16
|
+
--blockquote-border-color: #eeeeee;
|
17
17
|
--blockquote-text-color: #9a9a9a;
|
18
18
|
--link-color: #2a408e;
|
19
19
|
--link-underline-color: #dee2e6;
|
20
|
-
--button-bg: #
|
20
|
+
--button-bg: #ffffff;
|
21
21
|
--btn-border-color: #e9ecef;
|
22
22
|
--btn-backtotop-color: #686868;
|
23
23
|
--btn-backtotop-border-color: #f1f1f1;
|
@@ -35,8 +35,8 @@
|
|
35
35
|
/* Topbar */
|
36
36
|
--topbar-text-color: rgb(78, 78, 78);
|
37
37
|
--topbar-wrapper-bg: white;
|
38
|
-
--search-wrapper-bg: rgb(245 245 245
|
39
|
-
--search-wrapper-border-color: rgb(245 245 245);
|
38
|
+
--search-wrapper-bg: rgb(245, 245, 245, 0.5);
|
39
|
+
--search-wrapper-border-color: rgb(245, 245, 245);
|
40
40
|
--search-tag-bg: #f8f9fa;
|
41
41
|
--search-icon-color: #c2c6cc;
|
42
42
|
--input-focus-border-color: var(--btn-border-color);
|
@@ -53,7 +53,7 @@
|
|
53
53
|
/* Posts */
|
54
54
|
--btn-share-hover-color: var(--link-color);
|
55
55
|
--card-border-color: #f1f1f1;
|
56
|
-
--card-box-shadow: rgba(234, 234, 234, 0.
|
56
|
+
--card-box-shadow: rgba(234, 234, 234, 0.76);
|
57
57
|
--label-color: #616161;
|
58
58
|
--relate-post-date: rgba(30, 55, 70, 0.4);
|
59
59
|
--footnote-target-bg: lightcyan;
|
@@ -64,22 +64,22 @@
|
|
64
64
|
--tb-odd-bg: #fbfcfd;
|
65
65
|
--tb-border-color: #eaeaea;
|
66
66
|
--dash-color: silver;
|
67
|
-
--preview-img-bg: radial-gradient(circle, rgb(255 255 255) 0%, rgb(249 249 249) 100%);
|
67
|
+
--preview-img-bg: radial-gradient(circle, rgb(255, 255, 255) 0%, rgb(249, 249, 249) 100%);
|
68
68
|
--kbd-wrap-color: #bdbdbd;
|
69
69
|
--kbd-text-color: var(--text-color);
|
70
70
|
--kbd-bg-color: white;
|
71
|
-
--prompt-text-color: rgb(46 46 46
|
72
|
-
--prompt-tip-bg: rgb(123 247 144
|
71
|
+
--prompt-text-color: rgb(46, 46, 46, 0.77);
|
72
|
+
--prompt-tip-bg: rgb(123, 247, 144, 0.2);
|
73
73
|
--prompt-tip-icon-color: #03b303;
|
74
74
|
--prompt-info-bg: #e1f5fe;
|
75
75
|
--prompt-info-icon-color: #0070cb;
|
76
|
-
--prompt-warning-bg: rgb(255 243 205);
|
76
|
+
--prompt-warning-bg: rgb(255, 243, 205);
|
77
77
|
--prompt-warning-icon-color: #ef9c03;
|
78
|
-
--prompt-danger-bg: rgb(248 215 218
|
78
|
+
--prompt-danger-bg: rgb(248, 215, 218, 0.56);
|
79
79
|
--prompt-danger-icon-color: #df3c30;
|
80
80
|
|
81
|
-
[class^=prompt-] {
|
82
|
-
--link-underline-color: rgb(219 216 216);
|
81
|
+
[class^="prompt-"] {
|
82
|
+
--link-underline-color: rgb(219, 216, 216);
|
83
83
|
}
|
84
84
|
|
85
85
|
/* Categories */
|
@@ -90,5 +90,4 @@
|
|
90
90
|
--timeline-color: rgba(0, 0, 0, 0.075);
|
91
91
|
--timeline-node-bg: #c2c6cc;
|
92
92
|
--timeline-year-dot-color: #ffffff;
|
93
|
-
|
94
93
|
} /* light-scheme */
|
data/_sass/layout/archives.scss
CHANGED
@@ -2,139 +2,128 @@
|
|
2
2
|
Style for Archives
|
3
3
|
*/
|
4
4
|
|
5
|
-
%date-timeline {
|
6
|
-
content: "";
|
7
|
-
width: 4px;
|
8
|
-
left: 75px;
|
9
|
-
display: inline-block;
|
10
|
-
float: left;
|
11
|
-
position: relative;
|
12
|
-
background-color: var(--timeline-color);
|
13
|
-
}
|
14
|
-
|
15
5
|
#archives {
|
16
6
|
letter-spacing: 0.03rem;
|
17
7
|
|
18
|
-
|
8
|
+
$timeline-width: 4px;
|
9
|
+
|
10
|
+
%timeline {
|
11
|
+
content: "";
|
12
|
+
width: $timeline-width;
|
13
|
+
position: relative;
|
14
|
+
float: left;
|
15
|
+
background-color: var(--timeline-color);
|
16
|
+
}
|
17
|
+
|
18
|
+
.year {
|
19
|
+
height: 3.5rem;
|
19
20
|
font-size: 1.5rem;
|
20
21
|
position: relative;
|
21
|
-
left:
|
22
|
+
left: 2px;
|
23
|
+
margin-left: -$timeline-width;
|
24
|
+
|
25
|
+
&::before {
|
26
|
+
@extend %timeline;
|
27
|
+
|
28
|
+
height: 72px;
|
29
|
+
left: 79px;
|
30
|
+
bottom: 16px;
|
31
|
+
}
|
32
|
+
|
33
|
+
&:first-child::before {
|
34
|
+
@extend %timeline;
|
35
|
+
|
36
|
+
height: 32px;
|
37
|
+
top: 24px;
|
38
|
+
}
|
22
39
|
|
23
40
|
&::after { /* Year dot */
|
24
41
|
content: "";
|
25
|
-
display: block;
|
42
|
+
display: inline-block;
|
26
43
|
position: relative;
|
27
|
-
-webkit-border-radius: 50%;
|
28
|
-
-moz-border-radius: 50%;
|
29
44
|
border-radius: 50%;
|
30
45
|
width: 12px;
|
31
46
|
height: 12px;
|
32
|
-
|
33
|
-
left: 63px;
|
47
|
+
left: 21.5px;
|
34
48
|
border: 3px solid;
|
35
49
|
background-color: var(--timeline-year-dot-color);
|
36
50
|
border-color: var(--timeline-node-bg);
|
37
51
|
box-shadow: 0 0 2px 0 #c2c6cc;
|
38
52
|
z-index: 1;
|
39
53
|
}
|
40
|
-
|
41
|
-
&:not(:first-child) {
|
42
|
-
position: relative;
|
43
|
-
left: 4px;
|
44
|
-
|
45
|
-
&::after {
|
46
|
-
left: 67px;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
} // #archives span.lead
|
54
|
+
}
|
51
55
|
|
52
56
|
ul {
|
53
57
|
li {
|
54
58
|
font-size: 1.1rem;
|
55
59
|
line-height: 3rem;
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
overflow: hidden;
|
60
|
-
text-overflow: ellipsis;
|
61
|
-
|
62
|
-
a {
|
63
|
-
/* post title in Archvies */
|
64
|
-
margin-left: 2.5rem;
|
65
|
-
position: relative;
|
66
|
-
top: 0.1rem;
|
67
|
-
}
|
68
|
-
}
|
60
|
+
white-space: nowrap;
|
61
|
+
overflow: hidden;
|
62
|
+
text-overflow: ellipsis;
|
69
63
|
|
70
64
|
&:nth-child(odd) {
|
71
|
-
background-color: var(--main-
|
72
|
-
background-image: linear-gradient(to left, #
|
65
|
+
background-color: var(--main-bg, #ffffff);
|
66
|
+
background-image: linear-gradient(to left, #ffffff, #fbfbfb, #fbfbfb, #fbfbfb, #ffffff);
|
73
67
|
}
|
74
68
|
|
75
|
-
&::
|
76
|
-
@extend %
|
69
|
+
&::before {
|
70
|
+
@extend %timeline;
|
77
71
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
&:first-child::before {
|
83
|
-
@extend %date-timeline;
|
84
|
-
|
85
|
-
height: 3.06rem;
|
86
|
-
top: -1.61rem;
|
72
|
+
top: 0;
|
73
|
+
left: 77px;
|
74
|
+
height: 3.1rem;
|
87
75
|
}
|
88
76
|
}
|
89
77
|
|
90
|
-
&:
|
91
|
-
height:
|
78
|
+
&:last-child li:last-child::before {
|
79
|
+
height: 1.5rem;
|
92
80
|
}
|
93
|
-
|
94
|
-
&:last-child > li:last-child::after {
|
95
|
-
display: none;
|
96
|
-
}
|
97
|
-
} // #archives ul
|
81
|
+
} /* #archives ul */
|
98
82
|
|
99
83
|
.date {
|
100
84
|
white-space: nowrap;
|
101
85
|
display: inline-block;
|
86
|
+
position: relative;
|
87
|
+
right: 0.5rem;
|
102
88
|
|
103
89
|
&.month {
|
104
90
|
width: 1.4rem;
|
105
91
|
text-align: center;
|
106
|
-
|
107
|
-
~ a::before {
|
108
|
-
/* A dot for Month and Day */
|
109
|
-
content: "";
|
110
|
-
display: inline-block;
|
111
|
-
position: relative;
|
112
|
-
-webkit-border-radius: 50%;
|
113
|
-
-moz-border-radius: 50%;
|
114
|
-
border-radius: 50%;
|
115
|
-
width: 8px;
|
116
|
-
height: 8px;
|
117
|
-
float: left;
|
118
|
-
top: 1.35rem;
|
119
|
-
left: 69px;
|
120
|
-
background-color: var(--timeline-node-bg);
|
121
|
-
box-shadow: 0 0 3px 0 #c2c6cc;
|
122
|
-
z-index: 1;
|
123
|
-
}
|
124
92
|
}
|
125
93
|
|
126
94
|
&.day {
|
127
95
|
font-size: 85%;
|
128
|
-
font-family:
|
129
|
-
text-align: center;
|
130
|
-
margin-right: -2px;
|
131
|
-
width: 1.2rem;
|
132
|
-
position: relative;
|
133
|
-
left: -0.15rem;
|
96
|
+
font-family: Lato, sans-serif;
|
134
97
|
}
|
135
|
-
}
|
98
|
+
}
|
136
99
|
|
137
|
-
|
100
|
+
a {
|
101
|
+
/* post title in Archvies */
|
102
|
+
margin-left: 2.5rem;
|
103
|
+
position: relative;
|
104
|
+
top: 0.1rem;
|
105
|
+
|
106
|
+
&:hover {
|
107
|
+
border-bottom: none;
|
108
|
+
}
|
109
|
+
|
110
|
+
&::before {
|
111
|
+
/* the dot before post title */
|
112
|
+
content: "";
|
113
|
+
display: inline-block;
|
114
|
+
position: relative;
|
115
|
+
border-radius: 50%;
|
116
|
+
width: 8px;
|
117
|
+
height: 8px;
|
118
|
+
float: left;
|
119
|
+
top: 1.35rem;
|
120
|
+
left: 71px;
|
121
|
+
background-color: var(--timeline-node-bg);
|
122
|
+
box-shadow: 0 0 3px 0 #c2c6cc;
|
123
|
+
z-index: 1;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
} /* #archives */
|
138
127
|
|
139
128
|
@media all and (max-width: 576px) {
|
140
129
|
#archives {
|
@@ -16,7 +16,7 @@
|
|
16
16
|
i {
|
17
17
|
@extend %category-icon-color;
|
18
18
|
|
19
|
-
font-size: 86%;
|
19
|
+
font-size: 86%; /* fontawesome icons */
|
20
20
|
}
|
21
21
|
|
22
22
|
.list-group-item {
|
@@ -28,10 +28,8 @@
|
|
28
28
|
border-top-left-radius: 0;
|
29
29
|
border-top-right-radius: 0;
|
30
30
|
}
|
31
|
-
|
32
31
|
}
|
33
|
-
|
34
|
-
} // .categories
|
32
|
+
} /* .categories */
|
35
33
|
|
36
34
|
.category-trigger {
|
37
35
|
width: 1.7rem;
|
@@ -40,28 +38,29 @@
|
|
40
38
|
text-align: center;
|
41
39
|
color: #6c757d !important;
|
42
40
|
|
43
|
-
&:hover {
|
44
|
-
i {
|
45
|
-
color: var(--categories-icon-hover-color);
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
41
|
i {
|
50
42
|
position: relative;
|
51
43
|
height: 0.7rem;
|
52
44
|
width: 1rem;
|
45
|
+
transition: -webkit-transform 300ms ease;
|
53
46
|
transition: transform 300ms ease;
|
47
|
+
transition: transform 300ms ease, -webkit-transform 300ms ease;
|
48
|
+
}
|
49
|
+
|
50
|
+
&:hover {
|
51
|
+
i {
|
52
|
+
color: var(--categories-icon-hover-color);
|
53
|
+
}
|
54
54
|
}
|
55
55
|
}
|
56
56
|
|
57
|
-
@media (hover: hover) {
|
57
|
+
@media (hover: hover) { /* only works on desktop */
|
58
58
|
.category-trigger:hover {
|
59
59
|
background-color: var(--categories-hover-bg);
|
60
60
|
}
|
61
61
|
}
|
62
62
|
|
63
63
|
.rotate {
|
64
|
-
-
|
65
|
-
-webkit-transform: rotate(-90deg); /* Safari 3-8 */
|
64
|
+
-webkit-transform: rotate(-90deg);
|
66
65
|
transform: rotate(-90deg);
|
67
66
|
}
|