jekyll-theme-fica 0.2.0 → 0.3.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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  3. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  4. data/.github/workflows/ci.yaml +5 -2
  5. data/.github/workflows/ci.yaml.orig +34 -0
  6. data/404.html +12 -10
  7. data/License.md +2 -8
  8. data/README.md +53 -49
  9. data/_includes/Footer.html +88 -85
  10. data/_includes/Head.html +24 -12
  11. data/_includes/Header.html +21 -34
  12. data/_includes/assets/BTT.html +8 -0
  13. data/_includes/{Google-Analytics.html → assets/Google-Analytics.html} +12 -12
  14. data/_includes/assets/anchor-headings.html +164 -0
  15. data/_includes/assets/comments.html +16 -0
  16. data/_includes/assets/toc.html +174 -0
  17. data/_layouts/default.html +16 -14
  18. data/_layouts/home.html +25 -67
  19. data/_layouts/page.html +5 -3
  20. data/_layouts/post.html +48 -52
  21. data/_layouts/post_list.html +103 -0
  22. data/_posts/2022-03-31-To-Know-if-the-nav-works.md +9 -8
  23. data/_posts/{2022-04-1-Demo.md → 2022-04-1-Elements-of-Fica-Theme.md} +111 -113
  24. data/_posts/2022-04-5-Getting-Started.md +149 -149
  25. data/_posts/2022-04-6-Creating-a-new-post.md +144 -136
  26. data/_posts/2023-04-24-Fica-Customization.md +43 -0
  27. data/_sass/base.scss +437 -0
  28. data/_sass/{themes/dark theme/highlight.scss → colors/dark-theme/highlight.scss} +362 -362
  29. data/_sass/{themes/dark theme/theme-dark.scss → colors/dark-theme/theme-dark.scss} +132 -142
  30. data/_sass/{themes/light theme/highlight.scss → colors/light-theme/highlight.scss} +198 -198
  31. data/_sass/{themes/light theme/theme-light.scss → colors/light-theme/theme-light.scss} +126 -136
  32. data/_sass/jekyll-theme-fica.scss +1 -8
  33. data/_sass/layouts/Google-fonts.scss +103 -138
  34. data/_sass/layouts/component.scss +272 -0
  35. data/_sass/layouts/layout.scss +657 -718
  36. data/_sass/layouts/typography.scss +492 -0
  37. data/_sass/layouts/variable.scss +215 -0
  38. data/assets/css/Style.scss +4 -13
  39. data/assets/favicons/android-chrome-192x192.png +0 -0
  40. data/assets/favicons/android-chrome-512x512.png +0 -0
  41. data/assets/favicons/apple-touch-icon.png +0 -0
  42. data/assets/favicons/browserconfig.xml +9 -0
  43. data/assets/favicons/favicon-16x16.png +0 -0
  44. data/assets/favicons/favicon-32x32.png +0 -0
  45. data/assets/favicons/favicon.ico +0 -0
  46. data/assets/favicons/mstile-150x150.png +0 -0
  47. data/assets/favicons/safari-pinned-tab.svg +32 -0
  48. data/assets/favicons/site.webmanifest +19 -0
  49. data/assets/img/homepage-pic.png +0 -0
  50. data/bin/run +195 -150
  51. data/js/Main.js +74 -0
  52. data/js/back-to-top.js +39 -48
  53. data/logo.png +0 -0
  54. data/post/index.html +3 -3
  55. metadata +35 -32
  56. data/_includes/BTT.html +0 -7
  57. data/_layouts/post_home.html +0 -113
  58. data/_sass/custom/styles.scss +0 -1
  59. data/_sass/custom/variables.scss +0 -1
  60. data/_sass/layouts/base.scss +0 -579
  61. data/_sass/layouts/variables.scss +0 -230
  62. data/docs/contributing.md +0 -69
data/_sass/base.scss ADDED
@@ -0,0 +1,437 @@
1
+ html {
2
+ overflow-x: hidden;
3
+ scroll-behavior: smooth;
4
+
5
+ ::selection {
6
+ background-color: $highlight-bg-color;
7
+ color: $highlight-text-color;
8
+ }
9
+ }
10
+
11
+ //
12
+ // Reseting elements
13
+ //
14
+
15
+ body,
16
+ h1,
17
+ h2,
18
+ h3,
19
+ h4,
20
+ h5,
21
+ h6,
22
+ p,
23
+ blockquote,
24
+ pre,
25
+ hr,
26
+ dl,
27
+ dd,
28
+ ol,
29
+ ul,
30
+ figure {
31
+ margin: 0;
32
+ padding: 0;
33
+ }
34
+
35
+ * {
36
+ @include horizontal-scroll;
37
+ margin: 0;
38
+ padding: 0;
39
+ }
40
+
41
+ // set `margin-bottom` to maintain vertical alignment
42
+ h1,
43
+ h2,
44
+ h3,
45
+ h4,
46
+ h5,
47
+ h6,
48
+ p,
49
+ blockquote,
50
+ pre,
51
+ ul,
52
+ ol,
53
+ figure,
54
+ %vertical-rhythm {
55
+ margin-bottom: 15px;
56
+ }
57
+
58
+ body {
59
+ @include body-medium;
60
+ // font: $font-weight #{$font-size}/#{$line-height} $font-family;
61
+ color: $text-color;
62
+ background-color: $primary_color;
63
+ -webkit-text-size-adjust: 100%;
64
+ font-kerning: normal;
65
+ min-height: 100vh;
66
+ flex-direction: column;
67
+ overflow-wrap: break-word;
68
+ display: flex;
69
+ line-height: 40px;
70
+ }
71
+
72
+ hr {
73
+ margin-top: $font-spacing;
74
+ margin-bottom: $font-spacing;
75
+ border: 0;
76
+ border-top: 2px solid $text-mute-color;
77
+ border-radius: 7px;
78
+ }
79
+
80
+ p {
81
+ line-height: 26px;
82
+ }
83
+ //
84
+ // wrapper
85
+ //
86
+ .wrapper {
87
+ padding: 0 $font-spacing - 5 0 $font-spacing - 5;
88
+ margin: 0 auto 0 auto;
89
+ max-width: $content-width + 100;
90
+ }
91
+
92
+ .footer-wrapper {
93
+ padding: 0 $font-spacing - 5 0 $font-spacing - 5;
94
+ margin: 0 auto 0 auto;
95
+ max-width: 1168px;
96
+ }
97
+
98
+ .post-content {
99
+ padding: 30px $font-spacing - 5 0 $font-spacing - 5;
100
+ margin: 0 auto 0 auto;
101
+
102
+ @media screen and (min-width: 1111px) {
103
+ display: grid;
104
+ grid-template-columns: 1fr 15em;
105
+ }
106
+ }
107
+
108
+ .content {
109
+ padding: 30px 0 30px;
110
+ flex: 1 0 auto;
111
+ overflow: hidden;
112
+ opacity: 0;
113
+ transform: translateY(3rem);
114
+ animation: 208.898ms linear 0s 1 normal forwards running slide-up;
115
+ animation-delay: 252.00568990042672ms;
116
+ }
117
+
118
+ //
119
+ // Headers
120
+ //
121
+ h1 {
122
+ @include headline-large;
123
+ }
124
+ h2 {
125
+ @include headline-medium;
126
+ }
127
+ h3 {
128
+ @include headline-small;
129
+ }
130
+ h4 {
131
+ @include title-large;
132
+ }
133
+ h5 {
134
+ @include title-medium;
135
+ }
136
+ h6 {
137
+ @include title-small;
138
+ }
139
+
140
+ //
141
+ // Lists
142
+ //
143
+ ul,
144
+ ol {
145
+ margin-left: $font-spacing;
146
+ }
147
+
148
+ //
149
+ // Links
150
+ //
151
+ a {
152
+ text-decoration: none;
153
+ transition: $transition-links;
154
+ color: $link-visited-color;
155
+ font-weight: 700;
156
+
157
+ &:hover {
158
+ color: $link-hover-color;
159
+ text-decoration: none;
160
+ }
161
+ }
162
+
163
+ li {
164
+ > ul,
165
+ > ol {
166
+ margin-bottom: 0;
167
+ }
168
+ }
169
+
170
+ //
171
+ // Image
172
+ //
173
+ img {
174
+ max-width: 100%;
175
+ height: auto;
176
+ }
177
+
178
+ //
179
+ // BOLD
180
+ //
181
+ strong {
182
+ font-weight: 900;
183
+ font-size: 18px;
184
+ letter-spacing: 3px;
185
+ }
186
+
187
+ //
188
+ // Figures
189
+ //
190
+ figure > img {
191
+ display: block;
192
+ }
193
+
194
+ figcaption {
195
+ @include body-small;
196
+ }
197
+
198
+ //
199
+ // Blockquotes
200
+ //
201
+ blockquote {
202
+ color: $blockquote-text-color;
203
+ border-left: 4px solid $code-background-color;
204
+ padding-left: $font-spacing / 2;
205
+ font-style: italic;
206
+
207
+ > :last-child {
208
+ margin-bottom: 0;
209
+ }
210
+
211
+ i,
212
+ em {
213
+ font-style: normal;
214
+ }
215
+ }
216
+
217
+ //
218
+ // Code format
219
+ //
220
+ pre,
221
+ code {
222
+ border: 1px solid $code-background-color;
223
+ border-radius: 4px;
224
+ font-weight: 700;
225
+ background-color: $code-background-color;
226
+ color: $code-text-color;
227
+ line-height: 1.5rem;
228
+ padding: 1px 5px;
229
+
230
+ @include horizontal-scroll();
231
+ a {
232
+ color: inherit !important;
233
+ border-bottom: none !important;
234
+ pointer-events: none;
235
+ }
236
+ }
237
+ pre {
238
+ overflow-x: auto;
239
+ border: 0;
240
+
241
+ > code {
242
+ border: 0;
243
+ padding-right: 0;
244
+ padding-left: 0;
245
+ }
246
+ }
247
+
248
+ .rouge-table {
249
+ width: 0%;
250
+
251
+ .rouge-gutter {
252
+ padding: 0px;
253
+ border: 0px;
254
+ }
255
+
256
+ td.rouge-code {
257
+ padding-left: 1rem;
258
+ border: 0px;
259
+ }
260
+
261
+ border: 0px;
262
+ margin-bottom: 0px;
263
+ }
264
+
265
+ .highlight {
266
+ border-radius: 5px;
267
+ background: $code-background-color;
268
+ border: 0px;
269
+ @extend %vertical-rhythm;
270
+
271
+ pre {
272
+ margin-bottom: 0;
273
+ font-size: $code-font-family;
274
+ // line-height: 1.5rem;
275
+ word-wrap: normal;
276
+ /* Fixed Safari overflow-x */
277
+ }
278
+
279
+ .lineno {
280
+ padding-top: 7px;
281
+ padding-bottom: 7px;
282
+ padding-left: 7px;
283
+ padding-right: 0px;
284
+ width: 1%;
285
+
286
+ min-width: 20px;
287
+ text-align: right;
288
+ color: $text-mute-color;
289
+ -webkit-user-select: none;
290
+ -khtml-user-select: none;
291
+ -moz-user-select: none;
292
+ -ms-user-select: none;
293
+ -o-user-select: none;
294
+ user-select: none;
295
+ }
296
+
297
+ // set the dollar sign to non-selectable
298
+ .gp {
299
+ user-select: none;
300
+ }
301
+
302
+ table {
303
+ td pre {
304
+ overflow: visible; // Fixed iOS safari overflow-x
305
+ word-break: normal; // Fixed iOS safari linenos code break
306
+ }
307
+ }
308
+
309
+ .highlighter-rouge & {
310
+ background: $code-background-color;
311
+ }
312
+ }
313
+
314
+ // Removes the line numbers default snippets
315
+ div {
316
+ &[class^="highlighter-rouge"],
317
+ &.language-plaintext.highlighter-rouge,
318
+ &.language-console.highlighter-rouge,
319
+ &.language-terminal.highlighter-rouge,
320
+ &.nolineno {
321
+ pre.lineno {
322
+ display: none;
323
+ }
324
+
325
+ td.rouge-code {
326
+ padding: 8px 12px;
327
+ }
328
+
329
+ pre.highlight {
330
+ padding: 0px;
331
+ padding-bottom: 0px;
332
+ }
333
+ }
334
+ }
335
+
336
+ //
337
+ // Icons
338
+ //
339
+
340
+ // .stackoverflow {
341
+ // color: #f66a0a;
342
+ // }
343
+
344
+ // .youtube {
345
+ // color: #dd0505;
346
+ // }
347
+
348
+ // .github {
349
+ // color: $Github;
350
+
351
+ // }
352
+
353
+ .svg-icon {
354
+ width: 16px;
355
+ height: 16px;
356
+ display: inline-block;
357
+ fill: currentColor;
358
+ padding: 5px 3px 2px 5px;
359
+ vertical-align: text-bottom;
360
+ }
361
+
362
+ .gitlab {
363
+ color: $Github;
364
+ }
365
+
366
+ dl {
367
+ padding: 0;
368
+
369
+ dt {
370
+ padding: 0;
371
+ margin-top: 1rem;
372
+ font-size: $font-size;
373
+ font-weight: 690;
374
+ }
375
+
376
+ dd {
377
+ margin-inline-start: 40px;
378
+ }
379
+ }
380
+
381
+ //
382
+ // 404 page
383
+ //
384
+ .container-404 {
385
+ margin: 10px auto;
386
+ max-width: 400px;
387
+ text-align: center;
388
+ background-color: $error-div-bg-color;
389
+ border-radius: 20px;
390
+ align-content: center;
391
+ .prompt-404 {
392
+ display: flex;
393
+ flex-direction: column;
394
+ align-items: center;
395
+ .paragraph-404 {
396
+ > p {
397
+ margin-bottom: 0px;
398
+ line-height: 2;
399
+
400
+ &:last-child {
401
+ margin-bottom: 15px;
402
+ }
403
+ }
404
+ }
405
+
406
+ .btn-404 {
407
+ display: inline-block;
408
+ padding: 17px 16px 16px;
409
+ color: #e7e7e7;
410
+ background-color: #2e353e;
411
+ transition: all 0.2s ease-in-out;
412
+ width: 92%;
413
+ border-bottom-left-radius: 20px;
414
+ border-bottom-right-radius: 20px;
415
+
416
+ &,
417
+ &:visited {
418
+ color: $text-color;
419
+ }
420
+
421
+ &:hover {
422
+ color: $btn-text-hover-color;
423
+ text-decoration: none;
424
+ background-color: $btn-color-hover;
425
+ border-color: $btn-color-hover;
426
+ }
427
+ }
428
+ > svg {
429
+ height: 220px;
430
+ width: 220px;
431
+ margin-left: 3px;
432
+ margin-right: 5px;
433
+ margin-top: 50px;
434
+ fill: $error-btn-svg-color;
435
+ }
436
+ }
437
+ }