jekyll-theme-horizon-flow 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,7 @@
36
36
  text-shadow: 0px 2px 4px rgba(100,100,100,0.5);
37
37
  color: $primary-color;
38
38
  font-family: Inter;
39
- font-size: 36px;
39
+ font-size: 3em;
40
40
  font-weight: 700;
41
41
  text-align: center;
42
42
  margin-top: 0;
@@ -70,6 +70,13 @@
70
70
  text-decoration: none;
71
71
  font-weight: bold;
72
72
  }
73
+
74
+ @media screen and (max-width: $large) {
75
+ font-size: 1em;
76
+ flex-wrap: wrap;
77
+ }
78
+
79
+
73
80
  }
74
81
 
75
82
  @mixin findresults_day() {
@@ -90,8 +97,16 @@
90
97
  display: flex;
91
98
  flex-direction: column;
92
99
  align-items: center;
93
- gap: -5px;
94
- margin: auto;
100
+ // gap: -5px;
101
+ min-width: 6em;
102
+
103
+ @media screen and (max-width: $large) {
104
+ border: 1px solid black;
105
+ background-color: $secondary-color;
106
+ border-radius: 500px;
107
+ padding: 1em;
108
+ }
109
+
95
110
  }
96
111
 
97
112
  @mixin findresults_summary() {
@@ -101,6 +116,12 @@
101
116
  a:hover {
102
117
  @include hover();
103
118
  }
119
+
120
+ @media screen and (max-width: $large) {
121
+ margin-top: 1em;
122
+ padding-bottom: 3em;
123
+ border-bottom: 1px dotted $primary-color;
124
+ }
104
125
  }
105
126
 
106
127
  @mixin showlinks($rows: 4) {
@@ -108,11 +129,11 @@
108
129
  content: "";
109
130
  display: block;
110
131
  border-top: 1px solid $secondary-color;
111
- margin-left: -100vw;
112
- margin-right: -100vw;
113
- margin-bottom: 4em;
114
- margin-top: 4em;
115
- width: 200vw; //only working with overflow-x: hidden; in body in _base.scss
132
+ width: 98vw;
133
+ height: 0px;
134
+ margin: 4em 0;
135
+ position: relative;
136
+ left: -20%;
116
137
  }
117
138
 
118
139
  ul {
@@ -189,4 +210,109 @@
189
210
  }
190
211
  }
191
212
  }
213
+ }
214
+
215
+
216
+ @mixin footer_elements($rows: 5) {
217
+ ul {
218
+ list-style: none;
219
+ padding: 0;
220
+ margin: 0;
221
+ display: flex;
222
+ flex-wrap: wrap;
223
+ row-gap: 0;
224
+ column-gap: 0;
225
+
226
+ // Each item takes half of the container width minus the gap
227
+ @if $rows == 1 {
228
+ li {
229
+ width: calc(100% - 1rem);
230
+ }
231
+ } @else if $rows == 2 {
232
+ li {
233
+ width: calc(50% - 1rem);
234
+ }
235
+ } @else if $rows == 3 {
236
+ li {
237
+ width: calc(33.33% - 1rem);
238
+ }
239
+ } @else if $rows == 4 {
240
+ li {
241
+ width: calc(25% - 1rem);
242
+ }
243
+ } @else if $rows == 5 {
244
+ li {
245
+ width: calc(20% - 1rem);
246
+ }
247
+ }
248
+
249
+ li {
250
+ display: flex;
251
+ justify-content: space-between;
252
+ align-items: left;
253
+ cursor: pointer;
254
+ overflow-wrap: break-word;
255
+
256
+ a {
257
+ text-decoration: none;
258
+ color: $background-color;
259
+ text-transform: lowercase;
260
+ letter-spacing: -1px;
261
+ width: 100%;
262
+ display: flex;
263
+ justify-content: space-between;
264
+ padding: 0.5em;
265
+ text-align: left;
266
+ border: 1px solid rgba(0, 0, 0, 0.1);
267
+
268
+ &:hover {
269
+ @include hover();
270
+ }
271
+ }
272
+
273
+ .archive_linktitle {
274
+ flex: 1;
275
+ }
276
+ }
277
+ }
278
+ }
279
+
280
+ @mixin footer_elements_auto() {
281
+ ul {
282
+ list-style: none;
283
+ padding: 0;
284
+ margin: 0;
285
+ display: flex;
286
+ flex-wrap: wrap;
287
+ row-gap: 0;
288
+ column-gap: 0;
289
+ width: fit-content;
290
+
291
+ li {
292
+ display: flex;
293
+ justify-content: space-between;
294
+ align-items: left;
295
+ cursor: pointer;
296
+ overflow-wrap: break-word;
297
+ a {
298
+ text-decoration: none;
299
+ color: $background-color;
300
+ text-transform: lowercase;
301
+ letter-spacing: -1px;
302
+ width: 100%;
303
+ display: flex;
304
+ justify-content: space-between;
305
+ padding: 0.5em;
306
+ text-align: left;
307
+
308
+ &:hover {
309
+ @include hover();
310
+ }
311
+ }
312
+
313
+ .archive_linktitle {
314
+ flex: 1;
315
+ }
316
+ }
317
+ }
192
318
  }
@@ -4,6 +4,8 @@ $medium: 768px !default;
4
4
  $large: 1024px !default;
5
5
  $xlarge: 1280px !default;
6
6
 
7
+ // @media only screen and (max-width: $small)
8
+
7
9
  $darker: #060606;
8
10
  $dark: #404040;
9
11
  $mid: #9c9b9b;
@@ -18,4 +20,11 @@ $darkblue: #032539;
18
20
  $primary-color:#032539;
19
21
  $secondary-color: #1c768f;
20
22
  $background-color: #fbf3f2;
21
- $accent-color: #fa991c;
23
+ $accent-color: #fa991c;
24
+
25
+ @media (prefers-color-scheme: dark) {
26
+ $primary-color: #fbf3f2;
27
+ $secondary-color: #1c768f;
28
+ $background-color: #032539;
29
+ $accent-color: #fa991c;
30
+ }
@@ -1,9 +1,10 @@
1
- @import "external/_normalize.scss";
2
- @import "external/_highlighter_rougify_base16dark.scss";
3
-
4
1
  @import "functions/_mixins.scss";
5
2
  @import "functions/_values.scss";
6
3
 
4
+ @import "external/_normalize.scss";
5
+ @import "external/_highlighter_rougify_base16dark.scss";
6
+ @import "external/_comments.scss";
7
+
7
8
  @import "layouts/_archive.scss";
8
9
  @import "layouts/_categories.scss";
9
10
  @import "layouts/_home.scss";
@@ -13,10 +13,6 @@
13
13
  /* ---------------------------------------------------- */
14
14
 
15
15
 
16
- .archive_all_years {
17
- @include showlinks(2);
18
- }
19
-
20
16
  .archive_all_years1 {
21
17
  @include showlinks(1);
22
18
  }
@@ -33,8 +29,10 @@
33
29
  @include showlinks(4);
34
30
  }
35
31
 
36
- .archive_all_years5 {
37
- @include showlinks(5);
32
+ @media screen and (max-width: $large) {
33
+ .archive_all_years {
34
+ @include showlinks(1);
35
+ }
38
36
  }
39
37
 
40
38
  /* ---------------------------------------------------- */
@@ -13,10 +13,6 @@
13
13
  /* ---------------------------------------------------- */
14
14
 
15
15
 
16
- .categories_all {
17
- @include showlinks(3);
18
- }
19
-
20
16
  .categories_all1 {
21
17
  @include showlinks(1);
22
18
  }
@@ -37,6 +33,11 @@
37
33
  @include showlinks(5);
38
34
  }
39
35
 
36
+ @media screen and (max-width: $large) {
37
+ .categories_all {
38
+ @include showlinks(1);
39
+ }
40
+ }
40
41
 
41
42
  /* ---------------------------------------------------- */
42
43
  /* ---------------------------------------------------- */
@@ -9,21 +9,21 @@
9
9
  /* ---------------------------------------------------- */
10
10
  // Supplements = Date + Tags
11
11
 
12
- .single_article {
13
- &::after {
14
- content: "";
15
- display: block;
12
+ #home {
13
+ .article-divider {
14
+ width: 98vw;
15
+ height: 0px;
16
16
  border-top: 1px dashed $secondary-color;
17
- margin-left: -100vw;
18
- margin-right: -100vw;
19
- margin-bottom: 4em; //same as .single_article .summary
20
- width: 200vw; //only working with overflow-x: hidden; in body in _base.scss
17
+ margin: 4em 0;
18
+ position: relative;
19
+ left: -20%;
21
20
  }
21
+ }
22
22
 
23
-
23
+ .single_article {
24
24
  h3 {
25
25
  //font-family: Inter;
26
- font-size: 36px;
26
+ font-size: 2em;
27
27
  font-weight: 700;
28
28
  letter-spacing: 2px;
29
29
  margin: 0;
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  a {
34
- color: #022539;
34
+ color: $secondary-color;
35
35
  text-decoration: none;
36
36
 
37
37
  &:hover {
@@ -49,7 +49,6 @@
49
49
 
50
50
  .summary {
51
51
  margin-top: 2em;
52
- margin-bottom: 4em;
53
52
  }
54
53
 
55
54
  .supplements-sep::before {
@@ -68,6 +67,17 @@
68
67
  .pagination {
69
68
  display: flex;
70
69
  justify-content: space-between;
70
+ color: $primary-color;
71
+
72
+ a {
73
+ color: $primary-color;
74
+ }
75
+
76
+ span {
77
+ &:hover {
78
+ @include hover();
79
+ }
80
+ }
71
81
 
72
82
 
73
83
  .page_count {
@@ -75,21 +85,14 @@
75
85
  }
76
86
 
77
87
  .spannext {
78
- padding-right: 15px;
79
- padding-left: 12px;
80
- border: 1px solid black;
81
- padding-top: 0;
82
- padding-bottom: 5px;
88
+ padding: 5px 15px;
89
+ border: 1px solid $primary-color;
83
90
  height: 1em;
84
- position: relative;
85
91
  }
86
92
 
87
93
  .spanprevious {
88
- padding-right: 12px;
89
- padding-left: 15px;
90
- border: 1px solid black;
91
- padding-top: 0;
92
- padding-bottom: 5px;
94
+ padding: 5px 15px;
95
+ border: 1px solid $primary-color;
93
96
  height: 1em;
94
97
  }
95
98
 
@@ -100,21 +103,4 @@
100
103
  .previous {
101
104
  float: left;
102
105
  }
103
-
104
- .arrow {
105
- border: solid $primary-color;
106
- border-width: 0 3px 3px 0;
107
- display: inline-block;
108
- padding: 3px;
109
- }
110
-
111
- .right {
112
- transform: rotate(-45deg);
113
- -webkit-transform: rotate(-45deg);
114
- }
115
-
116
- .left {
117
- transform: rotate(135deg);
118
- -webkit-transform: rotate(135deg);
119
- }
120
106
  }
@@ -5,6 +5,30 @@
5
5
 
6
6
 
7
7
 
8
+ /* ---------------------------------------------------- */
9
+ /* ---------------------------------------------------- */
10
+ /* grid */
11
+ /* ---------------------------------------------------- */
12
+ /* ---------------------------------------------------- */
13
+
14
+ .grid {
15
+ display: grid;
16
+ grid-template-columns: repeat(12,minmax(0,1fr));
17
+ }
18
+
19
+
20
+ .post_header {
21
+ grid-column: span 12/span 12;
22
+ }
23
+
24
+ .post_content {
25
+ grid-column: span 10/span 10;
26
+ }
27
+
28
+ #toc2 {
29
+ grid-column: span 2/span 2;
30
+ }
31
+
8
32
  /* ---------------------------------------------------- */
9
33
  /* ---------------------------------------------------- */
10
34
  /* content layout */
@@ -26,8 +50,12 @@
26
50
  margin-top: 3em;
27
51
  background-color: $background-color;
28
52
  margin-left: calc(-1em + 5px);; // 14px*2 padding - 5px border
53
+ overflow-wrap: break-word;
29
54
  }
30
55
 
56
+ h1:first-child{
57
+ margin-top: 0;
58
+ }
31
59
 
32
60
  h2 {
33
61
  @include default_header(0);
@@ -62,7 +90,7 @@
62
90
  padding: 16px;
63
91
 
64
92
  i {
65
- color: $accent-color;
93
+ color: $primary-color;
66
94
  font-size: 1.8em;
67
95
  }
68
96
  }
@@ -147,27 +175,18 @@
147
175
  code.highlighter-rouge {
148
176
  font-style: italic;
149
177
  color: $primary-color;
150
- background-color: $background-color;
178
+ background-color: rgba(0, 0, 0, 33%);
151
179
  padding: 0 5px;
152
180
  }
153
181
  }
154
182
 
155
183
 
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
184
  /* ---------------------------------------------------- */
165
185
  /* ---------------------------------------------------- */
166
186
  /* TOC */
167
187
  /* ---------------------------------------------------- */
168
188
  /* ---------------------------------------------------- */
169
189
 
170
-
171
190
  article {
172
191
  position: relative;
173
192
  }
@@ -188,11 +207,11 @@ article {
188
207
 
189
208
  #tocMenuButtonLabel {
190
209
  font-size: 2em;
191
- color: $accent-color;
210
+ color: $primary-color;
192
211
  position: fixed;
193
212
  bottom: 0;
194
213
  right: 0;
195
- padding: 16px;
214
+ padding: 1rem;
196
215
  z-index: 1;
197
216
  }
198
217
 
@@ -200,42 +219,46 @@ article {
200
219
  display: block;
201
220
  border: 1px solid $primary-color;
202
221
  position: fixed;
203
- top: 1em;
204
- right: 1em;
205
- bottom: 1em;
222
+ top: 4vw;
223
+ right: 4vw;
206
224
  min-width: 10vw;
207
- max-width: 30vw;
225
+ max-width: 40vw;
208
226
  background-color: $background-color;
209
- z-index: 1;
227
+ z-index: 2;
210
228
  overflow-x: hidden;
211
229
  min-height: 10vh;
212
230
  max-height: 80vh;
213
231
 
214
232
  h1 {
215
- text-shadow: 0px 2px 4px rgba(100,100,100,0.5);
233
+ text-shadow: 0px 0.1em 0.2em rgba(100, 100, 100, 0.5);
216
234
  color: $primary-color;
217
235
  font-size: 2em;
218
236
  font-weight: bold;
219
- letter-spacing: 20px;
237
+ letter-spacing: 1rem;
220
238
  text-align: center;
221
239
  }
222
240
 
223
241
  ul {
224
242
  list-style: none;
243
+ padding-inline-start: 0;
244
+ ul {
245
+ padding-left: 1em;
246
+ }
225
247
  }
226
248
 
227
- li a{
249
+ li a {
228
250
  border-bottom: 1px dashed $secondary-color;
229
251
  opacity: 0.8;
230
252
  width: 80%;
231
253
  display: block;
254
+ margin: 1rem auto;
232
255
  }
233
256
 
234
257
  a {
235
258
  text-decoration: none;
236
259
  color: $secondary-color;
237
260
  font-size: 1em;
238
- line-height: 1.5em;
261
+ line-height: 1.5;
239
262
  }
240
263
 
241
264
  a:hover {
@@ -244,6 +267,90 @@ article {
244
267
  }
245
268
 
246
269
 
270
+ @media screen and (max-width: $large) {
271
+ #tocMenuButtonLabel {
272
+ font-size: 1.5em;
273
+ padding: 0.5rem;
274
+ }
275
+
276
+ #tocMenuButton:checked ~ #tocContainer {
277
+ max-width: 80vw;
278
+ height: 80vh;
279
+ top: 10vw;
280
+ left: 10vw;
281
+ font-size: 1.5em;
282
+
283
+ h1 {
284
+ font-size: 1.5em;
285
+ letter-spacing: 0.5rem;
286
+ }
287
+
288
+ ul {
289
+ margin: 0;
290
+ }
291
+
292
+ li a {
293
+ margin: 0.5rem auto;
294
+ }
295
+ }
296
+ }
297
+
298
+
299
+ #toc2 {
300
+ font-size: 0.75em;
301
+ position: sticky;
302
+ top: 2vw;
303
+ z-index: 1;
304
+ transform: translate(2.5em);
305
+ color: $secondary-color;
306
+ align-self: start;
307
+ letter-spacing: -1px;
308
+
309
+ ul {
310
+ padding: 0;
311
+ }
312
+
313
+ ul ul {
314
+ padding-left: 0.8em;
315
+ }
316
+
317
+
318
+
319
+ li::marker {
320
+ content: ' > ';
321
+ font-size: 0.8em;
322
+ font-weight: bold;
323
+ font-family: "Georgia";
324
+ vertical-align: middle;
325
+ position: relative;
326
+ top: -3px;
327
+ }
328
+
329
+ li a {
330
+ text-decoration: none;
331
+ color: $primary-color;
332
+ line-height: 1.5em;
333
+ }
334
+
335
+ li a:hover {
336
+ @include hover();
337
+ //font-size: 1.2em;
338
+ }
339
+ }
340
+
341
+ @media screen and (max-width: $xlarge) {
342
+ #toc2 {
343
+ font-size: 0.5em;
344
+ }
345
+ }
346
+
347
+ @media screen and (max-width: $large) {
348
+ #toc2 {
349
+ display: none;
350
+ }
351
+ }
352
+
353
+
247
354
  /* ---------------------------------------------------- */
248
355
  /* ---------------------------------------------------- */
249
356
  /* header layout */
@@ -252,14 +359,14 @@ article {
252
359
 
253
360
 
254
361
  .post_header::after {
255
- content: "";
256
- display: block;
257
- border-top: 1px solid $secondary-color;
258
- margin-left: -100vw;
259
- margin-right: -100vw;
260
- margin-bottom: 4em;
261
- margin-top: 4em;
262
- width: 200vw; //only working with overflow-x: hidden; in body in _base.scss
362
+ content: "";
363
+ display: block;
364
+ border-top: 1px solid $secondary-color;
365
+ width: 98vw;
366
+ height: 0px;
367
+ margin: 4em 0;
368
+ position: relative;
369
+ left: -20%;
263
370
  }
264
371
 
265
372
  #post article {
@@ -298,17 +405,12 @@ article {
298
405
  }
299
406
 
300
407
  .supplements a {
301
- /* Set links to display as block-level elements so capitalize works*/
302
- display: inline-block;
408
+ word-break: break-all;
303
409
  &:hover {
304
410
  @include hover();
305
411
  }
306
412
  }
307
413
 
308
- .supplements a::first-letter {
309
- text-transform: capitalize;
310
- }
311
-
312
414
  .supplements-sep::before {
313
415
  content: "\2022";
314
416
  padding-left: 0.5em;
@@ -319,4 +421,4 @@ article {
319
421
  .post_header_content_parting_line {
320
422
  margin: 2em 0;
321
423
  }
322
- }
424
+ }
@@ -37,6 +37,11 @@
37
37
  @include showlinks(5);
38
38
  }
39
39
 
40
+ @media screen and (max-width: $large) {
41
+ .tags_all {
42
+ @include showlinks(1);
43
+ }
44
+ }
40
45
 
41
46
 
42
47
  /* ---------------------------------------------------- */