jekyll-theme-minimalistic 0.2.0

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