jekyll-theme-penumbra 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +26 -0
  4. data/_config.yml +20 -0
  5. data/_includes/color-scheme.html +8 -0
  6. data/_includes/footer.html +1 -0
  7. data/_includes/head-custom-google-analytics.html +10 -0
  8. data/_includes/head-custom.html +12 -0
  9. data/_includes/header.html +17 -0
  10. data/_includes/ie-support.html +3 -0
  11. data/_includes/links-mobile.html +6 -0
  12. data/_includes/sidebar.html +8 -0
  13. data/_layouts/default.html +35 -0
  14. data/_layouts/post.html +14 -0
  15. data/_sass/colors.scss +126 -0
  16. data/_sass/fonts.scss +55 -0
  17. data/_sass/jekyll-theme-penumbra.scss +360 -0
  18. data/_sass/penumbra.scss +4 -0
  19. data/_sass/rouge-github.scss +219 -0
  20. data/assets/css/colors-auto-default-dark.scss +17 -0
  21. data/assets/css/colors-auto.scss +15 -0
  22. data/assets/css/colors-dark.scss +15 -0
  23. data/assets/css/colors-light.scss +9 -0
  24. data/assets/css/style.scss +75 -0
  25. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.eot +0 -0
  26. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.svg +336 -0
  27. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.ttf +0 -0
  28. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.woff +0 -0
  29. data/assets/fonts/Noto-Sans-700/Noto-Sans-700.woff2 +0 -0
  30. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot +0 -0
  31. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg +334 -0
  32. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf +0 -0
  33. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff +0 -0
  34. data/assets/fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2 +0 -0
  35. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.eot +0 -0
  36. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.svg +337 -0
  37. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.ttf +0 -0
  38. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.woff +0 -0
  39. data/assets/fonts/Noto-Sans-italic/Noto-Sans-italic.woff2 +0 -0
  40. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.eot +0 -0
  41. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.svg +335 -0
  42. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.ttf +0 -0
  43. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.woff +0 -0
  44. data/assets/fonts/Noto-Sans-regular/Noto-Sans-regular.woff2 +0 -0
  45. data/assets/img/logo.png +0 -0
  46. data/assets/js/footer.fix.js +16 -0
  47. data/assets/js/scale.fix.js +27 -0
  48. metadata +159 -0
@@ -0,0 +1,360 @@
1
+ @import "fonts";
2
+ @import "rouge-github";
3
+ @import "colors";
4
+
5
+ body {
6
+ padding: 0;
7
+ margin: 0;
8
+ background-color: var(--clr-bg);
9
+ color: var(--clr-text);
10
+ font: 15px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
11
+ font-weight:400;
12
+ }
13
+
14
+ h1, h2, h3, h4, h5, h6 {
15
+ color: var(--clr-h1-and-bold);
16
+ margin:0 0 20px;
17
+ }
18
+
19
+ p, ul, ol, table, pre, dl {
20
+ margin:0 0 20px;
21
+ }
22
+
23
+ h1, h2, h3 {
24
+ line-height:1.1;
25
+ }
26
+
27
+ h1 {
28
+ font-size:32px;
29
+ }
30
+
31
+ h2 {
32
+ color: var(--clr-h2);
33
+ }
34
+
35
+ h3, h4, h5, h6 {
36
+ color: var(--clr-h-3-6);
37
+ }
38
+
39
+ a {
40
+ color:var(--clr-a-text);
41
+ text-decoration:none;
42
+ }
43
+
44
+ a:hover, a:focus {
45
+ color: var(--clr-a-text-hvr);
46
+ }
47
+
48
+ a small {
49
+ font-size:11px;
50
+ color:var(--clr-small-in-a);
51
+ margin-top:-0.3em;
52
+ display:block;
53
+ }
54
+
55
+ a:hover small {
56
+ color:var(--clr-small-in-a);
57
+ }
58
+
59
+ // added
60
+ p.link {
61
+ margin:0 0 4px;
62
+ }
63
+
64
+ // added
65
+ ul.link {
66
+ list-style-type: none; /* Remove bullets */
67
+ margin: 0; /* To remove default bottom margin */
68
+ padding: 0.4px; /* To remove default left padding */
69
+ }
70
+
71
+ ul.link li + li {
72
+ margin-top: 6px;
73
+ }
74
+
75
+ ul.link:last-child {
76
+ margin-bottom: 6px;
77
+ }
78
+
79
+ .wrapper {
80
+ box-sizing: border-box;
81
+ width: 920px;
82
+ margin: 0 auto;
83
+ padding: 0 30px;
84
+ display: block;
85
+ background-color: var(--clr-content-bg);
86
+ height: 100vh;
87
+ -ms-overflow-style: none; /* IE and Edge */
88
+ scrollbar-width: none; /* Firefox */
89
+ overflow-x: hidden;
90
+ overflow-y: scroll;
91
+ }
92
+
93
+ .wrapper::-webkit-scrollbar {
94
+ /* Chrome, Safari, Edge */
95
+ display: none;
96
+ }
97
+
98
+ blockquote {
99
+ border-left:1px solid var(--clr-splitter-blockquote-and-section);
100
+ margin:0;
101
+ padding:0 0 0 20px;
102
+ font-style:italic;
103
+ }
104
+
105
+ code, pre {
106
+ font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
107
+ color: var(--clr-code-text);
108
+ }
109
+
110
+ pre {
111
+ padding:8px 15px;
112
+ background: var(--clr-code-bg);
113
+ border-radius:5px;
114
+ border:1px solid var(--clr-code-border);
115
+ overflow-x: auto;
116
+ }
117
+
118
+ table {
119
+ width:100%;
120
+ border-collapse:collapse;
121
+ }
122
+
123
+ th, td {
124
+ text-align:left;
125
+ padding:5px 10px;
126
+ border-bottom:1px solid var(--clr-splitter-blockquote-and-section);
127
+ }
128
+
129
+ dt {
130
+ color:var(--clr-table-header-and-dt);
131
+ font-weight:700;
132
+ }
133
+
134
+ th {
135
+ color:var(--clr-table-header-and-dt);
136
+ }
137
+
138
+ img {
139
+ max-width:100%;
140
+ }
141
+
142
+ kbd {
143
+ background-color: var(--clr-kbd-bg) ;
144
+ border: 1px solid var(--clr-kbd-border);
145
+ border-bottom-color: var(--clr-kbd-border-bottom-and-shadow);
146
+ border-radius: 3px;
147
+ box-shadow: inset 0 -1px 0 var(--clr-kbd-border-bottom-and-shadow);
148
+ color: var(--clr-kbd-text);
149
+ display: inline-block;
150
+ font-size: 11px;
151
+ line-height: 10px;
152
+ padding: 3px 5px;
153
+ vertical-align: middle;
154
+ }
155
+
156
+ .sidebar {
157
+ width: 200px;
158
+ float: left;
159
+ position: fixed;
160
+ margin: auto 0;
161
+ -webkit-font-smoothing:subpixel-antialiased;
162
+ top: 0;
163
+ padding: 50px 0;
164
+ display: flex;
165
+ flex-direction: column;
166
+ justify-content: space-between;
167
+ height: calc(100vh - 100px);
168
+ overflow-x: hidden;
169
+ overflow-y: scroll;
170
+ -ms-overflow-style: none; /* IE and Edge */
171
+ scrollbar-width: none; /* Firefox */
172
+ }
173
+
174
+ .sidebar::-webkit-scrollbar {
175
+ /* Chrome, Safari, Edge */
176
+ display: none;
177
+ }
178
+
179
+ strong {
180
+ color:var(--clr-h1-and-bold);
181
+ font-weight:700;
182
+ }
183
+
184
+ section {
185
+ width: 610px;
186
+ float:right;
187
+ padding: 50px 0;
188
+ }
189
+
190
+ section>:last-child {
191
+ margin-bottom: 0;
192
+ }
193
+
194
+
195
+ small {
196
+ font-size:11px;
197
+ }
198
+
199
+ hr {
200
+ border:0;
201
+ background:var(--clr-splitter-blockquote-and-section);
202
+ height:1px;
203
+ width:30%;
204
+ margin:10px auto 30px;
205
+ }
206
+
207
+ footer, .sidebar-footer {
208
+ width:200px;
209
+ float:left;
210
+ bottom:30px;
211
+ -webkit-font-smoothing:subpixel-antialiased;
212
+ }
213
+
214
+ footer {
215
+ display: none;
216
+ }
217
+
218
+ .sidebar-footer {
219
+ flex-basis: content;
220
+ margin-top: 20px;
221
+ }
222
+
223
+ @media print, screen and (max-width: 960px) {
224
+
225
+ .wrapper {
226
+ padding: 20px;
227
+ overflow: initial;
228
+ }
229
+
230
+ .sidebar {
231
+ padding: initial;
232
+ display: initial;
233
+ height: initial;
234
+ overflow: initial;
235
+ }
236
+
237
+ footer {
238
+ display: initial;
239
+ }
240
+
241
+ .sidebar-footer {
242
+ display: none;
243
+ }
244
+
245
+ div.wrapper {
246
+ width: auto;
247
+ margin: 0;
248
+ }
249
+
250
+ .sidebar, section, footer {
251
+ float: none;
252
+ position: static;
253
+ width: auto;
254
+ }
255
+
256
+ header {
257
+ padding-right:320px;
258
+ }
259
+
260
+ section {
261
+ border: 1px solid var(--clr-splitter-blockquote-and-section);
262
+ border-width: 1px 0;
263
+ padding: 20px 0px;
264
+ margin: 0 0 20px;
265
+ }
266
+
267
+ header a small {
268
+ display: inline;
269
+ }
270
+
271
+ header ul {
272
+ position: absolute;
273
+ right: 50px;
274
+ top: 52px;
275
+ }
276
+
277
+ .link-wrapper {
278
+ display: none !important;
279
+ }
280
+
281
+ .img-circle {
282
+ display: none !important;
283
+ object-fit: cover;
284
+ }
285
+ }
286
+
287
+ @media print, screen and (max-width: 720px) {
288
+ body {
289
+ word-wrap:break-word;
290
+ }
291
+
292
+ header {
293
+ padding:0;
294
+ }
295
+
296
+ header ul, header p.view {
297
+ position:static;
298
+ }
299
+
300
+ pre, code {
301
+ word-wrap:normal;
302
+ }
303
+ }
304
+
305
+ .link-wrapper-mobile {
306
+ margin-bottom: 20px;
307
+ }
308
+
309
+ @media print, screen and (min-width: 961px) {
310
+ .link-wrapper-mobile {
311
+ display: none !important;
312
+ }
313
+ }
314
+
315
+ @media print, screen and (max-width: 480px) {
316
+ body {
317
+ padding:15px;
318
+ }
319
+
320
+ // header ul {
321
+ // width:99%;
322
+ // }
323
+
324
+ // header li, header ul li + li + li {
325
+ // width:33%;
326
+ // }
327
+ }
328
+
329
+ @media print {
330
+ body {
331
+ padding:0.4in;
332
+ font-size:12pt;
333
+ color:#444;
334
+ }
335
+ }
336
+
337
+ .logo {
338
+ height: 200px;
339
+ width: 200px;
340
+ border-radius: 50% !important;
341
+ object-fit: cover;
342
+ }
343
+
344
+ ul.link a {
345
+ color:var(--clr-h1-and-bold);
346
+ text-decoration:none;
347
+ }
348
+
349
+ ul.link a:hover, a:focus {
350
+ color: var(--clr-a-text-hvr);
351
+ }
352
+
353
+ #link-wrapper-mobile a {
354
+ color:var(--clr-h1-and-bold);
355
+ text-decoration:none;
356
+ }
357
+
358
+ #link-wrapper-mobile a:hover, a:focus {
359
+ color: var(--clr-a-text-hvr);
360
+ }
@@ -0,0 +1,4 @@
1
+ // Placeholder file. If your site uses
2
+ // @import "{{ site.theme }}";
3
+ // Then using this theme with jekyll-remote-theme will work fine.
4
+ @import "jekyll-theme-penumbra";
@@ -0,0 +1,219 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight .cm {
4
+ color: #999988;
5
+ font-style: italic;
6
+ }
7
+ .highlight .cp {
8
+ color: #999999;
9
+ font-weight: bold;
10
+ }
11
+ .highlight .c1 {
12
+ color: #999988;
13
+ font-style: italic;
14
+ }
15
+ .highlight .cs {
16
+ color: #999999;
17
+ font-weight: bold;
18
+ font-style: italic;
19
+ }
20
+ .highlight .c, .highlight .cd {
21
+ color: #999988;
22
+ font-style: italic;
23
+ }
24
+ .highlight .err {
25
+ color: #a61717;
26
+ background-color: #e3d2d2;
27
+ }
28
+ .highlight .gd {
29
+ // color: #000000;
30
+ color: var(--clr-code-bold-text);
31
+ background-color: #ffdddd;
32
+ }
33
+ .highlight .ge {
34
+ // color: #000000;
35
+ color: var(--clr-code-bold-text);
36
+ font-style: italic;
37
+ }
38
+ .highlight .gr {
39
+ color: #aa0000;
40
+ }
41
+ .highlight .gh {
42
+ color: #999999;
43
+ }
44
+ .highlight .gi {
45
+ // color: #000000;
46
+ color: var(--clr-code-bold-text);
47
+ background-color: #ddffdd;
48
+ }
49
+ .highlight .go {
50
+ color: #888888;
51
+ }
52
+ .highlight .gp {
53
+ color: #555555;
54
+ }
55
+ .highlight .gs {
56
+ font-weight: bold;
57
+ }
58
+ .highlight .gu {
59
+ color: #aaaaaa;
60
+ }
61
+ .highlight .gt {
62
+ color: #aa0000;
63
+ }
64
+ .highlight .kc {
65
+ // color: #000000;
66
+ color: var(--clr-code-bold-text);
67
+ font-weight: bold;
68
+ }
69
+ .highlight .kd {
70
+ // color: #000000;
71
+ color: var(--clr-code-bold-text);
72
+ font-weight: bold;
73
+ }
74
+ .highlight .kn {
75
+ // color: #000000;
76
+ color: var(--clr-code-bold-text);
77
+ font-weight: bold;
78
+ }
79
+ .highlight .kp {
80
+ // color: #000000;
81
+ color: var(--clr-code-bold-text);
82
+ font-weight: bold;
83
+ }
84
+ .highlight .kr {
85
+ // color: #000000;
86
+ color: var(--clr-code-bold-text);
87
+ font-weight: bold;
88
+ }
89
+ .highlight .kt {
90
+ color: #445588;
91
+ font-weight: bold;
92
+ }
93
+ .highlight .k, .highlight .kv {
94
+ // color: #000000;
95
+ color: var(--clr-code-bold-text);
96
+ font-weight: bold;
97
+ }
98
+ .highlight .mf {
99
+ color: #009999;
100
+ }
101
+ .highlight .mh {
102
+ color: #009999;
103
+ }
104
+ .highlight .il {
105
+ color: #009999;
106
+ }
107
+ .highlight .mi {
108
+ color: #009999;
109
+ }
110
+ .highlight .mo {
111
+ color: #009999;
112
+ }
113
+ .highlight .m, .highlight .mb, .highlight .mx {
114
+ color: #009999;
115
+ }
116
+ .highlight .sb {
117
+ color: #d14;
118
+ }
119
+ .highlight .sc {
120
+ color: #d14;
121
+ }
122
+ .highlight .sd {
123
+ color: #d14;
124
+ }
125
+ .highlight .s2 {
126
+ color: #d14;
127
+ }
128
+ .highlight .se {
129
+ color: #d14;
130
+ }
131
+ .highlight .sh {
132
+ color: #d14;
133
+ }
134
+ .highlight .si {
135
+ color: #d14;
136
+ }
137
+ .highlight .sx {
138
+ color: #d14;
139
+ }
140
+ .highlight .sr {
141
+ color: #009926;
142
+ }
143
+ .highlight .s1 {
144
+ color: #d14;
145
+ }
146
+ .highlight .ss {
147
+ color: #990073;
148
+ }
149
+ .highlight .s {
150
+ color: #d14;
151
+ }
152
+ .highlight .na {
153
+ color: #008080;
154
+ }
155
+ .highlight .bp {
156
+ color: #999999;
157
+ }
158
+ .highlight .nb {
159
+ color: #0086B3;
160
+ }
161
+ .highlight .nc {
162
+ color: #445588;
163
+ font-weight: bold;
164
+ }
165
+ .highlight .no {
166
+ color: #008080;
167
+ }
168
+ .highlight .nd {
169
+ color: #3c5d5d;
170
+ font-weight: bold;
171
+ }
172
+ .highlight .ni {
173
+ color: #800080;
174
+ }
175
+ .highlight .ne {
176
+ color: #990000;
177
+ font-weight: bold;
178
+ }
179
+ .highlight .nf {
180
+ color: #990000;
181
+ font-weight: bold;
182
+ }
183
+ .highlight .nl {
184
+ color: #990000;
185
+ font-weight: bold;
186
+ }
187
+ .highlight .nn {
188
+ color: #555555;
189
+ }
190
+ .highlight .nt {
191
+ color: #000080;
192
+ }
193
+ .highlight .vc {
194
+ color: #008080;
195
+ }
196
+ .highlight .vg {
197
+ color: #008080;
198
+ }
199
+ .highlight .vi {
200
+ color: #008080;
201
+ }
202
+ .highlight .nv {
203
+ color: #008080;
204
+ }
205
+ .highlight .ow {
206
+ color: #000000;
207
+ font-weight: bold;
208
+ }
209
+ .highlight .o {
210
+ // color: #000000;
211
+ color: var(--clr-code-bold-text);
212
+ font-weight: bold;
213
+ }
214
+ .highlight .w {
215
+ color: #bbbbbb;
216
+ }
217
+ // .highlight {
218
+ // background-color: #f8f8f8;
219
+ // }
@@ -0,0 +1,17 @@
1
+ ---
2
+ ---
3
+
4
+ //this mode is like colors-auto but if the device does not support @media prefers-color-scheme it will default to dark mode
5
+
6
+ @import "colors";
7
+
8
+ :root {
9
+ @include colors;
10
+ @include dark-colors;
11
+ }
12
+
13
+ @media print, (prefers-color-scheme: light) {//we would not like to apply dark mode if content is on printer as that would use a lot of ink
14
+ :root {
15
+ @include light-colors;
16
+ }
17
+ }
@@ -0,0 +1,15 @@
1
+ ---
2
+ ---
3
+
4
+ @import "colors";
5
+
6
+ :root {
7
+ @include colors;
8
+ @include light-colors;
9
+ }
10
+
11
+ @media screen and (prefers-color-scheme: dark) {//we would not like to apply dark mode if content is on printer as that would use a lot of ink
12
+ :root{
13
+ @include dark-colors;
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ ---
2
+ ---
3
+
4
+ @import "colors";
5
+
6
+ :root {
7
+ @include colors;
8
+ @include dark-colors;
9
+ }
10
+
11
+ @media print {
12
+ :root {
13
+ @include light-colors;
14
+ }
15
+ }
@@ -0,0 +1,9 @@
1
+ ---
2
+ ---
3
+
4
+ @import "colors";
5
+
6
+ :root {
7
+ @include colors;
8
+ @include light-colors;
9
+ }
@@ -0,0 +1,75 @@
1
+ ---
2
+ ---
3
+
4
+ @import "jekyll-theme-penumbra";
5
+
6
+ .sidebar {
7
+ width:200px;
8
+ }
9
+
10
+ .img-circle {
11
+ -webkit-border-radius: 50%;
12
+ -moz-border-radius: 50%;
13
+ border-radius: 50%;
14
+ object-fit: cover;
15
+ height: 200px;
16
+ width: 200px;
17
+ margin-bottom: 10px;
18
+ }
19
+
20
+ .overlay {
21
+ position: fixed;
22
+ top: 0;
23
+ bottom: 0;
24
+ left: 0;
25
+ right: 0;
26
+ background: rgba(0, 0, 0, 0.7);
27
+ transition: opacity 500ms;
28
+ visibility: hidden;
29
+ opacity: 0;
30
+ }
31
+
32
+ .overlay:target {
33
+ visibility: visible;
34
+ opacity: 1;
35
+ }
36
+
37
+ .popup {
38
+ margin: 70px auto;
39
+ padding: 20px;
40
+ background: #fff;
41
+ border-radius: 5px;
42
+ width: 30%;
43
+ position: relative;
44
+ transition: all 1s ease-in-out;
45
+ }
46
+
47
+ .popup .close {
48
+ position: absolute;
49
+ top: 10px;
50
+ right: 10px;
51
+ transition: all 200ms;
52
+ font-size: 30px;
53
+ font-weight: bold;
54
+ text-decoration: none;
55
+ color: #333;
56
+ }
57
+ .popup .close:hover {
58
+ color: #06D85F;
59
+ }
60
+
61
+ .popup .content {
62
+ padding-right: 20px;
63
+ max-height: 30%;
64
+ overflow: auto;
65
+ font: 15px/1.5 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
66
+ }
67
+
68
+ @media screen and (max-width: 700px){
69
+ .box{
70
+ width: 70%;
71
+ }
72
+ .popup{
73
+ width: 70%;
74
+ }
75
+ }