dark-blog-theme 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,256 @@
1
+ /**
2
+ * Site header
3
+ */
4
+
5
+ .site-header {
6
+ border-top: 5px solid var(--md-sys-color-outline-dark);
7
+ border-bottom: 1px solid var(--md-sys-color-outline);
8
+ min-height: $spacing-unit * 1.865;
9
+
10
+ // Positioning context for the mobile navigation icon
11
+ position: relative;
12
+ }
13
+
14
+ .site-title {
15
+ @include relative-font-size(1.625);
16
+ font-weight: 300;
17
+ line-height: $base-line-height * $base-font-size * 2.25;
18
+ letter-spacing: -1px;
19
+ margin-bottom: 0;
20
+ float: left;
21
+
22
+ &,
23
+ &:visited {
24
+ // color: $grey-color-dark;
25
+ }
26
+ }
27
+
28
+ .site-nav {
29
+ float: right;
30
+ line-height: $base-line-height * $base-font-size * 2.25;
31
+
32
+ .nav-trigger {
33
+ display: none;
34
+ }
35
+
36
+ .menu-icon {
37
+ display: none;
38
+ }
39
+
40
+ .page-link {
41
+ color: $text-color;
42
+ line-height: $base-line-height;
43
+
44
+ // Gaps between nav items, but not on the last one
45
+ &:not(:last-child) {
46
+ margin-right: 20px;
47
+ }
48
+ }
49
+
50
+ @include media-query($on-palm) {
51
+ position: absolute;
52
+ top: 9px;
53
+ right: $spacing-unit / 2;
54
+ background-color: $background-color;
55
+ border: 1px solid var(--md-sys-color-outline);
56
+ border-radius: 5px;
57
+ text-align: right;
58
+
59
+ label[for="nav-trigger"] {
60
+ display: block;
61
+ float: right;
62
+ width: 36px;
63
+ height: 36px;
64
+ z-index: 2;
65
+ cursor: pointer;
66
+ }
67
+
68
+ .menu-icon {
69
+ display: block;
70
+ float: right;
71
+ width: 36px;
72
+ height: 26px;
73
+ line-height: 0;
74
+ padding-top: 10px;
75
+ text-align: center;
76
+
77
+ > svg {
78
+ fill: $grey-color-dark;
79
+ }
80
+ }
81
+
82
+ input ~ .trigger {
83
+ clear: both;
84
+ display: none;
85
+ }
86
+
87
+ input:checked ~ .trigger {
88
+ display: block;
89
+ padding-bottom: 5px;
90
+ }
91
+
92
+ .page-link {
93
+ display: block;
94
+ padding: 5px 10px;
95
+
96
+ &:not(:last-child) {
97
+ margin-right: 0;
98
+ }
99
+ margin-left: 20px;
100
+ }
101
+ }
102
+ }
103
+
104
+
105
+
106
+ /**
107
+ * Site footer
108
+ */
109
+ .site-footer {
110
+ border-top: 1px solid var(--md-sys-color-outline);
111
+ padding: $spacing-unit 0;
112
+ }
113
+
114
+ .footer-heading {
115
+ @include relative-font-size(1.125);
116
+ margin-bottom: $spacing-unit / 2;
117
+ }
118
+
119
+ .contact-list,
120
+ .social-media-list {
121
+ list-style: none;
122
+ margin-left: 0;
123
+ }
124
+
125
+ .footer-col-wrapper {
126
+ @include relative-font-size(0.9375);
127
+ color: $grey-color;
128
+ margin-left: -$spacing-unit / 2;
129
+ @extend %clearfix;
130
+ }
131
+
132
+ .footer-col {
133
+ float: left;
134
+ margin-bottom: $spacing-unit / 2;
135
+ padding-left: $spacing-unit / 2;
136
+ }
137
+
138
+ .footer-col-1 {
139
+ width: -webkit-calc(35% - (#{$spacing-unit} / 2));
140
+ width: calc(35% - (#{$spacing-unit} / 2));
141
+ }
142
+
143
+ .footer-col-2 {
144
+ width: -webkit-calc(20% - (#{$spacing-unit} / 2));
145
+ width: calc(20% - (#{$spacing-unit} / 2));
146
+ }
147
+
148
+ .footer-col-3 {
149
+ width: -webkit-calc(45% - (#{$spacing-unit} / 2));
150
+ width: calc(45% - (#{$spacing-unit} / 2));
151
+ }
152
+
153
+ @include media-query($on-laptop) {
154
+ .footer-col-1,
155
+ .footer-col-2 {
156
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
157
+ width: calc(50% - (#{$spacing-unit} / 2));
158
+ }
159
+
160
+ .footer-col-3 {
161
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
162
+ width: calc(100% - (#{$spacing-unit} / 2));
163
+ }
164
+ }
165
+
166
+ @include media-query($on-palm) {
167
+ .footer-col {
168
+ float: none;
169
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
170
+ width: calc(100% - (#{$spacing-unit} / 2));
171
+ }
172
+ }
173
+
174
+
175
+
176
+ /**
177
+ * Page content
178
+ */
179
+ .page-content {
180
+ padding: $spacing-unit 0;
181
+ flex: 1;
182
+ }
183
+
184
+ .page-heading {
185
+ @include relative-font-size(2);
186
+ }
187
+
188
+ .post-list-heading {
189
+ @include relative-font-size(1.75);
190
+ }
191
+
192
+ .post-list {
193
+ margin-left: 0;
194
+ list-style: none;
195
+
196
+ > li {
197
+ margin-bottom: $spacing-unit;
198
+ }
199
+ }
200
+
201
+ .post-meta {
202
+ font-size: $small-font-size;
203
+ color: $grey-color;
204
+ }
205
+
206
+ .post-link {
207
+ display: block;
208
+ @include relative-font-size(1.5);
209
+ }
210
+
211
+
212
+
213
+ /**
214
+ * Posts
215
+ */
216
+ .post-header {
217
+ margin-bottom: $spacing-unit;
218
+ }
219
+
220
+ .post-title {
221
+ @include relative-font-size(2.625);
222
+ letter-spacing: -1px;
223
+ line-height: 1;
224
+
225
+ @include media-query($on-laptop) {
226
+ @include relative-font-size(2.25);
227
+ }
228
+ }
229
+
230
+ .post-content {
231
+ margin-bottom: $spacing-unit;
232
+
233
+ h2 {
234
+ @include relative-font-size(2);
235
+
236
+ @include media-query($on-laptop) {
237
+ @include relative-font-size(1.75);
238
+ }
239
+ }
240
+
241
+ h3 {
242
+ @include relative-font-size(1.625);
243
+
244
+ @include media-query($on-laptop) {
245
+ @include relative-font-size(1.375);
246
+ }
247
+ }
248
+
249
+ h4 {
250
+ @include relative-font-size(1.25);
251
+
252
+ @include media-query($on-laptop) {
253
+ @include relative-font-size(1.125);
254
+ }
255
+ }
256
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Syntax highlighting styles
3
+ */
4
+ .highlight {
5
+ background: #fff;
6
+ @extend %vertical-rhythm;
7
+
8
+ .highlighter-rouge & {
9
+ background: #eef;
10
+ }
11
+
12
+ .c { color: #998; font-style: italic } // Comment
13
+ .err { color: #a61717; background-color: #e3d2d2 } // Error
14
+ .k { font-weight: bold } // Keyword
15
+ .o { font-weight: bold } // Operator
16
+ .cm { color: #998; font-style: italic } // Comment.Multiline
17
+ .cp { color: #999; font-weight: bold } // Comment.Preproc
18
+ .c1 { color: #998; font-style: italic } // Comment.Single
19
+ .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
20
+ .gd { color: #000; background-color: #fdd } // Generic.Deleted
21
+ .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
22
+ .ge { font-style: italic } // Generic.Emph
23
+ .gr { color: #a00 } // Generic.Error
24
+ .gh { color: #999 } // Generic.Heading
25
+ .gi { color: #000; background-color: #dfd } // Generic.Inserted
26
+ .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
27
+ .go { color: #888 } // Generic.Output
28
+ .gp { color: #555 } // Generic.Prompt
29
+ .gs { font-weight: bold } // Generic.Strong
30
+ .gu { color: #aaa } // Generic.Subheading
31
+ .gt { color: #a00 } // Generic.Traceback
32
+ .kc { font-weight: bold } // Keyword.Constant
33
+ .kd { font-weight: bold } // Keyword.Declaration
34
+ .kp { font-weight: bold } // Keyword.Pseudo
35
+ .kr { font-weight: bold } // Keyword.Reserved
36
+ .kt { color: #458; font-weight: bold } // Keyword.Type
37
+ .m { color: #099 } // Literal.Number
38
+ .s { color: #d14 } // Literal.String
39
+ .na { color: #008080 } // Name.Attribute
40
+ .nb { color: #0086B3 } // Name.Builtin
41
+ .nc { color: #458; font-weight: bold } // Name.Class
42
+ .no { color: #008080 } // Name.Constant
43
+ .ni { color: #800080 } // Name.Entity
44
+ .ne { color: #900; font-weight: bold } // Name.Exception
45
+ .nf { color: #900; font-weight: bold } // Name.Function
46
+ .nn { color: #555 } // Name.Namespace
47
+ .nt { color: #000080 } // Name.Tag
48
+ .nv { color: #008080 } // Name.Variable
49
+ .ow { font-weight: bold } // Operator.Word
50
+ .w { color: #bbb } // Text.Whitespace
51
+ .mf { color: #099 } // Literal.Number.Float
52
+ .mh { color: #099 } // Literal.Number.Hex
53
+ .mi { color: #099 } // Literal.Number.Integer
54
+ .mo { color: #099 } // Literal.Number.Oct
55
+ .sb { color: #d14 } // Literal.String.Backtick
56
+ .sc { color: #d14 } // Literal.String.Char
57
+ .sd { color: #d14 } // Literal.String.Doc
58
+ .s2 { color: #d14 } // Literal.String.Double
59
+ .se { color: #d14 } // Literal.String.Escape
60
+ .sh { color: #d14 } // Literal.String.Heredoc
61
+ .si { color: #d14 } // Literal.String.Interpol
62
+ .sx { color: #d14 } // Literal.String.Other
63
+ .sr { color: #009926 } // Literal.String.Regex
64
+ .s1 { color: #d14 } // Literal.String.Single
65
+ .ss { color: #990073 } // Literal.String.Symbol
66
+ .bp { color: #999 } // Name.Builtin.Pseudo
67
+ .vc { color: #008080 } // Name.Variable.Class
68
+ .vg { color: #008080 } // Name.Variable.Global
69
+ .vi { color: #008080 } // Name.Variable.Instance
70
+ .il { color: #099 } // Literal.Number.Integer.Long
71
+ }
data/_sass/minima.scss ADDED
@@ -0,0 +1,51 @@
1
+ @charset "utf-8";
2
+
3
+ // Define defaults for each variable.
4
+
5
+ $base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
6
+ $base-font-size: 16px !default;
7
+ $base-font-weight: 400 !default;
8
+ $small-font-size: $base-font-size * 0.875 !default;
9
+ $base-line-height: 1.5 !default;
10
+
11
+ $spacing-unit: 30px !default;
12
+
13
+ $text-color: #E6E0E9 !default;
14
+ $background-color: #141218 !default;
15
+ $brand-color: #D0BCFF !default;
16
+
17
+ $grey-color: #828282 !default;
18
+ $grey-color-light: lighten($grey-color, 40%) !default;
19
+ $grey-color-dark: darken($grey-color, 25%) !default;
20
+
21
+ $table-text-align: left !default;
22
+
23
+ // Width of the content area
24
+ $content-width: 800px !default;
25
+
26
+ $on-palm: 600px !default;
27
+ $on-laptop: 800px !default;
28
+
29
+ // Use media queries like this:
30
+ // @include media-query($on-palm) {
31
+ // .wrapper {
32
+ // padding-right: $spacing-unit / 2;
33
+ // padding-left: $spacing-unit / 2;
34
+ // }
35
+ // }
36
+ @mixin media-query($device) {
37
+ @media screen and (max-width: $device) {
38
+ @content;
39
+ }
40
+ }
41
+
42
+ @mixin relative-font-size($ratio) {
43
+ font-size: $base-font-size * $ratio;
44
+ }
45
+
46
+ // Import partials.
47
+ @import
48
+ "minima/base",
49
+ "minima/layout",
50
+ "minima/syntax-highlighting"
51
+ ;
data/assets/main.scss ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ # Only the main Sass file needs front matter (the dashes are enough)
3
+ ---
4
+
5
+ @import "minima";
@@ -0,0 +1,294 @@
1
+ .primary {
2
+ background-color: var(--md-sys-color-primary);
3
+ }
4
+ .primary-text {
5
+ color: var(--md-sys-color-primary);
6
+ }
7
+ .on-primary {
8
+ background-color: var(--md-sys-color-on-primary);
9
+ }
10
+ .on-primary-text {
11
+ color: var(--md-sys-color-on-primary);
12
+ }
13
+ .primary-container {
14
+ background-color: var(--md-sys-color-primary-container);
15
+ }
16
+ .primary-container-text {
17
+ color: var(--md-sys-color-primary-container);
18
+ }
19
+ .on-primary-container {
20
+ background-color: var(--md-sys-color-on-primary-container);
21
+ }
22
+ .on-primary-container-text {
23
+ color: var(--md-sys-color-on-primary-container);
24
+ }
25
+ .primary-fixed {
26
+ background-color: var(--md-sys-color-primary-fixed);
27
+ }
28
+ .primary-fixed-text {
29
+ color: var(--md-sys-color-primary-fixed);
30
+ }
31
+ .on-primary-fixed {
32
+ background-color: var(--md-sys-color-on-primary-fixed);
33
+ }
34
+ .on-primary-fixed-text {
35
+ color: var(--md-sys-color-on-primary-fixed);
36
+ }
37
+ .primary-fixed-dim {
38
+ background-color: var(--md-sys-color-primary-fixed-dim);
39
+ }
40
+ .primary-fixed-dim-text {
41
+ color: var(--md-sys-color-primary-fixed-dim);
42
+ }
43
+ .on-primary-fixed-variant {
44
+ background-color: var(--md-sys-color-on-primary-fixed-variant);
45
+ }
46
+ .on-primary-fixed-variant-text {
47
+ color: var(--md-sys-color-on-primary-fixed-variant);
48
+ }
49
+ .secondary {
50
+ background-color: var(--md-sys-color-secondary);
51
+ }
52
+ .secondary-text {
53
+ color: var(--md-sys-color-secondary);
54
+ }
55
+ .on-secondary {
56
+ background-color: var(--md-sys-color-on-secondary);
57
+ }
58
+ .on-secondary-text {
59
+ color: var(--md-sys-color-on-secondary);
60
+ }
61
+ .secondary-container {
62
+ background-color: var(--md-sys-color-secondary-container);
63
+ }
64
+ .secondary-container-text {
65
+ color: var(--md-sys-color-secondary-container);
66
+ }
67
+ .on-secondary-container {
68
+ background-color: var(--md-sys-color-on-secondary-container);
69
+ }
70
+ .on-secondary-container-text {
71
+ color: var(--md-sys-color-on-secondary-container);
72
+ }
73
+ .secondary-fixed {
74
+ background-color: var(--md-sys-color-secondary-fixed);
75
+ }
76
+ .secondary-fixed-text {
77
+ color: var(--md-sys-color-secondary-fixed);
78
+ }
79
+ .on-secondary-fixed {
80
+ background-color: var(--md-sys-color-on-secondary-fixed);
81
+ }
82
+ .on-secondary-fixed-text {
83
+ color: var(--md-sys-color-on-secondary-fixed);
84
+ }
85
+ .secondary-fixed-dim {
86
+ background-color: var(--md-sys-color-secondary-fixed-dim);
87
+ }
88
+ .secondary-fixed-dim-text {
89
+ color: var(--md-sys-color-secondary-fixed-dim);
90
+ }
91
+ .on-secondary-fixed-variant {
92
+ background-color: var(--md-sys-color-on-secondary-fixed-variant);
93
+ }
94
+ .on-secondary-fixed-variant-text {
95
+ color: var(--md-sys-color-on-secondary-fixed-variant);
96
+ }
97
+ .tertiary {
98
+ background-color: var(--md-sys-color-tertiary);
99
+ }
100
+ .tertiary-text {
101
+ color: var(--md-sys-color-tertiary);
102
+ }
103
+ .on-tertiary {
104
+ background-color: var(--md-sys-color-on-tertiary);
105
+ }
106
+ .on-tertiary-text {
107
+ color: var(--md-sys-color-on-tertiary);
108
+ }
109
+ .tertiary-container {
110
+ background-color: var(--md-sys-color-tertiary-container);
111
+ }
112
+ .tertiary-container-text {
113
+ color: var(--md-sys-color-tertiary-container);
114
+ }
115
+ .on-tertiary-container {
116
+ background-color: var(--md-sys-color-on-tertiary-container);
117
+ }
118
+ .on-tertiary-container-text {
119
+ color: var(--md-sys-color-on-tertiary-container);
120
+ }
121
+ .tertiary-fixed {
122
+ background-color: var(--md-sys-color-tertiary-fixed);
123
+ }
124
+ .tertiary-fixed-text {
125
+ color: var(--md-sys-color-tertiary-fixed);
126
+ }
127
+ .on-tertiary-fixed {
128
+ background-color: var(--md-sys-color-on-tertiary-fixed);
129
+ }
130
+ .on-tertiary-fixed-text {
131
+ color: var(--md-sys-color-on-tertiary-fixed);
132
+ }
133
+ .tertiary-fixed-dim {
134
+ background-color: var(--md-sys-color-tertiary-fixed-dim);
135
+ }
136
+ .tertiary-fixed-dim-text {
137
+ color: var(--md-sys-color-tertiary-fixed-dim);
138
+ }
139
+ .on-tertiary-fixed-variant {
140
+ background-color: var(--md-sys-color-on-tertiary-fixed-variant);
141
+ }
142
+ .on-tertiary-fixed-variant-text {
143
+ color: var(--md-sys-color-on-tertiary-fixed-variant);
144
+ }
145
+ .error {
146
+ background-color: var(--md-sys-color-error);
147
+ }
148
+ .error-text {
149
+ color: var(--md-sys-color-error);
150
+ }
151
+ .on-error {
152
+ background-color: var(--md-sys-color-on-error);
153
+ }
154
+ .on-error-text {
155
+ color: var(--md-sys-color-on-error);
156
+ }
157
+ .error-container {
158
+ background-color: var(--md-sys-color-error-container);
159
+ }
160
+ .error-container-text {
161
+ color: var(--md-sys-color-error-container);
162
+ }
163
+ .on-error-container {
164
+ background-color: var(--md-sys-color-on-error-container);
165
+ }
166
+ .on-error-container-text {
167
+ color: var(--md-sys-color-on-error-container);
168
+ }
169
+ .outline {
170
+ background-color: var(--md-sys-color-outline);
171
+ }
172
+ .outline-text {
173
+ color: var(--md-sys-color-outline);
174
+ }
175
+ .background {
176
+ background-color: var(--md-sys-color-background);
177
+ }
178
+ .background-text {
179
+ color: var(--md-sys-color-background);
180
+ }
181
+ .on-background {
182
+ background-color: var(--md-sys-color-on-background);
183
+ }
184
+ .on-background-text {
185
+ color: var(--md-sys-color-on-background);
186
+ }
187
+ .surface {
188
+ background-color: var(--md-sys-color-surface);
189
+ }
190
+ .surface-text {
191
+ color: var(--md-sys-color-surface);
192
+ }
193
+ .on-surface {
194
+ background-color: var(--md-sys-color-on-surface);
195
+ }
196
+ .on-surface-text {
197
+ color: var(--md-sys-color-on-surface);
198
+ }
199
+ .surface-variant {
200
+ background-color: var(--md-sys-color-surface-variant);
201
+ }
202
+ .surface-variant-text {
203
+ color: var(--md-sys-color-surface-variant);
204
+ }
205
+ .on-surface-variant {
206
+ background-color: var(--md-sys-color-on-surface-variant);
207
+ }
208
+ .on-surface-variant-text {
209
+ color: var(--md-sys-color-on-surface-variant);
210
+ }
211
+ .inverse-surface {
212
+ background-color: var(--md-sys-color-inverse-surface);
213
+ }
214
+ .inverse-surface-text {
215
+ color: var(--md-sys-color-inverse-surface);
216
+ }
217
+ .inverse-on-surface {
218
+ background-color: var(--md-sys-color-inverse-on-surface);
219
+ }
220
+ .inverse-on-surface-text {
221
+ color: var(--md-sys-color-inverse-on-surface);
222
+ }
223
+ .inverse-primary {
224
+ background-color: var(--md-sys-color-inverse-primary);
225
+ }
226
+ .inverse-primary-text {
227
+ color: var(--md-sys-color-inverse-primary);
228
+ }
229
+ .shadow {
230
+ background-color: var(--md-sys-color-shadow);
231
+ }
232
+ .shadow-text {
233
+ color: var(--md-sys-color-shadow);
234
+ }
235
+ .surface-tint {
236
+ background-color: var(--md-sys-color-surface-tint);
237
+ }
238
+ .surface-tint-text {
239
+ color: var(--md-sys-color-surface-tint);
240
+ }
241
+ .outline-variant {
242
+ background-color: var(--md-sys-color-outline-variant);
243
+ }
244
+ .outline-variant-text {
245
+ color: var(--md-sys-color-outline-variant);
246
+ }
247
+ .scrim {
248
+ background-color: var(--md-sys-color-scrim);
249
+ }
250
+ .scrim-text {
251
+ color: var(--md-sys-color-scrim);
252
+ }
253
+ .surface-container-highest {
254
+ background-color: var(--md-sys-color-surface-container-highest);
255
+ }
256
+ .surface-container-highest-text {
257
+ color: var(--md-sys-color-surface-container-highest);
258
+ }
259
+ .surface-container-high {
260
+ background-color: var(--md-sys-color-surface-container-high);
261
+ }
262
+ .surface-container-high-text {
263
+ color: var(--md-sys-color-surface-container-high);
264
+ }
265
+ .surface-container {
266
+ background-color: var(--md-sys-color-surface-container);
267
+ }
268
+ .surface-container-text {
269
+ color: var(--md-sys-color-surface-container);
270
+ }
271
+ .surface-container-low {
272
+ background-color: var(--md-sys-color-surface-container-low);
273
+ }
274
+ .surface-container-low-text {
275
+ color: var(--md-sys-color-surface-container-low);
276
+ }
277
+ .surface-container-lowest {
278
+ background-color: var(--md-sys-color-surface-container-lowest);
279
+ }
280
+ .surface-container-lowest-text {
281
+ color: var(--md-sys-color-surface-container-lowest);
282
+ }
283
+ .surface-bright {
284
+ background-color: var(--md-sys-color-surface-bright);
285
+ }
286
+ .surface-bright-text {
287
+ color: var(--md-sys-color-surface-bright);
288
+ }
289
+ .surface-dim {
290
+ background-color: var(--md-sys-color-surface-dim);
291
+ }
292
+ .surface-dim-text {
293
+ color: var(--md-sys-color-surface-dim);
294
+ }
@@ -0,0 +1,5 @@
1
+ @import url(tokens.css);
2
+ @import url(colors.module.css);
3
+ @import url(typography.module.css);
4
+ @import url(theme.light.css) (prefers-color-scheme: light);
5
+ @import url(theme.dark.css) (prefers-color-scheme: dark);