nightmare 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 (40) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/LICENSE.txt +21 -0
  4. data/README.md +52 -0
  5. data/_includes/categories_archive.html +15 -0
  6. data/_includes/categories_list.html +12 -0
  7. data/_includes/disqus_comments.html +20 -0
  8. data/_includes/footer.html +34 -0
  9. data/_includes/google-analytics.html +9 -0
  10. data/_includes/head.html +15 -0
  11. data/_includes/header.html +31 -0
  12. data/_includes/image.html +14 -0
  13. data/_includes/mathjax.html +6 -0
  14. data/_includes/post-tags.html +11 -0
  15. data/_includes/search.html +17 -0
  16. data/_includes/share_bar.html +69 -0
  17. data/_includes/social.html +19 -0
  18. data/_includes/tags_archive.html +15 -0
  19. data/_includes/tags_cloud.html +14 -0
  20. data/_includes/toc.html +5 -0
  21. data/_layouts/default.html +25 -0
  22. data/_layouts/home.html +34 -0
  23. data/_layouts/page.html +14 -0
  24. data/_layouts/post.html +34 -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/_sass/minima.scss +60 -0
  30. data/assets/css/background/3px-tile.png +0 -0
  31. data/assets/css/background/brick-wall.png +0 -0
  32. data/assets/css/background/ice-age.png +0 -0
  33. data/assets/css/style.scss +5 -0
  34. data/assets/images/posts/annotations-to-pro-git-2e/commit-and-parents.png +0 -0
  35. data/assets/images/posts/annotations-to-pro-git-2e/commit-and-tree.png +0 -0
  36. data/assets/js/main.js +73 -0
  37. data/assets/js/simple-jekyll-search.min.js +6 -0
  38. data/assets/json/search.json +16 -0
  39. data/assets/minima-social-icons.svg +39 -0
  40. metadata +124 -0
@@ -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
+ }
@@ -0,0 +1,87 @@
1
+ /* Share Bar */
2
+ #share-bar {
3
+ font-size: 26px;
4
+ }
5
+
6
+ /* All buttons */
7
+ .share-buttons a {
8
+ text-decoration: none;
9
+ }
10
+
11
+ /* Each button */
12
+ .share-button {
13
+ margin: 0px;
14
+ margin-bottom: 10px;
15
+ margin-right: 3px;
16
+ border: 1px solid #D3D6D2;
17
+ border-radius: 3px;
18
+ padding: 5px 10px 5px 10px;
19
+ }
20
+ .share-button:hover {
21
+ opacity: 1;
22
+ color: #ffffff;
23
+ }
24
+
25
+ /* Facebook button */
26
+ .fa-facebook-official {
27
+ color: #3b5998;
28
+ }
29
+ .fa-facebook-official:hover {
30
+ background-color: #3b5998;
31
+ }
32
+
33
+ /* Twitter button */
34
+ .fa-twitter {
35
+ color: #55acee;
36
+ }
37
+ .fa-twitter:hover {
38
+ background-color: #55acee;
39
+ }
40
+
41
+ /* Google-PLus button */
42
+ .fa-google-plus {
43
+ color: #dd4b39;
44
+ }
45
+ .fa-google-plus:hover {
46
+ background-color: #dd4b39;
47
+ }
48
+
49
+ /* Pinterest button */
50
+ .fa-pinterest-p {
51
+ color: #cb2027;
52
+ }
53
+ .fa-pinterest-p:hover {
54
+ background-color: #cb2027;
55
+ }
56
+
57
+ /* Tumblr button */
58
+ .fa-tumblr {
59
+ color: #32506d;
60
+ }
61
+ .fa-tumblr:hover {
62
+ background-color: #32506d;
63
+ }
64
+
65
+ /* Reddit button */
66
+ .fa-reddit-alien {
67
+ color: #ff4500;
68
+ }
69
+ .fa-reddit-alien:hover {
70
+ background-color: #ff4500;
71
+ }
72
+
73
+ /* LinkedIn button */
74
+ .fa-linkedin {
75
+ color: #007bb5;
76
+ }
77
+ .fa-linkedin:hover {
78
+ background-color: #007bb5;
79
+ }
80
+
81
+ /* Email button */
82
+ .fa-envelope {
83
+ color: #444444;
84
+ }
85
+ .fa-envelope:hover {
86
+ background-color: #444444;
87
+ }