jekyll-theme-tallneck 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/assets/css/style.css CHANGED
@@ -1,353 +1,382 @@
1
- /*
2
- Font
3
- */
4
-
5
- @font-face {
6
- font-family: 'Roboto';
7
- font-style: normal;
8
- font-weight: 400;
9
- src: url('../font/roboto.eot');
10
- /* IE9 Compat Modes */
11
- src: local(''),
12
- /* IE6-IE8 */ url('../font/roboto.eot?#iefix') format('embedded-opentype'),
13
- /* Super Modern Browsers */ url('../font/roboto.woff2') format('woff2'),
14
- /* Modern Browsers */ url('../font/roboto.woff') format('woff'),
15
- /* Safari, Android, iOS */ url('../font/roboto.ttf') format('truetype'),
16
- /* Legacy iOS */ url('../font/roboto.svg#Roboto') format('svg');
17
- font-display: swap;
18
- }
19
-
20
-
21
- /*
22
- General
23
- */
24
-
25
- html {
26
- font-family: 'Roboto', sans-serif;
27
- font-size: 100%;
28
- min-width: 200px;
29
- }
30
-
31
- body {
32
- margin: 0;
33
- box-sizing: border-box;
34
- }
35
-
36
- h1 {
37
- font-size: 3rem;
38
- text-align: center;
39
- }
40
-
41
- h2 {
42
- font-size: 2rem;
43
- margin-block-end: 0.5em;
44
- }
45
-
46
- h3 {
47
- font-size: 1.3rem;
48
- margin-block-start: 0.5em;
49
- margin-block-end: 0.5em;
50
- }
51
-
52
- h4 {
53
- margin-block-start: 0.5em;
54
- margin-block-end: 0.5em;
55
- }
56
-
57
- h5 {
58
- margin-block-start: 0.5em;
59
- margin-block-end: 0.5em;
60
- }
61
-
62
- small {
63
- font-size: small;
64
- }
65
-
66
- a {
67
- text-decoration: none;
68
- color: #000;
69
- }
70
-
71
- a:hover {
72
- color: #000000aa;
73
- }
74
-
75
- p {
76
- margin-block-start: 0.5em;
77
- margin-block-end: 0.5em;
78
- }
79
-
80
- ul {
81
- margin-block-start: 0.4em;
82
- margin-block-end: 0.6em;
83
- }
84
-
85
- ul li {
86
- margin-block-start: 0.2em;
87
- margin-block-end: 0.2em;
88
- }
89
-
90
- @media (prefers-color-scheme: dark) {
91
- a {
92
- color: #fff;
93
- text-decoration: none;
94
- }
95
-
96
- a:hover {
97
- color: #ffffffaa;
98
- }
99
-
100
- html {
101
- background-color: #121212;
102
- color: #fefefe;
103
- }
104
- }
105
-
106
- @media print {
107
- .no_print, .no_print * {
108
- display: none !important;
109
- }
110
- }
111
-
112
- img {
113
- max-width: 100%;
114
- max-height: 100%;
115
- }
116
-
117
- img[src*='#center'] {
118
- display: block;
119
- margin: auto;
120
- }
121
-
122
- /*
123
- Header
124
- */
125
-
126
- header {
127
- max-height: 2em;
128
- font-size: 1.1rem;
129
-
130
- position: relative !important;
131
- display: flex;
132
- flex-direction: row;
133
- justify-content: space-between;
134
- align-items: center;
135
- padding: 1.0rem 1.5rem;
136
-
137
- background-color: #1d1d1d;
138
- }
139
-
140
- header nav {
141
- float: right;
142
- }
143
-
144
- header nav ul {
145
- padding-inline-start: 0;
146
- display: flex;
147
- flex-direction: row;
148
- }
149
-
150
- header nav ul li {
151
- display: inline-block;
152
- width: 4em;
153
- text-align: center;
154
- padding-right: 0.4em;
155
- padding-left: 0.4em;
156
- }
157
-
158
- header nav ul li a {
159
- width: 100%;
160
- display: block;
161
- color: #fefefe;
162
- }
163
-
164
- header nav ul li a:hover {
165
- color: #cacaca;
166
- }
167
-
168
- .header__logo {
169
- float: left;
170
- vertical-align: middle;
171
- height: fit-content;
172
- width: fit-content;
173
- }
174
-
175
- .header__logo svg {
176
- vertical-align: middle !important;
177
- width: 32px;
178
- height: 32px;
179
- fill: #fefefe;
180
- }
181
-
182
- .header__logo :hover {
183
- color: #cacaca;
184
- fill: #cacaca;
185
- }
186
-
187
-
188
- /*
189
- Content
190
- */
191
-
192
- .container {
193
- position: relative;
194
- max-width: 900px;
195
- margin: auto;
196
- padding: 0 1.5rem;
197
- }
198
-
199
- .content {
200
- margin: 0 auto;
201
- padding: 1.5rem;
202
- }
203
-
204
- .content__info {
205
- opacity: 0.7; /* Adjust as needed, 1 is fully opaque, 0 is fully transparent */
206
- font-size: 0.8em; /* Adjust as needed, 1em is the current font size */
207
- }
208
-
209
- .subtitle {
210
- font-size: 1.2rem;
211
- margin-bottom: 0.5rem;
212
- }
213
-
214
- .center {
215
- text-align: center;
216
- }
217
-
218
- /*
219
- Post preview
220
- */
221
- .post-preview {
222
- width: 90%;
223
- margin: auto;
224
- }
225
-
226
- .post-preview__box {
227
- display: flex;
228
- flex-direction: row;
229
- justify-content: space-between;
230
- align-items: center;
231
- padding: 0 1rem 0 0;
232
- margin: 0.5rem;
233
- border: 2px solid #00000050;
234
- border-radius: 0.5rem;
235
- transition: all 0.2s ease-in-out;
236
- max-height: 10rem;
237
- max-width: 100%;
238
- overflow: hidden;
239
- }
240
-
241
- .post-preview__box:hover {
242
- border: 2px solid #00000055;
243
- background-color: #00000011;
244
- }
245
-
246
- @media (prefers-color-scheme: dark) {
247
- .post-preview__box {
248
- border: 2px solid #ffffff50;
249
- }
250
-
251
- .post-preview__box:hover {
252
- border: 2px solid #ffffff55;
253
- background-color: #ffffff11;
254
- }
255
- }
256
-
257
- .post-preview__box__image {
258
- width: 90%;
259
- height: 10rem;
260
- overflow: hidden;
261
- }
262
-
263
- .post-preview__box__image img {
264
- width: 100%;
265
- height: 100%;
266
- object-fit: cover;
267
- }
268
-
269
- .post-preview__box__content {
270
- width: 100%;
271
- padding-left: 0.5rem;
272
- padding-top: 0.5rem;
273
- padding-bottom: 0.5rem;
274
- }
275
-
276
- .post-preview__box__content__title {
277
- margin-bottom: 0.2em;
278
- margin-top: 0.2em;
279
- }
280
-
281
- .post-preview__box__content__date {
282
- font-size: 0.8rem;
283
- opacity: 0.7;
284
- }
285
-
286
- .post-preview__box__content__author {
287
- font-size: 0.8rem;
288
- opacity: 0.7;
289
- }
290
-
291
- .post-preview__box__content__description {
292
- font-size: 0.9rem;
293
- opacity: 0.8;
294
- }
295
-
296
-
297
- /*
298
- Footer
299
- */
300
-
301
- footer {
302
- display: block;
303
- margin: 2.5em auto 0;
304
- font-size: 1.1rem;
305
- }
306
-
307
- footer hr {
308
- width: auto;
309
- margin-left: auto;
310
- margin-right: auto;
311
- border: 0;
312
- border-top: 0.1em solid;
313
- }
314
-
315
- footer nav {
316
- text-align: center;
317
- }
318
-
319
- footer nav ul {
320
- display: flex;
321
- flex-direction: row;
322
- flex-wrap: wrap;
323
- justify-content: center;
324
- margin: auto;
325
- padding-inline-start: 0;
326
- list-style: none;
327
- width: 100%;
328
- }
329
-
330
- footer nav ul li {
331
- display: inline-block;
332
- width: 5em;
333
- text-align: center;
334
- align-items: center;
335
- padding-right: 0.5em;
336
- padding-left: 0.5em;
337
- }
338
-
339
- @media (max-width: 280px) { /* Adjust this value based on when you want the items to wrap */
340
- footer nav ul li {
341
- width: 50%; /* Make each li take up half the width of the ul on small screens */
342
- }
343
- }
344
-
345
- footer nav ul li a {
346
- width: 100%;
347
- display: block;
348
- }
349
-
350
- footer div {
351
- padding-bottom: 0.25em;
352
- padding-top: 0.25em;
353
- }
1
+ /*
2
+ Font
3
+ */
4
+
5
+ @font-face {
6
+ font-family: 'Roboto';
7
+ font-style: normal;
8
+ font-weight: 400;
9
+ src: url('../font/roboto.eot');
10
+ /* IE9 Compat Modes */
11
+ src: local(''),
12
+ /* IE6-IE8 */ url('../font/roboto.eot?#iefix') format('embedded-opentype'),
13
+ /* Super Modern Browsers */ url('../font/roboto.woff2') format('woff2'),
14
+ /* Modern Browsers */ url('../font/roboto.woff') format('woff'),
15
+ /* Safari, Android, iOS */ url('../font/roboto.ttf') format('truetype'),
16
+ /* Legacy iOS */ url('../font/roboto.svg#Roboto') format('svg');
17
+ font-display: swap;
18
+ }
19
+
20
+
21
+ /*
22
+ General
23
+ */
24
+
25
+ html {
26
+ font-family: 'Roboto', sans-serif;
27
+ font-size: 100%;
28
+ min-width: 270px;
29
+ }
30
+
31
+ body {
32
+ margin: 0;
33
+ box-sizing: border-box;
34
+ }
35
+
36
+ h1 {
37
+ font-size: 3rem;
38
+ text-align: center;
39
+ }
40
+
41
+ h2 {
42
+ font-size: 2rem;
43
+ margin-block-end: 0.5em;
44
+ }
45
+
46
+ h3 {
47
+ font-size: 1.3rem;
48
+ margin-block-start: 0.5em;
49
+ margin-block-end: 0.5em;
50
+ }
51
+
52
+ h4 {
53
+ margin-block-start: 0.5em;
54
+ margin-block-end: 0.5em;
55
+ }
56
+
57
+ h5 {
58
+ margin-block-start: 0.5em;
59
+ margin-block-end: 0.5em;
60
+ }
61
+
62
+ small {
63
+ font-size: small;
64
+ }
65
+
66
+ a {
67
+ text-decoration: none;
68
+ color: #000;
69
+ word-break: break-all;
70
+ }
71
+
72
+ a:hover {
73
+ color: #000000aa;
74
+ }
75
+
76
+ p {
77
+ margin-block-start: 0.5em;
78
+ margin-block-end: 0.5em;
79
+ }
80
+
81
+ ul {
82
+ margin-block-start: 0.4em;
83
+ margin-block-end: 0.6em;
84
+ }
85
+
86
+ ul li {
87
+ margin-block-start: 0.2em;
88
+ margin-block-end: 0.2em;
89
+ }
90
+
91
+ @media (prefers-color-scheme: dark) {
92
+ a {
93
+ color: #fff;
94
+ text-decoration: none;
95
+ }
96
+
97
+ a:hover {
98
+ color: #ffffffaa;
99
+ }
100
+
101
+ html {
102
+ background-color: #121212;
103
+ color: #fefefe;
104
+ }
105
+ }
106
+
107
+ @media print {
108
+ .no_print, .no_print * {
109
+ display: none !important;
110
+ }
111
+ }
112
+
113
+ img {
114
+ max-width: 100%;
115
+ max-height: 100%;
116
+ }
117
+
118
+ img[src*='#center'] {
119
+ display: block;
120
+ margin: auto;
121
+ }
122
+
123
+ /*
124
+ Header
125
+ */
126
+
127
+ header {
128
+ max-height: 2em;
129
+ font-size: 1.1rem;
130
+
131
+ position: relative !important;
132
+ display: flex;
133
+ flex-direction: row;
134
+ justify-content: space-between;
135
+ align-items: center;
136
+ padding: 1.0rem 1.5rem;
137
+
138
+ background-color: #1d1d1d;
139
+ }
140
+
141
+ header nav {
142
+ float: right;
143
+ }
144
+
145
+ header nav ul {
146
+ padding-inline-start: 0;
147
+ display: flex;
148
+ flex-direction: row;
149
+ }
150
+
151
+ header nav ul li {
152
+ display: inline-block;
153
+ width: 4em;
154
+ text-align: center;
155
+ padding-right: 0.4em;
156
+ padding-left: 0.4em;
157
+ }
158
+
159
+ header nav ul li a {
160
+ width: 100%;
161
+ display: block;
162
+ color: #fefefe;
163
+ }
164
+
165
+ header nav ul li a:hover {
166
+ color: #cacaca;
167
+ }
168
+
169
+ .header__logo {
170
+ float: left;
171
+ vertical-align: middle;
172
+ height: fit-content;
173
+ width: fit-content;
174
+ }
175
+
176
+
177
+ .header__logo__img {
178
+ -webkit-filter: brightness(100%);
179
+ filter: brightness(100%);
180
+ }
181
+
182
+ .header__logo__img:hover {
183
+ -webkit-filter: brightness(70%);
184
+ filter: brightness(70%);
185
+ -webkit-transition: all 1s ease;
186
+ -moz-transition: all 1s ease;
187
+ -o-transition: all 1s ease;
188
+ -ms-transition: all 1s ease;
189
+ transition: all 1s ease;
190
+ }
191
+
192
+ /*
193
+ Content
194
+ */
195
+
196
+ .container {
197
+ position: relative;
198
+ max-width: 900px;
199
+ margin: auto;
200
+ padding: 0 1.5rem;
201
+ }
202
+
203
+ .content {
204
+ margin: 0 auto;
205
+ padding: 1.5rem;
206
+ }
207
+
208
+ .content__info {
209
+ opacity: 0.7; /* Adjust as needed, 1 is fully opaque, 0 is fully transparent */
210
+ font-size: 0.8em; /* Adjust as needed, 1em is the current font size */
211
+ }
212
+
213
+ .subtitle {
214
+ font-size: 1.2rem;
215
+ margin-bottom: 0.5rem;
216
+ }
217
+
218
+ .center {
219
+ text-align: center;
220
+ }
221
+
222
+ /*
223
+ Post preview
224
+ */
225
+ .post-preview {
226
+ width: 90%;
227
+ margin: auto;
228
+ }
229
+
230
+ .post-preview__box {
231
+ display: flex;
232
+ flex-direction: row;
233
+ justify-content: space-between;
234
+ align-items: center;
235
+ padding: 0 1rem 0 0;
236
+ margin: 0.5rem;
237
+ border: 2px solid #00000050;
238
+ border-radius: 0.5rem;
239
+ transition: all 0.2s ease-in-out;
240
+ max-height: 10rem;
241
+ max-width: 100%;
242
+ overflow: hidden;
243
+ }
244
+
245
+ .post-preview__box:hover {
246
+ border: 2px solid #00000055;
247
+ background-color: #00000011;
248
+ }
249
+
250
+ @media (prefers-color-scheme: dark) {
251
+ .post-preview__box {
252
+ border: 2px solid #ffffff50;
253
+ }
254
+
255
+ .post-preview__box:hover {
256
+ border: 2px solid #ffffff55;
257
+ background-color: #ffffff11;
258
+ }
259
+ }
260
+
261
+ .post-preview__box__image {
262
+ width: 90%;
263
+ height: 10rem;
264
+ overflow: hidden;
265
+ }
266
+
267
+ .post-preview__box__image img {
268
+ width: 100%;
269
+ height: 100%;
270
+ object-fit: cover;
271
+ }
272
+
273
+ @media (max-width: 870px) {
274
+ .post-preview__box__image {
275
+ display: none;
276
+ }
277
+
278
+ .post-preview__box__content__title {
279
+ margin-bottom: 0.2em;
280
+ margin-top: 0.2em;
281
+ font-size: 1.5rem;
282
+ }
283
+ }
284
+
285
+
286
+ @media (max-width: 350px) {
287
+ .post-preview__box__image {
288
+ display: none;
289
+ }
290
+
291
+ .post-preview__box__content__title {
292
+ margin-bottom: 0.2em;
293
+ margin-top: 0.2em;
294
+ font-size: 1.2rem;
295
+ }
296
+ }
297
+
298
+ .post-preview__box__content {
299
+ width: 100%;
300
+ padding-left: 0.5rem;
301
+ padding-top: 0.5rem;
302
+ padding-bottom: 0.5rem;
303
+ }
304
+
305
+ .post-preview__box__content__title {
306
+ margin-bottom: 0.2em;
307
+ margin-top: 0.2em;
308
+ }
309
+
310
+ .post-preview__box__content__date {
311
+ font-size: 0.8rem;
312
+ opacity: 0.7;
313
+ }
314
+
315
+ .post-preview__box__content__author {
316
+ font-size: 0.8rem;
317
+ opacity: 0.7;
318
+ }
319
+
320
+ .post-preview__box__content__description {
321
+ font-size: 0.9rem;
322
+ opacity: 0.8;
323
+ }
324
+
325
+
326
+ /*
327
+ Footer
328
+ */
329
+
330
+ footer {
331
+ display: block;
332
+ margin: 2.5em auto 0;
333
+ font-size: 1.1rem;
334
+ }
335
+
336
+ footer hr {
337
+ width: auto;
338
+ margin-left: auto;
339
+ margin-right: auto;
340
+ border: 0;
341
+ border-top: 0.1em solid;
342
+ }
343
+
344
+ footer nav {
345
+ text-align: center;
346
+ }
347
+
348
+ footer nav ul {
349
+ display: flex;
350
+ flex-direction: row;
351
+ flex-wrap: wrap;
352
+ justify-content: center;
353
+ margin: auto;
354
+ padding-inline-start: 0;
355
+ list-style: none;
356
+ width: 100%;
357
+ }
358
+
359
+ footer nav ul li {
360
+ display: inline-block;
361
+ width: 5em;
362
+ text-align: center;
363
+ align-items: center;
364
+ padding-right: 0.5em;
365
+ padding-left: 0.5em;
366
+ }
367
+
368
+ @media (max-width: 280px) { /* Adjust this value based on when you want the items to wrap */
369
+ footer nav ul li {
370
+ width: 50%; /* Make each li take up half the width of the ul on small screens */
371
+ }
372
+ }
373
+
374
+ footer nav ul li a {
375
+ width: 100%;
376
+ display: block;
377
+ }
378
+
379
+ footer div {
380
+ padding-bottom: 0.25em;
381
+ padding-top: 0.25em;
382
+ }