jekyll-theme-ink 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,265 @@
1
+ // reset to 0
2
+ body, h1, h2, h3, h4, h5, h6,
3
+ p, blockquote, pre, hr,
4
+ dl, dd, ol, ul, figure {
5
+ margin: 0;
6
+ padding: 0;
7
+ }
8
+
9
+ /**
10
+ * Basic styling
11
+ */
12
+ body {
13
+ font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
14
+ color: $text-color;
15
+ background-color: $background-color;
16
+ -webkit-text-size-adjust: 100%;
17
+ -webkit-font-feature-settings: "kern" 1;
18
+ -moz-font-feature-settings: "kern" 1;
19
+ -o-font-feature-settings: "kern" 1;
20
+ font-feature-settings: "kern" 1;
21
+ font-kerning: normal;
22
+ display: flex;
23
+ min-height: 100vh;
24
+ flex-direction: column;
25
+ }
26
+
27
+ /**
28
+ * Set `margin-bottom` to maintain vertical rhythm
29
+ */
30
+ h1, h2, h3, h4, h5, h6,
31
+ p, blockquote, pre,
32
+ ul, ol, dl, figure,
33
+ %vertical-rhythm {
34
+ margin-bottom: $spacing-unit / 2;
35
+ }
36
+
37
+
38
+ /**
39
+ * `main` element
40
+ */
41
+ main {
42
+ display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
43
+ }
44
+
45
+
46
+
47
+ /**
48
+ * Images
49
+ */
50
+ img {
51
+ max-width: 100%;
52
+ vertical-align: middle;
53
+ }
54
+
55
+
56
+
57
+ /**
58
+ * Figures
59
+ */
60
+ figure > img {
61
+ display: block;
62
+ }
63
+
64
+ figcaption {
65
+ font-size: $small-font-size;
66
+ }
67
+
68
+
69
+
70
+ /**
71
+ * Lists
72
+ */
73
+ ul, ol {
74
+ margin-left: $spacing-unit;
75
+ }
76
+
77
+ li {
78
+ > ul,
79
+ > ol {
80
+ margin-bottom: 0;
81
+ }
82
+ }
83
+
84
+
85
+
86
+ /**
87
+ * Headings
88
+ */
89
+ h1, h2, h3, h4, h5, h6 {
90
+ font-weight: $base-font-weight;
91
+ }
92
+
93
+
94
+
95
+ /**
96
+ * Links
97
+ */
98
+ a {
99
+ color: $brand-color;
100
+ text-decoration: none;
101
+
102
+ &:visited {
103
+ color: darken($brand-color, 15%);
104
+ }
105
+
106
+ &:hover {
107
+ color: $text-color;
108
+ text-decoration: underline;
109
+ }
110
+
111
+ .social-media-list &:hover {
112
+ text-decoration: none;
113
+
114
+ .username {
115
+ text-decoration: underline;
116
+ }
117
+ }
118
+ }
119
+
120
+
121
+ /**
122
+ * Blockquotes
123
+ */
124
+ blockquote {
125
+ color: $grey-color;
126
+ border-left: 4px solid $grey-color-light;
127
+ padding-left: $spacing-unit / 2;
128
+ @include relative-font-size(1.125);
129
+ // letter-spacing: -1px;
130
+ font-style: italic;
131
+
132
+ > :last-child {
133
+ margin-bottom: 0;
134
+ }
135
+ }
136
+
137
+
138
+
139
+ /**
140
+ * Code formatting
141
+ */
142
+ pre,
143
+ code {
144
+ @include relative-font-size(0.9375);
145
+ border: 1px solid $grey-color-light;
146
+ border-radius: 3px;
147
+ background-color: $code-background-color;
148
+ }
149
+
150
+ code {
151
+ font-family: 'Lucida Console', Courier, monospace;
152
+ padding: 2px 5px;
153
+ }
154
+
155
+ pre {
156
+ padding: 8px 12px;
157
+ overflow-x: auto;
158
+
159
+ > code {
160
+ border: 0;
161
+ padding-right: 0;
162
+ padding-left: 0;
163
+ }
164
+ }
165
+
166
+
167
+
168
+ /**
169
+ * Wrapper
170
+ */
171
+ .wrapper {
172
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
173
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
174
+ margin-right: auto;
175
+ margin-left: auto;
176
+ padding-right: $spacing-unit;
177
+ padding-left: $spacing-unit;
178
+ @extend %clearfix;
179
+
180
+ @include media-query($on-laptop) {
181
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
182
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
183
+ padding-right: $spacing-unit / 2;
184
+ padding-left: $spacing-unit / 2;
185
+ }
186
+ }
187
+
188
+
189
+
190
+ /**
191
+ * Clearfix
192
+ */
193
+ %clearfix:after {
194
+ content: "";
195
+ display: table;
196
+ clear: both;
197
+ }
198
+
199
+
200
+
201
+ /**
202
+ * Icons
203
+ */
204
+
205
+ .svg-icon {
206
+ width: 16px;
207
+ height: 16px;
208
+ display: inline-block;
209
+ fill: #{$grey-color};
210
+ padding-right: 5px;
211
+ vertical-align: text-top;
212
+ }
213
+
214
+ .social-media-list {
215
+ li + li {
216
+ padding-top: 5px;
217
+ }
218
+ }
219
+
220
+
221
+
222
+ /**
223
+ * Tables
224
+ */
225
+ table {
226
+ margin-top: 20px;
227
+ margin-bottom: $spacing-unit;
228
+ width: 100%;
229
+ table-layout: fixed;
230
+ text-align: $table-text-align;
231
+ color: lighten($text-color, 18%);
232
+ border-collapse: collapse;
233
+ border: 1px solid #252525;
234
+ box-shadow: 5px 5px 10px #888888;
235
+ font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
236
+ tr {
237
+ &:nth-child(even) {
238
+ background-color: lighten($grey-color-light, 6%);
239
+ }
240
+ }
241
+ th, td {
242
+ padding: ($spacing-unit / 3) ($spacing-unit / 2);
243
+ }
244
+ th {
245
+ color: #fff;
246
+ background-color: #424242;
247
+ border-bottom: 1px dashed #252525;
248
+ padding: 12px 17px;
249
+ white-space: nowrap;
250
+ // border: 1px solid darken($grey-color-light, 4%);
251
+ // border-bottom-color: darken($grey-color-light, 12%);
252
+ }
253
+ td {
254
+ color: #000;
255
+ padding: 7px 17px;
256
+ white-space: normal;
257
+ }
258
+ tr.alt {
259
+ background-color: #f3f3f3;
260
+ }
261
+ tbody tr:hover td {
262
+ color: #000;
263
+ background-color: #b7b7b7;
264
+ }
265
+ }
@@ -0,0 +1,399 @@
1
+ /**
2
+ * Site header
3
+ */
4
+ .site-header {
5
+ // border-top: 5px solid $grey-color-dark;
6
+ border-bottom: 1px solid $grey-color-light;
7
+ box-shadow: 0px 3px 11px 1px rgba(0,0,0,0.08);
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
+ img {
28
+ width: $base-line-height * $base-font-size;
29
+ padding: 0 10px 0 0;
30
+ }
31
+ }
32
+
33
+ .site-nav {
34
+ float: right;
35
+ line-height: $base-line-height * $base-font-size * 2.25;
36
+
37
+ .nav-trigger {
38
+ display: none;
39
+ }
40
+
41
+ .menu-icon {
42
+ display: none;
43
+ }
44
+
45
+ .page-link {
46
+ color: $grey-color;
47
+ line-height: $base-line-height;
48
+
49
+ // Gaps between nav items, but not on the last one
50
+ &:not(:last-child) {
51
+ margin-right: 20px;
52
+ }
53
+
54
+ &:hover {
55
+ color: $text-color;
56
+ }
57
+ }
58
+
59
+ @include media-query($on-palm) {
60
+ position: absolute;
61
+ top: 9px;
62
+ right: $spacing-unit / 2;
63
+ background-color: $background-color;
64
+ border: 1px solid $grey-color-light;
65
+ border-radius: 5px;
66
+ text-align: right;
67
+
68
+ label[for="nav-trigger"] {
69
+ display: block;
70
+ float: right;
71
+ width: 36px;
72
+ height: 36px;
73
+ z-index: 2;
74
+ cursor: pointer;
75
+ }
76
+
77
+ .menu-icon {
78
+ display: block;
79
+ float: right;
80
+ width: 36px;
81
+ height: 26px;
82
+ line-height: 0;
83
+ padding-top: 10px;
84
+ text-align: center;
85
+
86
+ > svg {
87
+ fill: $grey-color-dark;
88
+ }
89
+ }
90
+
91
+ input ~ .trigger {
92
+ clear: both;
93
+ display: none;
94
+ }
95
+
96
+ input:checked ~ .trigger {
97
+ display: block;
98
+ padding-bottom: 5px;
99
+ }
100
+
101
+ .page-link {
102
+ display: block;
103
+ padding: 5px 10px;
104
+
105
+ &:not(:last-child) {
106
+ margin-right: 0;
107
+ }
108
+ margin-left: 20px;
109
+ }
110
+ }
111
+ }
112
+
113
+
114
+ /**
115
+ * Back to top arrow
116
+ */
117
+ #back-to-top {
118
+ overflow: hidden;
119
+ z-index: 999;
120
+ cursor: pointer;
121
+ -moz-transform: rotate(270deg);
122
+ -webkit-transform: rotate(270deg);
123
+ -o-transform: rotate(270deg);
124
+ -ms-transform: rotate(270deg);
125
+ transform: rotate(270deg);
126
+ position: fixed;
127
+ bottom: 50px;
128
+ right: 50px;
129
+ background-color: transparent;
130
+ color: #555;
131
+ text-align: center;
132
+ font-size: 30px;
133
+ text-decoration: none;
134
+ display: none;
135
+
136
+ &:hover {
137
+ color: #000;
138
+ font-size: 35px;
139
+ bottom: 47px;
140
+ right: 47px;
141
+ }
142
+ }
143
+
144
+
145
+
146
+ /**
147
+ * Site footer
148
+ */
149
+ .site-footer {
150
+ border-top: 1px solid $grey-color-light;
151
+ padding: $spacing-unit 0;
152
+ }
153
+
154
+ .footer-heading {
155
+ @include relative-font-size(1.125);
156
+ margin-bottom: $spacing-unit / 2;
157
+ }
158
+
159
+ .contact-list,
160
+ .social-media-list {
161
+ list-style: none;
162
+ margin-left: 0;
163
+ }
164
+
165
+ .footer-col-wrapper {
166
+ @include relative-font-size(0.9375);
167
+ color: $grey-color;
168
+ margin-left: -$spacing-unit / 2;
169
+ @extend %clearfix;
170
+ }
171
+
172
+ .footer-col {
173
+ float: left;
174
+ margin-bottom: $spacing-unit / 2;
175
+ padding-left: $spacing-unit / 2;
176
+ }
177
+
178
+ .footer-col-1 {
179
+ width: -webkit-calc(30% - (#{$spacing-unit} / 2));
180
+ width: calc(30% - (#{$spacing-unit} / 2));
181
+ }
182
+
183
+ .footer-col-2 {
184
+ width: -webkit-calc(30% - (#{$spacing-unit} / 2));
185
+ width: calc(30% - (#{$spacing-unit} / 2));
186
+ }
187
+
188
+ .footer-col-3 {
189
+ width: -webkit-calc(40% - (#{$spacing-unit} / 2));
190
+ width: calc(40% - (#{$spacing-unit} / 2));
191
+ }
192
+
193
+ @include media-query($on-laptop) {
194
+ .footer-col-1,
195
+ .footer-col-2 {
196
+ width: -webkit-calc(50% - (#{$spacing-unit} / 2));
197
+ width: calc(50% - (#{$spacing-unit} / 2));
198
+ }
199
+
200
+ .footer-col-3 {
201
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
202
+ width: calc(100% - (#{$spacing-unit} / 2));
203
+ }
204
+ }
205
+
206
+ @include media-query($on-palm) {
207
+ .footer-col {
208
+ float: none;
209
+ width: -webkit-calc(100% - (#{$spacing-unit} / 2));
210
+ width: calc(100% - (#{$spacing-unit} / 2));
211
+ }
212
+ }
213
+
214
+
215
+
216
+ /**
217
+ * Page content
218
+ */
219
+ .page-content {
220
+ padding: $spacing-unit 0;
221
+ flex: 1 0 auto;
222
+ }
223
+
224
+ .page-heading {
225
+ @include relative-font-size(2);
226
+ }
227
+
228
+ .post-list-heading {
229
+ @include relative-font-size(1.75);
230
+ }
231
+
232
+ .post-list {
233
+ margin-left: 0;
234
+ list-style: none;
235
+
236
+ > li {
237
+ margin-bottom: $spacing-unit;
238
+ }
239
+ }
240
+
241
+ .post-meta {
242
+ font-size: $small-font-size;
243
+ color: $grey-color;
244
+ }
245
+
246
+ .post-link {
247
+ display: block;
248
+ @include relative-font-size(1.5);
249
+ }
250
+
251
+ .post-category {
252
+ display: inline-block;
253
+ padding: 5px;
254
+ border-radius: 7px;
255
+ min-width: 20px;
256
+ margin: 5px;
257
+ color: #fff;
258
+ background: $grey-color-dark;
259
+ position: relative;
260
+ text-decoration: none;
261
+
262
+ &,
263
+ &:hover,
264
+ &:visited {
265
+ color: #fff;
266
+ }
267
+ }
268
+
269
+ .timeline-wrapper {
270
+ position: relative;
271
+ }
272
+
273
+ .timeline {
274
+ padding: 5px;
275
+ border-radius: 10px;
276
+ margin: 15px 5px;
277
+ width: 100%;
278
+ display: grid;
279
+ grid-template-columns: 180px 1fr;
280
+
281
+ @include media-query($on-palm) {
282
+ display: inline;
283
+ }
284
+ }
285
+
286
+ .timeline-date {
287
+ color: $grey-color;
288
+ font-style: italic;
289
+ padding: 8px 15px;
290
+ }
291
+
292
+ .timeline-container {
293
+ box-shadow: 0px 3px 11px 1px rgba(0,0,0,0.08);
294
+ padding: 8px 15px;
295
+ margin-right: 20px;
296
+ }
297
+
298
+ .timeline-content {
299
+ display: table;
300
+ width: 100%;
301
+ }
302
+
303
+
304
+ /**
305
+ * Posts
306
+ */
307
+ .post-header {
308
+ margin-bottom: $spacing-unit;
309
+ }
310
+
311
+ .post-title {
312
+ @include relative-font-size(2.625);
313
+ letter-spacing: -1px;
314
+ line-height: 1;
315
+
316
+ @include media-query($on-laptop) {
317
+ @include relative-font-size(2.25);
318
+ }
319
+
320
+ text-align: center;
321
+ }
322
+
323
+ .post-content {
324
+ margin-bottom: $spacing-unit;
325
+
326
+ h1 {
327
+ @include relative-font-size(2.25);
328
+
329
+ @include media-query($on-laptop) {
330
+ @include relative-font-size(2);
331
+ }
332
+
333
+ &:before {
334
+ content: '>';
335
+ color: $before-header-color;
336
+ padding-right: 0.5em;
337
+ }
338
+ }
339
+
340
+ h2 {
341
+ @include relative-font-size(2);
342
+
343
+ @include media-query($on-laptop) {
344
+ @include relative-font-size(1.75);
345
+ }
346
+
347
+ &:before {
348
+ content: '≫';
349
+ color: $before-header-color;
350
+ padding-right: 0.5em;
351
+ }
352
+ }
353
+
354
+ h3 {
355
+ @include relative-font-size(1.625);
356
+
357
+ @include media-query($on-laptop) {
358
+ @include relative-font-size(1.375);
359
+ }
360
+
361
+ &:before {
362
+ content: '⋙';
363
+ color: $before-header-color;
364
+ padding-right: 0.5em;
365
+ }
366
+ }
367
+
368
+ h4 {
369
+ @include relative-font-size(1.25);
370
+
371
+ @include media-query($on-laptop) {
372
+ @include relative-font-size(1.125);
373
+ }
374
+ }
375
+ }
376
+
377
+ .post-card {
378
+ // border: solid #fafafa;
379
+ padding: 5px 15px;
380
+ margin: 5px 5px;
381
+ box-shadow: 0px 3px 11px 1px rgba(0,0,0,0.08);
382
+ border-radius: 5px;
383
+ min-width: 200px;
384
+ display: inline-block;
385
+ }
386
+
387
+ .post-date {
388
+ display: inline-block;
389
+ color: $grey-color;
390
+ padding: 0 15px 0 0;
391
+ font-style: italic;
392
+ }
393
+
394
+ .post-name {
395
+ display: inline-block;
396
+ a {
397
+ font-size: 1.2em;
398
+ }
399
+ }