hima 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,87 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #fbf1c7;
5
+ background-color: #282828;
6
+ }
7
+ .highlight .err {
8
+ color: #fb4934;
9
+ background-color: #282828;
10
+ font-weight: bold;
11
+ }
12
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
13
+ color: #928374;
14
+ font-style: italic;
15
+ }
16
+ .highlight .cp {
17
+ color: #8ec07c;
18
+ }
19
+ .highlight .nt {
20
+ color: #fb4934;
21
+ }
22
+ .highlight .o, .highlight .ow {
23
+ color: #fbf1c7;
24
+ }
25
+ .highlight .p, .highlight .pi {
26
+ color: #fbf1c7;
27
+ }
28
+ .highlight .gi {
29
+ color: #b8bb26;
30
+ background-color: #282828;
31
+ }
32
+ .highlight .gd {
33
+ color: #fb4934;
34
+ background-color: #282828;
35
+ }
36
+ .highlight .gh {
37
+ color: #b8bb26;
38
+ font-weight: bold;
39
+ }
40
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
41
+ color: #fb4934;
42
+ }
43
+ .highlight .kc {
44
+ color: #d3869b;
45
+ }
46
+ .highlight .kt {
47
+ color: #fabd2f;
48
+ }
49
+ .highlight .kd {
50
+ color: #fe8019;
51
+ }
52
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
53
+ color: #b8bb26;
54
+ font-style: italic;
55
+ }
56
+ .highlight .si {
57
+ color: #b8bb26;
58
+ font-style: italic;
59
+ }
60
+ .highlight .sr {
61
+ color: #b8bb26;
62
+ font-style: italic;
63
+ }
64
+ .highlight .sa {
65
+ color: #fb4934;
66
+ }
67
+ .highlight .se {
68
+ color: #fe8019;
69
+ }
70
+ .highlight .nn {
71
+ color: #8ec07c;
72
+ }
73
+ .highlight .nc {
74
+ color: #8ec07c;
75
+ }
76
+ .highlight .no {
77
+ color: #d3869b;
78
+ }
79
+ .highlight .na {
80
+ color: #b8bb26;
81
+ }
82
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
83
+ color: #d3869b;
84
+ }
85
+ .highlight .ss {
86
+ color: #83a598;
87
+ }
@@ -0,0 +1,87 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #282828;
5
+ background-color: #fbf1c7;
6
+ }
7
+ .highlight .err {
8
+ color: #9d0006;
9
+ background-color: #fbf1c7;
10
+ font-weight: bold;
11
+ }
12
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
13
+ color: #928374;
14
+ font-style: italic;
15
+ }
16
+ .highlight .cp {
17
+ color: #427b58;
18
+ }
19
+ .highlight .nt {
20
+ color: #9d0006;
21
+ }
22
+ .highlight .o, .highlight .ow {
23
+ color: #282828;
24
+ }
25
+ .highlight .p, .highlight .pi {
26
+ color: #282828;
27
+ }
28
+ .highlight .gi {
29
+ color: #79740e;
30
+ background-color: #fbf1c7;
31
+ }
32
+ .highlight .gd {
33
+ color: #9d0006;
34
+ background-color: #fbf1c7;
35
+ }
36
+ .highlight .gh {
37
+ color: #79740e;
38
+ font-weight: bold;
39
+ }
40
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
41
+ color: #9d0006;
42
+ }
43
+ .highlight .kc {
44
+ color: #8f3f71;
45
+ }
46
+ .highlight .kt {
47
+ color: #b57614;
48
+ }
49
+ .highlight .kd {
50
+ color: #af3a03;
51
+ }
52
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
53
+ color: #79740e;
54
+ font-style: italic;
55
+ }
56
+ .highlight .si {
57
+ color: #79740e;
58
+ font-style: italic;
59
+ }
60
+ .highlight .sr {
61
+ color: #79740e;
62
+ font-style: italic;
63
+ }
64
+ .highlight .sa {
65
+ color: #9d0006;
66
+ }
67
+ .highlight .se {
68
+ color: #af3a03;
69
+ }
70
+ .highlight .nn {
71
+ color: #427b58;
72
+ }
73
+ .highlight .nc {
74
+ color: #427b58;
75
+ }
76
+ .highlight .no {
77
+ color: #8f3f71;
78
+ }
79
+ .highlight .na {
80
+ color: #79740e;
81
+ }
82
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
83
+ color: #8f3f71;
84
+ }
85
+ .highlight .ss {
86
+ color: #076678;
87
+ }
@@ -0,0 +1,9 @@
1
+ @media (prefers-color-scheme: light) {
2
+ @import './_gruvbox-light-theme';
3
+ }
4
+
5
+ @media (prefers-color-scheme: dark) {
6
+ @import './_gruvbox-dark-theme';
7
+ }
8
+
9
+ @import './base';
@@ -0,0 +1,2 @@
1
+ @import './_gruvbox-dark-theme';
2
+ @import './base';
@@ -0,0 +1,2 @@
1
+ @import './_gruvbox-light-theme';
2
+ @import './base';
@@ -0,0 +1,20 @@
1
+ @font-face {
2
+ font-family: 'Oswald';
3
+ src:
4
+ local('Oswald'),
5
+ url('../fonts/Oswald.ttf') format('truetype');
6
+ }
7
+
8
+ @font-face {
9
+ font-family: 'OpenSans';
10
+ src:
11
+ local('Open Sans'),
12
+ url('../fonts/OpenSans.ttf') format('truetype');
13
+ }
14
+
15
+ @font-face {
16
+ font-family: 'FiraCode';
17
+ src:
18
+ local('Fira Code'),
19
+ url('../fonts/FiraCode.ttf') format('truetype');
20
+ }
@@ -0,0 +1,387 @@
1
+ @charset "utf-8";
2
+ @import './fonts';
3
+
4
+ $content-padding: 2rem;
5
+ $content-padding-mobile: 1rem;
6
+ $content-width: 60rem;
7
+
8
+ $header-margin-top: 4rem;
9
+ $header-height: 8rem;
10
+ $header-pinned-height: 4rem;
11
+
12
+ $on-mobile: 425px;
13
+ $on-tablet: 800px;
14
+
15
+ html {
16
+ overflow-y: scroll;
17
+ }
18
+
19
+ body {
20
+ background: $background;
21
+ color: $foreground;
22
+ font: 400 100%/1.75 OpenSans, system-ui, Roboto, Helvetica, Arial, sans-serif;
23
+ margin: 0;
24
+ }
25
+
26
+ * + * {
27
+ margin-top: 1rem;
28
+ }
29
+
30
+ h1, h2, h3, h4, h5, h6 {
31
+ font-family: Oswald;
32
+ margin-top: 2rem;
33
+ font-weight: normal;
34
+ }
35
+
36
+ h1, h2 {
37
+ font-variation-settings: "wght" 600;
38
+ text-transform: uppercase;
39
+ }
40
+
41
+ h3, h4 {
42
+ font-variation-settings: "wght" 400;
43
+ }
44
+
45
+ h3 {
46
+ font-size: 1.33rem;
47
+ }
48
+
49
+ a {
50
+ color: $link-colour;
51
+ text-decoration: none;
52
+ border-bottom: .15rem solid $link-colour;
53
+
54
+ &:hover {
55
+ font-weight: bold;
56
+ }
57
+
58
+ .header & {
59
+ border-bottom: none;
60
+ color: $foreground;
61
+ }
62
+
63
+ .social-list__link & {
64
+ border-bottom: none;
65
+ fill: $social-icon-fill;
66
+ }
67
+ }
68
+
69
+ [class*="__container"] {
70
+ padding-left: $content-padding;
71
+ padding-right: $content-padding;
72
+ max-width: calc(#{$content-width} - (2 * #{$content-padding}));
73
+ width: 100%;
74
+
75
+ @media (max-width: $on-mobile) {
76
+ padding-left: $content-padding-mobile;
77
+ padding-right: $content-padding-mobile;
78
+ max-width: calc(#{$content-width} - (2 * #{$content-padding-mobile}));
79
+ }
80
+ }
81
+
82
+ .header {
83
+ display: flex;
84
+ justify-content: center;
85
+ align-items: end;
86
+ margin-bottom: 2rem;
87
+ position: sticky;
88
+ top: -($header-height + $header-margin-top - $header-pinned-height);
89
+ height: $header-height + $header-margin-top;
90
+ transition: 0.2s ease;
91
+ -webkit-font-smoothing: antialiased;
92
+
93
+ &__title {
94
+ display: flex;
95
+ justify-content: center;
96
+ align-items: center;
97
+ font-size: 2.5rem;
98
+ font-family: Oswald;
99
+ font-variation-settings: "wght" 800;
100
+ text-transform: uppercase;
101
+ text-align: center;
102
+ line-height: 1.2;
103
+
104
+ a {
105
+ text-decoration: none;
106
+ color: $foreground;
107
+
108
+ &:hover {
109
+ font-weight: unset;
110
+ }
111
+ }
112
+
113
+ h1 {
114
+ all: unset;
115
+ }
116
+ }
117
+
118
+ &__nav-toggle {
119
+ display: none;
120
+ }
121
+
122
+ label[for="nav-toggle"] {
123
+ display: none;
124
+ margin-top: 0;
125
+ height: 24px;
126
+ fill: $nav-menu-icon-fill;
127
+ }
128
+
129
+ &__links {
130
+ list-style-type: none;
131
+ margin: 0;
132
+ padding: 0;
133
+ display: flex;
134
+ justify-content: center;
135
+ flex-wrap: wrap;
136
+ }
137
+
138
+ &__link {
139
+ margin: 0 2rem;
140
+ }
141
+
142
+ &--pinned {
143
+ background: $header-pinned-background;
144
+ box-shadow: 0 -1rem 2rem 0 $header-pinned-boxshadow;
145
+ }
146
+
147
+ &--pinned & {
148
+ &__container {
149
+ display: flex;
150
+ flex-direction: row;
151
+ justify-content: space-between;
152
+ height: $header-pinned-height;
153
+ position: relative;
154
+ }
155
+
156
+ &__title {
157
+ font-size: 1.67rem;
158
+ @media (max-width: $on-mobile) {
159
+ font-size: 1.33rem;
160
+ }
161
+ }
162
+
163
+ &__nav {
164
+ margin-top: 0;
165
+ display: flex;
166
+ align-items: center;
167
+
168
+ @media (max-width: $on-tablet) {
169
+ background: $header-pinned-background;
170
+ flex-direction: column;
171
+ align-items:end;
172
+ position: absolute;
173
+ border: .2rem solid $nav-pinned-border;
174
+ border-radius: .25rem;
175
+ right: $content-padding;
176
+ top: .67rem;
177
+ padding: .5rem;
178
+ }
179
+
180
+ @media (max-width: $on-mobile) {
181
+ right: $content-padding-mobile;
182
+ }
183
+ }
184
+
185
+ &__link {
186
+ margin: 0;
187
+ margin-left: 3rem;
188
+
189
+ @media (max-width: $on-tablet) {
190
+ text-align: right;
191
+ margin-top: .67rem;
192
+ margin-left: 1rem;
193
+ }
194
+ }
195
+
196
+ &__nav label[for="nav-toggle"] {
197
+ @media (max-width: $on-tablet) {
198
+ display: block;
199
+ }
200
+ }
201
+
202
+ &__nav-toggle ~ .header__links {
203
+ @media (max-width: $on-tablet) {
204
+ display: none;
205
+ }
206
+ }
207
+
208
+ &__nav-toggle:checked ~ .header__links {
209
+ @media (max-width: $on-tablet) {
210
+ display: block;
211
+ }
212
+ }
213
+ }
214
+ }
215
+
216
+ .content {
217
+ display: flex;
218
+ justify-content: center;
219
+ margin-top: 2rem;
220
+ margin-bottom: 2rem;
221
+
222
+ &__container {
223
+ overflow: auto;
224
+ }
225
+ }
226
+
227
+ .social-list {
228
+ display: flex;
229
+ flex-direction: row;
230
+ justify-content: center;
231
+ margin: 0;
232
+ padding: 0;
233
+ list-style-type: none;
234
+
235
+ &__link {
236
+ margin-top: 0;
237
+
238
+ & + .social-list__link {
239
+ margin-left: 4rem;
240
+ }
241
+
242
+ svg {
243
+ width: 2rem;
244
+ height: 2rem;
245
+ }
246
+ }
247
+ }
248
+
249
+ .footer {
250
+ display: flex;
251
+ justify-content: center;
252
+ margin-top: 4rem;
253
+ margin-bottom: 8rem;
254
+
255
+ &__author {
256
+ display: flex;
257
+ align-items: center;
258
+ flex-direction: column;
259
+ }
260
+
261
+ &__email {
262
+ margin-top: 0;
263
+ }
264
+ }
265
+
266
+ .post-list-title {
267
+ margin-top: 4rem;
268
+ }
269
+
270
+ .post-list {
271
+ list-style-type: none;
272
+ padding-left: 0;
273
+
274
+ &__post {
275
+ & + .post-list__post {
276
+ margin-top: 2rem;
277
+ }
278
+ }
279
+
280
+ &__title {
281
+ margin: 0;
282
+ }
283
+
284
+ &__date {
285
+ color: $post-meta-colour;
286
+ }
287
+
288
+ &__excerpt {
289
+ p {
290
+ margin: 0;
291
+ }
292
+ }
293
+ }
294
+
295
+ .post {
296
+ &__header {
297
+ margin-bottom: 2rem;
298
+ }
299
+
300
+ &__title {
301
+ margin-bottom: .5rem;;
302
+ line-height: 1.2;
303
+ }
304
+
305
+ &__date,
306
+ &__author {
307
+ color: $post-meta-colour;
308
+ }
309
+ }
310
+
311
+ blockquote {
312
+ background: $quote-background;
313
+ margin: 0;
314
+ padding: 1rem 2rem 1rem;
315
+ border-left: .3rem solid $quote-border;
316
+ border-radius: .25rem;
317
+ font-style: italic;
318
+
319
+ p {
320
+ margin: 0;
321
+ }
322
+
323
+ em {
324
+ font-variation-settings: "wght" 600;
325
+ }
326
+ }
327
+
328
+
329
+ pre {
330
+ padding: 1rem;
331
+
332
+ &.highlight {
333
+ border: none;
334
+ }
335
+ }
336
+
337
+ .highlight {
338
+ margin: 0;
339
+ border: .1rem solid $codeblock-border;
340
+ border-left: .3rem solid $codeblock-border-accent;
341
+ border-radius: .25rem;
342
+ overflow-x: auto;
343
+
344
+ code {
345
+ padding: 0;
346
+ border: none;
347
+ }
348
+ }
349
+
350
+ :not(pre) > code {
351
+ background: $inline-code-background;
352
+ padding: .2rem .25rem;
353
+ border-radius: .25rem;
354
+ border: .15rem solid $code-border;
355
+ font-family: FiraCode;
356
+ overflow-x: auto;
357
+ }
358
+
359
+ table {
360
+ width: 100%;
361
+ border-collapse: collapse;
362
+ background: $table-background;
363
+
364
+ @media (max-width: $on-tablet) {
365
+ display: block;
366
+ overflow-x: auto;
367
+ }
368
+
369
+ thead tr {
370
+ text-align: left;
371
+ background: $table-header-background;
372
+ border-bottom: .2rem solid $table-header-bottom-border;
373
+ }
374
+
375
+ th, td {
376
+ padding: .5rem .67rem;
377
+ }
378
+
379
+ tr + tr {
380
+ border-top: 2px solid $table-row-border;
381
+ }
382
+
383
+ th + th,
384
+ td + td {
385
+ border-left: 2px solid $table-row-border;
386
+ }
387
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+
4
+ @import "hima/colourschemes/{{ site.hima.colourscheme | default: 'light' }}";
5
+ @import 'hima/main';
Binary file
Binary file
Binary file
@@ -0,0 +1,16 @@
1
+ ---
2
+ permalink: /assets/hima-social-icons.svg
3
+ ---
4
+
5
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
6
+
7
+ <symbol id="rss" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" viewBox="0 0 24 24">
8
+ {%- include social-icons/rss.svg -%}
9
+ </symbol>
10
+
11
+ {%- for entry in site.hima.social %}{% assign key = entry.platform -%}
12
+ <symbol id="{{ key }}" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" viewBox="0 0 24 24">
13
+ {%- include social-icons/{{ key }}.svg -%}
14
+ </symbol>
15
+ {%- endfor -%}
16
+ </svg>