jekyll-theme-chirpy-g 1.0.2

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 (144) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +61 -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/fa-IR.yaml +91 -0
  12. data/_data/locales/fi-FI.yml +90 -0
  13. data/_data/locales/fr-FR.yml +77 -0
  14. data/_data/locales/hu-HU.yml +92 -0
  15. data/_data/locales/id-ID.yml +77 -0
  16. data/_data/locales/it-IT.yml +90 -0
  17. data/_data/locales/ko-KR.yml +84 -0
  18. data/_data/locales/my-MM.yml +77 -0
  19. data/_data/locales/nl-NL.yml +90 -0
  20. data/_data/locales/pt-BR.yml +77 -0
  21. data/_data/locales/ru-RU.yml +87 -0
  22. data/_data/locales/sl-SI.yml +91 -0
  23. data/_data/locales/sv-SE.yml +91 -0
  24. data/_data/locales/th.yml +91 -0
  25. data/_data/locales/tr-TR.yml +77 -0
  26. data/_data/locales/uk-UA.yml +77 -0
  27. data/_data/locales/vi-VN.yml +76 -0
  28. data/_data/locales/zh-CN.yml +83 -0
  29. data/_data/locales/zh-TW.yml +83 -0
  30. data/_data/origin/basic.yml +39 -0
  31. data/_data/origin/cors.yml +54 -0
  32. data/_includes/analytics/cloudflare.html +6 -0
  33. data/_includes/analytics/fathom.html +6 -0
  34. data/_includes/analytics/goatcounter.html +6 -0
  35. data/_includes/analytics/google.html +13 -0
  36. data/_includes/analytics/matomo.html +13 -0
  37. data/_includes/analytics/umami.html +6 -0
  38. data/_includes/comment.html +5 -0
  39. data/_includes/comments/disqus.html +57 -0
  40. data/_includes/comments/giscus.html +55 -0
  41. data/_includes/comments/utterances.html +38 -0
  42. data/_includes/datetime.html +20 -0
  43. data/_includes/embed/audio.html +35 -0
  44. data/_includes/embed/bilibili.html +9 -0
  45. data/_includes/embed/twitch.html +8 -0
  46. data/_includes/embed/video.html +59 -0
  47. data/_includes/embed/youtube.html +9 -0
  48. data/_includes/favicons.html +19 -0
  49. data/_includes/footer.html +49 -0
  50. data/_includes/head.html +126 -0
  51. data/_includes/js-selector.html +86 -0
  52. data/_includes/jsdelivr-combine.html +26 -0
  53. data/_includes/lang.html +10 -0
  54. data/_includes/language-alias.html +70 -0
  55. data/_includes/media-url.html +37 -0
  56. data/_includes/metadata-hook.html +1 -0
  57. data/_includes/notification.html +24 -0
  58. data/_includes/origin-type.html +13 -0
  59. data/_includes/pageviews/goatcounter.html +21 -0
  60. data/_includes/post-description.html +25 -0
  61. data/_includes/post-nav.html +34 -0
  62. data/_includes/post-paginator.html +91 -0
  63. data/_includes/post-sharing.html +52 -0
  64. data/_includes/read-time.html +37 -0
  65. data/_includes/refactor-content.html +255 -0
  66. data/_includes/related-posts.html +94 -0
  67. data/_includes/search-loader.html +49 -0
  68. data/_includes/search-results.html +10 -0
  69. data/_includes/sidebar.html +97 -0
  70. data/_includes/toc-status.html +10 -0
  71. data/_includes/toc.html +9 -0
  72. data/_includes/topbar.html +77 -0
  73. data/_includes/trending-tags.html +46 -0
  74. data/_includes/update-list.html +40 -0
  75. data/_layouts/archives.html +35 -0
  76. data/_layouts/categories.html +138 -0
  77. data/_layouts/category.html +24 -0
  78. data/_layouts/compress.html +10 -0
  79. data/_layouts/default.html +86 -0
  80. data/_layouts/graph.html +8 -0
  81. data/_layouts/home.html +122 -0
  82. data/_layouts/page.html +20 -0
  83. data/_layouts/post.html +179 -0
  84. data/_layouts/tag.html +23 -0
  85. data/_layouts/tags.html +22 -0
  86. data/_sass/abstracts/_breakpoints.scss +73 -0
  87. data/_sass/abstracts/_index.scss +4 -0
  88. data/_sass/abstracts/_mixins.scss +80 -0
  89. data/_sass/abstracts/_placeholders.scss +160 -0
  90. data/_sass/abstracts/_variables.scss +30 -0
  91. data/_sass/base/_base.scss +476 -0
  92. data/_sass/base/_index.scss +4 -0
  93. data/_sass/base/_reset.scss +41 -0
  94. data/_sass/base/_syntax.scss +253 -0
  95. data/_sass/base/_typography.scss +266 -0
  96. data/_sass/components/_buttons.scss +51 -0
  97. data/_sass/components/_index.scss +2 -0
  98. data/_sass/components/_popups.scss +172 -0
  99. data/_sass/layout/_footer.scss +36 -0
  100. data/_sass/layout/_index.scss +4 -0
  101. data/_sass/layout/_panel.scss +70 -0
  102. data/_sass/layout/_sidebar.scss +258 -0
  103. data/_sass/layout/_topbar.scss +86 -0
  104. data/_sass/main.bundle.scss +2 -0
  105. data/_sass/main.scss +4 -0
  106. data/_sass/pages/_archives.scss +140 -0
  107. data/_sass/pages/_categories.scss +82 -0
  108. data/_sass/pages/_category-tag.scss +63 -0
  109. data/_sass/pages/_graph.scss +51 -0
  110. data/_sass/pages/_home.scss +173 -0
  111. data/_sass/pages/_index.scss +8 -0
  112. data/_sass/pages/_post.scss +498 -0
  113. data/_sass/pages/_search.scss +184 -0
  114. data/_sass/pages/_tags.scss +23 -0
  115. data/_sass/themes/_dark.scss +318 -0
  116. data/_sass/themes/_light.scss +330 -0
  117. data/assets/404.html +14 -0
  118. data/assets/css/jekyll-theme-chirpy-g.scss +10 -0
  119. data/assets/feed.xml +54 -0
  120. data/assets/img/favicons/android-chrome-192x192.png +0 -0
  121. data/assets/img/favicons/android-chrome-512x512.png +0 -0
  122. data/assets/img/favicons/apple-touch-icon.png +0 -0
  123. data/assets/img/favicons/browserconfig.xml +13 -0
  124. data/assets/img/favicons/favicon-16x16.png +0 -0
  125. data/assets/img/favicons/favicon-32x32.png +0 -0
  126. data/assets/img/favicons/favicon.ico +0 -0
  127. data/assets/img/favicons/mstile-150x150.png +0 -0
  128. data/assets/img/favicons/site.webmanifest +26 -0
  129. data/assets/js/data/graph.json +14 -0
  130. data/assets/js/data/mathjax.js +25 -0
  131. data/assets/js/data/search.json +20 -0
  132. data/assets/js/data/swconf.js +47 -0
  133. data/assets/js/dist/app.min.js +7 -0
  134. data/assets/js/dist/categories.min.js +4 -0
  135. data/assets/js/dist/commons.min.js +4 -0
  136. data/assets/js/dist/graph.min.js +4 -0
  137. data/assets/js/dist/home.min.js +4 -0
  138. data/assets/js/dist/misc.min.js +4 -0
  139. data/assets/js/dist/page.min.js +4 -0
  140. data/assets/js/dist/post.min.js +4 -0
  141. data/assets/js/dist/sw.min.js +7 -0
  142. data/assets/js/dist/theme.min.js +4 -0
  143. data/assets/robots.txt +10 -0
  144. metadata +286 -0
@@ -0,0 +1,476 @@
1
+ @use '../abstracts/variables' as v;
2
+ @use '../abstracts/breakpoints' as bp;
3
+ @use '../abstracts/mixins' as mx;
4
+ @use '../abstracts/placeholders';
5
+ @use '../themes/light';
6
+ @use '../themes/dark';
7
+
8
+ :root {
9
+ font-size: 16px;
10
+ }
11
+
12
+ html {
13
+ @media (prefers-color-scheme: light) {
14
+ &:not([data-mode]),
15
+ &[data-mode='light'] {
16
+ @include light.styles;
17
+ }
18
+
19
+ &[data-mode='dark'] {
20
+ @include dark.styles;
21
+ }
22
+ }
23
+
24
+ @media (prefers-color-scheme: dark) {
25
+ &:not([data-mode]),
26
+ &[data-mode='dark'] {
27
+ @include dark.styles;
28
+ }
29
+
30
+ &[data-mode='light'] {
31
+ @include light.styles;
32
+ }
33
+ }
34
+
35
+ @include bp.lg {
36
+ overflow-y: scroll;
37
+ }
38
+ }
39
+
40
+ body {
41
+ background: var(--main-bg);
42
+ padding: env(safe-area-inset-top) env(safe-area-inset-right)
43
+ env(safe-area-inset-bottom) env(safe-area-inset-left);
44
+ color: var(--text-color);
45
+ -webkit-font-smoothing: antialiased;
46
+ font-family: v.$font-family-base;
47
+ }
48
+
49
+ h1.dynamic-title {
50
+ @include bp.lt(bp.get(lg)) {
51
+ display: none;
52
+
53
+ ~ .content {
54
+ margin-top: 2.5rem;
55
+ }
56
+ }
57
+ }
58
+
59
+ main {
60
+ &.col-12 {
61
+ @include bp.xxxl {
62
+ padding-right: 4.5rem !important;
63
+ }
64
+ }
65
+ }
66
+
67
+ .preview-img {
68
+ aspect-ratio: 40 / 21;
69
+ width: 100%;
70
+ height: 100%;
71
+ overflow: hidden;
72
+
73
+ @extend %rounded;
74
+
75
+ &:not(.no-bg) {
76
+ background: var(--img-bg);
77
+ }
78
+
79
+ img {
80
+ height: 100%;
81
+ -o-object-fit: cover;
82
+ object-fit: cover;
83
+
84
+ @extend %rounded;
85
+
86
+ @at-root #post-list & {
87
+ width: 100%;
88
+ }
89
+ }
90
+ }
91
+
92
+ .post-preview {
93
+ @extend %rounded;
94
+
95
+ border: 0;
96
+ background: var(--card-bg);
97
+ box-shadow: var(--card-shadow);
98
+
99
+ &::before {
100
+ @extend %rounded;
101
+
102
+ content: '';
103
+ width: 100%;
104
+ height: 100%;
105
+ position: absolute;
106
+ background-color: var(--card-hovor-bg);
107
+ opacity: 0;
108
+ transition: opacity 0.35s ease-in-out;
109
+ }
110
+
111
+ &:hover {
112
+ &::before {
113
+ opacity: 0.3;
114
+ }
115
+ }
116
+ }
117
+
118
+ .post-meta {
119
+ @extend %text-sm;
120
+
121
+ a {
122
+ &:not([class]):hover {
123
+ @extend %link-hover;
124
+ }
125
+ }
126
+
127
+ em {
128
+ @extend %normal-font-style;
129
+ }
130
+ }
131
+
132
+ .content {
133
+ font-size: 1.08rem;
134
+ margin-top: 2rem;
135
+ overflow-wrap: break-word;
136
+
137
+ @include bp.xl {
138
+ font-size: 1.03rem;
139
+ }
140
+
141
+ a {
142
+ &.popup {
143
+ @extend %no-cursor;
144
+ @extend %img-caption;
145
+ @include mx.mt-mb(0.5rem);
146
+
147
+ cursor: zoom-in;
148
+ }
149
+
150
+ &:not(.img-link) {
151
+ @extend %link-underline;
152
+
153
+ &:hover {
154
+ @extend %link-hover;
155
+ }
156
+ }
157
+ }
158
+
159
+ ol,
160
+ ul {
161
+ &:not([class]),
162
+ &.task-list {
163
+ -webkit-padding-start: 1.75rem;
164
+ padding-inline-start: 1.75rem;
165
+
166
+ li {
167
+ margin: 0.25rem 0;
168
+ padding-left: 0.25rem;
169
+ }
170
+
171
+ ol,
172
+ ul {
173
+ -webkit-padding-start: 1.25rem;
174
+ padding-inline-start: 1.25rem;
175
+ margin: 0.5rem 0;
176
+ }
177
+ }
178
+ }
179
+
180
+ ul.task-list {
181
+ -webkit-padding-start: 1.25rem;
182
+ padding-inline-start: 1.25rem;
183
+
184
+ li {
185
+ list-style-type: none;
186
+ padding-left: 0;
187
+
188
+ /* checkbox icon */
189
+ > i {
190
+ width: 2rem;
191
+ margin-left: -1.25rem;
192
+ color: var(--checkbox-color);
193
+
194
+ &.checked {
195
+ color: var(--checkbox-checked-color);
196
+ }
197
+ }
198
+
199
+ ul {
200
+ -webkit-padding-start: 1.75rem;
201
+ padding-inline-start: 1.75rem;
202
+ }
203
+ }
204
+
205
+ input[type='checkbox'] {
206
+ margin: 0 0.5rem 0.2rem -1.3rem;
207
+ vertical-align: middle;
208
+ }
209
+ } /* ul */
210
+
211
+ dl > dd {
212
+ margin-left: 1rem;
213
+ }
214
+
215
+ ::marker {
216
+ color: var(--text-muted-color);
217
+ }
218
+
219
+ .table-wrapper > table {
220
+ @include bp.lg {
221
+ min-width: 70%;
222
+ }
223
+ }
224
+ } /* .content */
225
+
226
+ .tag:hover {
227
+ @extend %tag-hover;
228
+ }
229
+
230
+ .post-tag {
231
+ display: inline-block;
232
+ min-width: 2rem;
233
+ text-align: center;
234
+ border-radius: 0.5rem;
235
+ border: 1px solid var(--btn-border-color);
236
+ padding: 0 0.4rem;
237
+ color: var(--text-muted-color);
238
+ line-height: 1.3rem;
239
+
240
+ &:not(:last-child) {
241
+ margin-right: 0.2rem;
242
+ }
243
+ }
244
+
245
+ .rounded-10 {
246
+ border-radius: 10px !important;
247
+ }
248
+
249
+ .img-link {
250
+ color: transparent;
251
+ display: inline-flex;
252
+ }
253
+
254
+ .shimmer {
255
+ overflow: hidden;
256
+ position: relative;
257
+ background: var(--img-bg);
258
+
259
+ &::before {
260
+ content: '';
261
+ position: absolute;
262
+ background: var(--shimmer-bg);
263
+ height: 100%;
264
+ width: 100%;
265
+ -webkit-animation: shimmer 1.3s infinite;
266
+ animation: shimmer 1.3s infinite;
267
+ }
268
+
269
+ @-webkit-keyframes shimmer {
270
+ 0% {
271
+ transform: translateX(-100%);
272
+ }
273
+
274
+ 100% {
275
+ transform: translateX(100%);
276
+ }
277
+ }
278
+
279
+ @keyframes shimmer {
280
+ 0% {
281
+ transform: translateX(-100%);
282
+ }
283
+
284
+ 100% {
285
+ transform: translateX(100%);
286
+ }
287
+ }
288
+ }
289
+
290
+ .embed-video {
291
+ width: 100%;
292
+ height: 100%;
293
+ margin-bottom: 1rem;
294
+ aspect-ratio: 16 / 9;
295
+
296
+ @extend %rounded;
297
+
298
+ &.twitch {
299
+ aspect-ratio: 310 / 189;
300
+ }
301
+
302
+ &.file {
303
+ display: block;
304
+ width: auto;
305
+ height: auto;
306
+ max-width: 100%;
307
+ max-height: 100%;
308
+ margin: auto;
309
+ margin-bottom: 0;
310
+ }
311
+
312
+ @extend %img-caption;
313
+ }
314
+
315
+ .embed-audio {
316
+ width: 100%;
317
+ display: block;
318
+
319
+ @extend %img-caption;
320
+ }
321
+
322
+ /* --- Effects classes --- */
323
+
324
+ .flex-grow-1 {
325
+ flex-grow: 1 !important;
326
+ }
327
+
328
+ .btn-box-shadow {
329
+ box-shadow: var(--card-shadow);
330
+ }
331
+
332
+ /* overwrite bootstrap muted */
333
+ .text-muted {
334
+ color: var(--text-muted-color) !important;
335
+ }
336
+
337
+ /* Overwrite bootstrap tooltip */
338
+ .tooltip-inner {
339
+ font-size: 0.7rem;
340
+ max-width: 220px;
341
+ text-align: left;
342
+ }
343
+
344
+ /* Overwrite bootstrap outline button */
345
+ .btn.btn-outline-primary {
346
+ &:not(.disabled):hover {
347
+ border-color: #007bff !important;
348
+ }
349
+ }
350
+
351
+ .disabled {
352
+ color: rgb(206, 196, 196);
353
+ pointer-events: auto;
354
+ cursor: not-allowed;
355
+ }
356
+
357
+ .hide-border-bottom {
358
+ border-bottom: none !important;
359
+ }
360
+
361
+ .input-focus {
362
+ box-shadow: none;
363
+ border-color: var(--input-focus-border-color) !important;
364
+ background: center !important;
365
+ transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
366
+ }
367
+
368
+ .left {
369
+ float: left;
370
+ margin: 0.75rem 1rem 1rem 0;
371
+ }
372
+
373
+ .right {
374
+ float: right;
375
+ margin: 0.75rem 0 1rem 1rem;
376
+ }
377
+
378
+ /* --- Overriding --- */
379
+
380
+ /* mermaid */
381
+ .mermaid {
382
+ text-align: center;
383
+ }
384
+
385
+ /* MathJax */
386
+ mjx-container {
387
+ overflow-y: hidden;
388
+ min-width: auto !important;
389
+ }
390
+
391
+ @media (hover: hover) {
392
+ #sidebar ul > li:last-child::after {
393
+ transition: top 0.5s ease;
394
+ }
395
+
396
+ .nav-link {
397
+ transition: background-color 0.3s ease-in-out;
398
+ }
399
+
400
+ .post-preview {
401
+ transition: background-color 0.35s ease-in-out;
402
+ }
403
+ }
404
+
405
+ #mask {
406
+ inset: 0 0 0 0;
407
+ }
408
+
409
+ #main-wrapper {
410
+ position: relative;
411
+
412
+ @include mx.pl-pr(0);
413
+
414
+ @include bp.lt(bp.get(lg)) {
415
+ @include mx.slide;
416
+ }
417
+
418
+ @include bp.lg {
419
+ margin-left: v.$sidebar-width;
420
+ }
421
+
422
+ @include bp.xxxl {
423
+ margin-left: v.$sidebar-width-large;
424
+ }
425
+
426
+ > .container {
427
+ min-height: 100vh;
428
+
429
+ @include bp.lte(bp.get(md)) {
430
+ @include mx.max-w-100;
431
+ @include mx.pl-pr(0);
432
+ }
433
+
434
+ @include bp.lt(bp.get(lg)) {
435
+ max-width: 100%;
436
+ }
437
+
438
+ /* Pad horizontal */
439
+ @include bp.between(992px, calc(#{bp.get(xl)} - 1px)) {
440
+ .col-lg-11 {
441
+ flex: 0 0 96%;
442
+ max-width: 96%;
443
+ }
444
+ }
445
+
446
+ @include bp.lt(bp.get(xl)) {
447
+ > .row {
448
+ justify-content: center !important;
449
+ }
450
+ }
451
+
452
+ @include bp.xxxl {
453
+ max-width: v.$main-content-max-width;
454
+
455
+ @include mx.pl-pr(1.75rem, true);
456
+ }
457
+ }
458
+ }
459
+
460
+ /* --- basic wrappers --- */
461
+
462
+ #topbar-wrapper.row,
463
+ #main-wrapper > .container > .row,
464
+ #search-result-wrapper > .row {
465
+ @include mx.ml-mr(0);
466
+ }
467
+
468
+ #tail-wrapper {
469
+ @include bp.xxxl {
470
+ padding-right: 4.5rem !important;
471
+ }
472
+
473
+ > :not(script) {
474
+ margin-top: 3rem;
475
+ }
476
+ }
@@ -0,0 +1,4 @@
1
+ @forward 'reset';
2
+ @forward 'base';
3
+ @forward 'typography';
4
+ @forward 'syntax';
@@ -0,0 +1,41 @@
1
+ @use '../abstracts/mixins' as *;
2
+
3
+ ::-webkit-input-placeholder {
4
+ @include placeholder;
5
+ }
6
+
7
+ ::-moz-placeholder {
8
+ @include placeholder;
9
+ }
10
+
11
+ :-ms-input-placeholder {
12
+ @include placeholder;
13
+ }
14
+
15
+ ::-ms-input-placeholder {
16
+ @include placeholder;
17
+ }
18
+
19
+ ::placeholder {
20
+ @include placeholder;
21
+ }
22
+
23
+ :focus::-webkit-input-placeholder {
24
+ @include placeholder-focus;
25
+ }
26
+
27
+ :focus::-moz-placeholder {
28
+ @include placeholder-focus;
29
+ }
30
+
31
+ :focus:-ms-input-placeholder {
32
+ @include placeholder-focus;
33
+ }
34
+
35
+ :focus::-ms-input-placeholder {
36
+ @include placeholder-focus;
37
+ }
38
+
39
+ :focus::placeholder {
40
+ @include placeholder-focus;
41
+ }