jekyll-theme-chirpy-g 1.1.0 → 1.2.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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/_data/locales/ar.yml +7 -1
  3. data/_data/locales/bg-BG.yml +7 -1
  4. data/_data/locales/ca-ES.yml +7 -1
  5. data/_data/locales/cs-CZ.yml +7 -1
  6. data/_data/locales/da-DK.yml +7 -1
  7. data/_data/locales/de-DE.yml +7 -1
  8. data/_data/locales/dv/342/200/221MV.yml +7 -1
  9. data/_data/locales/el-GR.yml +7 -1
  10. data/_data/locales/en.yml +7 -1
  11. data/_data/locales/es-ES.yml +7 -1
  12. data/_data/locales/fa-IR.yml +7 -1
  13. data/_data/locales/fi-FI.yml +7 -1
  14. data/_data/locales/fr-FR.yml +7 -1
  15. data/_data/locales/hu-HU.yml +7 -1
  16. data/_data/locales/id-ID.yml +7 -1
  17. data/_data/locales/it-IT.yml +7 -1
  18. data/_data/locales/ja-JP.yml +7 -1
  19. data/_data/locales/ko-KR.yml +7 -1
  20. data/_data/locales/ku-IQ.yml +7 -1
  21. data/_data/locales/my-MM.yml +7 -1
  22. data/_data/locales/nl-NL.yml +7 -1
  23. data/_data/locales/ps/342/200/221AF.yml +7 -1
  24. data/_data/locales/pt-BR.yml +7 -1
  25. data/_data/locales/ru-RU.yml +7 -1
  26. data/_data/locales/sl-SI.yml +7 -1
  27. data/_data/locales/sv-SE.yml +7 -1
  28. data/_data/locales/th.yml +7 -1
  29. data/_data/locales/tr-TR.yml +7 -1
  30. data/_data/locales/uk-UA.yml +7 -1
  31. data/_data/locales/ur-PK.yml +7 -1
  32. data/_data/locales/vi-VN.yml +7 -1
  33. data/_data/locales/zh-CN.yml +7 -1
  34. data/_data/locales/zh-TW.yml +7 -1
  35. data/_data/origin/cors.yml +18 -15
  36. data/_includes/comments/disqus.html +2 -2
  37. data/_includes/comments/giscus.html +17 -7
  38. data/_includes/comments/utterances.html +4 -4
  39. data/_includes/datetime.html +1 -1
  40. data/_includes/head.html +2 -4
  41. data/_includes/js-selector.html +0 -1
  42. data/_includes/notification.html +13 -9
  43. data/_includes/post-edit.html +23 -0
  44. data/_includes/sidebar.html +48 -6
  45. data/_layouts/default.html +6 -5
  46. data/_layouts/post.html +16 -13
  47. data/_sass/abstracts/_mixins.scss +6 -0
  48. data/_sass/abstracts/_variables.scss +6 -0
  49. data/_sass/base/_base.scss +28 -20
  50. data/_sass/base/_syntax.scss +86 -80
  51. data/_sass/components/_popups.scss +17 -28
  52. data/_sass/layout/_sidebar.scss +97 -9
  53. data/_sass/pages/_graph.scss +6 -2
  54. data/_sass/pages/_post.scss +10 -0
  55. data/_sass/themes/_dark.scss +7 -2
  56. data/_sass/themes/_light.scss +7 -2
  57. data/_sass/vendors/_bootstrap.scss +1 -1
  58. data/assets/css/jekyll-theme-chirpy-g.scss +4 -0
  59. data/assets/img/favicons/site.webmanifest +1 -1
  60. data/assets/js/data/mathjax.js +4 -0
  61. data/assets/js/dist/app.min.js +2 -2
  62. data/assets/js/dist/categories.min.js +2 -2
  63. data/assets/js/dist/commons.min.js +2 -2
  64. data/assets/js/dist/graph.min.js +2 -2
  65. data/assets/js/dist/home.min.js +2 -2
  66. data/assets/js/dist/misc.min.js +2 -2
  67. data/assets/js/dist/page.min.js +2 -2
  68. data/assets/js/dist/post.min.js +2 -2
  69. data/assets/js/dist/sw.min.js +1 -1
  70. data/assets/js/dist/theme.min.js +2 -2
  71. metadata +3 -2
@@ -124,6 +124,87 @@ div[class^='language-'] {
124
124
  }
125
125
 
126
126
  .code-header {
127
+ @extend %no-cursor;
128
+
129
+ display: flex;
130
+ justify-content: space-between;
131
+ align-items: center;
132
+ height: v.$code-header-height;
133
+ margin-left: 0.75rem;
134
+ margin-right: 0.25rem;
135
+
136
+ /* the label block */
137
+ span {
138
+ color: var(--code-header-text-color);
139
+ line-height: v.$code-header-height;
140
+ overflow: hidden;
141
+ text-overflow: ellipsis;
142
+ white-space: nowrap;
143
+
144
+ /* label icon */
145
+ i {
146
+ font-size: 1rem;
147
+ width: v.$code-icon-width;
148
+ color: var(--code-header-icon-color);
149
+
150
+ &.small {
151
+ font-size: 70%;
152
+ }
153
+ }
154
+
155
+ @at-root [file] #{&} > i {
156
+ position: relative;
157
+ top: 1px; /* center the file icon */
158
+ }
159
+
160
+ /* label text */
161
+ &::after {
162
+ content: attr(data-label-text);
163
+ font-size: 0.85rem;
164
+ font-weight: 600;
165
+ }
166
+ }
167
+
168
+ /* clipboard */
169
+ button {
170
+ @extend %cursor-pointer;
171
+ @extend %rounded;
172
+
173
+ border: 1px solid transparent;
174
+ height: 2rem;
175
+ width: 2rem;
176
+ margin-right: 0.125rem;
177
+ padding: 0;
178
+ background-color: inherit;
179
+
180
+ i {
181
+ color: var(--code-header-icon-color);
182
+ }
183
+
184
+ &[timeout] {
185
+ &:hover {
186
+ border-color: var(--clipboard-checked-color);
187
+ }
188
+
189
+ i {
190
+ font-size: 90%;
191
+ color: var(--clipboard-checked-color);
192
+ }
193
+ }
194
+
195
+ &:focus {
196
+ outline: none;
197
+ }
198
+
199
+ &:not([timeout]):hover {
200
+ background-color: rgb(128 128 128 / 37%);
201
+
202
+ i {
203
+ color: white;
204
+ }
205
+ }
206
+ }
207
+
127
208
  @include bp.sm {
128
209
  @include mx.ml-mr(0);
129
210
 
@@ -145,8 +226,11 @@ div[class^='language-'] {
145
226
  }
146
227
 
147
228
  span {
148
- // center the text of label
149
- margin-left: calc(($dot-margin + v.$code-dot-size) / 2 * -1);
229
+ margin-left: v.$code-icon-width * -1; // center the label text
230
+ max-width: calc(
231
+ 100% - $dot-margin - (v.$code-dot-gap + v.$code-dot-size) * 3 -
232
+ v.$code-icon-width * 4
233
+ );
150
234
  }
151
235
  }
152
236
  }
@@ -173,81 +257,3 @@ div {
173
257
  }
174
258
  }
175
259
  }
176
-
177
- .code-header {
178
- @extend %no-cursor;
179
-
180
- display: flex;
181
- justify-content: space-between;
182
- align-items: center;
183
- height: v.$code-header-height;
184
- margin-left: 0.75rem;
185
- margin-right: 0.25rem;
186
-
187
- /* the label block */
188
- span {
189
- line-height: v.$code-header-height;
190
-
191
- /* label icon */
192
- i {
193
- font-size: 1rem;
194
- width: v.$code-icon-width;
195
- color: var(--code-header-icon-color);
196
-
197
- &.small {
198
- font-size: 70%;
199
- }
200
- }
201
-
202
- @at-root [file] #{&} > i {
203
- position: relative;
204
- top: 1px; /* center the file icon */
205
- }
206
-
207
- /* label text */
208
- &::after {
209
- content: attr(data-label-text);
210
- font-size: 0.85rem;
211
- font-weight: 600;
212
- color: var(--code-header-text-color);
213
- }
214
- }
215
-
216
- /* clipboard */
217
- button {
218
- @extend %cursor-pointer;
219
- @extend %rounded;
220
-
221
- border: 1px solid transparent;
222
- height: v.$code-header-height;
223
- width: v.$code-header-height;
224
- padding: 0;
225
- background-color: inherit;
226
-
227
- i {
228
- color: var(--code-header-icon-color);
229
- }
230
-
231
- &[timeout] {
232
- &:hover {
233
- border-color: var(--clipboard-checked-color);
234
- }
235
-
236
- i {
237
- color: var(--clipboard-checked-color);
238
- }
239
- }
240
-
241
- &:focus {
242
- outline: none;
243
- }
244
-
245
- &:not([timeout]):hover {
246
- background-color: rgb(128 128 128 / 37%);
247
-
248
- i {
249
- color: white;
250
- }
251
- }
252
- }
253
- }
@@ -7,49 +7,41 @@
7
7
  @-webkit-keyframes popup {
8
8
  from {
9
9
  opacity: 0;
10
- bottom: 0;
10
+ bottom: 10%;
11
11
  }
12
12
  }
13
13
 
14
14
  @keyframes popup {
15
15
  from {
16
16
  opacity: 0;
17
- bottom: 0;
18
- }
19
- }
20
-
21
- .toast-header {
22
- background: none;
23
- border-bottom: none;
24
- color: inherit;
25
- }
26
-
27
- .toast-body {
28
- font-family: Lato, sans-serif;
29
- line-height: 1.25rem;
30
-
31
- button {
32
- font-size: 90%;
33
- min-width: 4rem;
17
+ bottom: 10%;
34
18
  }
35
19
  }
36
20
 
37
21
  &.toast {
38
22
  &.show {
39
- display: block;
40
- min-width: 20rem;
41
- border-radius: 0.5rem;
42
23
  -webkit-backdrop-filter: blur(10px);
43
24
  backdrop-filter: blur(10px);
44
- background-color: rgb(255 255 255 / 50%);
45
- color: #1b1b1eba;
46
25
  position: fixed;
47
26
  left: 50%;
48
- bottom: 20%;
27
+ bottom: 30%;
49
28
  transform: translateX(-50%);
50
29
  -webkit-animation: popup 0.8s;
51
30
  animation: popup 0.8s;
52
31
  }
32
+
33
+ .toast-body {
34
+ line-height: 1.25rem;
35
+ font-family: v.$font-family-heading;
36
+ }
37
+
38
+ button[aria-label='Update'] {
39
+ font-size: 0.8rem;
40
+ }
41
+
42
+ .btn-close {
43
+ font-size: 0.625rem;
44
+ }
53
45
  }
54
46
  }
55
47
 
@@ -101,10 +93,7 @@
101
93
  }
102
94
 
103
95
  button {
104
- > i {
105
- font-size: 1.25rem;
106
- vertical-align: middle;
107
- }
96
+ font-size: 0.75rem;
108
97
 
109
98
  &:focus-visible {
110
99
  box-shadow: none;
@@ -17,7 +17,6 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
17
17
  overflow-y: auto;
18
18
  width: v.$sidebar-width;
19
19
  background: var(--sidebar-bg);
20
- border-right: 1px solid var(--sidebar-border-color);
21
20
 
22
21
  /* Hide scrollbar for IE, Edge and Firefox */
23
22
  -ms-overflow-style: none; /* IE and Edge */
@@ -76,11 +75,12 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
76
75
  }
77
76
 
78
77
  .profile-wrapper {
79
- @include mx.mt-mb(2.5rem);
80
78
  @extend %clickable-transition;
81
79
 
82
80
  padding-left: 2.5rem;
83
81
  padding-right: 1.25rem;
82
+ margin-top: 2.5rem;
83
+ margin-bottom: 1rem;
84
84
  width: 100%;
85
85
 
86
86
  @include bp.lg {
@@ -105,6 +105,8 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
105
105
  letter-spacing: 0.25px;
106
106
  margin-top: 1.25rem;
107
107
  margin-bottom: 0.5rem;
108
+ width: -webkit-fit-content;
109
+ width: -moz-fit-content;
108
110
  width: fit-content;
109
111
  color: var(--site-title-color);
110
112
  }
@@ -114,6 +116,7 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
114
116
  color: var(--site-subtitle-color);
115
117
  margin-top: 0.25rem;
116
118
  word-spacing: 1px;
119
+ height: 3rem;
117
120
  -webkit-user-select: none;
118
121
  -moz-user-select: none;
119
122
  -ms-user-select: none;
@@ -207,7 +210,7 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
207
210
  }
208
211
  }
209
212
 
210
- a {
213
+ > a {
211
214
  @extend %button;
212
215
  @extend %sidebar-link-hover;
213
216
  @extend %clickable-transition;
@@ -227,13 +230,102 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
227
230
 
228
231
  #mode-toggle {
229
232
  @extend %button;
230
- @extend %sidebar-links;
231
233
  @extend %sidebar-link-hover;
234
+ @extend %clickable-transition;
235
+
236
+ > i {
237
+ display: none;
238
+
239
+ @at-root :root[data-bs-theme='light'][data-theme-persisted]
240
+ &[data-theme-mode='light'] {
241
+ display: block;
242
+ }
243
+
244
+ @at-root :root[data-bs-theme='dark'][data-theme-persisted]
245
+ &[data-theme-mode='dark'] {
246
+ display: block;
247
+ }
248
+
249
+ @at-root :root:not([data-theme-persisted]) &[data-theme-mode='system'] {
250
+ display: block;
251
+ }
252
+ }
253
+
254
+ @-webkit-keyframes menu-pop {
255
+ from {
256
+ opacity: 0;
257
+ translate: 0 0.5rem;
258
+ }
259
+
260
+ to {
261
+ opacity: 1;
262
+ translate: 0 0;
263
+ }
264
+ }
265
+
266
+ @keyframes menu-pop {
267
+ from {
268
+ opacity: 0;
269
+ translate: 0 0.5rem;
270
+ }
271
+
272
+ to {
273
+ opacity: 1;
274
+ translate: 0 0;
275
+ }
276
+ }
277
+
278
+ + .dropdown-menu {
279
+ background-color: var(--menu-bg);
280
+ border-color: var(--menu-border-color);
281
+ box-shadow: var(--menu-shadow-color) 0 1px 4px;
282
+ border-radius: 0.75rem !important;
283
+
284
+ &.show {
285
+ display: flex;
286
+ flex-direction: column;
287
+ gap: 0.25rem;
288
+ left: -0.25rem !important;
289
+ -webkit-animation: menu-pop 0.2s ease-out;
290
+ animation: menu-pop 0.2s ease-out;
291
+ }
292
+
293
+ .dropdown-item {
294
+ border-radius: 0.5rem;
295
+ color: var(--sidebar-muted-color);
296
+ font-size: 90%;
297
+
298
+ &.active {
299
+ font-weight: 600;
300
+ color: var(--menu-active-color);
301
+
302
+ &::after {
303
+ content: '\f00c';
304
+ font: var(--fa-font-solid);
305
+ font-size: 0.75rem;
306
+ color: var(--sidebar-btn-color);
307
+ margin-left: auto;
308
+ padding-left: 1rem;
309
+ }
310
+ }
311
+
312
+ &:active,
313
+ &:hover,
314
+ &.active {
315
+ background-color: var(--menu-highlight-bg);
316
+ }
317
+
318
+ > i {
319
+ color: var(--sidebar-btn-color);
320
+ margin-right: 0.5rem;
321
+ }
322
+ }
323
+ }
232
324
  }
233
325
 
234
326
  .icon-border {
235
327
  @extend %no-cursor;
236
- @include mx.ml-mr(calc((v.$sb-btn-gap - $btn-border-width) / 2));
328
+ @include mx.ml-mr(0.6rem);
237
329
 
238
330
  background-color: var(--sidebar-btn-color);
239
331
  content: '';
@@ -241,10 +333,6 @@ $sidebar-display: 'sidebar-display'; /* the attribute for sidebar display */
241
333
  height: $btn-border-width;
242
334
  border-radius: 50%;
243
335
  margin-bottom: $btn-mb;
244
-
245
- @include bp.xxxl {
246
- @include mx.ml-mr(calc((v.$sb-btn-gap-lg - $btn-border-width) / 2));
247
- }
248
336
  }
249
337
  } /* .sidebar-bottom */
250
338
  } /* #sidebar */
@@ -74,7 +74,7 @@
74
74
  text-anchor: middle;
75
75
  font-size: 12px;
76
76
  fill: var(--text-color);
77
- opacity: 0;
77
+ opacity: 1;
78
78
  pointer-events: none;
79
79
  }
80
80
 
@@ -82,7 +82,7 @@
82
82
  text-anchor: middle;
83
83
  font-size: 12px;
84
84
  fill: var(--text-color);
85
- opacity: 0;
85
+ opacity: 1;
86
86
  pointer-events: none;
87
87
  }
88
88
 
@@ -95,6 +95,10 @@
95
95
  .node-group.dimmed {
96
96
  opacity: 0.3;
97
97
  transition: opacity 0.2s ease;
98
+
99
+ text {
100
+ opacity: 0;
101
+ }
98
102
  }
99
103
 
100
104
  .link.dimmed {
@@ -148,6 +148,16 @@ header {
148
148
  }
149
149
  }
150
150
 
151
+ .post-edit {
152
+ line-height: 1.2rem;
153
+
154
+ > a {
155
+ &:hover {
156
+ @extend %link-hover;
157
+ }
158
+ }
159
+ }
160
+
151
161
  .post-navigation {
152
162
  @include bp.lt(bp.get(lg)) {
153
163
  @include mx.pl-pr(0);
@@ -30,6 +30,11 @@
30
30
  rgb(58 55 55 / 40%) 50%,
31
31
  rgb(255 255 255 / 0%) 100%
32
32
  );
33
+ --menu-bg: rgb(30 30 30);
34
+ --menu-border-color: rgb(77 77 77 / 60%);
35
+ --menu-shadow-color: rgb(4 4 4 / 42%);
36
+ --menu-active-color: rgb(240 248 255 / 63%);
37
+ --menu-highlight-bg: rgb(90 91 92 / 12%);
33
38
 
34
39
  /* Sidebar */
35
40
  --site-title-color: #717070;
@@ -67,8 +72,8 @@
67
72
  --btn-share-hover-color: #bfc1ca;
68
73
  --card-bg: #1e1e1e;
69
74
  --card-hover-bg: #464d51;
70
- --card-shadow: rgb(21 21 21 / 72%) 0 6px 18px 0,
71
- rgb(137 135 135 / 24%) 0 0 0 1px;
75
+ --card-shadow:
76
+ rgb(21 21 21 / 72%) 0 6px 18px 0, rgb(137 135 135 / 24%) 0 0 0 1px;
72
77
  --kbd-wrap-color: #6a6a6a;
73
78
  --kbd-text-color: #d3d3d3;
74
79
  --kbd-bg-color: #242424;
@@ -27,6 +27,11 @@
27
27
  rgb(232 230 230 / 100%) 50%,
28
28
  rgb(250 250 250 / 0%) 100%
29
29
  );
30
+ --menu-bg: white;
31
+ --menu-border-color: white;
32
+ --menu-shadow-color: rgb(0 0 0 / 16%);
33
+ --menu-active-color: rgb(91 91 91);
34
+ --menu-highlight-bg: rgb(243 244 245 / 50%);
30
35
 
31
36
  /* Sidebar */
32
37
  --site-title-color: rgb(113 113 113);
@@ -59,8 +64,8 @@
59
64
  --btn-share-hover-color: #0d6efd;
60
65
  --card-bg: white;
61
66
  --card-hover-bg: #e2e2e2;
62
- --card-shadow: rgb(104 104 104 / 5%) 0 2px 6px 0,
63
- rgb(211 209 209 / 15%) 0 0 0 1px;
67
+ --card-shadow:
68
+ rgb(104 104 104 / 5%) 0 2px 6px 0, rgb(211 209 209 / 15%) 0 0 0 1px;
64
69
  --footnote-target-bg: lightcyan;
65
70
  --tb-odd-bg: #fbfcfd;
66
71
  --tb-border-color: #eaeaea;