jekyll-theme-fica 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yaml +13 -13
  3. data/404.html +5 -3
  4. data/README.md +58 -89
  5. data/_includes/BTT.html +6 -8
  6. data/_includes/Footer.html +84 -71
  7. data/_includes/Google-Analytics.html +8 -7
  8. data/_includes/Head.html +12 -11
  9. data/_includes/Header.html +34 -23
  10. data/_layouts/default.html +14 -14
  11. data/_layouts/home.html +67 -51
  12. data/_layouts/page.html +3 -14
  13. data/_layouts/post.html +51 -50
  14. data/_layouts/post_home.html +113 -81
  15. data/_posts/2022-03-31-To-Know-if-the-nav-works.md +8 -8
  16. data/_posts/2022-04-1-Demo.md +113 -113
  17. data/_posts/2022-04-5-Getting-Started.md +149 -103
  18. data/_posts/2022-04-6-Creating-a-new-post.md +136 -124
  19. data/_sass/custom/variables.scss +1 -1
  20. data/_sass/jekyll-theme-fica.scss +8 -7
  21. data/_sass/layouts/Google-fonts.scss +139 -0
  22. data/_sass/layouts/base.scss +579 -587
  23. data/_sass/layouts/layout.scss +717 -676
  24. data/_sass/layouts/variables.scss +229 -88
  25. data/_sass/themes/dark theme/highlight.scss +362 -362
  26. data/_sass/themes/dark theme/theme-dark.scss +141 -134
  27. data/_sass/themes/light theme/highlight.scss +198 -198
  28. data/_sass/themes/light theme/theme-light.scss +135 -131
  29. data/assets/css/Style.scss +12 -41
  30. data/assets/fica-icons.svg +64 -64
  31. data/assets/img/{fica_ad.png → homepage-pic.png} +0 -0
  32. data/bin/run +150 -0
  33. data/docs/contributing.md +69 -69
  34. data/js/back-to-top.js +47 -47
  35. data/post/index.html +3 -3
  36. metadata +11 -8
  37. data/_includes/Custom-Head.html +0 -9
  38. data/assets/css/fica-icons.svg +0 -68
  39. data/bin/build +0 -7
  40. data/bin/server +0 -7
@@ -1,587 +1,579 @@
1
- html {
2
- font-size: $font-size;
3
-
4
- ::selection {
5
- background-color: $highlight-bg-color;
6
- color: $highlight-text-color;
7
- }
8
- }
9
-
10
- //
11
- // Basic
12
- //
13
- body,
14
- h1,
15
- h2,
16
- h3,
17
- h4,
18
- h5,
19
- h6,
20
- p,
21
- blockquote,
22
- pre,
23
- hr,
24
- dl,
25
- dd,
26
- ol,
27
- ul,
28
- figure {
29
- margin: 0;
30
- padding: 0;
31
- }
32
-
33
- h1,
34
- h2,
35
- h3,
36
- h4,
37
- h5,
38
- h6,
39
- p,
40
- blockquote,
41
- pre,
42
- ul,
43
- ol,
44
- dl,
45
- figure,
46
- %vertical-rhythm {
47
- margin-bottom: $spacing-unit / 2;
48
- }
49
-
50
- hr {
51
- margin-top: $spacing-unit;
52
- margin-bottom: $spacing-unit;
53
- border-color: $border-color;
54
- }
55
-
56
- body {
57
- font: $text-font-weight #{$font-size}/#{$line-height} $text-font-family;
58
- color: $text-color;
59
- background-color: $primary_color;
60
- -webkit-text-size-adjust: 100%;
61
- -webkit-font-feature-settings: "kern"1;
62
- -moz-font-feature-settings: "kern"1;
63
- -o-font-feature-settings: "kern"1;
64
- font-feature-settings: "kern"1;
65
- font-kerning: normal;
66
- display: flex;
67
- min-height: 100vh;
68
- flex-direction: column;
69
- overflow-wrap: break-word;
70
-
71
- &::-webkit-scrollbar {
72
- width: 7px;
73
- height: 4px;
74
- }
75
-
76
- &::-webkit-scrollbar-track {
77
- background-color: $primary_color;
78
- }
79
-
80
- &::-webkit-scrollbar-thumb {
81
- background: $scroll_bar_bg_color;
82
- border-radius: 4px;
83
- }
84
- }
85
-
86
- //
87
- // `main` element
88
- //
89
- main {
90
- display: block;
91
- /* Default value of `display` of `main` element is 'inline' in IE 11. */
92
- animation-name: text_trans;
93
- animation-duration: $animation-main;
94
- -webkit-animation-timing-function: ease-in;
95
- animation-timing-function: ease-in;
96
-
97
- @keyframes text_trans {
98
- 0% {
99
- opacity: 0%;
100
- }
101
-
102
- 20% {
103
- opacity: 20%;
104
- }
105
-
106
- 50% {
107
- opacity: 50%;
108
- }
109
-
110
- 70% {
111
- opacity: 70%;
112
- }
113
-
114
- 90% {
115
- opacity: 90%;
116
- }
117
-
118
- 100% {
119
- opacity: 100%;
120
- }
121
- }
122
- }
123
-
124
- //
125
- // Headings
126
- //
127
-
128
- h2,
129
- h3,
130
- h4,
131
- h5,
132
- h6 {
133
- font-weight: $h2-h6_fnt-wght;
134
- font-family: $text-font-family;
135
- }
136
-
137
- h1 {
138
- font-weight: $h1_fnt-wght;
139
- font-family: $text-font-family;
140
- font-size: $h1_fnt-sze;
141
- }
142
-
143
- //
144
- // Lists
145
- //
146
- ul,
147
- ol {
148
- margin-left: $spacing-unit;
149
- }
150
-
151
- //
152
- // Links
153
- //
154
- a {
155
- text-decoration: none;
156
- transition: $transition-links;
157
- color: $link-visited-color;
158
-
159
- &:visited {
160
- color: $link-visited-color;
161
- }
162
-
163
- &:hover {
164
- color: $link-hover-color;
165
- text-decoration: none;
166
- }
167
- }
168
-
169
-
170
- li {
171
-
172
- >ul,
173
- >ol {
174
- margin-bottom: 0;
175
- }
176
- }
177
-
178
- //
179
- // BOLD
180
- //
181
- strong {
182
- color: $Bold-color;
183
- }
184
-
185
- //
186
- // Figures
187
- //
188
- figure>img {
189
- display: block;
190
- }
191
-
192
- figcaption {
193
- font-size: $small-font-size;
194
- }
195
-
196
- //
197
- // Blockquotes
198
- //
199
- blockquote {
200
- color: $blockquote-text-color;
201
- border-left: 4px solid $code-background-color;
202
- padding-left: $spacing-unit / 2;
203
- @include relative-font-size(1.125);
204
- font-style: italic;
205
-
206
- > :last-child {
207
- margin-bottom: 0;
208
- }
209
-
210
- i,
211
- em {
212
- font-style: normal;
213
- }
214
- }
215
-
216
- //
217
- // Code format
218
- //
219
- pre,
220
- code {
221
- font-family: $code-font-family;
222
- font-size: 0.9375em;
223
- border: 1px solid $code-background-color;
224
- border-radius: 4px;
225
- font-weight: 500;
226
- background-color: $code-background-color;
227
- color: $code-text-color;
228
-
229
- &::-webkit-scrollbar {
230
- width: 7px;
231
- height: 9px;
232
- }
233
-
234
- &::-webkit-scrollbar-track {
235
- background-color: $code-background-color;
236
- }
237
-
238
- &::-webkit-scrollbar-thumb {
239
- background: $scroll_bar_bg_color;
240
- border-radius: 4px;
241
- }
242
- }
243
-
244
- code {
245
- padding: 1px 5px;
246
-
247
- a {
248
- color: inherit !important;
249
- border-bottom: none !important;
250
- pointer-events: none;
251
- }
252
- }
253
-
254
- pre {
255
- overflow-x: auto;
256
-
257
- >code {
258
- border: 0;
259
- padding-right: 0;
260
- padding-left: 0;
261
- }
262
- }
263
-
264
- .rouge-table {
265
- width: 0%;
266
- .rouge-gutter {
267
- padding: 0px;
268
- border: 0px;
269
- }
270
-
271
- td.rouge-code {
272
- padding-left: 1rem;
273
- border: 0px;
274
- }
275
-
276
- border: 0px;
277
- margin-bottom: 0px;
278
- }
279
-
280
- .highlight {
281
- border-radius: 5px;
282
- background: $code-background-color;
283
- border: 0px;
284
- @extend %vertical-rhythm;
285
-
286
- pre {
287
- margin-bottom: 0;
288
- font-size: $code-font-family;
289
- line-height: 1.4rem;
290
- word-wrap: normal;
291
- /* Fixed Safari overflow-x */
292
- }
293
-
294
- .lineno {
295
- padding-top: 0px;
296
- padding-bottom: 0px;
297
- padding-left: 0px;
298
- padding-right: 0px;
299
- width: 1%;
300
-
301
- min-width: 20px;
302
- text-align: right;
303
- color: $footer-head-link-color;
304
- -webkit-user-select: none;
305
- -khtml-user-select: none;
306
- -moz-user-select: none;
307
- -ms-user-select: none;
308
- -o-user-select: none;
309
- user-select: none;
310
- }
311
-
312
- // set the dollar sign to non-selectable
313
- .gp {
314
- user-select: none;
315
- }
316
-
317
- table {
318
- td pre {
319
- overflow: visible; // Fixed iOS safari overflow-x
320
- word-break: normal;// Fixed iOS safari linenos code break
321
- }
322
- }
323
-
324
- .highlighter-rouge & {
325
- background: $code-background-color;
326
- }
327
-
328
- }
329
-
330
- // Removes the line numbers default snippets
331
- div {
332
-
333
- &[class^='highlighter-rouge'],
334
- &.language-plaintext.highlighter-rouge,
335
- &.language-console.highlighter-rouge,
336
- &.language-terminal.highlighter-rouge,
337
- &.nolineno {
338
- pre.lineno {
339
- display: none;
340
- }
341
-
342
- td.rouge-code {
343
- padding: 8px 12px;
344
- }
345
-
346
- pre.highlight {
347
- padding: 0px;
348
- padding-bottom: 0px;
349
- }
350
- }
351
- }
352
-
353
-
354
- //
355
- // Wrappers
356
- //
357
- .wrapper {
358
- max-width: calc(#{$content-width} - (#{$spacing-unit}));
359
- margin-right: auto;
360
- margin-left: auto;
361
- padding-right: $spacing-unit / 2;
362
- padding-left: $spacing-unit / 2;
363
-
364
- @media screen and (min-width: $pc-width) {
365
- max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
366
- padding-right: $spacing-unit;
367
- padding-left: $spacing-unit;
368
- }
369
- }
370
-
371
- .wrapper_header {
372
- padding-left: 20px;
373
- padding-right: auto;
374
-
375
- @media screen and (min-width: $mobile-width) {
376
- padding-right: 30px;
377
- padding-left: 30px;
378
- }
379
-
380
- @media screen and (min-width: $pc-width) {
381
- padding-right: 70px;
382
- padding-left: 70px;
383
- }
384
- }
385
-
386
- //
387
- // Icons
388
- //
389
-
390
- // .stackoverflow {
391
- // color: #f66a0a;
392
- // }
393
-
394
- // .youtube {
395
- // color: #dd0505;
396
- // }
397
-
398
- // .github {
399
- // color: $Github;
400
-
401
- // }
402
-
403
- .svg-icon {
404
- width: 16px;
405
- height: 16px;
406
- display: inline-block;
407
- fill: currentColor;
408
- padding: 5px 3px 2px 5px;
409
- vertical-align: text-bottom;
410
- }
411
-
412
- .gitlab {
413
- color: $Github;
414
- }
415
-
416
- //
417
- // Tables
418
- //
419
- table {
420
- margin-bottom: $spacing-unit;
421
- width: 100%;
422
- text-align: $table-text-align;
423
- color: $table-text-color;
424
- border-collapse: collapse;
425
-
426
- &::-webkit-scrollbar {
427
- width: 7px;
428
- height: 9px;
429
- }
430
-
431
- &::-webkit-scrollbar-track {
432
- background-color: $primary_color;
433
- }
434
-
435
- &::-webkit-scrollbar-thumb {
436
- background: $scroll_bar_bg_color;
437
- border-radius: 4px;
438
- }
439
-
440
- tr {
441
- &:nth-child(even) {
442
- background-color: $table-zebra-color;
443
- }
444
- }
445
-
446
- th,
447
- td {
448
- padding: ($spacing-unit / 3) ($spacing-unit / 2);
449
- border: 1px solid $border-color;
450
- }
451
-
452
- th {
453
- background-color: $table-header-bg-color;
454
- }
455
- }
456
-
457
- dl {
458
- padding: 0;
459
-
460
- dt {
461
- padding: 0;
462
- margin-top: 1rem;
463
- font-size: $font-size;
464
- font-weight: 690;
465
- }
466
-
467
- dd {
468
- margin-inline-start: 40px;
469
- }
470
- }
471
-
472
- //
473
- // Error page
474
- //
475
- .container {
476
- margin: 10px auto;
477
- max-width: 400px;
478
- text-align: center;
479
- background-color: $error-div-bg-color;
480
- border-radius: 20px;
481
- align-content: center;
482
- height: 500px;
483
- }
484
-
485
- .container svg {
486
- height: 220px;
487
- width: 220px;
488
- margin-left: 3px;
489
- margin-right: 5px;
490
- margin-top: 50px;
491
- fill: $error-btn-svg-color
492
- }
493
-
494
- .container h1 {
495
- font-weight: bolder;
496
- }
497
-
498
- .container p {
499
- margin-bottom: 3px;
500
- }
501
-
502
- .btn-error {
503
- padding: 8px 25px;
504
- border-radius: 5px;
505
- cursor: pointer;
506
- color: $text-color;
507
- background-color: $error-btn-bg-color;
508
- border-color: $btn-bg-color;
509
- transition: $transition-btn;
510
- border-top: 10px;
511
-
512
- &,
513
- &:visited {
514
- color: $text-color;
515
- }
516
-
517
- &:hover {
518
- color: $btn-text-hover-color;
519
- text-decoration: none;
520
- background-color: $error-btn-hover-color;
521
- border-color: $error-btn-hover-color;
522
- }
523
- }
524
-
525
- //
526
- // Prompts
527
- //
528
-
529
- @mixin prompt {
530
- border-radius: 5px;
531
- border-left: 0;
532
- padding: 0.80rem 1.2rem;
533
- font-style: normal;
534
- color: $text-color;
535
- font-weight: 400;
536
- display: flex;
537
- font-size: $small-font-size;
538
- text-align: center;
539
- }
540
-
541
- .prompt-tip {
542
- background-color: $prompt-tip-bg-color;
543
- @include prompt();
544
-
545
- &::before {
546
- display: block; //tip color//
547
- content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='rgb(57, 80, 33)' viewBox='0 0 30 30'>
548
- <path d='M7,20h4c0,1.1-0.9,2-2,2S7,21.1,7,20z M5,19h8v-2H5V19z M16.5,9.5c0,3.82-2.66,5.86-3.77,6.5H5.27 C4.16,15.36,1.5,13.32,1.5,9.5C1.5,5.36,4.86,2,9,2S16.5,5.36,16.5,9.5z M14.5,9.5C14.5,6.47,12.03,4,9,4S3.5,6.47,3.5,9.5 c0,2.47,1.49,3.89,2.35,4.5h6.3C13.01,13.39,14.5,11.97,14.5,9.5z M21.37,7.37L20,8l1.37,0.63L22,10l0.63-1.37L24,8l-1.37-0.63L22,6 L21.37,7.37z M19,6l0.94-2.06L22,3l-2.06-0.94L19,0l-0.94,2.06L16,3l2.06,0.94L19,6z'/> </svg>");
549
-
550
- }
551
- }
552
-
553
- .prompt-info {
554
- background-color: $prompt-info-bg-color;
555
- @include prompt();
556
-
557
- &::before {
558
- display: block; //tip color//
559
- content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='rgb(18, 68, 125)' viewBox='0 0 30 30'>
560
- <path d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/> </svg>");
561
-
562
- }
563
- }
564
-
565
- .prompt-warning {
566
- background-color: $prompt-warning-bg-color;
567
- @include prompt();
568
-
569
- &::before {
570
- display: block; //tip color//
571
- content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='rgb(117, 78, 18)' viewBox='0 0 30 30'>
572
- <path d='M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z'/> </svg>");
573
-
574
- }
575
- }
576
-
577
- .prompt-danger {
578
- background-color: $prompt-danger-bg-color;
579
- @include prompt();
580
-
581
- &::before {
582
- display: block; //tip color//
583
- content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='rgb(103, 14, 14)' viewBox='0 0 30 30'>
584
- <path d='M14.9,3H9.1C8.57,3,8.06,3.21,7.68,3.59l-4.1,4.1C3.21,8.06,3,8.57,3,9.1v5.8c0,0.53,0.21,1.04,0.59,1.41l4.1,4.1 C8.06,20.79,8.57,21,9.1,21h5.8c0.53,0,1.04-0.21,1.41-0.59l4.1-4.1C20.79,15.94,21,15.43,21,14.9V9.1c0-0.53-0.21-1.04-0.59-1.41 l-4.1-4.1C15.94,3.21,15.43,3,14.9,3z M15.54,15.54L15.54,15.54c-0.39,0.39-1.02,0.39-1.41,0L12,13.41l-2.12,2.12 c-0.39,0.39-1.02,0.39-1.41,0l0,0c-0.39-0.39-0.39-1.02,0-1.41L10.59,12L8.46,9.88c-0.39-0.39-0.39-1.02,0-1.41l0,0 c0.39-0.39,1.02-0.39,1.41,0L12,10.59l2.12-2.12c0.39-0.39,1.02-0.39,1.41,0l0,0c0.39,0.39,0.39,1.02,0,1.41L13.41,12l2.12,2.12 C15.93,14.51,15.93,15.15,15.54,15.54z'/> </svg>");
585
-
586
- }
587
- }
1
+ html {
2
+ font-size: $font-size;
3
+ overflow-x: hidden;
4
+
5
+ ::selection {
6
+ background-color: $highlight-bg-color;
7
+ color: $highlight-text-color;
8
+ }
9
+ }
10
+
11
+ //
12
+ // Basic
13
+ //
14
+ body,
15
+ h1,
16
+ h2,
17
+ h3,
18
+ h4,
19
+ h5,
20
+ h6,
21
+ p,
22
+ blockquote,
23
+ pre,
24
+ hr,
25
+ dl,
26
+ dd,
27
+ ol,
28
+ ul,
29
+ figure {
30
+ margin: 0;
31
+ padding: 0;
32
+ }
33
+
34
+ h1,
35
+ h2,
36
+ h3,
37
+ h4,
38
+ h5,
39
+ h6,
40
+ p,
41
+ blockquote,
42
+ pre,
43
+ ul,
44
+ ol,
45
+ dl,
46
+ figure,
47
+ %vertical-rhythm {
48
+ margin-bottom: $spacing-unit / 2;
49
+ }
50
+
51
+ hr {
52
+ margin-top: $spacing-unit;
53
+ margin-bottom: $spacing-unit;
54
+ border: 0;
55
+ border-top: 2px solid $footer-head-link-color;
56
+ border-radius: 7px;
57
+ }
58
+
59
+ body {
60
+ font: $text-font-weight #{$font-size}/#{$line-height} $text-font-family;
61
+ color: $text-color;
62
+ background-color: $primary_color;
63
+ -webkit-text-size-adjust: 100%;
64
+ font-kerning: normal;
65
+ display: flex;
66
+ min-height: 100vh;
67
+ flex-direction: column;
68
+ overflow-wrap: break-word;
69
+ -webkit-font-smoothing: antialiased;
70
+ -moz-osx-font-smoothing: grayscale;
71
+ word-break: keep-all;
72
+
73
+ &::-webkit-scrollbar {
74
+ width: 7px;
75
+ height: 4px;
76
+ }
77
+
78
+ &::-webkit-scrollbar-track {
79
+ background-color: $primary_color;
80
+ }
81
+
82
+ &::-webkit-scrollbar-thumb {
83
+ background: $scroll_bar_bg_color;
84
+ border-radius: 4px;
85
+ }
86
+ }
87
+
88
+ //
89
+ // `main` element
90
+ //
91
+ main {
92
+ overflow-y: hidden;
93
+ display: block;
94
+ opacity: 0;
95
+ transform: translateY(3rem);
96
+ animation: 208.898ms linear 0s 1 normal forwards running slide-up;
97
+ animation-delay: 252.00568990042672ms;
98
+ }
99
+
100
+ //
101
+ // Headings
102
+ //
103
+ h1 {
104
+ font-weight: $h1_fnt-wght;
105
+ font-size: $h1_fnt-sze;
106
+ }
107
+
108
+ h2 {
109
+ font-weight: 650;
110
+ @include relative-font-size(1.75);
111
+
112
+ @media screen and (min-width: $pc-width) {
113
+ @include relative-font-size(2);
114
+ }
115
+ }
116
+
117
+ h3 {
118
+ font-weight: 600;
119
+ font-size: 2.2rem;
120
+
121
+ @include relative-font-size(1.375);
122
+
123
+ @media screen and (min-width: $pc-width) {
124
+ @include relative-font-size(1.625);
125
+ }
126
+ }
127
+
128
+ h4 {
129
+ font-weight: 550;
130
+ @include relative-font-size(1.25);
131
+ }
132
+
133
+ h5 {
134
+ font-family: 500;
135
+ @include relative-font-size(1.125);
136
+ }
137
+
138
+ h6 {
139
+ font-family: 450;
140
+ @include relative-font-size(1.0625);
141
+ }
142
+
143
+
144
+ //
145
+ // Lists
146
+ //
147
+ ul,
148
+ ol {
149
+ margin-left: $spacing-unit;
150
+ }
151
+
152
+ //
153
+ // Links
154
+ //
155
+ a {
156
+ text-decoration: none;
157
+ transition: $transition-links;
158
+ color: $link-visited-color;
159
+ font-weight: 700;
160
+
161
+ &:visited {
162
+ color: $link-visited-color;
163
+ }
164
+
165
+ &:hover {
166
+ color: $link-hover-color;
167
+ text-decoration: none;
168
+ }
169
+ }
170
+
171
+
172
+ li {
173
+
174
+ >ul,
175
+ >ol {
176
+ margin-bottom: 0;
177
+ }
178
+ }
179
+
180
+ //
181
+ // Image
182
+ //
183
+ img {
184
+ max-width: 100%;
185
+ height: auto;
186
+ }
187
+
188
+ //
189
+ // BOLD
190
+ //
191
+ strong {
192
+ color: $Bold-color;
193
+ }
194
+
195
+ //
196
+ // Figures
197
+ //
198
+ figure>img {
199
+ display: block;
200
+ }
201
+
202
+ figcaption {
203
+ font-size: $small-font-size;
204
+ }
205
+
206
+ //
207
+ // Blockquotes
208
+ //
209
+ blockquote {
210
+ color: $blockquote-text-color;
211
+ border-left: 4px solid $code-background-color;
212
+ padding-left: $spacing-unit / 2;
213
+ @include relative-font-size(1.125);
214
+ font-style: italic;
215
+
216
+ > :last-child {
217
+ margin-bottom: 0;
218
+ }
219
+
220
+ i,
221
+ em {
222
+ font-style: normal;
223
+ }
224
+ }
225
+
226
+ //
227
+ // Code format
228
+ //
229
+ pre,
230
+ code {
231
+ font-size: 0.95rem;
232
+ border: 1px solid $code-background-color;
233
+ border-radius: 4px;
234
+ font-weight: 700;
235
+ background-color: $code-background-color;
236
+ color: $code-text-color;
237
+
238
+ @include horizontal-scroll();
239
+ }
240
+
241
+ code {
242
+ padding: 1px 5px;
243
+
244
+ a {
245
+ color: inherit !important;
246
+ border-bottom: none !important;
247
+ pointer-events: none;
248
+ }
249
+ }
250
+
251
+ pre {
252
+ overflow-x: auto;
253
+
254
+ >code {
255
+ border: 0;
256
+ padding-right: 0;
257
+ padding-left: 0;
258
+ }
259
+ }
260
+
261
+ .rouge-table {
262
+ width: 0%;
263
+
264
+ .rouge-gutter {
265
+ padding: 0px;
266
+ border: 0px;
267
+ }
268
+
269
+ td.rouge-code {
270
+ padding-left: 1rem;
271
+ border: 0px;
272
+ }
273
+
274
+ border: 0px;
275
+ margin-bottom: 0px;
276
+ }
277
+
278
+ .highlight {
279
+ border-radius: 5px;
280
+ background: $code-background-color;
281
+ border: 0px;
282
+ @extend %vertical-rhythm;
283
+
284
+ pre {
285
+ margin-bottom: 0;
286
+ font-size: $code-font-family;
287
+ line-height: 1.5rem;
288
+ word-wrap: normal;
289
+ /* Fixed Safari overflow-x */
290
+ }
291
+
292
+ .lineno {
293
+ padding-top: 7px;
294
+ padding-bottom: 7px;
295
+ padding-left: 0px;
296
+ padding-right: 0px;
297
+ width: 1%;
298
+
299
+ min-width: 20px;
300
+ text-align: right;
301
+ color: $footer-head-link-color;
302
+ -webkit-user-select: none;
303
+ -khtml-user-select: none;
304
+ -moz-user-select: none;
305
+ -ms-user-select: none;
306
+ -o-user-select: none;
307
+ user-select: none;
308
+ }
309
+
310
+ // set the dollar sign to non-selectable
311
+ .gp {
312
+ user-select: none;
313
+ }
314
+
315
+ table {
316
+ td pre {
317
+ overflow: visible; // Fixed iOS safari overflow-x
318
+ word-break: normal; // Fixed iOS safari linenos code break
319
+ }
320
+ }
321
+
322
+ .highlighter-rouge & {
323
+ background: $code-background-color;
324
+ }
325
+
326
+ }
327
+
328
+ // Removes the line numbers default snippets
329
+ div {
330
+
331
+ &[class^='highlighter-rouge'],
332
+ &.language-plaintext.highlighter-rouge,
333
+ &.language-console.highlighter-rouge,
334
+ &.language-terminal.highlighter-rouge,
335
+ &.nolineno {
336
+ pre.lineno {
337
+ display: none;
338
+ }
339
+
340
+ td.rouge-code {
341
+ padding: 8px 12px;
342
+ }
343
+
344
+ pre.highlight {
345
+ padding: 0px;
346
+ padding-bottom: 0px;
347
+ }
348
+ }
349
+ }
350
+
351
+ //
352
+ // Tooltip
353
+ //
354
+ .tooltip {
355
+ position: relative;
356
+ display: inline-block;
357
+ }
358
+
359
+ .tooltip .tooltiptext {
360
+ visibility: hidden;
361
+ width: 105px;
362
+ background-color: black;
363
+ color: #fff;
364
+ text-align: center;
365
+ border-radius: 6px;
366
+ padding: 2px 0;
367
+ position: absolute;
368
+ z-index: 1;
369
+ top: 70%;
370
+ left: 50%;
371
+ margin-left: -60px;
372
+ font-size: 0.90rem;
373
+ }
374
+
375
+ .tooltip .tooltiptext::after {
376
+ content: "";
377
+ position: absolute;
378
+ bottom: 100%;
379
+ left: 50%;
380
+ margin-left: -5px;
381
+ border-width: 5px;
382
+ border-style: solid;
383
+ border-color: transparent transparent black transparent;
384
+ }
385
+
386
+ .tooltip:hover .tooltiptext {
387
+ visibility: visible;
388
+ }
389
+
390
+ //
391
+ // Wrappers
392
+ //
393
+ .wrapper {
394
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
395
+ margin-right: auto;
396
+ margin-left: auto;
397
+ padding-right: $spacing-unit / 2;
398
+ padding-left: $spacing-unit / 2;
399
+
400
+ @media screen and (min-width: $pc-width) {
401
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
402
+ padding-right: $spacing-unit;
403
+ padding-left: $spacing-unit;
404
+ }
405
+ }
406
+
407
+ .wrapper_header {
408
+ padding-left: 20px;
409
+ padding-right: auto;
410
+
411
+ @media screen and (min-width: $mobile-width) {
412
+ padding-right: 30px;
413
+ padding-left: 30px;
414
+ }
415
+
416
+ @media screen and (min-width: $pc-width) {
417
+ padding-right: 70px;
418
+ padding-left: 70px;
419
+ }
420
+ }
421
+
422
+ //
423
+ // Icons
424
+ //
425
+
426
+ // .stackoverflow {
427
+ // color: #f66a0a;
428
+ // }
429
+
430
+ // .youtube {
431
+ // color: #dd0505;
432
+ // }
433
+
434
+ // .github {
435
+ // color: $Github;
436
+
437
+ // }
438
+
439
+ .svg-icon {
440
+ width: 16px;
441
+ height: 16px;
442
+ display: inline-block;
443
+ fill: currentColor;
444
+ padding: 5px 3px 2px 5px;
445
+ vertical-align: text-bottom;
446
+ }
447
+
448
+ .gitlab {
449
+ color: $Github;
450
+ }
451
+
452
+ //
453
+ // Tables
454
+ //
455
+ table {
456
+ margin-bottom: $spacing-unit;
457
+ width: 100%;
458
+ text-align: $table-text-align;
459
+ color: $table-text-color;
460
+ border-collapse: collapse;
461
+
462
+ @include horizontal-scroll();
463
+
464
+ tr {
465
+ &:nth-child(even) {
466
+ background-color: $table-zebra-color;
467
+ }
468
+ }
469
+
470
+ th {
471
+ padding: ($spacing-unit / 3) ($spacing-unit / 2);
472
+ border-bottom: 3px solid $text-color;
473
+ border-left: 1px solid $border-color;
474
+ border-right: 1px solid $border-color;
475
+ }
476
+
477
+ td {
478
+ padding: ($spacing-unit / 3) ($spacing-unit / 2);
479
+ border-left: 1px solid $border-color;
480
+ border-right: 1px solid $border-color;
481
+ }
482
+
483
+ th {
484
+ background-color: $table-header-bg-color;
485
+ }
486
+ }
487
+
488
+ dl {
489
+ padding: 0;
490
+
491
+ dt {
492
+ padding: 0;
493
+ margin-top: 1rem;
494
+ font-size: $font-size;
495
+ font-weight: 690;
496
+ }
497
+
498
+ dd {
499
+ margin-inline-start: 40px;
500
+ }
501
+ }
502
+
503
+ //
504
+ // Error page
505
+ //
506
+ .container {
507
+ margin: 10px auto;
508
+ max-width: 400px;
509
+ text-align: center;
510
+ background-color: $error-div-bg-color;
511
+ border-radius: 20px;
512
+ align-content: center;
513
+ height: 500px;
514
+
515
+ >svg {
516
+ height: 220px;
517
+ width: 220px;
518
+ margin-left: 3px;
519
+ margin-right: 5px;
520
+ margin-top: 50px;
521
+ fill: $error-btn-svg-color;
522
+ }
523
+
524
+ >h1 {
525
+ font-weight: bolder;
526
+ }
527
+ }
528
+
529
+ .error-pagh {
530
+ >p {
531
+ margin-bottom: 3px;
532
+
533
+ &:last-child {
534
+ margin-bottom: 15px;
535
+ }
536
+ }
537
+ }
538
+
539
+ .btn-error {
540
+ padding: 8px 25px;
541
+ border-radius: 5px;
542
+ cursor: pointer;
543
+ color: $text-color;
544
+ background-color: $error-btn-bg-color;
545
+ border-color: $btn-bg-color;
546
+ transition: $transition-btn;
547
+ border-top: 10px;
548
+
549
+ &,
550
+ &:visited {
551
+ color: $text-color;
552
+ }
553
+
554
+ &:hover {
555
+ color: $btn-text-hover-color;
556
+ text-decoration: none;
557
+ background-color: $error-btn-hover-color;
558
+ border-color: $error-btn-hover-color;
559
+ }
560
+ }
561
+
562
+ //
563
+ // Prompts
564
+ //
565
+ .prompt-tip {
566
+ @include prompt("tips_and_updates", $prompt-tip-icon-color, $prompt-tip-bg-color, "Material Icons Outlined");
567
+ }
568
+
569
+ .prompt-info {
570
+ @include prompt("info", $prompt-info-icon-color, $prompt-info-bg-color, "Material Icons Outlined");
571
+ }
572
+
573
+ .prompt-warning {
574
+ @include prompt("warning", $prompt-warning-icon-color, $prompt-warning-bg-color, "Material Icons Round");
575
+ }
576
+
577
+ .prompt-danger {
578
+ @include prompt("dangerous", $prompt-danger-icon-color, $prompt-danger-bg-color, "Material Icons Round");
579
+ }