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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +5 -9
- data/404.html +12 -10
- data/License.md +2 -8
- data/README.md +51 -48
- data/_includes/Footer.html +85 -109
- data/_includes/Head.html +15 -2
- data/_includes/Header.html +14 -10
- data/_includes/assets/BTT.html +1 -1
- data/_layouts/home.html +2 -2
- data/_layouts/post.html +5 -7
- data/_layouts/post_list.html +103 -0
- data/_posts/2022-03-31-To-Know-if-the-nav-works.md +9 -8
- data/_posts/{2022-04-1-Demo.md → 2022-04-1-Elements-of-Fica-Theme.md} +111 -113
- data/_posts/2022-04-5-Getting-Started.md +1 -2
- data/_posts/2022-04-6-Creating-a-new-post.md +144 -136
- data/_posts/2023-04-24-Fica-Customization.md +43 -0
- data/_sass/base.scss +79 -114
- data/_sass/jekyll-theme-fica.scss +1 -1
- data/_sass/layouts/Google-fonts.scss +103 -138
- data/_sass/layouts/component.scss +49 -30
- data/_sass/layouts/layout.scss +206 -161
- data/_sass/layouts/typography.scss +492 -0
- data/_sass/layouts/variable.scss +22 -8
- data/assets/css/Style.scss +1 -9
- data/assets/favicons/android-chrome-192x192.png +0 -0
- data/assets/favicons/android-chrome-512x512.png +0 -0
- data/assets/favicons/apple-touch-icon.png +0 -0
- data/assets/favicons/browserconfig.xml +9 -0
- data/assets/favicons/favicon-16x16.png +0 -0
- data/assets/favicons/favicon-32x32.png +0 -0
- data/assets/favicons/favicon.ico +0 -0
- data/assets/favicons/mstile-150x150.png +0 -0
- data/assets/favicons/safari-pinned-tab.svg +32 -0
- data/assets/favicons/site.webmanifest +19 -0
- data/assets/img/homepage-pic.png +0 -0
- data/js/Main.js +55 -2
- data/logo.png +0 -0
- data/post/index.html +3 -3
- metadata +16 -25
- data/.github/workflows/.ci_BASE_2002.yaml.swp +0 -0
- data/.github/workflows/.ci_LOCAL_2002.yaml.swp +0 -0
- data/.github/workflows/.ci_REMOTE_2002.yaml.swp +0 -0
- data/.github/workflows/ci_BACKUP_2002.yaml +0 -34
- data/.github/workflows/ci_BASE_2002.yaml +0 -27
- data/.github/workflows/ci_LOCAL_2002.yaml +0 -27
- data/.github/workflows/ci_REMOTE_2002.yaml +0 -27
- 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:
|
55
|
+
margin-bottom: 15px;
|
50
56
|
}
|
51
57
|
|
52
|
-
//
|
53
|
-
// body
|
54
|
-
//
|
55
58
|
body {
|
56
|
-
|
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
|
-
|
66
|
-
-
|
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:
|
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:
|
125
|
-
|
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
|
-
|
144
|
-
line-height: 1.5;
|
122
|
+
@include headline-large;
|
145
123
|
}
|
146
|
-
|
147
124
|
h2 {
|
148
|
-
|
149
|
-
line-height: 1.5;
|
125
|
+
@include headline-medium;
|
150
126
|
}
|
151
|
-
|
152
127
|
h3 {
|
153
|
-
|
154
|
-
line-height: 1.5;
|
128
|
+
@include headline-small;
|
155
129
|
}
|
156
|
-
|
157
130
|
h4 {
|
158
|
-
|
159
|
-
line-height: 1.5;
|
131
|
+
@include title-large;
|
160
132
|
}
|
161
|
-
|
162
133
|
h5 {
|
163
|
-
|
164
|
-
line-height: 1.5;
|
134
|
+
@include title-medium;
|
165
135
|
}
|
166
|
-
|
167
136
|
h6 {
|
168
|
-
|
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
|
-
|
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
|
-
//
|
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
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
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-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
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
|
-
|
2
|
-
|
3
|
-
font-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
}
|
31
|
-
|
32
|
-
.material-icons {
|
33
|
-
|
34
|
-
}
|
35
|
-
|
36
|
-
/*
|
37
|
-
|
38
|
-
font-
|
39
|
-
|
40
|
-
|
41
|
-
.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
font-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
}
|
57
|
-
|
58
|
-
.material-icons
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
font-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
font-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
font-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
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
|
}
|