jekyll-theme-horizon-flow 0.1.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,6 @@
6
6
 
7
7
  html {
8
8
  height: 100%;
9
- //overflow-x: hidden;
10
9
  }
11
10
 
12
11
  body {
@@ -14,18 +13,46 @@ body {
14
13
  width: 100%;
15
14
  position: relative;
16
15
  margin: 0;
17
- display: flex;
18
- flex-direction: column;
19
16
  background-color: $background-color;
20
17
  overflow-x: hidden;
18
+ display: flex;
19
+ flex-direction: column;
20
+ word-break: break-word;
21
21
  }
22
22
 
23
- img {
24
- max-width: 100%;
25
- height: auto;
23
+ header {
24
+ position: fixed;
25
+ margin: auto;
26
+ top: 0;
27
+ left: 0;
28
+ right: 0;
29
+ width: 100%;
30
+ font-size: 1.1em;
31
+ z-index: 100;
26
32
  }
27
33
 
28
34
  main {
29
35
  max-width: 70%;
30
36
  margin: 5rem auto;
37
+ flex: 1;
38
+ }
39
+
40
+
41
+ footer {
42
+ width: 100%;
43
+ color: $background-color;
44
+ margin-top: 4em;
45
+ flex-shrink: 0;
46
+ }
47
+
48
+
49
+ // @media (width >= $small) and (max-width: $large)
50
+ @media screen and (max-width: $large) {
51
+ body {
52
+ font-size: 2.5em;
53
+ }
54
+
55
+ main {
56
+ margin-top: 8rem;
57
+ }
31
58
  }
@@ -1,20 +1,9 @@
1
- footer {
2
- width: 100%;
3
- color: $background-color;
4
- font-size: 0.8em;
5
- margin-top: auto;
6
- }
7
-
8
1
  footer ul {
9
2
  list-style-type: none;
10
3
  margin: 0;
11
4
  padding: 0;
12
5
  }
13
6
 
14
- footer ul li {
15
- padding-bottom: 0.2em;
16
- }
17
-
18
7
  footer a {
19
8
  @include links($background-color);
20
9
  padding: 0;
@@ -53,6 +42,7 @@ footer .social-icons .divider::before {
53
42
  font-size: 0.8em;
54
43
  }
55
44
 
45
+
56
46
  /* ---------------------------------------------------- */
57
47
  /* ---------------------------------------------------- */
58
48
  /* footer sidebar */
@@ -111,52 +101,92 @@ footer aside section:first-child {
111
101
  padding: 0;
112
102
  }
113
103
 
104
+ .footer_sitedescription1,
105
+ .footer_customcontent1,
106
+ .footer_customcontent21,
107
+ .footer_recentposts1,
108
+ .footer_categories1,
109
+ .footer_tags1 {
110
+ @include footer_elements(1);
111
+ }
114
112
 
113
+ .footer_sitedescription2,
114
+ .footer_customcontent2,
115
+ .footer_customcontent22,
116
+ .footer_recentposts2,
117
+ .footer_categories2,
118
+ .footer_tags2 {
119
+ @include footer_elements(2);
120
+ }
115
121
 
116
- .footer_categories, .footer_tags {
117
- ul {
118
- list-style: none;
119
- padding: 0;
120
- margin: 0;
121
- columns: 5;
122
- }
123
-
124
- a {
125
- text-decoration: none;
126
- color: $background-color;
127
- letter-spacing: -1px;
128
- width: 100%;
129
- cursor: pointer;
130
- }
122
+ .footer_sitedescription3,
123
+ .footer_customcontent3,
124
+ .footer_customcontent23,
125
+ .footer_recentposts3,
126
+ .footer_categories3,
127
+ .footer_tags3 {
128
+ @include footer_elements(3);
131
129
  }
132
130
 
133
- .footer_categories1, .footer_tags1, .footer_tags, .footer_recentposts1 {
131
+ .footer_sitedescription4,
132
+ .footer_customcontent4,
133
+ .footer_customcontent24,
134
+ .footer_recentposts4,
135
+ .footer_categories4,
136
+ .footer_tags4 {
137
+ @include footer_elements(4);
138
+ }
134
139
 
140
+ .footer_sitedescription5,
141
+ .footer_customcontent5,
142
+ .footer_customcontent25,
143
+ .footer_recentposts5,
144
+ .footer_categories5,
145
+ .footer_tags5 {
146
+ @include footer_elements(5);
135
147
  }
136
148
 
137
- .footer_recentposts {
138
- ul {
139
- list-style: none;
140
- padding: 0;
141
- margin: 0;
142
- columns: 2;
149
+
150
+
151
+ @media (width >= $small) and (max-width: $large) {
152
+ footer {
153
+ font-size: 1.5em;
143
154
  }
144
155
 
145
- a {
146
- text-decoration: none;
147
- color: $background-color;
148
- letter-spacing: -1px;
149
- width: 100%;
150
- cursor: pointer;
156
+ footer .social-icons {
157
+ flex-wrap: wrap; /* Allow the icons to wrap to the next line */
158
+ }
159
+
160
+ footer .social-icons > * {
161
+ margin: 0.5em 0.5em; /* Adjust the margin as needed */
162
+ }
163
+
164
+ footer aside {
165
+ flex-direction: column;
166
+ }
167
+
168
+ footer li {
169
+ width: 100%;
170
+ }
171
+
172
+ .footer_sitedescription, .footer_customcontent, .footer_customcontent2, .footer_recentposts, .footer_categories, .footer_tags {
173
+ ul li {
174
+ width: 100%;
175
+ }
151
176
  }
152
- }
153
177
 
154
- .footer_sitedescription, .footer_extracontent {
155
- a {
156
- text-decoration: none;
157
- color: $background-color;
158
- letter-spacing: -1px;
159
- width: 100%;
160
- cursor: pointer;
178
+ footer aside section:first-child:nth-last-child(1),
179
+ footer aside section:first-child:nth-last-child(2),
180
+ footer aside section:first-child:nth-last-child(2) ~ section,
181
+ footer aside section:first-child:nth-last-child(3),
182
+ footer aside section:first-child:nth-last-child(3) ~ section,
183
+ footer aside section:first-child:nth-last-child(4),
184
+ footer aside section:first-child:nth-last-child(4) ~ section,
185
+ footer aside section:first-child:nth-last-child(5),
186
+ footer aside section:first-child:nth-last-child(5) ~ section,
187
+ footer aside section:first-child {
188
+ padding: 0 0 0 1em;
189
+ flex-grow: 1;
190
+ max-width: 100%;
161
191
  }
162
192
  }
@@ -1,15 +1,3 @@
1
- header {
2
- position: fixed;
3
- margin: auto;
4
- top: 0;
5
- left: 0;
6
- right: 0;
7
- width: 100%;
8
- font-size: 1.1em;
9
- z-index: 100;
10
- }
11
-
12
-
13
1
  header nav {
14
2
  background-color: $primary-color;
15
3
  width: fit-content;
@@ -60,3 +48,9 @@ nav li a {
60
48
  margin: 0;
61
49
  padding: 0;
62
50
  }
51
+
52
+ @media (width >= $small) and (max-width: $large) {
53
+ header {
54
+ font-size: 1em;
55
+ }
56
+ }
@@ -145,7 +145,10 @@ sup {
145
145
  * Remove the border on images inside links in IE 10.
146
146
  */
147
147
 
148
+
148
149
  img {
150
+ max-width: 100%;
151
+ height: auto;
149
152
  border-style: none;
150
153
  }
151
154
 
@@ -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,17 @@
90
97
  display: flex;
91
98
  flex-direction: column;
92
99
  align-items: center;
93
- gap: -5px;
100
+ // gap: -5px;
94
101
  margin: auto;
102
+ min-width: 6em;
103
+
104
+ @media screen and (max-width: $large) {
105
+ border: 1px solid black;
106
+ background-color: $secondary-color;
107
+ border-radius: 500px;
108
+ padding: 1em;
109
+ }
110
+
95
111
  }
96
112
 
97
113
  @mixin findresults_summary() {
@@ -101,6 +117,12 @@
101
117
  a:hover {
102
118
  @include hover();
103
119
  }
120
+
121
+ @media screen and (max-width: $large) {
122
+ margin-top: 1em;
123
+ padding-bottom: 3em;
124
+ border-bottom: 1px dotted $primary-color;
125
+ }
104
126
  }
105
127
 
106
128
  @mixin showlinks($rows: 4) {
@@ -108,11 +130,11 @@
108
130
  content: "";
109
131
  display: block;
110
132
  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
133
+ width: 98vw;
134
+ height: 0px;
135
+ margin: 4em 0;
136
+ position: relative;
137
+ left: -20%;
116
138
  }
117
139
 
118
140
  ul {
@@ -189,4 +211,69 @@
189
211
  }
190
212
  }
191
213
  }
214
+ }
215
+
216
+
217
+ @mixin footer_elements($rows: 5) {
218
+ ul {
219
+ list-style: none;
220
+ padding: 0;
221
+ margin: 0;
222
+ display: flex;
223
+ flex-wrap: wrap;
224
+ row-gap: 0;
225
+ column-gap: 0;
226
+
227
+ // Each item takes half of the container width minus the gap
228
+ @if $rows == 1 {
229
+ li {
230
+ width: calc(100% - 1rem);
231
+ }
232
+ } @else if $rows == 2 {
233
+ li {
234
+ width: calc(50% - 1rem);
235
+ }
236
+ } @else if $rows == 3 {
237
+ li {
238
+ width: calc(33.33% - 1rem);
239
+ }
240
+ } @else if $rows == 4 {
241
+ li {
242
+ width: calc(25% - 1rem);
243
+ }
244
+ } @else if $rows == 5 {
245
+ li {
246
+ width: calc(20% - 1rem);
247
+ }
248
+ }
249
+
250
+ li {
251
+ display: flex;
252
+ justify-content: space-between;
253
+ align-items: left;
254
+ cursor: pointer;
255
+ overflow-wrap: break-word;
256
+
257
+ a {
258
+ text-decoration: none;
259
+ color: $background-color;
260
+ text-transform: lowercase;
261
+ letter-spacing: -1px;
262
+ width: 100%;
263
+ display: flex;
264
+ justify-content: space-between;
265
+ padding: 0.5em;
266
+ text-align: left;
267
+ border: 1px solid rgba(0, 0, 0, 0.1);
268
+
269
+ &:hover {
270
+ @include hover();
271
+ }
272
+ }
273
+
274
+ .archive_linktitle {
275
+ flex: 1;
276
+ }
277
+ }
278
+ }
192
279
  }
@@ -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;
@@ -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;
@@ -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,11 @@
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
+ }
71
75
 
72
76
 
73
77
  .page_count {
@@ -75,21 +79,14 @@
75
79
  }
76
80
 
77
81
  .spannext {
78
- padding-right: 15px;
79
- padding-left: 12px;
80
- border: 1px solid black;
81
- padding-top: 0;
82
- padding-bottom: 5px;
82
+ padding: 5px 15px;
83
+ border: 1px solid $primary-color;
83
84
  height: 1em;
84
- position: relative;
85
85
  }
86
86
 
87
87
  .spanprevious {
88
- padding-right: 12px;
89
- padding-left: 15px;
90
- border: 1px solid black;
91
- padding-top: 0;
92
- padding-bottom: 5px;
88
+ padding: 5px 15px;
89
+ border: 1px solid $primary-color;
93
90
  height: 1em;
94
91
  }
95
92
 
@@ -100,21 +97,4 @@
100
97
  .previous {
101
98
  float: left;
102
99
  }
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
100
  }
@@ -26,6 +26,7 @@
26
26
  margin-top: 3em;
27
27
  background-color: $background-color;
28
28
  margin-left: calc(-1em + 5px);; // 14px*2 padding - 5px border
29
+ overflow-wrap: break-word;
29
30
  }
30
31
 
31
32
 
@@ -167,7 +168,6 @@
167
168
  /* ---------------------------------------------------- */
168
169
  /* ---------------------------------------------------- */
169
170
 
170
-
171
171
  article {
172
172
  position: relative;
173
173
  }
@@ -192,7 +192,7 @@ article {
192
192
  position: fixed;
193
193
  bottom: 0;
194
194
  right: 0;
195
- padding: 16px;
195
+ padding: 1rem; /* Adjust padding as needed */
196
196
  z-index: 1;
197
197
  }
198
198
 
@@ -200,11 +200,10 @@ article {
200
200
  display: block;
201
201
  border: 1px solid $primary-color;
202
202
  position: fixed;
203
- top: 1em;
204
- right: 1em;
205
- bottom: 1em;
203
+ top: 3vw; /* Adjust top, right, bottom, and left as needed */
204
+ right: 3vw;
206
205
  min-width: 10vw;
207
- max-width: 30vw;
206
+ max-width: 40vw;
208
207
  background-color: $background-color;
209
208
  z-index: 1;
210
209
  overflow-x: hidden;
@@ -212,30 +211,32 @@ article {
212
211
  max-height: 80vh;
213
212
 
214
213
  h1 {
215
- text-shadow: 0px 2px 4px rgba(100,100,100,0.5);
214
+ text-shadow: 0px 0.1em 0.2em rgba(100, 100, 100, 0.5); /* Adjust text-shadow as needed */
216
215
  color: $primary-color;
217
216
  font-size: 2em;
218
217
  font-weight: bold;
219
- letter-spacing: 20px;
218
+ letter-spacing: 1rem; /* Adjust letter-spacing as needed */
220
219
  text-align: center;
221
220
  }
222
221
 
223
222
  ul {
224
223
  list-style: none;
224
+ padding-left: 24px; /* Remove default list padding */
225
225
  }
226
226
 
227
- li a{
227
+ li a {
228
228
  border-bottom: 1px dashed $secondary-color;
229
229
  opacity: 0.8;
230
230
  width: 80%;
231
231
  display: block;
232
+ margin: 1rem auto; /* Adjust margin as needed */
232
233
  }
233
234
 
234
235
  a {
235
236
  text-decoration: none;
236
237
  color: $secondary-color;
237
238
  font-size: 1em;
238
- line-height: 1.5em;
239
+ line-height: 1.5;
239
240
  }
240
241
 
241
242
  a:hover {
@@ -244,6 +245,38 @@ article {
244
245
  }
245
246
 
246
247
 
248
+ @media screen and (max-width: $large) {
249
+ #tocMenuButtonLabel {
250
+ font-size: 1.5em;
251
+ padding: 0.5rem;
252
+ }
253
+
254
+ #tocMenuButton:checked ~ #tocContainer {
255
+ max-width: 80vw;
256
+ height: 80vh;
257
+ top: 10vw;
258
+ left: 10vw;
259
+ font-size: 1.5em;
260
+
261
+ h1 {
262
+ font-size: 1.5em;
263
+ letter-spacing: 0.5rem;
264
+ }
265
+
266
+ ul {
267
+ margin: 0;
268
+ }
269
+
270
+ li a {
271
+ margin: 0.5rem auto;
272
+ }
273
+ }
274
+ }
275
+
276
+
277
+
278
+
279
+
247
280
  /* ---------------------------------------------------- */
248
281
  /* ---------------------------------------------------- */
249
282
  /* header layout */
@@ -252,14 +285,14 @@ article {
252
285
 
253
286
 
254
287
  .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
288
+ content: "";
289
+ display: block;
290
+ border-top: 1px solid $secondary-color;
291
+ width: 98vw;
292
+ height: 0px;
293
+ margin: 4em 0;
294
+ position: relative;
295
+ left: -20%;
263
296
  }
264
297
 
265
298
  #post article {
@@ -300,6 +333,7 @@ article {
300
333
  .supplements a {
301
334
  /* Set links to display as block-level elements so capitalize works*/
302
335
  display: inline-block;
336
+ word-break: break-all;
303
337
  &:hover {
304
338
  @include hover();
305
339
  }
@@ -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
  /* ---------------------------------------------------- */