kitabu 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +7 -5
  5. data/lib/kitabu.rb +12 -1
  6. data/lib/kitabu/cli.rb +1 -1
  7. data/lib/kitabu/exporter.rb +5 -5
  8. data/lib/kitabu/{parser.rb → exporter/base.rb} +9 -11
  9. data/lib/kitabu/exporter/css.rb +24 -0
  10. data/lib/kitabu/{parser → exporter}/epub.rb +2 -2
  11. data/lib/kitabu/exporter/html.rb +109 -0
  12. data/lib/kitabu/{parser → exporter}/mobi.rb +2 -2
  13. data/lib/kitabu/exporter/pdf.rb +43 -0
  14. data/lib/kitabu/{parser → exporter}/txt.rb +2 -2
  15. data/lib/kitabu/footnotes/base.rb +33 -0
  16. data/lib/kitabu/footnotes/html.rb +52 -0
  17. data/lib/kitabu/footnotes/pdf.rb +47 -0
  18. data/lib/kitabu/source_list.rb +73 -0
  19. data/lib/kitabu/stats.rb +1 -1
  20. data/lib/kitabu/stream.rb +1 -1
  21. data/lib/kitabu/toc/html.rb +6 -6
  22. data/lib/kitabu/version.rb +1 -1
  23. data/spec/kitabu/exporter/css_spec.rb +16 -0
  24. data/spec/kitabu/{parser → exporter}/epub_spec.rb +3 -3
  25. data/spec/kitabu/exporter/html_spec.rb +36 -0
  26. data/spec/kitabu/{parser → exporter}/mobi_spec.rb +3 -3
  27. data/spec/kitabu/{parser → exporter}/pdf_spec.rb +3 -3
  28. data/spec/kitabu/{parser → exporter}/txt_spec.rb +3 -3
  29. data/spec/kitabu/footnotes/html_spec.rb +67 -0
  30. data/spec/kitabu/{parser/html_spec.rb → source_list_spec.rb} +5 -34
  31. data/spec/kitabu/stats_spec.rb +7 -7
  32. data/templates/templates/styles/pdf.scss +1 -47
  33. data/templates/text/04_Dynamic_Content.erb +1 -1
  34. metadata +29 -54
  35. data/examples/kitabu/output/epub/images/.gitkeep +0 -0
  36. data/examples/kitabu/output/epub/images/kitabu-icon.png +0 -0
  37. data/examples/kitabu/output/epub/images/kitabu-icon.svg +0 -19
  38. data/examples/kitabu/output/epub/images/kitabu-word.png +0 -0
  39. data/examples/kitabu/output/epub/images/kitabu-word.svg +0 -14
  40. data/examples/kitabu/output/epub/images/kitabu.png +0 -0
  41. data/examples/kitabu/output/epub/images/kitabu.svg +0 -20
  42. data/examples/kitabu/output/epub/section_0.html +0 -266
  43. data/examples/kitabu/output/epub/section_1.html +0 -246
  44. data/examples/kitabu/output/epub/section_2.html +0 -520
  45. data/examples/kitabu/output/epub/section_3.html +0 -282
  46. data/examples/kitabu/output/epub/section_4.html +0 -276
  47. data/examples/kitabu/output/epub/styles/epub.css +0 -437
  48. data/examples/kitabu/output/epub/styles/html.css +0 -712
  49. data/examples/kitabu/output/epub/styles/pdf.css +0 -840
  50. data/examples/kitabu/output/epub/styles/print.css +0 -1278
  51. data/examples/kitabu/output/epub/toc.html +0 -37
  52. data/examples/kitabu/output/images/.gitkeep +0 -0
  53. data/examples/kitabu/output/images/kitabu-icon.png +0 -0
  54. data/examples/kitabu/output/images/kitabu-icon.svg +0 -19
  55. data/examples/kitabu/output/images/kitabu-word.png +0 -0
  56. data/examples/kitabu/output/images/kitabu-word.svg +0 -14
  57. data/examples/kitabu/output/images/kitabu.png +0 -0
  58. data/examples/kitabu/output/images/kitabu.svg +0 -20
  59. data/examples/kitabu/output/kitabu.epub +0 -0
  60. data/examples/kitabu/output/kitabu.html +0 -513
  61. data/examples/kitabu/output/kitabu.mobi +0 -0
  62. data/examples/kitabu/output/kitabu.pdf +0 -0
  63. data/examples/kitabu/output/kitabu.pdf.html +0 -729
  64. data/examples/kitabu/output/kitabu.print.html +0 -729
  65. data/examples/kitabu/output/kitabu.print.pdf +0 -0
  66. data/examples/kitabu/output/kitabu.txt +0 -440
  67. data/examples/kitabu/output/styles/epub.css +0 -437
  68. data/examples/kitabu/output/styles/html.css +0 -712
  69. data/examples/kitabu/output/styles/pdf.css +0 -840
  70. data/examples/kitabu/output/styles/print.css +0 -1278
  71. data/lib/kitabu/parser/html.rb +0 -208
  72. data/lib/kitabu/parser/pdf.rb +0 -88
@@ -1,437 +0,0 @@
1
- /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
2
- /**
3
- * 1. Set default font family to sans-serif.
4
- * 2. Prevent iOS text size adjust after orientation change, without disabling
5
- * user zoom.
6
- */
7
- /* line 9, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
8
- html {
9
- font-family: sans-serif;
10
- /* 1 */
11
- -ms-text-size-adjust: 100%;
12
- /* 2 */
13
- -webkit-text-size-adjust: 100%;
14
- /* 2 */
15
- }
16
-
17
- /**
18
- * Remove default margin.
19
- */
20
- /* line 19, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
21
- body {
22
- margin: 0;
23
- }
24
-
25
- /* HTML5 display definitions
26
- ========================================================================== */
27
- /**
28
- * Correct `block` display not defined for any HTML5 element in IE 8/9.
29
- * Correct `block` display not defined for `details` or `summary` in IE 10/11
30
- * and Firefox.
31
- * Correct `block` display not defined for `main` in IE 11.
32
- */
33
- /* line 33, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
34
- article,
35
- aside,
36
- details,
37
- figcaption,
38
- figure,
39
- footer,
40
- header,
41
- hgroup,
42
- main,
43
- menu,
44
- nav,
45
- section,
46
- summary {
47
- display: block;
48
- }
49
-
50
- /**
51
- * 1. Correct `inline-block` display not defined in IE 8/9.
52
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
53
- */
54
- /* line 54, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
55
- audio,
56
- canvas,
57
- progress,
58
- video {
59
- display: inline-block;
60
- /* 1 */
61
- vertical-align: baseline;
62
- /* 2 */
63
- }
64
-
65
- /**
66
- * Prevent modern browsers from displaying `audio` without controls.
67
- * Remove excess height in iOS 5 devices.
68
- */
69
- /* line 67, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
70
- audio:not([controls]) {
71
- display: none;
72
- height: 0;
73
- }
74
-
75
- /**
76
- * Address `[hidden]` styling not present in IE 8/9/10.
77
- * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
78
- */
79
- /* line 77, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
80
- [hidden],
81
- template {
82
- display: none;
83
- }
84
-
85
- /* Links
86
- ========================================================================== */
87
- /**
88
- * Remove the gray background color from active links in IE 10.
89
- */
90
- /* line 89, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
91
- a {
92
- background-color: transparent;
93
- }
94
-
95
- /**
96
- * Improve readability when focused and also mouse hovered in all browsers.
97
- */
98
- /* line 97, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
99
- a:active,
100
- a:hover {
101
- outline: 0;
102
- }
103
-
104
- /* Text-level semantics
105
- ========================================================================== */
106
- /**
107
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
108
- */
109
- /* line 109, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
110
- abbr[title] {
111
- border-bottom: 1px dotted;
112
- }
113
-
114
- /**
115
- * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
116
- */
117
- /* line 117, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
118
- b,
119
- strong {
120
- font-weight: bold;
121
- }
122
-
123
- /**
124
- * Address styling not present in Safari and Chrome.
125
- */
126
- /* line 126, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
127
- dfn {
128
- font-style: italic;
129
- }
130
-
131
- /**
132
- * Address variable `h1` font-size and margin within `section` and `article`
133
- * contexts in Firefox 4+, Safari, and Chrome.
134
- */
135
- /* line 135, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
136
- h1 {
137
- font-size: 2em;
138
- margin: 0.67em 0;
139
- }
140
-
141
- /**
142
- * Address styling not present in IE 8/9.
143
- */
144
- /* line 144, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
145
- mark {
146
- background: #ff0;
147
- color: #000;
148
- }
149
-
150
- /**
151
- * Address inconsistent and variable font size in all browsers.
152
- */
153
- /* line 153, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
154
- small {
155
- font-size: 80%;
156
- }
157
-
158
- /**
159
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
160
- */
161
- /* line 161, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
162
- sub,
163
- sup {
164
- font-size: 75%;
165
- line-height: 0;
166
- position: relative;
167
- vertical-align: baseline;
168
- }
169
-
170
- /* line 169, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
171
- sup {
172
- top: -0.5em;
173
- }
174
-
175
- /* line 173, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
176
- sub {
177
- bottom: -0.25em;
178
- }
179
-
180
- /* Embedded content
181
- ========================================================================== */
182
- /**
183
- * Remove border when inside `a` element in IE 8/9/10.
184
- */
185
- /* line 184, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
186
- img {
187
- border: 0;
188
- }
189
-
190
- /**
191
- * Correct overflow not hidden in IE 9/10/11.
192
- */
193
- /* line 192, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
194
- svg:not(:root) {
195
- overflow: hidden;
196
- }
197
-
198
- /* Grouping content
199
- ========================================================================== */
200
- /**
201
- * Address margin not present in IE 8/9 and Safari.
202
- */
203
- /* line 203, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
204
- figure {
205
- margin: 1em 40px;
206
- }
207
-
208
- /**
209
- * Address differences between Firefox and other browsers.
210
- */
211
- /* line 211, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
212
- hr {
213
- -moz-box-sizing: content-box;
214
- box-sizing: content-box;
215
- height: 0;
216
- }
217
-
218
- /**
219
- * Contain overflow in all browsers.
220
- */
221
- /* line 221, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
222
- pre {
223
- overflow: auto;
224
- }
225
-
226
- /**
227
- * Address odd `em`-unit font size rendering in all browsers.
228
- */
229
- /* line 229, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
230
- code,
231
- kbd,
232
- pre,
233
- samp {
234
- font-family: monospace, monospace;
235
- font-size: 1em;
236
- }
237
-
238
- /* Forms
239
- ========================================================================== */
240
- /**
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
- * 1. Correct color not being inherited.
246
- * Known issue: affects color of disabled elements.
247
- * 2. Correct font properties not being inherited.
248
- * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
249
- */
250
- /* line 252, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
251
- button,
252
- input,
253
- optgroup,
254
- select,
255
- textarea {
256
- color: inherit;
257
- /* 1 */
258
- font: inherit;
259
- /* 2 */
260
- margin: 0;
261
- /* 3 */
262
- }
263
-
264
- /**
265
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
266
- */
267
- /* line 266, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
268
- button {
269
- overflow: visible;
270
- }
271
-
272
- /**
273
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
274
- * All other form control elements do not inherit `text-transform` values.
275
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
276
- * Correct `select` style inheritance in Firefox.
277
- */
278
- /* line 277, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
279
- button,
280
- select {
281
- text-transform: none;
282
- }
283
-
284
- /**
285
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
286
- * and `video` controls.
287
- * 2. Correct inability to style clickable `input` types in iOS.
288
- * 3. Improve usability and consistency of cursor style between image-type
289
- * `input` and others.
290
- */
291
- /* line 290, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
292
- button,
293
- html input[type="button"],
294
- input[type="reset"],
295
- input[type="submit"] {
296
- -webkit-appearance: button;
297
- /* 2 */
298
- cursor: pointer;
299
- /* 3 */
300
- }
301
-
302
- /**
303
- * Re-set default cursor for disabled elements.
304
- */
305
- /* line 302, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
306
- button[disabled],
307
- html input[disabled] {
308
- cursor: default;
309
- }
310
-
311
- /**
312
- * Remove inner padding and border in Firefox 4+.
313
- */
314
- /* line 311, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
315
- button::-moz-focus-inner,
316
- input::-moz-focus-inner {
317
- border: 0;
318
- padding: 0;
319
- }
320
-
321
- /**
322
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
323
- * the UA stylesheet.
324
- */
325
- /* line 322, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
326
- input {
327
- line-height: normal;
328
- }
329
-
330
- /**
331
- * It's recommended that you don't attempt to style these elements.
332
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
333
- *
334
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
335
- * 2. Remove excess padding in IE 8/9/10.
336
- */
337
- /* line 334, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
338
- input[type="checkbox"],
339
- input[type="radio"] {
340
- box-sizing: border-box;
341
- /* 1 */
342
- padding: 0;
343
- /* 2 */
344
- }
345
-
346
- /**
347
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
348
- * `font-size` values of the `input`, it causes the cursor style of the
349
- * decrement button to change from `default` to `text`.
350
- */
351
- /* line 346, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
352
- input[type="number"]::-webkit-inner-spin-button,
353
- input[type="number"]::-webkit-outer-spin-button {
354
- height: auto;
355
- }
356
-
357
- /**
358
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
359
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
360
- * (include `-moz` to future-proof).
361
- */
362
- /* line 357, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
363
- input[type="search"] {
364
- -webkit-appearance: textfield;
365
- /* 1 */
366
- -moz-box-sizing: content-box;
367
- -webkit-box-sizing: content-box;
368
- /* 2 */
369
- box-sizing: content-box;
370
- }
371
-
372
- /**
373
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
374
- * Safari (but not Chrome) clips the cancel button when the search input has
375
- * padding (and `textfield` appearance).
376
- */
377
- /* line 370, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
378
- input[type="search"]::-webkit-search-cancel-button,
379
- input[type="search"]::-webkit-search-decoration {
380
- -webkit-appearance: none;
381
- }
382
-
383
- /**
384
- * Define consistent border, margin, and padding.
385
- */
386
- /* line 379, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
387
- fieldset {
388
- border: 1px solid #c0c0c0;
389
- margin: 0 2px;
390
- padding: 0.35em 0.625em 0.75em;
391
- }
392
-
393
- /**
394
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
395
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
396
- */
397
- /* line 390, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
398
- legend {
399
- border: 0;
400
- /* 1 */
401
- padding: 0;
402
- /* 2 */
403
- }
404
-
405
- /**
406
- * Remove default vertical scrollbar in IE 8/9/10/11.
407
- */
408
- /* line 399, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
409
- textarea {
410
- overflow: auto;
411
- }
412
-
413
- /**
414
- * Don't inherit the `font-weight` (applied by a rule above).
415
- * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
416
- */
417
- /* line 408, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
418
- optgroup {
419
- font-weight: bold;
420
- }
421
-
422
- /* Tables
423
- ========================================================================== */
424
- /**
425
- * Remove most spacing between table cells.
426
- */
427
- /* line 419, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
428
- table {
429
- border-collapse: collapse;
430
- border-spacing: 0;
431
- }
432
-
433
- /* line 424, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
434
- td,
435
- th {
436
- padding: 0;
437
- }
@@ -1,712 +0,0 @@
1
- /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
2
- /**
3
- * 1. Set default font family to sans-serif.
4
- * 2. Prevent iOS text size adjust after orientation change, without disabling
5
- * user zoom.
6
- */
7
- /* line 9, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
8
- html {
9
- font-family: sans-serif;
10
- /* 1 */
11
- -ms-text-size-adjust: 100%;
12
- /* 2 */
13
- -webkit-text-size-adjust: 100%;
14
- /* 2 */
15
- }
16
-
17
- /**
18
- * Remove default margin.
19
- */
20
- /* line 19, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
21
- body {
22
- margin: 0;
23
- }
24
-
25
- /* HTML5 display definitions
26
- ========================================================================== */
27
- /**
28
- * Correct `block` display not defined for any HTML5 element in IE 8/9.
29
- * Correct `block` display not defined for `details` or `summary` in IE 10/11
30
- * and Firefox.
31
- * Correct `block` display not defined for `main` in IE 11.
32
- */
33
- /* line 33, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
34
- article,
35
- aside,
36
- details,
37
- figcaption,
38
- figure,
39
- footer,
40
- header,
41
- hgroup,
42
- main,
43
- menu,
44
- nav,
45
- section,
46
- summary {
47
- display: block;
48
- }
49
-
50
- /**
51
- * 1. Correct `inline-block` display not defined in IE 8/9.
52
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
53
- */
54
- /* line 54, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
55
- audio,
56
- canvas,
57
- progress,
58
- video {
59
- display: inline-block;
60
- /* 1 */
61
- vertical-align: baseline;
62
- /* 2 */
63
- }
64
-
65
- /**
66
- * Prevent modern browsers from displaying `audio` without controls.
67
- * Remove excess height in iOS 5 devices.
68
- */
69
- /* line 67, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
70
- audio:not([controls]) {
71
- display: none;
72
- height: 0;
73
- }
74
-
75
- /**
76
- * Address `[hidden]` styling not present in IE 8/9/10.
77
- * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
78
- */
79
- /* line 77, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
80
- [hidden],
81
- template {
82
- display: none;
83
- }
84
-
85
- /* Links
86
- ========================================================================== */
87
- /**
88
- * Remove the gray background color from active links in IE 10.
89
- */
90
- /* line 89, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
91
- a {
92
- background-color: transparent;
93
- }
94
-
95
- /**
96
- * Improve readability when focused and also mouse hovered in all browsers.
97
- */
98
- /* line 97, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
99
- a:active,
100
- a:hover {
101
- outline: 0;
102
- }
103
-
104
- /* Text-level semantics
105
- ========================================================================== */
106
- /**
107
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
108
- */
109
- /* line 109, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
110
- abbr[title] {
111
- border-bottom: 1px dotted;
112
- }
113
-
114
- /**
115
- * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
116
- */
117
- /* line 117, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
118
- b,
119
- strong {
120
- font-weight: bold;
121
- }
122
-
123
- /**
124
- * Address styling not present in Safari and Chrome.
125
- */
126
- /* line 126, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
127
- dfn {
128
- font-style: italic;
129
- }
130
-
131
- /**
132
- * Address variable `h1` font-size and margin within `section` and `article`
133
- * contexts in Firefox 4+, Safari, and Chrome.
134
- */
135
- /* line 135, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
136
- h1 {
137
- font-size: 2em;
138
- margin: 0.67em 0;
139
- }
140
-
141
- /**
142
- * Address styling not present in IE 8/9.
143
- */
144
- /* line 144, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
145
- mark {
146
- background: #ff0;
147
- color: #000;
148
- }
149
-
150
- /**
151
- * Address inconsistent and variable font size in all browsers.
152
- */
153
- /* line 153, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
154
- small {
155
- font-size: 80%;
156
- }
157
-
158
- /**
159
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
160
- */
161
- /* line 161, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
162
- sub,
163
- sup {
164
- font-size: 75%;
165
- line-height: 0;
166
- position: relative;
167
- vertical-align: baseline;
168
- }
169
-
170
- /* line 169, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
171
- sup {
172
- top: -0.5em;
173
- }
174
-
175
- /* line 173, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
176
- sub {
177
- bottom: -0.25em;
178
- }
179
-
180
- /* Embedded content
181
- ========================================================================== */
182
- /**
183
- * Remove border when inside `a` element in IE 8/9/10.
184
- */
185
- /* line 184, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
186
- img {
187
- border: 0;
188
- }
189
-
190
- /**
191
- * Correct overflow not hidden in IE 9/10/11.
192
- */
193
- /* line 192, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
194
- svg:not(:root) {
195
- overflow: hidden;
196
- }
197
-
198
- /* Grouping content
199
- ========================================================================== */
200
- /**
201
- * Address margin not present in IE 8/9 and Safari.
202
- */
203
- /* line 203, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
204
- figure {
205
- margin: 1em 40px;
206
- }
207
-
208
- /**
209
- * Address differences between Firefox and other browsers.
210
- */
211
- /* line 211, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
212
- hr {
213
- -moz-box-sizing: content-box;
214
- box-sizing: content-box;
215
- height: 0;
216
- }
217
-
218
- /**
219
- * Contain overflow in all browsers.
220
- */
221
- /* line 221, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
222
- pre {
223
- overflow: auto;
224
- }
225
-
226
- /**
227
- * Address odd `em`-unit font size rendering in all browsers.
228
- */
229
- /* line 229, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
230
- code,
231
- kbd,
232
- pre,
233
- samp {
234
- font-family: monospace, monospace;
235
- font-size: 1em;
236
- }
237
-
238
- /* Forms
239
- ========================================================================== */
240
- /**
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
- * 1. Correct color not being inherited.
246
- * Known issue: affects color of disabled elements.
247
- * 2. Correct font properties not being inherited.
248
- * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
249
- */
250
- /* line 252, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
251
- button,
252
- input,
253
- optgroup,
254
- select,
255
- textarea {
256
- color: inherit;
257
- /* 1 */
258
- font: inherit;
259
- /* 2 */
260
- margin: 0;
261
- /* 3 */
262
- }
263
-
264
- /**
265
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
266
- */
267
- /* line 266, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
268
- button {
269
- overflow: visible;
270
- }
271
-
272
- /**
273
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
274
- * All other form control elements do not inherit `text-transform` values.
275
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
276
- * Correct `select` style inheritance in Firefox.
277
- */
278
- /* line 277, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
279
- button,
280
- select {
281
- text-transform: none;
282
- }
283
-
284
- /**
285
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
286
- * and `video` controls.
287
- * 2. Correct inability to style clickable `input` types in iOS.
288
- * 3. Improve usability and consistency of cursor style between image-type
289
- * `input` and others.
290
- */
291
- /* line 290, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
292
- button,
293
- html input[type="button"],
294
- input[type="reset"],
295
- input[type="submit"] {
296
- -webkit-appearance: button;
297
- /* 2 */
298
- cursor: pointer;
299
- /* 3 */
300
- }
301
-
302
- /**
303
- * Re-set default cursor for disabled elements.
304
- */
305
- /* line 302, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
306
- button[disabled],
307
- html input[disabled] {
308
- cursor: default;
309
- }
310
-
311
- /**
312
- * Remove inner padding and border in Firefox 4+.
313
- */
314
- /* line 311, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
315
- button::-moz-focus-inner,
316
- input::-moz-focus-inner {
317
- border: 0;
318
- padding: 0;
319
- }
320
-
321
- /**
322
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
323
- * the UA stylesheet.
324
- */
325
- /* line 322, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
326
- input {
327
- line-height: normal;
328
- }
329
-
330
- /**
331
- * It's recommended that you don't attempt to style these elements.
332
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
333
- *
334
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
335
- * 2. Remove excess padding in IE 8/9/10.
336
- */
337
- /* line 334, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
338
- input[type="checkbox"],
339
- input[type="radio"] {
340
- box-sizing: border-box;
341
- /* 1 */
342
- padding: 0;
343
- /* 2 */
344
- }
345
-
346
- /**
347
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
348
- * `font-size` values of the `input`, it causes the cursor style of the
349
- * decrement button to change from `default` to `text`.
350
- */
351
- /* line 346, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
352
- input[type="number"]::-webkit-inner-spin-button,
353
- input[type="number"]::-webkit-outer-spin-button {
354
- height: auto;
355
- }
356
-
357
- /**
358
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
359
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
360
- * (include `-moz` to future-proof).
361
- */
362
- /* line 357, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
363
- input[type="search"] {
364
- -webkit-appearance: textfield;
365
- /* 1 */
366
- -moz-box-sizing: content-box;
367
- -webkit-box-sizing: content-box;
368
- /* 2 */
369
- box-sizing: content-box;
370
- }
371
-
372
- /**
373
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
374
- * Safari (but not Chrome) clips the cancel button when the search input has
375
- * padding (and `textfield` appearance).
376
- */
377
- /* line 370, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
378
- input[type="search"]::-webkit-search-cancel-button,
379
- input[type="search"]::-webkit-search-decoration {
380
- -webkit-appearance: none;
381
- }
382
-
383
- /**
384
- * Define consistent border, margin, and padding.
385
- */
386
- /* line 379, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
387
- fieldset {
388
- border: 1px solid #c0c0c0;
389
- margin: 0 2px;
390
- padding: 0.35em 0.625em 0.75em;
391
- }
392
-
393
- /**
394
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
395
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
396
- */
397
- /* line 390, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
398
- legend {
399
- border: 0;
400
- /* 1 */
401
- padding: 0;
402
- /* 2 */
403
- }
404
-
405
- /**
406
- * Remove default vertical scrollbar in IE 8/9/10/11.
407
- */
408
- /* line 399, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
409
- textarea {
410
- overflow: auto;
411
- }
412
-
413
- /**
414
- * Don't inherit the `font-weight` (applied by a rule above).
415
- * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
416
- */
417
- /* line 408, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
418
- optgroup {
419
- font-weight: bold;
420
- }
421
-
422
- /* Tables
423
- ========================================================================== */
424
- /**
425
- * Remove most spacing between table cells.
426
- */
427
- /* line 419, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
428
- table {
429
- border-collapse: collapse;
430
- border-spacing: 0;
431
- }
432
-
433
- /* line 424, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
434
- td,
435
- th {
436
- padding: 0;
437
- }
438
-
439
- /* line 6 */
440
- html {
441
- background: #eee;
442
- padding: 50px;
443
- }
444
-
445
- /* line 11 */
446
- body {
447
- width: 700px;
448
- padding: 50px;
449
- background: #fff;
450
- margin: 0 auto;
451
- line-height: 1.4;
452
- }
453
-
454
- /* line 19 */
455
- a {
456
- color: #5091b1;
457
- }
458
-
459
- /* line 23 */
460
- p code,
461
- li code {
462
- color: #3F9C55;
463
- }
464
-
465
- /* line 29 */
466
- .frontcover {
467
- background: #5091b1;
468
- color: #fff;
469
- padding: 50px;
470
- margin: -50px -50px 50px -50px;
471
- text-align: center;
472
- }
473
-
474
- /* line 37 */
475
- .frontcover * {
476
- margin: 0;
477
- }
478
-
479
- /* line 41 */
480
- .frontcover .description {
481
- width: 45%;
482
- margin: 20px auto;
483
- color: rgba(255, 255, 255, 0.7);
484
- }
485
-
486
- /* line 47 */
487
- .frontcover .authors {
488
- font-weight: thin;
489
- text-transform: uppercase;
490
- font-size: 24px;
491
- }
492
-
493
- /* line 54 */
494
- .chapter + .chapter:before {
495
- content: '\2234';
496
- display: block;
497
- text-align: center;
498
- font-size: 24px;
499
- padding: 50px 0;
500
- }
501
-
502
- /* line 62 */
503
- .chapter > h2 {
504
- margin-top: 0;
505
- }
506
-
507
- /* line 67 */
508
- .highlight {
509
- padding: 15px;
510
- }
511
-
512
- /* line 71 */
513
- .highlight .gutter {
514
- color: #ccc;
515
- padding-right: 15px;
516
- }
517
-
518
- /* line 77 */
519
- .toc {
520
- padding-bottom: 50px;
521
- margin-bottom: 50px;
522
- border-bottom: 1px solid #eee;
523
- }
524
-
525
- /* line 84 */
526
- .chapters {
527
- counter-reset: chapter 1;
528
- }
529
-
530
- /* line 88 */
531
- .chapter {
532
- counter-increment: chapter;
533
- }
534
-
535
- /* line 92 */
536
- .chapter h2:before {
537
- content: "Chapter " counter(chapter);
538
- display: block;
539
- text-transform: uppercase;
540
- font-weight: normal;
541
- color: #DB0209;
542
- font-size: 14px;
543
- }
544
-
545
- /* line 101 */
546
- .chapter h3 {
547
- margin-top: 50px;
548
- }
549
-
550
- /* line 106 */
551
- .footnotes {
552
- margin-top: 50px;
553
- padding-top: 25px;
554
- border-top: 1px solid #eee;
555
- }
556
-
557
- /* line 112 */
558
- .footnotes hr {
559
- display: none;
560
- }
561
-
562
- /* line 117 */
563
- .note {
564
- font-size: 13px;
565
- float: right;
566
- overflow: hidden;
567
- position: relative;
568
- padding-left: 50px;
569
- margin: 30px 0;
570
- }
571
-
572
- /* line 126 */
573
- .note:before {
574
- content: '!';
575
- display: inline-block;
576
- font-size: 25px;
577
- width: 10px;
578
- height: 10px;
579
- padding: 15px;
580
- line-height: 15px;
581
- text-align: center;
582
- border-radius: 50%;
583
- border-bottom-right-radius: 0;
584
- position: absolute;
585
- top: 5px;
586
- left: 0;
587
- }
588
-
589
- /* line 142 */
590
- .note.info:before {
591
- background: #f5be28;
592
- color: #fff;
593
- }
594
-
595
- /* line 147 */
596
- .note.warning:before {
597
- background: #e42e24;
598
- color: #fff;
599
- }
600
-
601
- /* line 153 */
602
- .lexers-list {
603
- margin: 0;
604
- padding: 0;
605
- -webkit-columns: 2;
606
- columns: 2;
607
- }
608
-
609
- /* line 160 */
610
- .lexers-list li {
611
- -webkit-column-break-inside: avoid;
612
- break-inside: avoid-column;
613
- }
614
-
615
- /* line 165 */
616
- .lexers-list span {
617
- font-size: 13px;
618
- }
619
-
620
- /* line 169 */
621
- .lexers-list li + li {
622
- margin-top: 15px;
623
- }
624
-
625
- /* line 174 */
626
- .imprint {
627
- margin-top: 50px;
628
- padding-top: 50px;
629
- border-top: 1px solid #eee;
630
- }
631
-
632
- /* line 180 */
633
- .imprint * {
634
- margin: 0;
635
- font-size: 12px;
636
- }
637
-
638
- /* line 185 */
639
- .imprint .description {
640
- margin-bottom: 10px;
641
- }
642
-
643
- /* line 190 */
644
- .table-of-contents {
645
- padding-bottom: 50px;
646
- margin-bottom: 50px;
647
- border-bottom: 1px solid #eee;
648
- }
649
-
650
- /* line 196 */
651
- .table-of-contents .level2 {
652
- counter-increment: toc-level2;
653
- counter-reset: toc-level3;
654
- position: relative;
655
- margin-bottom: 10px;
656
- }
657
-
658
- /* line 203 */
659
- .table-of-contents .level2 a {
660
- text-decoration: none;
661
- color: #000;
662
- text-transform: uppercase;
663
- font-weight: bold;
664
- }
665
-
666
- /* line 210 */
667
- .table-of-contents .level2:before {
668
- content: "Chapter " counter(toc-level2);
669
- font-size: 13px;
670
- text-transform: uppercase;
671
- font-weight: bold;
672
- color: #aaa;
673
- display: block;
674
- }
675
-
676
- /* line 219 */
677
- .table-of-contents .level2 ~ .level2 {
678
- margin-top: 40px;
679
- }
680
-
681
- /* line 223 */
682
- #toc {
683
- -webkit-columns: 2;
684
- columns: 2;
685
- }
686
-
687
- /* line 228 */
688
- #toc > div {
689
- -webkit-column-break-inside: avoid;
690
- break-inside: avoid-column;
691
- }
692
-
693
- /* line 234 */
694
- .go-top {
695
- font-size: 50px;
696
- text-decoration: none;
697
- position: fixed;
698
- bottom: 25px;
699
- right: 25px;
700
- width: 60px;
701
- display: inline-block;
702
- background: rgba(0, 0, 0, 0.2);
703
- text-align: center;
704
- border-radius: 10px;
705
- line-height: 1;
706
- color: rgba(255, 255, 255, 0.4);
707
- padding-top: 10px;
708
- }
709
- /* line 249 */
710
- .go-top:hover {
711
- color: #fff;
712
- }