jekyll-theme-type 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,9 @@ $text-color: #383838;
18
18
  $link-color: #1ABC9C;
19
19
  $selection-color: #D4D4D4; // visible when highlighting text
20
20
 
21
+ // Tags color
22
+ $tags-color: #b0b0b0;
23
+
21
24
  // Header colours
22
25
  $header-link-color: #383838;
23
26
 
@@ -26,5 +29,5 @@ $feature-image-text-color: #fff;
26
29
  $feature-image-size: cover; // options include "cover", "contain", "auto"
27
30
 
28
31
  // Header description box
29
- $header-desc-background-color: #F98752;
32
+ $header-desc-background-color: #1ABC9C;
30
33
  $header-desc-text-color: #FFF;
@@ -1,170 +1,153 @@
1
- /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
2
-
3
- /* Document
4
- ========================================================================== */
1
+ /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
5
2
 
6
3
  /**
7
- * 1. Correct the line height in all browsers.
8
- * 2. Prevent adjustments of font size after orientation changes in
9
- * IE on Windows Phone and in iOS.
4
+ * 1. Set default font family to sans-serif.
5
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
6
+ * user zoom.
10
7
  */
11
8
 
12
9
  html {
13
- line-height: 1.15; /* 1 */
10
+ font-family: sans-serif; /* 1 */
14
11
  -ms-text-size-adjust: 100%; /* 2 */
15
12
  -webkit-text-size-adjust: 100%; /* 2 */
16
13
  }
17
14
 
18
- /* Sections
19
- ========================================================================== */
20
-
21
15
  /**
22
- * Remove the margin in all browsers (opinionated).
16
+ * Remove default margin.
23
17
  */
24
18
 
25
19
  body {
26
20
  margin: 0;
27
21
  }
28
22
 
23
+ /* HTML5 display definitions
24
+ ========================================================================== */
25
+
29
26
  /**
30
- * Add the correct display in IE 9-.
27
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
28
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11
29
+ * and Firefox.
30
+ * Correct `block` display not defined for `main` in IE 11.
31
31
  */
32
32
 
33
33
  article,
34
34
  aside,
35
+ details,
36
+ figcaption,
37
+ figure,
35
38
  footer,
36
39
  header,
40
+ hgroup,
41
+ main,
42
+ menu,
37
43
  nav,
38
- section {
44
+ section,
45
+ summary {
39
46
  display: block;
40
47
  }
41
48
 
42
49
  /**
43
- * Correct the font size and margin on `h1` elements within `section` and
44
- * `article` contexts in Chrome, Firefox, and Safari.
50
+ * 1. Correct `inline-block` display not defined in IE 8/9.
51
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
45
52
  */
46
53
 
47
- h1 {
48
- font-size: 2em;
49
- margin: 0.67em 0;
54
+ audio,
55
+ canvas,
56
+ progress,
57
+ video {
58
+ display: inline-block; /* 1 */
59
+ vertical-align: baseline; /* 2 */
50
60
  }
51
61
 
52
- /* Grouping content
53
- ========================================================================== */
54
-
55
62
  /**
56
- * Add the correct display in IE 9-.
57
- * 1. Add the correct display in IE.
63
+ * Prevent modern browsers from displaying `audio` without controls.
64
+ * Remove excess height in iOS 5 devices.
58
65
  */
59
66
 
60
- figcaption,
61
- figure,
62
- main { /* 1 */
63
- display: block;
67
+ audio:not([controls]) {
68
+ display: none;
69
+ height: 0;
64
70
  }
65
71
 
66
72
  /**
67
- * Add the correct margin in IE 8.
73
+ * Address `[hidden]` styling not present in IE 8/9/10.
74
+ * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
68
75
  */
69
76
 
70
- figure {
71
- margin: 1em 40px;
77
+ [hidden],
78
+ template {
79
+ display: none;
72
80
  }
73
81
 
82
+ /* Links
83
+ ========================================================================== */
84
+
74
85
  /**
75
- * 1. Add the correct box sizing in Firefox.
76
- * 2. Show the overflow in Edge and IE.
86
+ * Remove the gray background color from active links in IE 10.
77
87
  */
78
88
 
79
- hr {
80
- box-sizing: content-box; /* 1 */
81
- height: 0; /* 1 */
82
- overflow: visible; /* 2 */
89
+ a {
90
+ background-color: transparent;
83
91
  }
84
92
 
85
93
  /**
86
- * 1. Correct the inheritance and scaling of font size in all browsers.
87
- * 2. Correct the odd `em` font sizing in all browsers.
94
+ * Improve readability when focused and also mouse hovered in all browsers.
88
95
  */
89
96
 
90
- pre {
91
- font-family: monospace, monospace; /* 1 */
92
- font-size: 1em; /* 2 */
97
+ a:active,
98
+ a:hover {
99
+ outline: 0;
93
100
  }
94
101
 
95
102
  /* Text-level semantics
96
103
  ========================================================================== */
97
104
 
98
105
  /**
99
- * 1. Remove the gray background on active links in IE 10.
100
- * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
101
- */
102
-
103
- a {
104
- background-color: transparent; /* 1 */
105
- -webkit-text-decoration-skip: objects; /* 2 */
106
- }
107
-
108
- /**
109
- * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
110
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
106
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
111
107
  */
112
108
 
113
109
  abbr[title] {
114
- border-bottom: none; /* 1 */
115
- text-decoration: underline; /* 2 */
116
- text-decoration: underline dotted; /* 2 */
117
- }
118
-
119
- /**
120
- * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
121
- */
122
-
123
- b,
124
- strong {
125
- font-weight: inherit;
110
+ border-bottom: 1px dotted;
126
111
  }
127
112
 
128
113
  /**
129
- * Add the correct font weight in Chrome, Edge, and Safari.
114
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
130
115
  */
131
116
 
132
117
  b,
133
118
  strong {
134
- font-weight: bolder;
119
+ font-weight: bold;
135
120
  }
136
121
 
137
122
  /**
138
- * 1. Correct the inheritance and scaling of font size in all browsers.
139
- * 2. Correct the odd `em` font sizing in all browsers.
123
+ * Address styling not present in Safari and Chrome.
140
124
  */
141
125
 
142
- code,
143
- kbd,
144
- samp {
145
- font-family: monospace, monospace; /* 1 */
146
- font-size: 1em; /* 2 */
126
+ dfn {
127
+ font-style: italic;
147
128
  }
148
129
 
149
130
  /**
150
- * Add the correct font style in Android 4.3-.
131
+ * Address variable `h1` font-size and margin within `section` and `article`
132
+ * contexts in Firefox 4+, Safari, and Chrome.
151
133
  */
152
134
 
153
- dfn {
154
- font-style: italic;
135
+ h1 {
136
+ font-size: 2em;
137
+ margin: 0.67em 0;
155
138
  }
156
139
 
157
140
  /**
158
- * Add the correct background and color in IE 9-.
141
+ * Address styling not present in IE 8/9.
159
142
  */
160
143
 
161
144
  mark {
162
- background-color: #ff0;
145
+ background: #ff0;
163
146
  color: #000;
164
147
  }
165
148
 
166
149
  /**
167
- * Add the correct font size in all browsers.
150
+ * Address inconsistent and variable font size in all browsers.
168
151
  */
169
152
 
170
153
  small {
@@ -172,8 +155,7 @@ small {
172
155
  }
173
156
 
174
157
  /**
175
- * Prevent `sub` and `sup` elements from affecting the line height in
176
- * all browsers.
158
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
177
159
  */
178
160
 
179
161
  sub,
@@ -184,57 +166,87 @@ sup {
184
166
  vertical-align: baseline;
185
167
  }
186
168
 
169
+ sup {
170
+ top: -0.5em;
171
+ }
172
+
187
173
  sub {
188
174
  bottom: -0.25em;
189
175
  }
190
176
 
191
- sup {
192
- top: -0.5em;
177
+ /* Embedded content
178
+ ========================================================================== */
179
+
180
+ /**
181
+ * Remove border when inside `a` element in IE 8/9/10.
182
+ */
183
+
184
+ img {
185
+ border: 0;
193
186
  }
194
187
 
195
- /* Embedded content
188
+ /**
189
+ * Correct overflow not hidden in IE 9/10/11.
190
+ */
191
+
192
+ svg:not(:root) {
193
+ overflow: hidden;
194
+ }
195
+
196
+ /* Grouping content
196
197
  ========================================================================== */
197
198
 
198
199
  /**
199
- * Add the correct display in IE 9-.
200
+ * Address margin not present in IE 8/9 and Safari.
200
201
  */
201
202
 
202
- audio,
203
- video {
204
- display: inline-block;
203
+ figure {
204
+ margin: 1em 40px;
205
205
  }
206
206
 
207
207
  /**
208
- * Add the correct display in iOS 4-7.
208
+ * Address differences between Firefox and other browsers.
209
209
  */
210
210
 
211
- audio:not([controls]) {
212
- display: none;
211
+ hr {
212
+ -moz-box-sizing: content-box;
213
+ box-sizing: content-box;
213
214
  height: 0;
214
215
  }
215
216
 
216
217
  /**
217
- * Remove the border on images inside links in IE 10-.
218
+ * Contain overflow in all browsers.
218
219
  */
219
220
 
220
- img {
221
- border-style: none;
221
+ pre {
222
+ overflow: auto;
222
223
  }
223
224
 
224
225
  /**
225
- * Hide the overflow in IE.
226
+ * Address odd `em`-unit font size rendering in all browsers.
226
227
  */
227
228
 
228
- svg:not(:root) {
229
- overflow: hidden;
229
+ code,
230
+ kbd,
231
+ pre,
232
+ samp {
233
+ font-family: monospace, monospace;
234
+ font-size: 1em;
230
235
  }
231
236
 
232
237
  /* Forms
233
238
  ========================================================================== */
234
239
 
235
240
  /**
236
- * 1. Change the font styles in all browsers (opinionated).
237
- * 2. Remove the margin in Firefox and Safari.
241
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
242
+ * styling of `select`, unless a `border` property is set.
243
+ */
244
+
245
+ /**
246
+ * 1. Correct color not being inherited.
247
+ * Known issue: affects color of disabled elements.
248
+ * 2. Correct font properties not being inherited.
249
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
238
250
  */
239
251
 
240
252
  button,
@@ -242,206 +254,174 @@ input,
242
254
  optgroup,
243
255
  select,
244
256
  textarea {
245
- font-family: sans-serif; /* 1 */
246
- font-size: 100%; /* 1 */
247
- line-height: 1.15; /* 1 */
248
- margin: 0; /* 2 */
257
+ color: inherit; /* 1 */
258
+ font: inherit; /* 2 */
259
+ margin: 0; /* 3 */
249
260
  }
250
261
 
251
262
  /**
252
- * Show the overflow in IE.
253
- * 1. Show the overflow in Edge.
263
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
254
264
  */
255
265
 
256
- button,
257
- input { /* 1 */
266
+ button {
258
267
  overflow: visible;
259
268
  }
260
269
 
261
270
  /**
262
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
263
- * 1. Remove the inheritance of text transform in Firefox.
271
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
272
+ * All other form control elements do not inherit `text-transform` values.
273
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
274
+ * Correct `select` style inheritance in Firefox.
264
275
  */
265
276
 
266
277
  button,
267
- select { /* 1 */
278
+ select {
268
279
  text-transform: none;
269
280
  }
270
281
 
271
282
  /**
272
- * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
273
- * controls in Android 4.
274
- * 2. Correct the inability to style clickable types in iOS and Safari.
283
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
284
+ * and `video` controls.
285
+ * 2. Correct inability to style clickable `input` types in iOS.
286
+ * 3. Improve usability and consistency of cursor style between image-type
287
+ * `input` and others.
275
288
  */
276
289
 
277
290
  button,
278
- html [type="button"], /* 1 */
279
- [type="reset"],
280
- [type="submit"] {
291
+ html input[type="button"], /* 1 */
292
+ input[type="reset"],
293
+ input[type="submit"] {
281
294
  -webkit-appearance: button; /* 2 */
295
+ cursor: pointer; /* 3 */
282
296
  }
283
297
 
284
298
  /**
285
- * Remove the inner border and padding in Firefox.
299
+ * Re-set default cursor for disabled elements.
286
300
  */
287
301
 
288
- button::-moz-focus-inner,
289
- [type="button"]::-moz-focus-inner,
290
- [type="reset"]::-moz-focus-inner,
291
- [type="submit"]::-moz-focus-inner {
292
- border-style: none;
293
- padding: 0;
302
+ button[disabled],
303
+ html input[disabled] {
304
+ cursor: default;
294
305
  }
295
306
 
296
307
  /**
297
- * Restore the focus styles unset by the previous rule.
308
+ * Remove inner padding and border in Firefox 4+.
298
309
  */
299
310
 
300
- button:-moz-focusring,
301
- [type="button"]:-moz-focusring,
302
- [type="reset"]:-moz-focusring,
303
- [type="submit"]:-moz-focusring {
304
- outline: 1px dotted ButtonText;
305
- }
306
-
307
- /**
308
- * Correct the padding in Firefox.
309
- */
310
-
311
- fieldset {
312
- padding: 0.35em 0.75em 0.625em;
313
- }
314
-
315
- /**
316
- * 1. Correct the text wrapping in Edge and IE.
317
- * 2. Correct the color inheritance from `fieldset` elements in IE.
318
- * 3. Remove the padding so developers are not caught out when they zero out
319
- * `fieldset` elements in all browsers.
320
- */
321
-
322
- legend {
323
- box-sizing: border-box; /* 1 */
324
- color: inherit; /* 2 */
325
- display: table; /* 1 */
326
- max-width: 100%; /* 1 */
327
- padding: 0; /* 3 */
328
- white-space: normal; /* 1 */
329
- }
330
-
331
- /**
332
- * 1. Add the correct display in IE 9-.
333
- * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
334
- */
335
-
336
- progress {
337
- display: inline-block; /* 1 */
338
- vertical-align: baseline; /* 2 */
311
+ button::-moz-focus-inner,
312
+ input::-moz-focus-inner {
313
+ border: 0;
314
+ padding: 0;
339
315
  }
340
316
 
341
317
  /**
342
- * Remove the default vertical scrollbar in IE.
318
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
319
+ * the UA stylesheet.
343
320
  */
344
321
 
345
- textarea {
346
- overflow: auto;
322
+ input {
323
+ line-height: normal;
347
324
  }
348
325
 
349
326
  /**
350
- * 1. Add the correct box sizing in IE 10-.
351
- * 2. Remove the padding in IE 10-.
327
+ * It's recommended that you don't attempt to style these elements.
328
+ * Firefox's implementation doesn't respect box-sizing, padding, or width.
329
+ *
330
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
331
+ * 2. Remove excess padding in IE 8/9/10.
352
332
  */
353
333
 
354
- [type="checkbox"],
355
- [type="radio"] {
334
+ input[type="checkbox"],
335
+ input[type="radio"] {
356
336
  box-sizing: border-box; /* 1 */
357
337
  padding: 0; /* 2 */
358
338
  }
359
339
 
360
340
  /**
361
- * Correct the cursor style of increment and decrement buttons in Chrome.
341
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
342
+ * `font-size` values of the `input`, it causes the cursor style of the
343
+ * decrement button to change from `default` to `text`.
362
344
  */
363
345
 
364
- [type="number"]::-webkit-inner-spin-button,
365
- [type="number"]::-webkit-outer-spin-button {
346
+ input[type="number"]::-webkit-inner-spin-button,
347
+ input[type="number"]::-webkit-outer-spin-button {
366
348
  height: auto;
367
349
  }
368
350
 
369
351
  /**
370
- * 1. Correct the odd appearance in Chrome and Safari.
371
- * 2. Correct the outline style in Safari.
352
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
354
+ * (include `-moz` to future-proof).
372
355
  */
373
356
 
374
- [type="search"] {
357
+ input[type="search"] {
375
358
  -webkit-appearance: textfield; /* 1 */
376
- outline-offset: -2px; /* 2 */
359
+ -moz-box-sizing: content-box;
360
+ -webkit-box-sizing: content-box; /* 2 */
361
+ box-sizing: content-box;
377
362
  }
378
363
 
379
364
  /**
380
- * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
365
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
366
+ * Safari (but not Chrome) clips the cancel button when the search input has
367
+ * padding (and `textfield` appearance).
381
368
  */
382
369
 
383
- [type="search"]::-webkit-search-cancel-button,
384
- [type="search"]::-webkit-search-decoration {
370
+ input[type="search"]::-webkit-search-cancel-button,
371
+ input[type="search"]::-webkit-search-decoration {
385
372
  -webkit-appearance: none;
386
373
  }
387
374
 
388
375
  /**
389
- * 1. Correct the inability to style clickable types in iOS and Safari.
390
- * 2. Change font properties to `inherit` in Safari.
376
+ * Define consistent border, margin, and padding.
391
377
  */
392
378
 
393
- ::-webkit-file-upload-button {
394
- -webkit-appearance: button; /* 1 */
395
- font: inherit; /* 2 */
396
- }
397
-
398
- /* Interactive
399
- ========================================================================== */
400
-
401
- /*
402
- * Add the correct display in IE 9-.
403
- * 1. Add the correct display in Edge, IE, and Firefox.
404
- */
405
-
406
- details, /* 1 */
407
- menu {
408
- display: block;
379
+ fieldset {
380
+ border: 1px solid #c0c0c0;
381
+ margin: 0 2px;
382
+ padding: 0.35em 0.625em 0.75em;
409
383
  }
410
384
 
411
- /*
412
- * Add the correct display in all browsers.
385
+ /**
386
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
387
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
413
388
  */
414
389
 
415
- summary {
416
- display: list-item;
390
+ legend {
391
+ border: 0; /* 1 */
392
+ padding: 0; /* 2 */
417
393
  }
418
394
 
419
- /* Scripting
420
- ========================================================================== */
421
-
422
395
  /**
423
- * Add the correct display in IE 9-.
396
+ * Remove default vertical scrollbar in IE 8/9/10/11.
424
397
  */
425
398
 
426
- canvas {
427
- display: inline-block;
399
+ textarea {
400
+ overflow: auto;
428
401
  }
429
402
 
430
403
  /**
431
- * Add the correct display in IE.
404
+ * Don't inherit the `font-weight` (applied by a rule above).
405
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
432
406
  */
433
407
 
434
- template {
435
- display: none;
408
+ optgroup {
409
+ font-weight: bold;
436
410
  }
437
411
 
438
- /* Hidden
412
+ /* Tables
439
413
  ========================================================================== */
440
414
 
441
415
  /**
442
- * Add the correct display in IE 10-.
416
+ * Remove most spacing between table cells.
443
417
  */
444
418
 
445
- [hidden] {
446
- display: none;
419
+ table {
420
+ border-collapse: collapse;
421
+ border-spacing: 0;
422
+ }
423
+
424
+ td,
425
+ th {
426
+ padding: 0;
447
427
  }