doc-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +50 -0
  4. data/_data/locales/ar.yml +91 -0
  5. data/_data/locales/bg-BG.yml +81 -0
  6. data/_data/locales/cs-CZ.yml +89 -0
  7. data/_data/locales/de-DE.yml +87 -0
  8. data/_data/locales/el-GR.yml +91 -0
  9. data/_data/locales/en.yml +91 -0
  10. data/_data/locales/es-ES.yml +77 -0
  11. data/_data/locales/fi-FI.yml +90 -0
  12. data/_data/locales/fr-FR.yml +77 -0
  13. data/_data/locales/hu-HU.yml +79 -0
  14. data/_data/locales/id-ID.yml +77 -0
  15. data/_data/locales/it-IT.yml +90 -0
  16. data/_data/locales/ko-KR.yml +84 -0
  17. data/_data/locales/my-MM.yml +77 -0
  18. data/_data/locales/pt-BR.yml +77 -0
  19. data/_data/locales/ru-RU.yml +87 -0
  20. data/_data/locales/sl-SI.yml +91 -0
  21. data/_data/locales/sv-SE.yml +91 -0
  22. data/_data/locales/th.yml +91 -0
  23. data/_data/locales/tr-TR.yml +77 -0
  24. data/_data/locales/uk-UA.yml +77 -0
  25. data/_data/locales/vi-VN.yml +76 -0
  26. data/_data/locales/zh-CN.yml +83 -0
  27. data/_data/locales/zh-TW.yml +83 -0
  28. data/_data/origin/basic.yml +46 -0
  29. data/_data/origin/cors.yml +59 -0
  30. data/_includes/.DS_Store +0 -0
  31. data/_includes/analytics/goatcounter.html +6 -0
  32. data/_includes/analytics/google.html +13 -0
  33. data/_includes/comments/disqus.html +50 -0
  34. data/_includes/comments/giscus.html +65 -0
  35. data/_includes/comments/utterances.html +50 -0
  36. data/_includes/comments.html +5 -0
  37. data/_includes/datetime.html +20 -0
  38. data/_includes/embed/bilibili.html +9 -0
  39. data/_includes/embed/twitch.html +8 -0
  40. data/_includes/embed/video.html +38 -0
  41. data/_includes/embed/youtube.html +9 -0
  42. data/_includes/favicons.html +19 -0
  43. data/_includes/footer.html +42 -0
  44. data/_includes/head.html +111 -0
  45. data/_includes/img-url.html +39 -0
  46. data/_includes/js-selector.html +126 -0
  47. data/_includes/jsdelivr-combine.html +26 -0
  48. data/_includes/lang.html +10 -0
  49. data/_includes/language-alias.html +70 -0
  50. data/_includes/mermaid.html +58 -0
  51. data/_includes/metadata-hook.html +1 -0
  52. data/_includes/mode-toggle.html +143 -0
  53. data/_includes/no-linenos.html +10 -0
  54. data/_includes/notification.html +24 -0
  55. data/_includes/origin-type.html +13 -0
  56. data/_includes/pageviews/goatcounter.html +18 -0
  57. data/_includes/post-nav.html +34 -0
  58. data/_includes/post-paginator.html +91 -0
  59. data/_includes/post-sharing.html +52 -0
  60. data/_includes/read-time.html +37 -0
  61. data/_includes/refactor-content.html +255 -0
  62. data/_includes/related-posts.html +96 -0
  63. data/_includes/search-loader.html +47 -0
  64. data/_includes/search-results.html +10 -0
  65. data/_includes/sidebar.html +99 -0
  66. data/_includes/toc.html +13 -0
  67. data/_includes/topbar.html +77 -0
  68. data/_includes/trending-tags.html +46 -0
  69. data/_includes/update-list.html +40 -0
  70. data/_layouts/archives.html +35 -0
  71. data/_layouts/categories.html +138 -0
  72. data/_layouts/category.html +24 -0
  73. data/_layouts/compress.html +10 -0
  74. data/_layouts/default.html +87 -0
  75. data/_layouts/home.html +118 -0
  76. data/_layouts/page.html +20 -0
  77. data/_layouts/post.html +149 -0
  78. data/_layouts/tag.html +23 -0
  79. data/_layouts/tags.html +22 -0
  80. data/_sass/.DS_Store +0 -0
  81. data/_sass/addon/commons.scss +1553 -0
  82. data/_sass/addon/module.scss +200 -0
  83. data/_sass/addon/syntax.scss +292 -0
  84. data/_sass/addon/variables.scss +33 -0
  85. data/_sass/colors/syntax-dark.scss +164 -0
  86. data/_sass/colors/syntax-light.scss +214 -0
  87. data/_sass/colors/typography-dark.scss +147 -0
  88. data/_sass/colors/typography-light.scss +112 -0
  89. data/_sass/layout/archives.scss +144 -0
  90. data/_sass/layout/categories.scss +83 -0
  91. data/_sass/layout/category-tag.scss +72 -0
  92. data/_sass/layout/home.scss +189 -0
  93. data/_sass/layout/post.scss +357 -0
  94. data/_sass/layout/tags.scss +19 -0
  95. data/_sass/main.scss +13 -0
  96. data/_sass/variables-hook.scss +3 -0
  97. data/assets/.DS_Store +0 -0
  98. data/assets/404.html +14 -0
  99. data/assets/css/doc-theme.scss +6 -0
  100. data/assets/feed.xml +61 -0
  101. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  102. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  103. data/assets/img/favicons/apple-touch-icon.png +0 -0
  104. data/assets/img/favicons/browserconfig.xml +13 -0
  105. data/assets/img/favicons/favicon-16x16.png +0 -0
  106. data/assets/img/favicons/favicon-32x32.png +0 -0
  107. data/assets/img/favicons/favicon.ico +0 -0
  108. data/assets/img/favicons/mstile-150x150.png +0 -0
  109. data/assets/img/favicons/site.webmanifest +26 -0
  110. data/assets/js/data/search.json +20 -0
  111. data/assets/js/data/swconf.js +51 -0
  112. data/assets/js/pwa/app.js +54 -0
  113. data/assets/js/pwa/sw.js +101 -0
  114. data/assets/robots.txt +10 -0
  115. metadata +260 -0
@@ -0,0 +1,214 @@
1
+ /*
2
+ * The syntax light mode code snippet colors.
3
+ */
4
+
5
+ @mixin light-syntax {
6
+ /* --- custom light colors --- */
7
+ --language-border-color: #ececec;
8
+ --highlight-bg-color: #f6f8fa;
9
+ --highlighter-rouge-color: #3f596f;
10
+ --highlight-lineno-color: #9e9e9e;
11
+ --inline-code-bg: #f6f6f7;
12
+ --code-color: #3a3a3a;
13
+ --code-header-text-color: #a3a3a3;
14
+ --code-header-muted-color: #e5e5e5;
15
+ --code-header-icon-color: #c9c8c8;
16
+ --clipboard-checked-color: #43c743;
17
+
18
+ [class^='prompt-'] {
19
+ --inline-code-bg: #fbfafa;
20
+ }
21
+
22
+ /* --- Syntax highlight theme from `rougify style github` --- */
23
+
24
+ .highlight table td {
25
+ padding: 5px;
26
+ }
27
+
28
+ .highlight table pre {
29
+ margin: 0;
30
+ }
31
+
32
+ .highlight,
33
+ .highlight .w {
34
+ color: #24292f;
35
+ background-color: #f6f8fa;
36
+ }
37
+
38
+ .highlight .k,
39
+ .highlight .kd,
40
+ .highlight .kn,
41
+ .highlight .kp,
42
+ .highlight .kr,
43
+ .highlight .kt,
44
+ .highlight .kv {
45
+ color: #cf222e;
46
+ }
47
+
48
+ .highlight .gr {
49
+ color: #f6f8fa;
50
+ }
51
+
52
+ .highlight .gd {
53
+ color: #82071e;
54
+ background-color: #ffebe9;
55
+ }
56
+
57
+ .highlight .nb {
58
+ color: #953800;
59
+ }
60
+
61
+ .highlight .nc {
62
+ color: #953800;
63
+ }
64
+
65
+ .highlight .no {
66
+ color: #953800;
67
+ }
68
+
69
+ .highlight .nn {
70
+ color: #953800;
71
+ }
72
+
73
+ .highlight .sr {
74
+ color: #116329;
75
+ }
76
+
77
+ .highlight .na {
78
+ color: #116329;
79
+ }
80
+
81
+ .highlight .nt {
82
+ color: #116329;
83
+ }
84
+
85
+ .highlight .gi {
86
+ color: #116329;
87
+ background-color: #dafbe1;
88
+ }
89
+
90
+ .highlight .kc {
91
+ color: #0550ae;
92
+ }
93
+
94
+ .highlight .l,
95
+ .highlight .ld,
96
+ .highlight .m,
97
+ .highlight .mb,
98
+ .highlight .mf,
99
+ .highlight .mh,
100
+ .highlight .mi,
101
+ .highlight .il,
102
+ .highlight .mo,
103
+ .highlight .mx {
104
+ color: #0550ae;
105
+ }
106
+
107
+ .highlight .sb {
108
+ color: #0550ae;
109
+ }
110
+
111
+ .highlight .bp {
112
+ color: #0550ae;
113
+ }
114
+
115
+ .highlight .ne {
116
+ color: #0550ae;
117
+ }
118
+
119
+ .highlight .nl {
120
+ color: #0550ae;
121
+ }
122
+
123
+ .highlight .py {
124
+ color: #0550ae;
125
+ }
126
+
127
+ .highlight .nv,
128
+ .highlight .vc,
129
+ .highlight .vg,
130
+ .highlight .vi,
131
+ .highlight .vm {
132
+ color: #0550ae;
133
+ }
134
+
135
+ .highlight .o,
136
+ .highlight .ow {
137
+ color: #0550ae;
138
+ }
139
+
140
+ .highlight .gh {
141
+ color: #0550ae;
142
+ font-weight: bold;
143
+ }
144
+
145
+ .highlight .gu {
146
+ color: #0550ae;
147
+ font-weight: bold;
148
+ }
149
+
150
+ .highlight .s,
151
+ .highlight .sa,
152
+ .highlight .sc,
153
+ .highlight .dl,
154
+ .highlight .sd,
155
+ .highlight .s2,
156
+ .highlight .se,
157
+ .highlight .sh,
158
+ .highlight .sx,
159
+ .highlight .s1,
160
+ .highlight .ss {
161
+ color: #0a3069;
162
+ }
163
+
164
+ .highlight .nd {
165
+ color: #8250df;
166
+ }
167
+
168
+ .highlight .nf,
169
+ .highlight .fm {
170
+ color: #8250df;
171
+ }
172
+
173
+ .highlight .err {
174
+ color: #f6f8fa;
175
+ background-color: #82071e;
176
+ }
177
+
178
+ .highlight .c,
179
+ .highlight .ch,
180
+ .highlight .cd,
181
+ .highlight .cm,
182
+ .highlight .cp,
183
+ .highlight .cpf,
184
+ .highlight .c1,
185
+ .highlight .cs {
186
+ color: #68717a;
187
+ }
188
+
189
+ .highlight .gl {
190
+ color: #68717a;
191
+ }
192
+
193
+ .highlight .gt {
194
+ color: #68717a;
195
+ }
196
+
197
+ .highlight .ni {
198
+ color: #24292f;
199
+ }
200
+
201
+ .highlight .si {
202
+ color: #24292f;
203
+ }
204
+
205
+ .highlight .ge {
206
+ color: #24292f;
207
+ font-style: italic;
208
+ }
209
+
210
+ .highlight .gs {
211
+ color: #24292f;
212
+ font-weight: bold;
213
+ }
214
+ } /* light-syntax */
@@ -0,0 +1,147 @@
1
+ /*
2
+ * The main dark mode styles
3
+ */
4
+
5
+ @mixin dark-scheme {
6
+ /* Framework color */
7
+ --main-bg: rgb(27, 27, 30);
8
+ --mask-bg: rgb(68, 69, 70);
9
+ --main-border-color: rgb(44, 45, 45);
10
+
11
+ /* Common color */
12
+ --text-color: rgb(175, 176, 177);
13
+ --text-muted-color: #868686;
14
+ --text-muted-hightlight-color: #aeaeae;
15
+ --heading-color: #cccccc;
16
+ --label-color: #a7a7a7;
17
+ --blockquote-border-color: rgb(66, 66, 66);
18
+ --blockquote-text-color: #868686;
19
+ --link-color: rgb(138, 180, 248);
20
+ --link-underline-color: rgb(82, 108, 150);
21
+ --button-bg: #1e1e1e;
22
+ --btn-border-color: #2e2f31;
23
+ --btn-backtotop-color: var(--text-color);
24
+ --btn-backtotop-border-color: #212122;
25
+ --btn-box-shadow: var(--main-bg);
26
+ --card-header-bg: #292929;
27
+ --checkbox-color: rgb(118, 120, 121);
28
+ --checkbox-checked-color: var(--link-color);
29
+ --img-bg: radial-gradient(circle, rgb(22, 22, 24) 0%, rgb(32, 32, 32) 100%);
30
+ --shimmer-bg: linear-gradient(
31
+ 90deg,
32
+ rgba(255, 255, 255, 0) 0%,
33
+ rgba(58, 55, 55, 0.4) 50%,
34
+ rgba(255, 255, 255, 0) 100%
35
+ );
36
+
37
+ /* Sidebar */
38
+ --site-title-color: #717070;
39
+ --site-subtitle-color: #868686;
40
+ --sidebar-bg: #1e1e1e;
41
+ --sidebar-border-color: #292929;
42
+ --sidebar-muted-color: #868686;
43
+ --sidebar-active-color: rgb(255, 255, 255, 0.95);
44
+ --sidebar-hover-bg: #262626;
45
+ --sidebar-btn-bg: #232328;
46
+ --sidebar-btn-color: #787878;
47
+ --avatar-border-color: rgb(206, 206, 206, 0.9);
48
+
49
+ /* Topbar */
50
+ --topbar-bg: rgb(27, 27, 30, 0.64);
51
+ --topbar-text-color: var(--text-color);
52
+ --search-border-color: rgb(55, 55, 55);
53
+ --search-icon-color: rgb(100, 102, 105);
54
+ --input-focus-border-color: rgb(112, 114, 115);
55
+
56
+ /* Home page */
57
+ --post-list-text-color: rgb(175, 176, 177);
58
+ --btn-patinator-text-color: var(--text-color);
59
+ --btn-paginator-hover-color: #2e2e2e;
60
+
61
+ /* Posts */
62
+ --toc-highlight: rgb(116, 178, 243);
63
+ --tag-hover: rgb(43, 56, 62);
64
+ --tb-odd-bg: #252526; /* odd rows of the posts' table */
65
+ --tb-even-bg: rgb(31, 31, 34); /* even rows of the posts' table */
66
+ --tb-border-color: var(--tb-odd-bg);
67
+ --footnote-target-bg: rgb(63, 81, 181);
68
+ --btn-share-color: #6c757d;
69
+ --btn-share-hover-color: #bfc1ca;
70
+ --card-bg: #1e1e1e;
71
+ --card-hovor-bg: #464d51;
72
+ --card-shadow: rgb(21, 21, 21, 0.72) 0 6px 18px 0,
73
+ rgb(137, 135, 135, 0.24) 0 0 0 1px;
74
+ --kbd-wrap-color: #6a6a6a;
75
+ --kbd-text-color: #d3d3d3;
76
+ --kbd-bg-color: #242424;
77
+ --prompt-text-color: rgb(216, 212, 212, 0.75);
78
+ --prompt-tip-bg: rgb(22, 60, 36, 0.64);
79
+ --prompt-tip-icon-color: rgb(15, 164, 15, 0.81);
80
+ --prompt-info-bg: rgb(7, 59, 104, 0.8);
81
+ --prompt-info-icon-color: #0075d1;
82
+ --prompt-warning-bg: rgb(90, 69, 3, 0.88);
83
+ --prompt-warning-icon-color: rgb(255, 165, 0, 0.8);
84
+ --prompt-danger-bg: rgb(86, 28, 8, 0.8);
85
+ --prompt-danger-icon-color: #cd0202;
86
+
87
+ /* tags */
88
+ --tag-border: rgb(59, 79, 88);
89
+ --tag-shadow: rgb(32, 33, 33);
90
+ --dash-color: rgb(63, 65, 68);
91
+ --search-tag-bg: #292828;
92
+
93
+ /* categories */
94
+ --categories-border: rgb(64, 66, 69, 0.5);
95
+ --categories-hover-bg: rgb(73, 75, 76);
96
+ --categories-icon-hover-color: white;
97
+
98
+ /* archives */
99
+ --timeline-node-bg: rgb(150, 152, 156);
100
+ --timeline-color: rgb(63, 65, 68);
101
+ --timeline-year-dot-color: var(--timeline-color);
102
+
103
+ .light {
104
+ display: none;
105
+ }
106
+
107
+ /* categories */
108
+ .categories.card,
109
+ .list-group-item {
110
+ background-color: var(--card-bg);
111
+ }
112
+
113
+ .categories {
114
+ .card-header {
115
+ background-color: var(--card-header-bg);
116
+ }
117
+
118
+ .list-group-item {
119
+ border-left: none;
120
+ border-right: none;
121
+ padding-left: 2rem;
122
+ border-color: var(--categories-border);
123
+
124
+ &:last-child {
125
+ border-bottom-color: var(--card-bg);
126
+ }
127
+ }
128
+ }
129
+
130
+ #archives li:nth-child(odd) {
131
+ background-image: linear-gradient(
132
+ to left,
133
+ rgb(26, 26, 30),
134
+ rgb(39, 39, 45),
135
+ rgb(39, 39, 45),
136
+ rgb(39, 39, 45),
137
+ rgb(26, 26, 30)
138
+ );
139
+ }
140
+
141
+ color-scheme: dark;
142
+
143
+ /* stylelint-disable-next-line selector-id-pattern */
144
+ #disqus_thread {
145
+ color-scheme: none;
146
+ }
147
+ } /* dark-scheme */
@@ -0,0 +1,112 @@
1
+ /*
2
+ * The syntax light mode typography colors
3
+ */
4
+
5
+ @mixin light-scheme {
6
+ /* Framework color */
7
+ --main-bg: white;
8
+ --mask-bg: #c1c3c5;
9
+ --main-border-color: #f3f3f3;
10
+
11
+ /* Common color */
12
+ --text-color: #34343c;
13
+ --text-muted-color: #757575;
14
+ --text-muted-hightlight-color: inherit;
15
+ --heading-color: #2a2a2a;
16
+ --label-color: #585858;
17
+ --blockquote-border-color: #eeeeee;
18
+ --blockquote-text-color: #757575;
19
+ --link-color: #0056b2;
20
+ --link-underline-color: #dee2e6;
21
+ --button-bg: #ffffff;
22
+ --btn-border-color: #e9ecef;
23
+ --btn-backtotop-color: #686868;
24
+ --btn-backtotop-border-color: #f1f1f1;
25
+ --btn-box-shadow: #eaeaea;
26
+ --checkbox-color: #c5c5c5;
27
+ --checkbox-checked-color: #07a8f7;
28
+ --img-bg: radial-gradient(
29
+ circle,
30
+ rgb(255, 255, 255) 0%,
31
+ rgb(239, 239, 239) 100%
32
+ );
33
+ --shimmer-bg: linear-gradient(
34
+ 90deg,
35
+ rgba(250, 250, 250, 0) 0%,
36
+ rgba(232, 230, 230, 1) 50%,
37
+ rgba(250, 250, 250, 0) 100%
38
+ );
39
+
40
+ /* Sidebar */
41
+ --site-title-color: rgb(113, 113, 113);
42
+ --site-subtitle-color: #717171;
43
+ --sidebar-bg: #f6f8fa;
44
+ --sidebar-border-color: #efefef;
45
+ --sidebar-muted-color: #545454;
46
+ --sidebar-active-color: #1d1d1d;
47
+ --sidebar-hover-bg: rgb(223, 233, 241, 0.64);
48
+ --sidebar-btn-bg: white;
49
+ --sidebar-btn-color: #8e8e8e;
50
+ --avatar-border-color: white;
51
+
52
+ /* Topbar */
53
+ --topbar-bg: rgb(255, 255, 255, 0.7);
54
+ --topbar-text-color: rgb(78, 78, 78);
55
+ --search-border-color: rgb(240, 240, 240);
56
+ --search-icon-color: #c2c6cc;
57
+ --input-focus-border-color: #b8b8b8;
58
+
59
+ /* Home page */
60
+ --post-list-text-color: dimgray;
61
+ --btn-patinator-text-color: #555555;
62
+ --btn-paginator-hover-color: var(--sidebar-bg);
63
+
64
+ /* Posts */
65
+ --toc-highlight: #0550ae;
66
+ --btn-share-color: gray;
67
+ --btn-share-hover-color: #0d6efd;
68
+ --card-bg: white;
69
+ --card-hovor-bg: #e2e2e2;
70
+ --card-shadow: rgb(104, 104, 104, 0.05) 0 2px 6px 0,
71
+ rgba(211, 209, 209, 0.15) 0 0 0 1px;
72
+ --footnote-target-bg: lightcyan;
73
+ --tb-odd-bg: #fbfcfd;
74
+ --tb-border-color: #eaeaea;
75
+ --dash-color: silver;
76
+ --kbd-wrap-color: #bdbdbd;
77
+ --kbd-text-color: var(--text-color);
78
+ --kbd-bg-color: white;
79
+ --prompt-text-color: rgb(46, 46, 46, 0.77);
80
+ --prompt-tip-bg: rgb(123, 247, 144, 0.2);
81
+ --prompt-tip-icon-color: #03b303;
82
+ --prompt-info-bg: #e1f5fe;
83
+ --prompt-info-icon-color: #0070cb;
84
+ --prompt-warning-bg: rgb(255, 243, 205);
85
+ --prompt-warning-icon-color: #ef9c03;
86
+ --prompt-danger-bg: rgb(248, 215, 218, 0.56);
87
+ --prompt-danger-icon-color: #df3c30;
88
+
89
+ /* Tags */
90
+ --tag-border: #dee2e6;
91
+ --tag-shadow: var(--btn-border-color);
92
+ --tag-hover: rgb(222, 226, 230);
93
+ --search-tag-bg: #f8f9fa;
94
+
95
+ [class^='prompt-'] {
96
+ --link-underline-color: rgb(219, 216, 216);
97
+ }
98
+
99
+ .dark {
100
+ display: none;
101
+ }
102
+
103
+ /* Categories */
104
+ --categories-border: rgba(0, 0, 0, 0.125);
105
+ --categories-hover-bg: var(--btn-border-color);
106
+ --categories-icon-hover-color: darkslategray;
107
+
108
+ /* Archive */
109
+ --timeline-color: rgba(0, 0, 0, 0.075);
110
+ --timeline-node-bg: #c2c6cc;
111
+ --timeline-year-dot-color: #ffffff;
112
+ } /* light-scheme */
@@ -0,0 +1,144 @@
1
+ /*
2
+ Style for Archives
3
+ */
4
+
5
+ #archives {
6
+ letter-spacing: 0.03rem;
7
+
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;
20
+ font-size: 1.5rem;
21
+ position: relative;
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
+ }
39
+
40
+ /* Year dot */
41
+ &::after {
42
+ content: '';
43
+ display: inline-block;
44
+ position: relative;
45
+ border-radius: 50%;
46
+ width: 12px;
47
+ height: 12px;
48
+ left: 21.5px;
49
+ border: 3px solid;
50
+ background-color: var(--timeline-year-dot-color);
51
+ border-color: var(--timeline-node-bg);
52
+ box-shadow: 0 0 2px 0 #c2c6cc;
53
+ z-index: 1;
54
+ }
55
+ }
56
+
57
+ ul {
58
+ li {
59
+ font-size: 1.1rem;
60
+ line-height: 3rem;
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+
65
+ &:nth-child(odd) {
66
+ background-color: var(--main-bg, #ffffff);
67
+ background-image: linear-gradient(
68
+ to left,
69
+ #ffffff,
70
+ #fbfbfb,
71
+ #fbfbfb,
72
+ #fbfbfb,
73
+ #ffffff
74
+ );
75
+ }
76
+
77
+ &::before {
78
+ @extend %timeline;
79
+
80
+ top: 0;
81
+ left: 77px;
82
+ height: 3.1rem;
83
+ }
84
+ }
85
+
86
+ &:last-child li:last-child::before {
87
+ height: 1.5rem;
88
+ }
89
+ } /* #archives ul */
90
+
91
+ .date {
92
+ white-space: nowrap;
93
+ display: inline-block;
94
+ position: relative;
95
+ right: 0.5rem;
96
+
97
+ &.month {
98
+ width: 1.4rem;
99
+ text-align: center;
100
+ }
101
+
102
+ &.day {
103
+ font-size: 85%;
104
+ font-family: Lato, sans-serif;
105
+ }
106
+ }
107
+
108
+ a {
109
+ /* post title in Archvies */
110
+ margin-left: 2.5rem;
111
+ position: relative;
112
+ top: 0.1rem;
113
+
114
+ &:hover {
115
+ border-bottom: none;
116
+ }
117
+
118
+ &::before {
119
+ /* the dot before post title */
120
+ content: '';
121
+ display: inline-block;
122
+ position: relative;
123
+ border-radius: 50%;
124
+ width: 8px;
125
+ height: 8px;
126
+ float: left;
127
+ top: 1.35rem;
128
+ left: 71px;
129
+ background-color: var(--timeline-node-bg);
130
+ box-shadow: 0 0 3px 0 #c2c6cc;
131
+ z-index: 1;
132
+ }
133
+ }
134
+ } /* #archives */
135
+
136
+ @media all and (max-width: 576px) {
137
+ #archives {
138
+ margin-top: -1rem;
139
+
140
+ ul {
141
+ letter-spacing: 0;
142
+ }
143
+ }
144
+ }
@@ -0,0 +1,83 @@
1
+ /*
2
+ Style for Tab Categories
3
+ */
4
+
5
+ %category-icon-color {
6
+ color: gray;
7
+ }
8
+
9
+ .categories {
10
+ margin-bottom: 2rem;
11
+ border-color: var(--categories-border);
12
+
13
+ &.card,
14
+ .list-group {
15
+ @extend %rounded;
16
+ }
17
+
18
+ .card-header {
19
+ $radius: calc($base-radius - 1px);
20
+
21
+ padding: 0.75rem;
22
+ border-radius: $radius;
23
+ border-bottom: 0;
24
+
25
+ &.hide-border-bottom {
26
+ border-bottom-left-radius: 0;
27
+ border-bottom-right-radius: 0;
28
+ }
29
+ }
30
+
31
+ i {
32
+ @extend %category-icon-color;
33
+
34
+ font-size: 86%; /* fontawesome icons */
35
+ }
36
+
37
+ .list-group-item {
38
+ border-left: none;
39
+ border-right: none;
40
+ padding-left: 2rem;
41
+
42
+ &:first-child {
43
+ border-top-left-radius: 0;
44
+ border-top-right-radius: 0;
45
+ }
46
+
47
+ &:last-child {
48
+ border-bottom: 0;
49
+ }
50
+ }
51
+ } /* .categories */
52
+
53
+ .category-trigger {
54
+ width: 1.7rem;
55
+ height: 1.7rem;
56
+ border-radius: 50%;
57
+ text-align: center;
58
+ color: #6c757d !important;
59
+
60
+ i {
61
+ position: relative;
62
+ height: 0.7rem;
63
+ width: 1rem;
64
+ transition: transform 300ms ease;
65
+ }
66
+
67
+ &:hover {
68
+ i {
69
+ color: var(--categories-icon-hover-color);
70
+ }
71
+ }
72
+ }
73
+
74
+ /* only works on desktop */
75
+ @media (hover: hover) {
76
+ .category-trigger:hover {
77
+ background-color: var(--categories-hover-bg);
78
+ }
79
+ }
80
+
81
+ .rotate {
82
+ transform: rotate(-90deg);
83
+ }