kitabu 1.0.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -3
  3. data/.travis.yml +18 -0
  4. data/CHANGELOG.md +9 -0
  5. data/Gemfile.lock +67 -50
  6. data/README.md +235 -0
  7. data/attachments/browser-version.png +0 -0
  8. data/attachments/cover.png +0 -0
  9. data/attachments/kitabu.epub +0 -0
  10. data/attachments/kitabu.mobi +0 -0
  11. data/attachments/kitabu.pdf +0 -0
  12. data/{spec/support/mybook/output → examples/kitabu/output/epub/images}/.gitkeep +0 -0
  13. data/examples/kitabu/output/epub/images/kitabu-icon.png +0 -0
  14. data/examples/kitabu/output/epub/images/kitabu-icon.svg +19 -0
  15. data/examples/kitabu/output/epub/images/kitabu-word.png +0 -0
  16. data/examples/kitabu/output/epub/images/kitabu-word.svg +14 -0
  17. data/examples/kitabu/output/epub/images/kitabu.png +0 -0
  18. data/examples/kitabu/output/epub/images/kitabu.svg +20 -0
  19. data/examples/kitabu/output/epub/section_0.html +266 -0
  20. data/examples/kitabu/output/epub/section_1.html +246 -0
  21. data/examples/kitabu/output/epub/section_2.html +520 -0
  22. data/examples/kitabu/output/epub/section_3.html +282 -0
  23. data/examples/kitabu/output/epub/section_4.html +276 -0
  24. data/examples/kitabu/output/epub/styles/epub.css +437 -0
  25. data/examples/kitabu/output/epub/styles/html.css +712 -0
  26. data/examples/kitabu/output/epub/styles/pdf.css +840 -0
  27. data/examples/kitabu/output/epub/styles/print.css +1278 -0
  28. data/examples/kitabu/output/epub/toc.html +37 -0
  29. data/{spec/support/mybook/templates/epub/style.css → examples/kitabu/output/images/.gitkeep} +0 -0
  30. data/examples/kitabu/output/images/kitabu-icon.png +0 -0
  31. data/examples/kitabu/output/images/kitabu-icon.svg +19 -0
  32. data/examples/kitabu/output/images/kitabu-word.png +0 -0
  33. data/examples/kitabu/output/images/kitabu-word.svg +14 -0
  34. data/examples/kitabu/output/images/kitabu.png +0 -0
  35. data/examples/kitabu/output/images/kitabu.svg +20 -0
  36. data/examples/kitabu/output/kitabu.epub +0 -0
  37. data/examples/kitabu/output/kitabu.html +513 -0
  38. data/examples/kitabu/output/kitabu.mobi +0 -0
  39. data/examples/kitabu/output/kitabu.pdf +0 -0
  40. data/examples/kitabu/output/kitabu.pdf.html +729 -0
  41. data/examples/kitabu/output/kitabu.print.html +729 -0
  42. data/examples/kitabu/output/kitabu.print.pdf +0 -0
  43. data/examples/kitabu/output/kitabu.txt +440 -0
  44. data/examples/kitabu/output/styles/epub.css +437 -0
  45. data/examples/kitabu/output/styles/html.css +712 -0
  46. data/examples/kitabu/output/styles/pdf.css +840 -0
  47. data/examples/kitabu/output/styles/print.css +1278 -0
  48. data/kitabu.gemspec +7 -5
  49. data/lib/kitabu.rb +10 -20
  50. data/lib/kitabu/cli.rb +0 -5
  51. data/lib/kitabu/dependency.rb +0 -4
  52. data/lib/kitabu/exporter.rb +2 -0
  53. data/lib/kitabu/extensions/rouge.rb +9 -0
  54. data/lib/kitabu/generator.rb +9 -21
  55. data/lib/kitabu/helpers.rb +47 -0
  56. data/lib/kitabu/markdown.rb +31 -0
  57. data/lib/kitabu/parser.rb +21 -3
  58. data/lib/kitabu/parser/epub.rb +31 -18
  59. data/lib/kitabu/parser/html.rb +48 -29
  60. data/lib/kitabu/parser/mobi.rb +1 -1
  61. data/lib/kitabu/parser/pdf.rb +52 -8
  62. data/lib/kitabu/version.rb +2 -2
  63. data/spec/kitabu/cli/export_spec.rb +4 -4
  64. data/spec/kitabu/cli/new_spec.rb +2 -2
  65. data/spec/kitabu/markdown_spec.rb +24 -0
  66. data/spec/kitabu/parser/html_spec.rb +20 -25
  67. data/spec/kitabu/parser/mobi_spec.rb +14 -0
  68. data/spec/kitabu/parser/pdf_spec.rb +18 -1
  69. data/spec/kitabu/parser/txt_spec.rb +14 -0
  70. data/spec/spec_helper.rb +10 -6
  71. data/spec/support/mybook/config/helper.rb +4 -29
  72. data/spec/support/mybook/config/kitabu.yml +0 -10
  73. data/spec/support/mybook/templates/epub/cover.erb +4 -3
  74. data/{templates → spec/support/mybook/templates/epub}/cover.png +0 -0
  75. data/spec/support/mybook/templates/epub/page.erb +3 -2
  76. data/spec/support/mybook/templates/html/layout.erb +10 -13
  77. data/spec/support/mybook/templates/styles/epub.scss +3 -0
  78. data/spec/support/mybook/templates/styles/html.scss +3 -0
  79. data/spec/support/mybook/templates/styles/pdf.scss +3 -0
  80. data/spec/support/mybook/templates/styles/print.scss +3 -0
  81. data/spec/support/mybook/text/{01_Markdown_Chapter.markdown → 01_Markdown_Chapter.md} +2 -3
  82. data/spec/support/mybook/text/02_ERB_Chapter.md.erb +7 -0
  83. data/spec/support/mybook/text/{04_With_Directory/Some_Chapter.mkdn → 03_With_Directory/Some_Chapter.md} +0 -0
  84. data/spec/support/mybook/text/{CHANGELOG.textile → CHANGELOG.md} +2 -2
  85. data/spec/support/mybook/text/{TOC.textile → TOC.md} +0 -0
  86. data/spec/support/mybook/text/{_00_Introduction.markdown → _00_Introduction.md} +0 -0
  87. data/spec/support/shared.rb +14 -10
  88. data/templates/Gemfile +3 -3
  89. data/templates/Guardfile +1 -5
  90. data/templates/config.erb +5 -5
  91. data/templates/cover.erb +4 -3
  92. data/templates/epub.erb +3 -2
  93. data/templates/helper.rb +28 -29
  94. data/templates/images/.gitkeep +0 -0
  95. data/templates/images/kitabu-icon.png +0 -0
  96. data/templates/images/kitabu-icon.svg +19 -0
  97. data/templates/images/kitabu-word.png +0 -0
  98. data/templates/images/kitabu-word.svg +14 -0
  99. data/templates/images/kitabu.png +0 -0
  100. data/templates/images/kitabu.svg +20 -0
  101. data/{examples/RailsGuides/templates → templates/templates/epub}/cover.erb +4 -3
  102. data/templates/templates/epub/cover.png +0 -0
  103. data/templates/templates/epub/page.erb +16 -0
  104. data/templates/{layout.erb → templates/html/layout.erb} +22 -11
  105. data/templates/templates/styles/epub.scss +1 -0
  106. data/templates/templates/styles/files/_normalize.scss +427 -0
  107. data/templates/templates/styles/html.scss +252 -0
  108. data/templates/templates/styles/pdf.scss +371 -0
  109. data/templates/templates/styles/print.scss +2 -0
  110. data/templates/text/01_Getting_Started.md +26 -0
  111. data/templates/text/02_Creating_Chapters.md +22 -0
  112. data/templates/text/03_Syntax_Highlighting.erb +69 -0
  113. data/templates/text/04_Dynamic_Content.erb +64 -0
  114. data/templates/text/05_Exporting_Files.md +49 -0
  115. metadata +143 -83
  116. data/README.rdoc +0 -218
  117. data/examples/RailsGuides/config/helper.rb +0 -29
  118. data/examples/RailsGuides/config/kitabu.yml +0 -44
  119. data/examples/RailsGuides/images/challenge.png +0 -0
  120. data/examples/RailsGuides/images/posts_index.png +0 -0
  121. data/examples/RailsGuides/images/rails_welcome.png +0 -0
  122. data/examples/RailsGuides/output/RailsGuides.epub +0 -0
  123. data/examples/RailsGuides/output/RailsGuides.html +0 -1556
  124. data/examples/RailsGuides/output/RailsGuides.pdf +3 -4934
  125. data/examples/RailsGuides/templates/layout.css +0 -352
  126. data/examples/RailsGuides/templates/layout.erb +0 -43
  127. data/examples/RailsGuides/templates/syntax.css +0 -62
  128. data/examples/RailsGuides/templates/user.css +0 -19
  129. data/examples/RailsGuides/text/01_Guide_Assumptions.mkdn +0 -13
  130. data/examples/RailsGuides/text/02_What_is_Rails.mkdn +0 -106
  131. data/examples/RailsGuides/text/03_Creating_a_new_Rails_project.mkdn +0 -200
  132. data/examples/RailsGuides/text/04_Hello_Rails.mkdn +0 -62
  133. data/examples/RailsGuides/text/05_Getting_Up_and_Running_Quickly_with_Scaffolding.mkdn +0 -4
  134. data/examples/RailsGuides/text/06_Creating_a_resource.mkdn +0 -503
  135. data/examples/RailsGuides/text/07_Adding_a_second_model.mkdn +0 -232
  136. data/examples/RailsGuides/text/08_Refactoring.mkdn +0 -123
  137. data/examples/RailsGuides/text/09_Deleting_comments.mkdn +0 -57
  138. data/examples/RailsGuides/text/09_Security.mkdn +0 -56
  139. data/examples/RailsGuides/text/10_Building_a_multi_model_form.mkdn +0 -130
  140. data/examples/RailsGuides/text/11_View_helpers.mkdn +0 -50
  141. data/examples/RailsGuides/text/12_Whats_next.mkdn +0 -14
  142. data/examples/RailsGuides/text/13_Configuration_gotchas.mkdn +0 -10
  143. data/lib/kitabu/adapters/markdown.rb +0 -34
  144. data/lib/kitabu/extensions/redcloth.rb +0 -69
  145. data/lib/kitabu/syntax.rb +0 -130
  146. data/spec/kitabu/extensions/redcloth_spec.rb +0 -57
  147. data/spec/kitabu/syntax_spec.rb +0 -106
  148. data/spec/support/mybook/templates/html/layout.css +0 -353
  149. data/spec/support/mybook/templates/html/syntax.css +0 -58
  150. data/spec/support/mybook/templates/html/user.css +0 -1
  151. data/spec/support/mybook/text/02_Textile_Chapter.textile +0 -3
  152. data/spec/support/mybook/text/03_HTML_Chapter.html +0 -3
  153. data/templates/epub.css +0 -500
  154. data/templates/layout.css +0 -353
  155. data/templates/sample.md +0 -6
  156. data/templates/syntax.css +0 -58
  157. data/templates/user.css +0 -1
@@ -0,0 +1,1278 @@
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
+ /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
440
+ /**
441
+ * 1. Set default font family to sans-serif.
442
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
443
+ * user zoom.
444
+ */
445
+ /* line 9, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
446
+ html {
447
+ font-family: sans-serif;
448
+ /* 1 */
449
+ -ms-text-size-adjust: 100%;
450
+ /* 2 */
451
+ -webkit-text-size-adjust: 100%;
452
+ /* 2 */
453
+ }
454
+
455
+ /**
456
+ * Remove default margin.
457
+ */
458
+ /* line 19, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
459
+ body {
460
+ margin: 0;
461
+ }
462
+
463
+ /* HTML5 display definitions
464
+ ========================================================================== */
465
+ /**
466
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
467
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11
468
+ * and Firefox.
469
+ * Correct `block` display not defined for `main` in IE 11.
470
+ */
471
+ /* line 33, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
472
+ article,
473
+ aside,
474
+ details,
475
+ figcaption,
476
+ figure,
477
+ footer,
478
+ header,
479
+ hgroup,
480
+ main,
481
+ menu,
482
+ nav,
483
+ section,
484
+ summary {
485
+ display: block;
486
+ }
487
+
488
+ /**
489
+ * 1. Correct `inline-block` display not defined in IE 8/9.
490
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
491
+ */
492
+ /* line 54, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
493
+ audio,
494
+ canvas,
495
+ progress,
496
+ video {
497
+ display: inline-block;
498
+ /* 1 */
499
+ vertical-align: baseline;
500
+ /* 2 */
501
+ }
502
+
503
+ /**
504
+ * Prevent modern browsers from displaying `audio` without controls.
505
+ * Remove excess height in iOS 5 devices.
506
+ */
507
+ /* line 67, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
508
+ audio:not([controls]) {
509
+ display: none;
510
+ height: 0;
511
+ }
512
+
513
+ /**
514
+ * Address `[hidden]` styling not present in IE 8/9/10.
515
+ * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
516
+ */
517
+ /* line 77, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
518
+ [hidden],
519
+ template {
520
+ display: none;
521
+ }
522
+
523
+ /* Links
524
+ ========================================================================== */
525
+ /**
526
+ * Remove the gray background color from active links in IE 10.
527
+ */
528
+ /* line 89, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
529
+ a {
530
+ background-color: transparent;
531
+ }
532
+
533
+ /**
534
+ * Improve readability when focused and also mouse hovered in all browsers.
535
+ */
536
+ /* line 97, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
537
+ a:active,
538
+ a:hover {
539
+ outline: 0;
540
+ }
541
+
542
+ /* Text-level semantics
543
+ ========================================================================== */
544
+ /**
545
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
546
+ */
547
+ /* line 109, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
548
+ abbr[title] {
549
+ border-bottom: 1px dotted;
550
+ }
551
+
552
+ /**
553
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
554
+ */
555
+ /* line 117, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
556
+ b,
557
+ strong {
558
+ font-weight: bold;
559
+ }
560
+
561
+ /**
562
+ * Address styling not present in Safari and Chrome.
563
+ */
564
+ /* line 126, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
565
+ dfn {
566
+ font-style: italic;
567
+ }
568
+
569
+ /**
570
+ * Address variable `h1` font-size and margin within `section` and `article`
571
+ * contexts in Firefox 4+, Safari, and Chrome.
572
+ */
573
+ /* line 135, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
574
+ h1 {
575
+ font-size: 2em;
576
+ margin: 0.67em 0;
577
+ }
578
+
579
+ /**
580
+ * Address styling not present in IE 8/9.
581
+ */
582
+ /* line 144, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
583
+ mark {
584
+ background: #ff0;
585
+ color: #000;
586
+ }
587
+
588
+ /**
589
+ * Address inconsistent and variable font size in all browsers.
590
+ */
591
+ /* line 153, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
592
+ small {
593
+ font-size: 80%;
594
+ }
595
+
596
+ /**
597
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
598
+ */
599
+ /* line 161, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
600
+ sub,
601
+ sup {
602
+ font-size: 75%;
603
+ line-height: 0;
604
+ position: relative;
605
+ vertical-align: baseline;
606
+ }
607
+
608
+ /* line 169, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
609
+ sup {
610
+ top: -0.5em;
611
+ }
612
+
613
+ /* line 173, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
614
+ sub {
615
+ bottom: -0.25em;
616
+ }
617
+
618
+ /* Embedded content
619
+ ========================================================================== */
620
+ /**
621
+ * Remove border when inside `a` element in IE 8/9/10.
622
+ */
623
+ /* line 184, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
624
+ img {
625
+ border: 0;
626
+ }
627
+
628
+ /**
629
+ * Correct overflow not hidden in IE 9/10/11.
630
+ */
631
+ /* line 192, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
632
+ svg:not(:root) {
633
+ overflow: hidden;
634
+ }
635
+
636
+ /* Grouping content
637
+ ========================================================================== */
638
+ /**
639
+ * Address margin not present in IE 8/9 and Safari.
640
+ */
641
+ /* line 203, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
642
+ figure {
643
+ margin: 1em 40px;
644
+ }
645
+
646
+ /**
647
+ * Address differences between Firefox and other browsers.
648
+ */
649
+ /* line 211, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
650
+ hr {
651
+ -moz-box-sizing: content-box;
652
+ box-sizing: content-box;
653
+ height: 0;
654
+ }
655
+
656
+ /**
657
+ * Contain overflow in all browsers.
658
+ */
659
+ /* line 221, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
660
+ pre {
661
+ overflow: auto;
662
+ }
663
+
664
+ /**
665
+ * Address odd `em`-unit font size rendering in all browsers.
666
+ */
667
+ /* line 229, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
668
+ code,
669
+ kbd,
670
+ pre,
671
+ samp {
672
+ font-family: monospace, monospace;
673
+ font-size: 1em;
674
+ }
675
+
676
+ /* Forms
677
+ ========================================================================== */
678
+ /**
679
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
680
+ * styling of `select`, unless a `border` property is set.
681
+ */
682
+ /**
683
+ * 1. Correct color not being inherited.
684
+ * Known issue: affects color of disabled elements.
685
+ * 2. Correct font properties not being inherited.
686
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
687
+ */
688
+ /* line 252, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
689
+ button,
690
+ input,
691
+ optgroup,
692
+ select,
693
+ textarea {
694
+ color: inherit;
695
+ /* 1 */
696
+ font: inherit;
697
+ /* 2 */
698
+ margin: 0;
699
+ /* 3 */
700
+ }
701
+
702
+ /**
703
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
704
+ */
705
+ /* line 266, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
706
+ button {
707
+ overflow: visible;
708
+ }
709
+
710
+ /**
711
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
712
+ * All other form control elements do not inherit `text-transform` values.
713
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
714
+ * Correct `select` style inheritance in Firefox.
715
+ */
716
+ /* line 277, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
717
+ button,
718
+ select {
719
+ text-transform: none;
720
+ }
721
+
722
+ /**
723
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
724
+ * and `video` controls.
725
+ * 2. Correct inability to style clickable `input` types in iOS.
726
+ * 3. Improve usability and consistency of cursor style between image-type
727
+ * `input` and others.
728
+ */
729
+ /* line 290, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
730
+ button,
731
+ html input[type="button"],
732
+ input[type="reset"],
733
+ input[type="submit"] {
734
+ -webkit-appearance: button;
735
+ /* 2 */
736
+ cursor: pointer;
737
+ /* 3 */
738
+ }
739
+
740
+ /**
741
+ * Re-set default cursor for disabled elements.
742
+ */
743
+ /* line 302, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
744
+ button[disabled],
745
+ html input[disabled] {
746
+ cursor: default;
747
+ }
748
+
749
+ /**
750
+ * Remove inner padding and border in Firefox 4+.
751
+ */
752
+ /* line 311, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
753
+ button::-moz-focus-inner,
754
+ input::-moz-focus-inner {
755
+ border: 0;
756
+ padding: 0;
757
+ }
758
+
759
+ /**
760
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
761
+ * the UA stylesheet.
762
+ */
763
+ /* line 322, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
764
+ input {
765
+ line-height: normal;
766
+ }
767
+
768
+ /**
769
+ * It's recommended that you don't attempt to style these elements.
770
+ * Firefox's implementation doesn't respect box-sizing, padding, or width.
771
+ *
772
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
773
+ * 2. Remove excess padding in IE 8/9/10.
774
+ */
775
+ /* line 334, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
776
+ input[type="checkbox"],
777
+ input[type="radio"] {
778
+ box-sizing: border-box;
779
+ /* 1 */
780
+ padding: 0;
781
+ /* 2 */
782
+ }
783
+
784
+ /**
785
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
786
+ * `font-size` values of the `input`, it causes the cursor style of the
787
+ * decrement button to change from `default` to `text`.
788
+ */
789
+ /* line 346, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
790
+ input[type="number"]::-webkit-inner-spin-button,
791
+ input[type="number"]::-webkit-outer-spin-button {
792
+ height: auto;
793
+ }
794
+
795
+ /**
796
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
797
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
798
+ * (include `-moz` to future-proof).
799
+ */
800
+ /* line 357, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
801
+ input[type="search"] {
802
+ -webkit-appearance: textfield;
803
+ /* 1 */
804
+ -moz-box-sizing: content-box;
805
+ -webkit-box-sizing: content-box;
806
+ /* 2 */
807
+ box-sizing: content-box;
808
+ }
809
+
810
+ /**
811
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
812
+ * Safari (but not Chrome) clips the cancel button when the search input has
813
+ * padding (and `textfield` appearance).
814
+ */
815
+ /* line 370, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
816
+ input[type="search"]::-webkit-search-cancel-button,
817
+ input[type="search"]::-webkit-search-decoration {
818
+ -webkit-appearance: none;
819
+ }
820
+
821
+ /**
822
+ * Define consistent border, margin, and padding.
823
+ */
824
+ /* line 379, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
825
+ fieldset {
826
+ border: 1px solid #c0c0c0;
827
+ margin: 0 2px;
828
+ padding: 0.35em 0.625em 0.75em;
829
+ }
830
+
831
+ /**
832
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
833
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
834
+ */
835
+ /* line 390, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
836
+ legend {
837
+ border: 0;
838
+ /* 1 */
839
+ padding: 0;
840
+ /* 2 */
841
+ }
842
+
843
+ /**
844
+ * Remove default vertical scrollbar in IE 8/9/10/11.
845
+ */
846
+ /* line 399, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
847
+ textarea {
848
+ overflow: auto;
849
+ }
850
+
851
+ /**
852
+ * Don't inherit the `font-weight` (applied by a rule above).
853
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
854
+ */
855
+ /* line 408, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
856
+ optgroup {
857
+ font-weight: bold;
858
+ }
859
+
860
+ /* Tables
861
+ ========================================================================== */
862
+ /**
863
+ * Remove most spacing between table cells.
864
+ */
865
+ /* line 419, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
866
+ table {
867
+ border-collapse: collapse;
868
+ border-spacing: 0;
869
+ }
870
+
871
+ /* line 424, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/files/_normalize.scss */
872
+ td,
873
+ th {
874
+ padding: 0;
875
+ }
876
+
877
+ @page {
878
+ size: 19.05cm 22.86cm portrait;
879
+ }
880
+ @page chapter:left {
881
+ @bottom-left {
882
+ background: #000;
883
+ color: #fff;
884
+ content: counter(page);
885
+ font-size: 12px;
886
+ margin-left: -100px;
887
+ text-align: center;
888
+ width: 35px;
889
+ }
890
+ }
891
+ @page chapter:right {
892
+ @bottom-right {
893
+ background: #000;
894
+ color: #fff;
895
+ content: counter(page);
896
+ font-size: 12px;
897
+ margin-right: -100px;
898
+ text-align: center;
899
+ width: 35px;
900
+ }
901
+ }
902
+ @page frontcover {
903
+ margin: 0;
904
+ background: #5091b1;
905
+ border-left: 50px solid #40748e;
906
+ }
907
+ @page chapter {
908
+ margin: 100px 100px 50px;
909
+ background: #fff;
910
+ @footnotes {
911
+ border-top: thin solid #777;
912
+ margin-top: 1em;
913
+ padding-top: .5em;
914
+ }
915
+ }
916
+ @page white {
917
+ margin: 0;
918
+ background: #fff;
919
+ display: block;
920
+ height: 100%;
921
+ }
922
+ /* line 61, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
923
+ * {
924
+ box-sizing: border-box;
925
+ }
926
+
927
+ /* line 65, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
928
+ body {
929
+ font-family: Caslon, serif;
930
+ font-size: 14px;
931
+ line-height: 1.5;
932
+ }
933
+
934
+ /* line 71, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
935
+ a {
936
+ color: #5091b1;
937
+ }
938
+
939
+ /* line 75, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
940
+ .go-top {
941
+ display: none;
942
+ }
943
+
944
+ /* line 80, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
945
+ .white-page {
946
+ page: white;
947
+ page-break-before: always;
948
+ page-break-after: always;
949
+ }
950
+
951
+ /* line 86, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
952
+ .white-page:before {
953
+ content: 'This page intentionally left blank';
954
+ text-transform: uppercase;
955
+ position: absolute;
956
+ left: 0;
957
+ right: 0;
958
+ text-align: center;
959
+ top: 50%;
960
+ transform: translatey(-50%);
961
+ }
962
+
963
+ /* line 98, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
964
+ .frontcover {
965
+ page: frontcover;
966
+ padding: 50px;
967
+ padding-left: 0;
968
+ text-align: center;
969
+ font-family: sans-serif;
970
+ }
971
+
972
+ /* line 106, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
973
+ .frontcover * {
974
+ margin: 0;
975
+ }
976
+
977
+ /* line 110, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
978
+ .frontcover .logo {
979
+ background: url("../images/kitabu-word.svg") no-repeat center bottom;
980
+ height: 150px;
981
+ margin-bottom: 35px;
982
+ }
983
+
984
+ /* line 116, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
985
+ .frontcover .logo img {
986
+ display: none;
987
+ }
988
+
989
+ /* line 120, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
990
+ .frontcover .description {
991
+ display: inline-block;
992
+ width: 400px;
993
+ font-size: 20px;
994
+ color: rgba(255, 255, 255, 0.7);
995
+ }
996
+
997
+ /* line 127, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
998
+ .frontcover .description:after {
999
+ content: '';
1000
+ display: block;
1001
+ background: url("../images/kitabu-icon.svg") no-repeat center bottom;
1002
+ background-size: 200px;
1003
+ height: 300px;
1004
+ margin-top: 50px;
1005
+ }
1006
+
1007
+ /* line 136, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1008
+ .frontcover .authors {
1009
+ font-size: 24px;
1010
+ padding: 50px;
1011
+ font-weight: bold;
1012
+ margin-top: 30px;
1013
+ color: rgba(0, 0, 0, 0.4);
1014
+ text-transform: uppercase;
1015
+ }
1016
+
1017
+ /* line 145, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1018
+ .frontcover .authors:before {
1019
+ content: 'By ';
1020
+ }
1021
+
1022
+ /* line 150, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1023
+ .chapters {
1024
+ counter-reset: chapter;
1025
+ }
1026
+
1027
+ /* line 154, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1028
+ .chapter {
1029
+ page: chapter;
1030
+ page-break-before: always;
1031
+ counter-increment: chapter;
1032
+ }
1033
+
1034
+ /* line 160, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1035
+ .chapter > h2 {
1036
+ font-family: sans-serif;
1037
+ margin: -100px -100px 75px -100px;
1038
+ background: #5091b1;
1039
+ padding: 100px;
1040
+ color: rgba(255, 255, 255, 0.6);
1041
+ font-size: 40px;
1042
+ }
1043
+
1044
+ /* line 169, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1045
+ .chapter > h3 {
1046
+ margin-top: 40px;
1047
+ }
1048
+
1049
+ /* line 173, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1050
+ .chapter > h2:before {
1051
+ content: "Chapter " counter(chapter);
1052
+ display: block;
1053
+ font-size: 18px;
1054
+ text-transform: uppercase;
1055
+ color: #fff;
1056
+ }
1057
+
1058
+ /* line 182, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1059
+ p code,
1060
+ li code {
1061
+ font-size: 12px;
1062
+ font-family: Menlo, monospace;
1063
+ }
1064
+
1065
+ /* line 188, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1066
+ .highlight {
1067
+ padding: 15px;
1068
+ font-size: 12px;
1069
+ }
1070
+
1071
+ /* line 193, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1072
+ .highlight * {
1073
+ font-family: Menlo, monospace;
1074
+ }
1075
+
1076
+ /* line 197, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1077
+ .highlight .gutter {
1078
+ color: #aaa;
1079
+ padding-right: 15px;
1080
+ }
1081
+
1082
+ /* line 203, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1083
+ .lexers-list {
1084
+ margin: 0;
1085
+ padding: 0;
1086
+ columns: 2;
1087
+ list-style: none;
1088
+ }
1089
+
1090
+ /* line 210, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1091
+ .lexers-list li {
1092
+ -webkit-column-break-inside: avoid;
1093
+ break-inside: avoid-column;
1094
+ }
1095
+
1096
+ /* line 215, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1097
+ .lexers-list span {
1098
+ font-size: 13px;
1099
+ }
1100
+
1101
+ /* line 219, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1102
+ .lexers-list li + li {
1103
+ margin-top: 15px;
1104
+ }
1105
+
1106
+ /* line 224, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1107
+ .fn {
1108
+ counter-increment: footnote;
1109
+ display: prince-footnote;
1110
+ font-size: 9pt;
1111
+ footnote-style-position: inside;
1112
+ line-height: 1.4;
1113
+ position: footnote;
1114
+ }
1115
+
1116
+ /* line 233, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1117
+ .fn::footnote-call {
1118
+ content: "";
1119
+ font-size: 80%;
1120
+ }
1121
+
1122
+ /* line 238, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1123
+ .fn::footnote-marker {
1124
+ padding-right: 0.4em;
1125
+ vertical-align: super;
1126
+ display: none;
1127
+ }
1128
+
1129
+ /* line 244, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1130
+ .footnote a,
1131
+ .fn a {
1132
+ color: #000;
1133
+ }
1134
+
1135
+ /* line 249, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1136
+ .fn code {
1137
+ font-size: 8pt;
1138
+ }
1139
+
1140
+ /* line 254, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1141
+ .table-of-contents {
1142
+ page: chapter;
1143
+ font-family: sans-serif;
1144
+ }
1145
+
1146
+ /* line 259, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1147
+ .table-of-contents > h2 {
1148
+ font-family: sans-serif;
1149
+ margin: -100px -100px 75px -100px;
1150
+ background: #5091b1;
1151
+ padding: 100px;
1152
+ color: rgba(255, 255, 255, 0.6);
1153
+ font-size: 40px;
1154
+ }
1155
+
1156
+ /* line 268, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1157
+ .table-of-contents a {
1158
+ text-decoration: none;
1159
+ }
1160
+
1161
+ /* line 273, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1162
+ .table-of-contents .level4 {
1163
+ display: none;
1164
+ }
1165
+ /* line 274, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1166
+ .table-of-contents .level5 {
1167
+ display: none;
1168
+ }
1169
+ /* line 275, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1170
+ .table-of-contents .level6 {
1171
+ display: none;
1172
+ }
1173
+
1174
+ /* line 278, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1175
+ .table-of-contents * + .level2 {
1176
+ margin-top: 25px;
1177
+ }
1178
+
1179
+ /* line 282, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1180
+ .table-of-contents .level2 a {
1181
+ text-transform: uppercase;
1182
+ font-weight: bold;
1183
+ color: #000;
1184
+ font-size: 20px;
1185
+ position: relative;
1186
+ padding-left: 25px;
1187
+ }
1188
+ /* line 290, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1189
+ .table-of-contents .level2 a:before {
1190
+ content: target-counter(attr(href), page) " ";
1191
+ position: absolute;
1192
+ left: 0;
1193
+ transform: translatex(-100%);
1194
+ }
1195
+
1196
+ /* line 298, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1197
+ .table-of-contents .level3 {
1198
+ padding-left: 25px;
1199
+ }
1200
+
1201
+ /* line 302, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1202
+ .table-of-contents .level3 {
1203
+ margin-top: 10px;
1204
+ }
1205
+
1206
+ /* line 306, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1207
+ .table-of-contents .level3 a {
1208
+ position: relative;
1209
+ color: #777;
1210
+ }
1211
+ /* line 310, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1212
+ .table-of-contents .level3 a:after {
1213
+ content: leader(".") target-counter(attr(href), page) " ";
1214
+ cursor: default;
1215
+ }
1216
+
1217
+ /* line 317, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1218
+ .chapters {
1219
+ counter-reset: fnref;
1220
+ counter-reset: fndesc;
1221
+ }
1222
+
1223
+ /* line 322, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1224
+ .fn-ref {
1225
+ counter-increment: fnref;
1226
+ }
1227
+
1228
+ /* line 326, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1229
+ .fn-desc {
1230
+ counter-increment: fndesc;
1231
+ display: prince-footnote;
1232
+ footnote-style-position: inside;
1233
+ position: footnote;
1234
+ }
1235
+
1236
+ /* line 333, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1237
+ .fn-desc:footnote-marker {
1238
+ vertical-align: super;
1239
+ content: counter(fndesc);
1240
+ margin-right: 5px;
1241
+ }
1242
+
1243
+ /* line 340, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1244
+ .note {
1245
+ font-size: 13px;
1246
+ float: right;
1247
+ overflow: hidden;
1248
+ position: relative;
1249
+ padding-left: 50px;
1250
+ margin: 30px 0;
1251
+ }
1252
+
1253
+ /* line 349, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1254
+ .note:before {
1255
+ content: '!';
1256
+ display: inline-block;
1257
+ font-size: 25px;
1258
+ width: 10px;
1259
+ height: 10px;
1260
+ padding: 15px;
1261
+ line-height: 15px;
1262
+ text-align: center;
1263
+ position: absolute;
1264
+ top: 15px;
1265
+ left: 0;
1266
+ }
1267
+
1268
+ /* line 363, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1269
+ .note.info:before {
1270
+ background: #f5be28;
1271
+ color: #fff;
1272
+ }
1273
+
1274
+ /* line 368, /Users/fnando/Projects/kitabu/examples/kitabu/templates/styles/pdf.scss */
1275
+ .note.warning:before {
1276
+ background: #e42e24;
1277
+ color: #fff;
1278
+ }