dark-minima 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +4 -0
  4. data/_includes/categories_archive.html +15 -0
  5. data/_includes/categories_list.html +12 -0
  6. data/_includes/disqus_comments.html +20 -0
  7. data/_includes/footer.html +34 -0
  8. data/_includes/google-analytics.html +9 -0
  9. data/_includes/head.html +15 -0
  10. data/_includes/header.html +31 -0
  11. data/_includes/image.html +14 -0
  12. data/_includes/mathjax.html +6 -0
  13. data/_includes/post-tags.html +11 -0
  14. data/_includes/search.html +17 -0
  15. data/_includes/share_bar.html +69 -0
  16. data/_includes/social.html +19 -0
  17. data/_includes/tags_archive.html +15 -0
  18. data/_includes/tags_cloud.html +14 -0
  19. data/_includes/toc.html +5 -0
  20. data/_layouts/default.html +25 -0
  21. data/_layouts/home.html +34 -0
  22. data/_layouts/page.html +14 -0
  23. data/_layouts/post.html +34 -0
  24. data/_sass/minima.scss +57 -0
  25. data/_sass/minima/_base.scss +256 -0
  26. data/_sass/minima/_layout.scss +330 -0
  27. data/_sass/minima/_share.scss +87 -0
  28. data/_sass/minima/_syntax-highlighting.scss +210 -0
  29. data/assets/css/background/3px-tile.png +0 -0
  30. data/assets/css/background/brick-wall.png +0 -0
  31. data/assets/css/background/ice-age.png +0 -0
  32. data/assets/css/style.scss +5 -0
  33. data/assets/images/posts/annotations-to-pro-git-2e/commit-and-parents.png +0 -0
  34. data/assets/images/posts/annotations-to-pro-git-2e/commit-and-tree.png +0 -0
  35. data/assets/js/main.js +73 -0
  36. data/assets/js/simple-jekyll-search.min.js +6 -0
  37. data/assets/json/search.json +16 -0
  38. data/assets/minima-social-icons.svg +39 -0
  39. metadata +153 -0
@@ -0,0 +1,34 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post h-entry card" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta">
9
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {%- if page.author -%}
14
+ • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
15
+ {%- endif -%}
16
+ <br>
17
+ {%- if page.tags -%}
18
+ {%- include post-tags.html -%}
19
+ {%- endif -%}
20
+ </p>
21
+ </header>
22
+
23
+ <div class="post-content e-content" itemprop="articleBody">
24
+ {{ content }}
25
+ </div>
26
+
27
+ {%- include share_bar.html -%}
28
+
29
+ {%- if site.disqus.shortname -%}
30
+ {%- include disqus_comments.html -%}
31
+ {%- endif -%}
32
+
33
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
34
+ </article>
data/_sass/minima.scss ADDED
@@ -0,0 +1,57 @@
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: silver !default;
14
+ $background-color: #303030 !default;
15
+ $brand-color: #1DA1F2 !default; // Twitter Blue
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
+ $orange-color: #f66a0a !default;
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
+ $on-medium: $on-palm !default;
30
+ $on-large: $on-laptop !default;
31
+
32
+ // Use media queries like this:
33
+ // @include media-query($on-palm) {
34
+ // .wrapper {
35
+ // padding-right: $spacing-unit / 2;
36
+ // padding-left: $spacing-unit / 2;
37
+ // }
38
+ // }
39
+ // Notice the following mixin uses max-width, in a deprecated, desktop-first
40
+ // approach, whereas media queries used elsewhere now use min-width.
41
+ @mixin media-query($device) {
42
+ @media screen and (max-width: $device) {
43
+ @content;
44
+ }
45
+ }
46
+
47
+ @mixin relative-font-size($ratio) {
48
+ font-size: $base-font-size * $ratio;
49
+ }
50
+
51
+ // Import partials.
52
+ @import
53
+ "minima/base",
54
+ "minima/layout",
55
+ "minima/share",
56
+ "minima/syntax-highlighting"
57
+ ;
@@ -0,0 +1,256 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ body, h1, h2, h3, h4, h5, h6,
5
+ p, blockquote, pre, hr,
6
+ dl, dd, ol, ul, figure {
7
+ margin: 0;
8
+ padding: 0;
9
+
10
+ }
11
+
12
+
13
+
14
+ /**
15
+ * Basic styling
16
+ */
17
+ body {
18
+ font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
19
+ color: $text-color;
20
+ background-color: $background-color;
21
+ -webkit-text-size-adjust: 100%;
22
+ -webkit-font-feature-settings: "kern" 1;
23
+ -moz-font-feature-settings: "kern" 1;
24
+ -o-font-feature-settings: "kern" 1;
25
+ font-feature-settings: "kern" 1;
26
+ font-kerning: normal;
27
+ display: flex;
28
+ min-height: 100vh;
29
+ flex-direction: column;
30
+ }
31
+
32
+
33
+
34
+ /**
35
+ * Set `margin-bottom` to maintain vertical rhythm
36
+ */
37
+ h1, h2, h3, h4, h5, h6,
38
+ p, blockquote, pre,
39
+ ul, ol, dl, figure,
40
+ %vertical-rhythm {
41
+ margin-bottom: $spacing-unit / 2;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * `main` element
48
+ */
49
+ main {
50
+ display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
51
+ }
52
+
53
+
54
+
55
+ /**
56
+ * Images
57
+ */
58
+ img {
59
+ max-width: 100%;
60
+ vertical-align: middle;
61
+ }
62
+
63
+
64
+
65
+ /**
66
+ * Figures
67
+ */
68
+ figure > img {
69
+ display: block;
70
+ }
71
+
72
+ figcaption {
73
+ font-size: $small-font-size;
74
+ }
75
+
76
+
77
+
78
+ /**
79
+ * Lists
80
+ */
81
+ ul, ol {
82
+ margin-left: $spacing-unit;
83
+ }
84
+
85
+ li {
86
+ > ul,
87
+ > ol {
88
+ margin-bottom: 0;
89
+ }
90
+ }
91
+
92
+
93
+
94
+ /**
95
+ * Headings
96
+ */
97
+ h1, h2, h3, h4, h5, h6 {
98
+ font-weight: $base-font-weight;
99
+ }
100
+
101
+
102
+
103
+ /**
104
+ * Links
105
+ */
106
+ a {
107
+ color: $brand-color;
108
+ text-decoration: none;
109
+
110
+ &:visited {
111
+ color: darken($brand-color, 15%);
112
+ }
113
+
114
+ &:hover {
115
+ color: $text-color;
116
+ text-decoration: underline;
117
+ }
118
+
119
+ .social-media-list &:hover {
120
+ text-decoration: none;
121
+
122
+ .username {
123
+ text-decoration: underline;
124
+ }
125
+ }
126
+ }
127
+
128
+
129
+ /**
130
+ * Blockquotes
131
+ */
132
+ blockquote {
133
+ color: $grey-color;
134
+ border-left: 4px solid $grey-color-light;
135
+ padding-left: $spacing-unit / 2;
136
+ @include relative-font-size(1.125);
137
+ letter-spacing: -1px;
138
+ font-style: italic;
139
+
140
+ > :last-child {
141
+ margin-bottom: 0;
142
+ }
143
+ }
144
+
145
+
146
+
147
+ /**
148
+ * Code formatting
149
+ */
150
+ pre,
151
+ code {
152
+ @include relative-font-size(0.9375);
153
+ background-color: #49483e;
154
+ border-radius: 3px;
155
+ }
156
+
157
+ code {
158
+ padding: 1px 5px;
159
+ }
160
+
161
+ pre {
162
+ border: 1px solid $grey-color;
163
+ padding: 8px 12px;
164
+ overflow-x: auto;
165
+
166
+ > code {
167
+ border: 0;
168
+ padding-right: 0;
169
+ padding-left: 0;
170
+ }
171
+ }
172
+
173
+
174
+
175
+ /**
176
+ * Wrapper
177
+ */
178
+ .wrapper {
179
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
180
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
181
+ margin-right: auto;
182
+ margin-left: auto;
183
+ padding-right: $spacing-unit / 2;
184
+ padding-left: $spacing-unit / 2;
185
+ @extend %clearfix;
186
+
187
+ @media screen and (min-width: $on-large) {
188
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
189
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
190
+ padding-right: $spacing-unit;
191
+ padding-left: $spacing-unit;
192
+ }
193
+ }
194
+
195
+
196
+
197
+ /**
198
+ * Clearfix
199
+ */
200
+ %clearfix:after {
201
+ content: "";
202
+ display: table;
203
+ clear: both;
204
+ }
205
+
206
+
207
+
208
+ /**
209
+ * Icons
210
+ */
211
+
212
+ .orange {
213
+ color: $orange-color;
214
+ }
215
+
216
+ .grey {
217
+ color: $grey-color;
218
+ }
219
+
220
+ .svg-icon {
221
+ width: 16px;
222
+ height: 16px;
223
+ display: inline-block;
224
+ fill: currentColor;
225
+ padding: 5px 3px 2px 5px;
226
+ vertical-align: text-bottom;
227
+ }
228
+
229
+
230
+ /**
231
+ * Tables
232
+ */
233
+ table {
234
+ margin-bottom: $spacing-unit;
235
+ width: 100%;
236
+ text-align: $table-text-align;
237
+ color: lighten($text-color, 18%);
238
+ border-collapse: collapse;
239
+ border: 1px solid $grey-color-light;
240
+ tr {
241
+ &:nth-child(even) {
242
+ background-color: lighten($grey-color-dark, 6%);
243
+ }
244
+ }
245
+ th, td {
246
+ padding: ($spacing-unit / 3) ($spacing-unit / 2);
247
+ }
248
+ th {
249
+ background-color: lighten($grey-color-dark, 3%);
250
+ border: 1px solid darken($grey-color, 4%);
251
+ border-bottom-color: darken($grey-color, 12%);
252
+ }
253
+ td {
254
+ border: 1px solid $grey-color;
255
+ }
256
+ }
@@ -0,0 +1,330 @@
1
+ /**
2
+ * Site header
3
+ */
4
+ .site-header {
5
+ background-color: $background-color;
6
+ border-top: 5px solid $brand-color;
7
+ border-bottom: 1px solid $grey-color-light;
8
+ min-height: $spacing-unit * 1.865;
9
+ line-height: $base-line-height * $base-font-size * 2.25;
10
+
11
+ // Positioning context for the mobile navigation icon
12
+ position: relative;
13
+ }
14
+
15
+ .site-title {
16
+ @include relative-font-size(1.625);
17
+ font-weight: 300;
18
+ letter-spacing: -1px;
19
+ margin-bottom: 0;
20
+ float: left;
21
+
22
+ @include media-query($on-palm) {
23
+ padding-right: 45px;
24
+ }
25
+
26
+ &,
27
+ &:visited {
28
+ color: $brand-color;
29
+ }
30
+ }
31
+
32
+ .site-nav {
33
+ position: absolute;
34
+ top: 9px;
35
+ right: $spacing-unit / 2;
36
+ background-color: $background-color;
37
+ border: 1px solid $grey-color-light;
38
+ border-radius: 5px;
39
+ text-align: right;
40
+
41
+ .nav-trigger {
42
+ display: none;
43
+ }
44
+
45
+ .menu-icon {
46
+ float: right;
47
+ width: 36px;
48
+ height: 26px;
49
+ line-height: 0;
50
+ padding-top: 10px;
51
+ text-align: center;
52
+
53
+ > svg path {
54
+ fill: $grey-color-dark;
55
+ }
56
+ }
57
+
58
+ label[for="nav-trigger"] {
59
+ display: block;
60
+ float: right;
61
+ width: 36px;
62
+ height: 36px;
63
+ z-index: 2;
64
+ cursor: pointer;
65
+ }
66
+
67
+ input ~ .trigger {
68
+ clear: both;
69
+ display: none;
70
+ }
71
+
72
+ input:checked ~ .trigger {
73
+ display: block;
74
+ padding-bottom: 5px;
75
+ }
76
+
77
+ .page-link {
78
+ color: $text-color;
79
+ line-height: $base-line-height;
80
+ display: block;
81
+ padding: 5px 10px;
82
+
83
+ // Gaps between nav items, but not on the last one
84
+ &:not(:last-child) {
85
+ margin-right: 0;
86
+ }
87
+ margin-left: 20px;
88
+ }
89
+
90
+ @media screen and (min-width: $on-medium) {
91
+ position: static;
92
+ float: right;
93
+ border: none;
94
+ background-color: inherit;
95
+
96
+ label[for="nav-trigger"] {
97
+ display: none;
98
+ }
99
+
100
+ .menu-icon {
101
+ display: none;
102
+ }
103
+
104
+ input ~ .trigger {
105
+ display: block;
106
+ }
107
+
108
+ .page-link {
109
+ display: inline;
110
+ padding: 0;
111
+
112
+ &:not(:last-child) {
113
+ margin-right: 20px;
114
+ }
115
+ margin-left: auto;
116
+ }
117
+ }
118
+ }
119
+
120
+
121
+
122
+ /**
123
+ * Site footer
124
+ */
125
+ .site-footer {
126
+ background-color: $background-color;
127
+ border-top: 1px solid $grey-color-light;
128
+ padding: $spacing-unit 0;
129
+ }
130
+
131
+ .footer-heading {
132
+ @include relative-font-size(1.125);
133
+ margin-bottom: $spacing-unit / 2;
134
+ }
135
+
136
+ .contact-list,
137
+ .social-media-list {
138
+ list-style: none;
139
+ margin-left: 0;
140
+ }
141
+
142
+ .footer-col-wrapper {
143
+ @include relative-font-size(0.9375);
144
+ color: $grey-color;
145
+ margin-left: -$spacing-unit / 2;
146
+ @extend %clearfix;
147
+ }
148
+
149
+ .footer-col {
150
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
151
+ width: calc(100% - (#{$spacing-unit} / 2));
152
+ margin-bottom: $spacing-unit / 2;
153
+ padding-left: $spacing-unit / 2;
154
+ }
155
+
156
+ .footer-col-1,
157
+ .footer-col-2 {
158
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
159
+ width: calc(50% - (#{$spacing-unit} / 2));
160
+ }
161
+
162
+ .footer-col-3 {
163
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
164
+ width: calc(100% - (#{$spacing-unit} / 2));
165
+ }
166
+
167
+ @media screen and (min-width: $on-large) {
168
+ .footer-col-1 {
169
+ width: -webkit-calc(35% - (#{$spacing-unit} / 2));
170
+ width: calc(35% - (#{$spacing-unit} / 2));
171
+ }
172
+
173
+ .footer-col-2 {
174
+ width: -webkit-calc(20% - (#{$spacing-unit} / 2));
175
+ width: calc(20% - (#{$spacing-unit} / 2));
176
+ }
177
+
178
+ .footer-col-3 {
179
+ width: -webkit-calc(45% - (#{$spacing-unit} / 2));
180
+ width: calc(45% - (#{$spacing-unit} / 2));
181
+ }
182
+ }
183
+
184
+ @media screen and (min-width: $on-medium) {
185
+ .footer-col {
186
+ float: left;
187
+ }
188
+ }
189
+
190
+
191
+
192
+ /**
193
+ * Page content
194
+ */
195
+ .page-content {
196
+ padding: $spacing-unit 0;
197
+ flex: 1 0 auto;
198
+ }
199
+
200
+ .page-heading {
201
+ @include relative-font-size(2);
202
+ }
203
+
204
+ .post-list-heading {
205
+ @include relative-font-size(1.75);
206
+ }
207
+
208
+ .post-list {
209
+ margin-left: 0;
210
+ list-style: none;
211
+
212
+ > li {
213
+ margin-bottom: $spacing-unit;
214
+ }
215
+ }
216
+
217
+ .post-meta {
218
+ font-size: $small-font-size;
219
+ color: $grey-color;
220
+ }
221
+
222
+ .post-link {
223
+ display: block;
224
+ @include relative-font-size(1.5);
225
+ }
226
+
227
+
228
+
229
+ /**
230
+ * Posts
231
+ */
232
+ .post-header {
233
+ margin-bottom: $spacing-unit;
234
+ }
235
+
236
+ .post-title,
237
+ .post-content h1 {
238
+ @include relative-font-size(2.625);
239
+ letter-spacing: -1px;
240
+ line-height: 1;
241
+ color: lighten($text-color, 20%);
242
+
243
+ @media screen and (min-width: $on-large) {
244
+ @include relative-font-size(2.625);
245
+ }
246
+ }
247
+
248
+ .post-content {
249
+ margin-bottom: $spacing-unit;
250
+
251
+ h2 {
252
+ @include relative-font-size(1.75);
253
+ color: tomato;
254
+
255
+ @media screen and (min-width: $on-large) {
256
+ @include relative-font-size(2);
257
+ }
258
+ }
259
+
260
+ h3 {
261
+ @include relative-font-size(1.375);
262
+ color: lighten($text-color, 20%);
263
+
264
+ @media screen and (min-width: $on-large) {
265
+ @include relative-font-size(1.625);
266
+ }
267
+ }
268
+
269
+ h4 {
270
+ @include relative-font-size(1.125);
271
+ color: lighten($text-color, 20%);
272
+
273
+ @media screen and (min-width: $on-large) {
274
+ @include relative-font-size(1.25);
275
+ }
276
+ }
277
+ }
278
+
279
+
280
+ .social-media-list {
281
+ display: table;
282
+ margin: 0 auto;
283
+ li {
284
+ float: left;
285
+ margin: 0 5px;
286
+ &:first-of-type { margin-left: 0 }
287
+ &:last-of-type { margin-right: 0 }
288
+ a {
289
+ display: block;
290
+ padding: $spacing-unit / 4;
291
+ border: 1px solid $grey-color-light
292
+ }
293
+ &:hover .svg-icon { fill: currentColor; }
294
+ }
295
+ }
296
+
297
+
298
+ /**
299
+ * Grid helpers
300
+ */
301
+ .one-half {
302
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
303
+ width: calc(50% - (#{$spacing-unit} / 2));
304
+ }
305
+
306
+ .tag-wrapper a {
307
+ display: inline-block;
308
+ padding-left: 3px;
309
+ padding-right: 3px;
310
+ border: 1px solid $grey-color-light;
311
+ border-radius: 3px;
312
+
313
+ &:hover {
314
+ text-decoration: unset;
315
+ background-color: $grey-color;
316
+ }
317
+ }
318
+
319
+ #search-input {
320
+ width: 100%;
321
+ font-size: $base-font-size * 1.6;
322
+ height: $base-font-size * 2;
323
+ }
324
+
325
+ .card {
326
+ background-color: $background-color;
327
+ box-shadow: 0 0 0 0, 0 8px 16px rgba(0, 0, 0, 0.2);
328
+ border-radius: 6px;
329
+ padding: 20px;
330
+ }