jekyll-theme-fica 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yaml +5 -9
  3. data/404.html +12 -10
  4. data/License.md +2 -8
  5. data/README.md +51 -48
  6. data/_includes/Footer.html +85 -109
  7. data/_includes/Head.html +15 -2
  8. data/_includes/Header.html +14 -10
  9. data/_includes/assets/BTT.html +1 -1
  10. data/_layouts/home.html +2 -2
  11. data/_layouts/post.html +5 -7
  12. data/_layouts/post_list.html +103 -0
  13. data/_posts/2022-03-31-To-Know-if-the-nav-works.md +9 -8
  14. data/_posts/{2022-04-1-Demo.md → 2022-04-1-Elements-of-Fica-Theme.md} +111 -113
  15. data/_posts/2022-04-5-Getting-Started.md +1 -2
  16. data/_posts/2022-04-6-Creating-a-new-post.md +144 -136
  17. data/_posts/2023-04-24-Fica-Customization.md +43 -0
  18. data/_sass/base.scss +79 -114
  19. data/_sass/jekyll-theme-fica.scss +1 -1
  20. data/_sass/layouts/Google-fonts.scss +103 -138
  21. data/_sass/layouts/component.scss +49 -30
  22. data/_sass/layouts/layout.scss +206 -161
  23. data/_sass/layouts/typography.scss +492 -0
  24. data/_sass/layouts/variable.scss +22 -8
  25. data/assets/css/Style.scss +1 -9
  26. data/assets/favicons/android-chrome-192x192.png +0 -0
  27. data/assets/favicons/android-chrome-512x512.png +0 -0
  28. data/assets/favicons/apple-touch-icon.png +0 -0
  29. data/assets/favicons/browserconfig.xml +9 -0
  30. data/assets/favicons/favicon-16x16.png +0 -0
  31. data/assets/favicons/favicon-32x32.png +0 -0
  32. data/assets/favicons/favicon.ico +0 -0
  33. data/assets/favicons/mstile-150x150.png +0 -0
  34. data/assets/favicons/safari-pinned-tab.svg +32 -0
  35. data/assets/favicons/site.webmanifest +19 -0
  36. data/assets/img/homepage-pic.png +0 -0
  37. data/js/Main.js +55 -2
  38. data/logo.png +0 -0
  39. data/post/index.html +3 -3
  40. metadata +16 -25
  41. data/.github/workflows/.ci_BASE_2002.yaml.swp +0 -0
  42. data/.github/workflows/.ci_LOCAL_2002.yaml.swp +0 -0
  43. data/.github/workflows/.ci_REMOTE_2002.yaml.swp +0 -0
  44. data/.github/workflows/ci_BACKUP_2002.yaml +0 -34
  45. data/.github/workflows/ci_BASE_2002.yaml +0 -27
  46. data/.github/workflows/ci_LOCAL_2002.yaml +0 -27
  47. data/.github/workflows/ci_REMOTE_2002.yaml +0 -27
  48. data/_layouts/post_home.html +0 -113
@@ -0,0 +1,43 @@
1
+ ---
2
+ layout: post
3
+ site-title: Fica Customization
4
+ author: Involts
5
+ ---
6
+
7
+ The following shows how to customize the Theme.
8
+
9
+ # Code infrastructure
10
+
11
+ ## Customizing the Styles, Variables and Color Scheme:
12
+
13
+ if you like to override the default styles of the theme, go to `_sass/Custom/Styles.scss`.
14
+
15
+ if you like to override the default Variables of the theme, go to `_sass/Custom/Variable.scss`.
16
+
17
+ if you like to change the colors of the Dark Theme in the site, go to `_sass/themes/dark theme/Dark_Theme.scss`.
18
+
19
+ if you like to change the colors of the Light Theme in the site, go to `_sass/themes/dark theme/Light_Theme.scss`.
20
+
21
+ Want to change [the themes?](#how-to-change-dark-mode-to-light-mode)
22
+ ## Customizing Google Analytics code
23
+
24
+ Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into `_includes/Google-Analytics.html` in your Jekyll site.
25
+ ## Change dark mode to light mode
26
+
27
+ # Layouts
28
+ ## Replace the logo on the header
29
+ Replace logo.png at the top of your site.
30
+ Make sure that the logo is 36x36 pixels to avoid overlapping the title.
31
+
32
+ ## Replace the picture at the homepage ?
33
+
34
+ Replace `assets/img/homepage-pic.png`
35
+
36
+ Replace:
37
+
38
+ ```diff
39
+ - "themes/dark theme/theme-dark",
40
+ + "themes/light theme/theme-light",
41
+ ```
42
+
43
+ in `_sass/jekyll-theme-fica.scss`.
data/_sass/base.scss CHANGED
@@ -32,6 +32,12 @@ figure {
32
32
  padding: 0;
33
33
  }
34
34
 
35
+ * {
36
+ @include horizontal-scroll;
37
+ margin: 0;
38
+ padding: 0;
39
+ }
40
+
35
41
  // set `margin-bottom` to maintain vertical alignment
36
42
  h1,
37
43
  h2,
@@ -46,51 +52,23 @@ ul,
46
52
  ol,
47
53
  figure,
48
54
  %vertical-rhythm {
49
- margin-bottom: $font-spacing - 15;
55
+ margin-bottom: 15px;
50
56
  }
51
57
 
52
- //
53
- // body
54
- //
55
58
  body {
56
- font: $font-weight #{$font-size}/#{$line-height} $font-family;
59
+ @include body-medium;
60
+ // font: $font-weight #{$font-size}/#{$line-height} $font-family;
57
61
  color: $text-color;
58
62
  background-color: $primary_color;
59
63
  -webkit-text-size-adjust: 100%;
60
64
  font-kerning: normal;
61
- display: flex;
62
65
  min-height: 100vh;
63
66
  flex-direction: column;
64
67
  overflow-wrap: break-word;
65
- -webkit-font-smoothing: antialiased;
66
- -moz-osx-font-smoothing: grayscale;
67
-
68
- &::-webkit-scrollbar {
69
- height: 16px;
70
- }
71
-
72
- &::-webkit-scrollbar-track {
73
- background-color: transparent;
74
- }
75
-
76
- &::-webkit-scrollbar-thumb {
77
- background: rgba(128, 134, 139, 0.2);
78
- background-clip: padding-box;
79
- border: 4px solid transparent;
80
- border-radius: 10px;
81
- box-sizing: border-box;
82
-
83
- &:hover {
84
- background: rgba(128, 134, 139, 0.4);
85
- box-sizing: border-box;
86
- background-clip: padding-box;
87
- }
88
- }
68
+ display: flex;
69
+ line-height: 40px;
89
70
  }
90
71
 
91
- //
92
- // line
93
- //
94
72
  hr {
95
73
  margin-top: $font-spacing;
96
74
  margin-bottom: $font-spacing;
@@ -99,6 +77,9 @@ hr {
99
77
  border-radius: 7px;
100
78
  }
101
79
 
80
+ p {
81
+ line-height: 26px;
82
+ }
102
83
  //
103
84
  // wrapper
104
85
  //
@@ -109,20 +90,18 @@ hr {
109
90
  }
110
91
 
111
92
  .footer-wrapper {
112
- padding: 0 $font-spacing - 5 0 $font-spacing - 5;
113
- margin: 0 auto 0 auto;
114
- max-width: 1168px;
115
- }
116
-
117
-
118
- .post-wrapper {
119
93
  padding: 0 $font-spacing - 5 0 $font-spacing - 5;
120
94
  margin: 0 auto 0 auto;
121
- max-width: $content-width + 100;
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;
122
101
 
123
102
  @media screen and (min-width: 1111px) {
124
- display: flex;
125
- justify-content: center;
103
+ display: grid;
104
+ grid-template-columns: 1fr 15em;
126
105
  }
127
106
  }
128
107
 
@@ -140,33 +119,22 @@ hr {
140
119
  // Headers
141
120
  //
142
121
  h1 {
143
- font-size: $font-size + 31;
144
- line-height: 1.5;
122
+ @include headline-large;
145
123
  }
146
-
147
124
  h2 {
148
- font-size: $font-size + 26;
149
- line-height: 1.5;
125
+ @include headline-medium;
150
126
  }
151
-
152
127
  h3 {
153
- font-size: $font-size + 21;
154
- line-height: 1.5;
128
+ @include headline-small;
155
129
  }
156
-
157
130
  h4 {
158
- font-size: $font-size + 16;
159
- line-height: 1.5;
131
+ @include title-large;
160
132
  }
161
-
162
133
  h5 {
163
- font-size: $font-size + 11;
164
- line-height: 1.5;
134
+ @include title-medium;
165
135
  }
166
-
167
136
  h6 {
168
- font-size: $font-size + 6;
169
- line-height: 1.5;
137
+ @include title-small;
170
138
  }
171
139
 
172
140
  //
@@ -213,6 +181,7 @@ img {
213
181
  strong {
214
182
  font-weight: 900;
215
183
  font-size: 18px;
184
+ letter-spacing: 3px;
216
185
  }
217
186
 
218
187
  //
@@ -223,7 +192,7 @@ figure > img {
223
192
  }
224
193
 
225
194
  figcaption {
226
- font-size: $small-font-size;
195
+ @include body-small;
227
196
  }
228
197
 
229
198
  //
@@ -233,7 +202,6 @@ blockquote {
233
202
  color: $blockquote-text-color;
234
203
  border-left: 4px solid $code-background-color;
235
204
  padding-left: $font-spacing / 2;
236
- @include relative-font-size(1.125);
237
205
  font-style: italic;
238
206
 
239
207
  > :last-child {
@@ -251,28 +219,24 @@ blockquote {
251
219
  //
252
220
  pre,
253
221
  code {
254
- font-size: inherit;
255
222
  border: 1px solid $code-background-color;
256
223
  border-radius: 4px;
257
224
  font-weight: 700;
258
225
  background-color: $code-background-color;
259
226
  color: $code-text-color;
260
-
261
- @include horizontal-scroll();
262
- }
263
-
264
- code {
227
+ line-height: 1.5rem;
265
228
  padding: 1px 5px;
266
229
 
230
+ @include horizontal-scroll();
267
231
  a {
268
232
  color: inherit !important;
269
233
  border-bottom: none !important;
270
234
  pointer-events: none;
271
235
  }
272
236
  }
273
-
274
237
  pre {
275
238
  overflow-x: auto;
239
+ border: 0;
276
240
 
277
241
  > code {
278
242
  border: 0;
@@ -307,7 +271,7 @@ pre {
307
271
  pre {
308
272
  margin-bottom: 0;
309
273
  font-size: $code-font-family;
310
- line-height: 1.5rem;
274
+ // line-height: 1.5rem;
311
275
  word-wrap: normal;
312
276
  /* Fixed Safari overflow-x */
313
277
  }
@@ -415,58 +379,59 @@ dl {
415
379
  }
416
380
 
417
381
  //
418
- // Error page
382
+ // 404 page
419
383
  //
420
- .container {
384
+ .container-404 {
421
385
  margin: 10px auto;
422
386
  max-width: 400px;
423
387
  text-align: center;
424
388
  background-color: $error-div-bg-color;
425
389
  border-radius: 20px;
426
390
  align-content: center;
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
-
438
- .error-pagh {
439
- > p {
440
- margin-bottom: 0px;
441
- line-height: 2;
442
-
443
- &:last-child {
444
- margin-bottom: 15px;
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
+ }
445
404
  }
446
- }
447
- }
448
405
 
449
- .btn-error {
450
- display: inline-block;
451
- padding: 17px 16px 16px;
452
- color: #e7e7e7;
453
- background-color: #2e353e;
454
- transition: all 0.2s ease-in-out;
455
- width: 92%;
456
- border-bottom-left-radius: 20px;
457
- border-bottom-right-radius: 20px;
458
- height: 24px;
459
- line-height: 1.5;
460
-
461
- &,
462
- &:visited {
463
- color: $text-color;
464
- }
465
-
466
- &:hover {
467
- color: $btn-text-hover-color;
468
- text-decoration: none;
469
- background-color: $btn-color-hover;
470
- border-color: $btn-color-hover;
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
+ }
471
436
  }
472
437
  }
@@ -1 +1 @@
1
- @import "layouts/variable", "colors/dark-theme/theme-dark", "layouts/Google-fonts", "base", "layouts/layout","layouts/component"
1
+ @import "layouts/variable", "colors/dark-theme/theme-dark", "layouts/Google-fonts", "layouts/typography.scss", "base", "layouts/layout","layouts/component"
@@ -1,139 +1,104 @@
1
- @mixin material-icons {
2
- font-family: 'Material Icons';
3
- font-weight: normal;
4
- font-style: normal;
5
- font-size: 24px;
6
- /* Preferred icon size */
7
- display: inline-block;
8
- line-height: 1;
9
- text-transform: none;
10
- letter-spacing: normal;
11
- word-wrap: normal;
12
- white-space: nowrap;
13
- direction: ltr;
14
- user-select: none;
15
- -moz-user-select: none;
16
- -khtml-user-select: none;
17
- -webkit-user-select: none;
18
- -o-user-select: none;
19
-
20
- /* Support for all WebKit browsers. */
21
- -webkit-font-smoothing: antialiased;
22
- /* Support for Safari and Chrome. */
23
- text-rendering: optimizeLegibility;
24
-
25
- /* Support for Firefox. */
26
- -moz-osx-font-smoothing: grayscale;
27
-
28
- /* Support for IE. */
29
- font-feature-settings: 'liga';
30
- }
31
-
32
- .material-icons {
33
- @include material-icons();
34
- }
35
-
36
- /* Rules for sizing the icon. */
37
- .material-icons.md-18 {
38
- font-size: 18px;
39
- }
40
-
41
- .material-icons.md-24 {
42
- font-size: 24px;
43
- }
44
-
45
- .material-icons.md-36 {
46
- font-size: 36px;
47
- }
48
-
49
- .material-icons.md-48 {
50
- font-size: 48px;
51
- }
52
-
53
- /* Rules for using icons as black on a light background. */
54
- .material-icons.md-dark {
55
- color: rgba(0, 0, 0, 0.54);
56
- }
57
-
58
- .material-icons.md-dark.md-inactive {
59
- color: rgba(0, 0, 0, 0.26);
60
- }
61
-
62
- /* Rules for using icons as white on a dark background. */
63
- .material-icons.md-light {
64
- color: rgba(255, 255, 255, 1);
65
- }
66
-
67
- .material-icons.md-light.md-inactive {
68
- color: rgba(255, 255, 255, 0.3);
69
- }
70
-
71
- /* fallback */
72
- @font-face {
73
- font-family: 'Material Icons';
74
- font-style: normal;
75
- font-weight: 400;
76
- src: url(https://fonts.gstatic.com/s/materialicons/v128/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
77
- }
78
- /* fallback */
79
- @font-face {
80
- font-family: 'Material Icons Outlined';
81
- font-style: normal;
82
- font-weight: 400;
83
- src: url(https://fonts.gstatic.com/s/materialiconsoutlined/v103/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUce.woff2) format('woff2');
84
- }
85
- /* fallback */
86
- @font-face {
87
- font-family: 'Material Icons Round';
88
- font-style: normal;
89
- font-weight: 400;
90
- src: url(https://fonts.gstatic.com/s/materialiconsround/v102/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmP.woff2) format('woff2');
91
- }
92
-
93
- .material-icons {
94
- font-family: 'Material Icons';
95
- font-weight: normal;
96
- font-style: normal;
97
- font-size: 24px;
98
- line-height: 1;
99
- letter-spacing: normal;
100
- text-transform: none;
101
- display: inline-block;
102
- white-space: nowrap;
103
- word-wrap: normal;
104
- direction: ltr;
105
- -webkit-font-feature-settings: 'liga';
106
- -webkit-font-smoothing: antialiased;
107
- }
108
-
109
- .material-icons-outlined {
110
- font-family: 'Material Icons Outlined';
111
- font-weight: normal;
112
- font-style: normal;
113
- font-size: 24px;
114
- line-height: 1;
115
- letter-spacing: normal;
116
- text-transform: none;
117
- display: inline-block;
118
- white-space: nowrap;
119
- word-wrap: normal;
120
- direction: ltr;
121
- -webkit-font-feature-settings: 'liga';
122
- -webkit-font-smoothing: antialiased;
123
- }
124
-
125
- .material-icons-round {
126
- font-family: 'Material Icons Round';
127
- font-weight: normal;
128
- font-style: normal;
129
- font-size: 24px;
130
- line-height: 1;
131
- letter-spacing: normal;
132
- text-transform: none;
133
- display: inline-block;
134
- white-space: nowrap;
135
- word-wrap: normal;
136
- direction: ltr;
137
- -webkit-font-feature-settings: 'liga';
138
- -webkit-font-smoothing: antialiased;
1
+ /* Rules for sizing the icon. */
2
+ .material-icons.md-18 {
3
+ font-size: 18px;
4
+ }
5
+
6
+ .material-icons.md-24 {
7
+ font-size: 24px;
8
+ }
9
+
10
+ .material-icons.md-36 {
11
+ font-size: 36px;
12
+ }
13
+
14
+ .material-icons.md-48 {
15
+ font-size: 48px;
16
+ }
17
+
18
+ /* Rules for using icons as black on a light background. */
19
+ .material-icons.md-dark {
20
+ color: rgba(0, 0, 0, 0.54);
21
+ }
22
+
23
+ .material-icons.md-dark.md-inactive {
24
+ color: rgba(0, 0, 0, 0.26);
25
+ }
26
+
27
+ /* Rules for using icons as white on a dark background. */
28
+ .material-icons.md-light {
29
+ color: rgba(255, 255, 255, 1);
30
+ }
31
+
32
+ .material-icons.md-light.md-inactive {
33
+ color: rgba(255, 255, 255, 0.3);
34
+ }
35
+
36
+ /* fallback */
37
+ @font-face {
38
+ font-family: 'Material Icons';
39
+ font-style: normal;
40
+ font-weight: 400;
41
+ src: url(https://fonts.gstatic.com/s/materialicons/v128/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
42
+ }
43
+ /* fallback */
44
+ @font-face {
45
+ font-family: 'Material Icons Outlined';
46
+ font-style: normal;
47
+ font-weight: 400;
48
+ src: url(https://fonts.gstatic.com/s/materialiconsoutlined/v103/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUce.woff2) format('woff2');
49
+ }
50
+ /* fallback */
51
+ @font-face {
52
+ font-family: 'Material Icons Round';
53
+ font-style: normal;
54
+ font-weight: 400;
55
+ src: url(https://fonts.gstatic.com/s/materialiconsround/v102/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmP.woff2) format('woff2');
56
+ }
57
+
58
+ .material-icons {
59
+ font-family: 'Material Icons';
60
+ font-weight: normal;
61
+ font-style: normal;
62
+ font-size: 24px;
63
+ line-height: 1;
64
+ letter-spacing: normal;
65
+ text-transform: none;
66
+ display: inline-block;
67
+ white-space: nowrap;
68
+ word-wrap: normal;
69
+ direction: ltr;
70
+ -webkit-font-feature-settings: 'liga';
71
+ -webkit-font-smoothing: antialiased;
72
+ }
73
+
74
+ .material-icons-outlined {
75
+ font-family: 'Material Icons Outlined';
76
+ font-weight: normal;
77
+ font-style: normal;
78
+ font-size: 24px;
79
+ line-height: 1;
80
+ letter-spacing: normal;
81
+ text-transform: none;
82
+ display: inline-block;
83
+ white-space: nowrap;
84
+ word-wrap: normal;
85
+ direction: ltr;
86
+ -webkit-font-feature-settings: 'liga';
87
+ -webkit-font-smoothing: antialiased;
88
+ }
89
+
90
+ .material-icons-round {
91
+ font-family: 'Material Icons Round';
92
+ font-weight: normal;
93
+ font-style: normal;
94
+ font-size: 24px;
95
+ line-height: 1;
96
+ letter-spacing: normal;
97
+ text-transform: none;
98
+ display: inline-block;
99
+ white-space: nowrap;
100
+ word-wrap: normal;
101
+ direction: ltr;
102
+ -webkit-font-feature-settings: 'liga';
103
+ -webkit-font-smoothing: antialiased;
139
104
  }