kitabu 1.0.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -3
- data/.travis.yml +18 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +67 -50
- data/README.md +235 -0
- data/attachments/browser-version.png +0 -0
- data/attachments/cover.png +0 -0
- data/attachments/kitabu.epub +0 -0
- data/attachments/kitabu.mobi +0 -0
- data/attachments/kitabu.pdf +0 -0
- data/{spec/support/mybook/output → examples/kitabu/output/epub/images}/.gitkeep +0 -0
- data/examples/kitabu/output/epub/images/kitabu-icon.png +0 -0
- data/examples/kitabu/output/epub/images/kitabu-icon.svg +19 -0
- data/examples/kitabu/output/epub/images/kitabu-word.png +0 -0
- data/examples/kitabu/output/epub/images/kitabu-word.svg +14 -0
- data/examples/kitabu/output/epub/images/kitabu.png +0 -0
- data/examples/kitabu/output/epub/images/kitabu.svg +20 -0
- data/examples/kitabu/output/epub/section_0.html +266 -0
- data/examples/kitabu/output/epub/section_1.html +246 -0
- data/examples/kitabu/output/epub/section_2.html +520 -0
- data/examples/kitabu/output/epub/section_3.html +282 -0
- data/examples/kitabu/output/epub/section_4.html +276 -0
- data/examples/kitabu/output/epub/styles/epub.css +437 -0
- data/examples/kitabu/output/epub/styles/html.css +712 -0
- data/examples/kitabu/output/epub/styles/pdf.css +840 -0
- data/examples/kitabu/output/epub/styles/print.css +1278 -0
- data/examples/kitabu/output/epub/toc.html +37 -0
- data/{spec/support/mybook/templates/epub/style.css → examples/kitabu/output/images/.gitkeep} +0 -0
- data/examples/kitabu/output/images/kitabu-icon.png +0 -0
- data/examples/kitabu/output/images/kitabu-icon.svg +19 -0
- data/examples/kitabu/output/images/kitabu-word.png +0 -0
- data/examples/kitabu/output/images/kitabu-word.svg +14 -0
- data/examples/kitabu/output/images/kitabu.png +0 -0
- data/examples/kitabu/output/images/kitabu.svg +20 -0
- data/examples/kitabu/output/kitabu.epub +0 -0
- data/examples/kitabu/output/kitabu.html +513 -0
- data/examples/kitabu/output/kitabu.mobi +0 -0
- data/examples/kitabu/output/kitabu.pdf +0 -0
- data/examples/kitabu/output/kitabu.pdf.html +729 -0
- data/examples/kitabu/output/kitabu.print.html +729 -0
- data/examples/kitabu/output/kitabu.print.pdf +0 -0
- data/examples/kitabu/output/kitabu.txt +440 -0
- data/examples/kitabu/output/styles/epub.css +437 -0
- data/examples/kitabu/output/styles/html.css +712 -0
- data/examples/kitabu/output/styles/pdf.css +840 -0
- data/examples/kitabu/output/styles/print.css +1278 -0
- data/kitabu.gemspec +7 -5
- data/lib/kitabu.rb +10 -20
- data/lib/kitabu/cli.rb +0 -5
- data/lib/kitabu/dependency.rb +0 -4
- data/lib/kitabu/exporter.rb +2 -0
- data/lib/kitabu/extensions/rouge.rb +9 -0
- data/lib/kitabu/generator.rb +9 -21
- data/lib/kitabu/helpers.rb +47 -0
- data/lib/kitabu/markdown.rb +31 -0
- data/lib/kitabu/parser.rb +21 -3
- data/lib/kitabu/parser/epub.rb +31 -18
- data/lib/kitabu/parser/html.rb +48 -29
- data/lib/kitabu/parser/mobi.rb +1 -1
- data/lib/kitabu/parser/pdf.rb +52 -8
- data/lib/kitabu/version.rb +2 -2
- data/spec/kitabu/cli/export_spec.rb +4 -4
- data/spec/kitabu/cli/new_spec.rb +2 -2
- data/spec/kitabu/markdown_spec.rb +24 -0
- data/spec/kitabu/parser/html_spec.rb +20 -25
- data/spec/kitabu/parser/mobi_spec.rb +14 -0
- data/spec/kitabu/parser/pdf_spec.rb +18 -1
- data/spec/kitabu/parser/txt_spec.rb +14 -0
- data/spec/spec_helper.rb +10 -6
- data/spec/support/mybook/config/helper.rb +4 -29
- data/spec/support/mybook/config/kitabu.yml +0 -10
- data/spec/support/mybook/templates/epub/cover.erb +4 -3
- data/{templates → spec/support/mybook/templates/epub}/cover.png +0 -0
- data/spec/support/mybook/templates/epub/page.erb +3 -2
- data/spec/support/mybook/templates/html/layout.erb +10 -13
- data/spec/support/mybook/templates/styles/epub.scss +3 -0
- data/spec/support/mybook/templates/styles/html.scss +3 -0
- data/spec/support/mybook/templates/styles/pdf.scss +3 -0
- data/spec/support/mybook/templates/styles/print.scss +3 -0
- data/spec/support/mybook/text/{01_Markdown_Chapter.markdown → 01_Markdown_Chapter.md} +2 -3
- data/spec/support/mybook/text/02_ERB_Chapter.md.erb +7 -0
- data/spec/support/mybook/text/{04_With_Directory/Some_Chapter.mkdn → 03_With_Directory/Some_Chapter.md} +0 -0
- data/spec/support/mybook/text/{CHANGELOG.textile → CHANGELOG.md} +2 -2
- data/spec/support/mybook/text/{TOC.textile → TOC.md} +0 -0
- data/spec/support/mybook/text/{_00_Introduction.markdown → _00_Introduction.md} +0 -0
- data/spec/support/shared.rb +14 -10
- data/templates/Gemfile +3 -3
- data/templates/Guardfile +1 -5
- data/templates/config.erb +5 -5
- data/templates/cover.erb +4 -3
- data/templates/epub.erb +3 -2
- data/templates/helper.rb +28 -29
- data/templates/images/.gitkeep +0 -0
- data/templates/images/kitabu-icon.png +0 -0
- data/templates/images/kitabu-icon.svg +19 -0
- data/templates/images/kitabu-word.png +0 -0
- data/templates/images/kitabu-word.svg +14 -0
- data/templates/images/kitabu.png +0 -0
- data/templates/images/kitabu.svg +20 -0
- data/{examples/RailsGuides/templates → templates/templates/epub}/cover.erb +4 -3
- data/templates/templates/epub/cover.png +0 -0
- data/templates/templates/epub/page.erb +16 -0
- data/templates/{layout.erb → templates/html/layout.erb} +22 -11
- data/templates/templates/styles/epub.scss +1 -0
- data/templates/templates/styles/files/_normalize.scss +427 -0
- data/templates/templates/styles/html.scss +252 -0
- data/templates/templates/styles/pdf.scss +371 -0
- data/templates/templates/styles/print.scss +2 -0
- data/templates/text/01_Getting_Started.md +26 -0
- data/templates/text/02_Creating_Chapters.md +22 -0
- data/templates/text/03_Syntax_Highlighting.erb +69 -0
- data/templates/text/04_Dynamic_Content.erb +64 -0
- data/templates/text/05_Exporting_Files.md +49 -0
- metadata +143 -83
- data/README.rdoc +0 -218
- data/examples/RailsGuides/config/helper.rb +0 -29
- data/examples/RailsGuides/config/kitabu.yml +0 -44
- data/examples/RailsGuides/images/challenge.png +0 -0
- data/examples/RailsGuides/images/posts_index.png +0 -0
- data/examples/RailsGuides/images/rails_welcome.png +0 -0
- data/examples/RailsGuides/output/RailsGuides.epub +0 -0
- data/examples/RailsGuides/output/RailsGuides.html +0 -1556
- data/examples/RailsGuides/output/RailsGuides.pdf +3 -4934
- data/examples/RailsGuides/templates/layout.css +0 -352
- data/examples/RailsGuides/templates/layout.erb +0 -43
- data/examples/RailsGuides/templates/syntax.css +0 -62
- data/examples/RailsGuides/templates/user.css +0 -19
- data/examples/RailsGuides/text/01_Guide_Assumptions.mkdn +0 -13
- data/examples/RailsGuides/text/02_What_is_Rails.mkdn +0 -106
- data/examples/RailsGuides/text/03_Creating_a_new_Rails_project.mkdn +0 -200
- data/examples/RailsGuides/text/04_Hello_Rails.mkdn +0 -62
- data/examples/RailsGuides/text/05_Getting_Up_and_Running_Quickly_with_Scaffolding.mkdn +0 -4
- data/examples/RailsGuides/text/06_Creating_a_resource.mkdn +0 -503
- data/examples/RailsGuides/text/07_Adding_a_second_model.mkdn +0 -232
- data/examples/RailsGuides/text/08_Refactoring.mkdn +0 -123
- data/examples/RailsGuides/text/09_Deleting_comments.mkdn +0 -57
- data/examples/RailsGuides/text/09_Security.mkdn +0 -56
- data/examples/RailsGuides/text/10_Building_a_multi_model_form.mkdn +0 -130
- data/examples/RailsGuides/text/11_View_helpers.mkdn +0 -50
- data/examples/RailsGuides/text/12_Whats_next.mkdn +0 -14
- data/examples/RailsGuides/text/13_Configuration_gotchas.mkdn +0 -10
- data/lib/kitabu/adapters/markdown.rb +0 -34
- data/lib/kitabu/extensions/redcloth.rb +0 -69
- data/lib/kitabu/syntax.rb +0 -130
- data/spec/kitabu/extensions/redcloth_spec.rb +0 -57
- data/spec/kitabu/syntax_spec.rb +0 -106
- data/spec/support/mybook/templates/html/layout.css +0 -353
- data/spec/support/mybook/templates/html/syntax.css +0 -58
- data/spec/support/mybook/templates/html/user.css +0 -1
- data/spec/support/mybook/text/02_Textile_Chapter.textile +0 -3
- data/spec/support/mybook/text/03_HTML_Chapter.html +0 -3
- data/templates/epub.css +0 -500
- data/templates/layout.css +0 -353
- data/templates/sample.md +0 -6
- data/templates/syntax.css +0 -58
- data/templates/user.css +0 -1
@@ -0,0 +1,840 @@
|
|
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
|
+
@page {
|
440
|
+
size: 19.05cm 22.86cm portrait;
|
441
|
+
}
|
442
|
+
@page chapter:left {
|
443
|
+
@bottom-left {
|
444
|
+
background: #000;
|
445
|
+
color: #fff;
|
446
|
+
content: counter(page);
|
447
|
+
font-size: 12px;
|
448
|
+
margin-left: -100px;
|
449
|
+
text-align: center;
|
450
|
+
width: 35px;
|
451
|
+
}
|
452
|
+
}
|
453
|
+
@page chapter:right {
|
454
|
+
@bottom-right {
|
455
|
+
background: #000;
|
456
|
+
color: #fff;
|
457
|
+
content: counter(page);
|
458
|
+
font-size: 12px;
|
459
|
+
margin-right: -100px;
|
460
|
+
text-align: center;
|
461
|
+
width: 35px;
|
462
|
+
}
|
463
|
+
}
|
464
|
+
@page frontcover {
|
465
|
+
margin: 0;
|
466
|
+
background: #5091b1;
|
467
|
+
border-left: 50px solid #40748e;
|
468
|
+
}
|
469
|
+
@page chapter {
|
470
|
+
margin: 100px 100px 50px;
|
471
|
+
background: #fff;
|
472
|
+
@footnotes {
|
473
|
+
border-top: thin solid #777;
|
474
|
+
margin-top: 1em;
|
475
|
+
padding-top: .5em;
|
476
|
+
}
|
477
|
+
}
|
478
|
+
@page white {
|
479
|
+
margin: 0;
|
480
|
+
background: #fff;
|
481
|
+
display: block;
|
482
|
+
height: 100%;
|
483
|
+
}
|
484
|
+
/* line 61 */
|
485
|
+
* {
|
486
|
+
box-sizing: border-box;
|
487
|
+
}
|
488
|
+
|
489
|
+
/* line 65 */
|
490
|
+
body {
|
491
|
+
font-family: Caslon, serif;
|
492
|
+
font-size: 14px;
|
493
|
+
line-height: 1.5;
|
494
|
+
}
|
495
|
+
|
496
|
+
/* line 71 */
|
497
|
+
a {
|
498
|
+
color: #5091b1;
|
499
|
+
}
|
500
|
+
|
501
|
+
/* line 75 */
|
502
|
+
.go-top {
|
503
|
+
display: none;
|
504
|
+
}
|
505
|
+
|
506
|
+
/* line 80 */
|
507
|
+
.white-page {
|
508
|
+
page: white;
|
509
|
+
page-break-before: always;
|
510
|
+
page-break-after: always;
|
511
|
+
}
|
512
|
+
|
513
|
+
/* line 86 */
|
514
|
+
.white-page:before {
|
515
|
+
content: 'This page intentionally left blank';
|
516
|
+
text-transform: uppercase;
|
517
|
+
position: absolute;
|
518
|
+
left: 0;
|
519
|
+
right: 0;
|
520
|
+
text-align: center;
|
521
|
+
top: 50%;
|
522
|
+
transform: translatey(-50%);
|
523
|
+
}
|
524
|
+
|
525
|
+
/* line 98 */
|
526
|
+
.frontcover {
|
527
|
+
page: frontcover;
|
528
|
+
padding: 50px;
|
529
|
+
padding-left: 0;
|
530
|
+
text-align: center;
|
531
|
+
font-family: sans-serif;
|
532
|
+
}
|
533
|
+
|
534
|
+
/* line 106 */
|
535
|
+
.frontcover * {
|
536
|
+
margin: 0;
|
537
|
+
}
|
538
|
+
|
539
|
+
/* line 110 */
|
540
|
+
.frontcover .logo {
|
541
|
+
background: url("../images/kitabu-word.svg") no-repeat center bottom;
|
542
|
+
height: 150px;
|
543
|
+
margin-bottom: 35px;
|
544
|
+
}
|
545
|
+
|
546
|
+
/* line 116 */
|
547
|
+
.frontcover .logo img {
|
548
|
+
display: none;
|
549
|
+
}
|
550
|
+
|
551
|
+
/* line 120 */
|
552
|
+
.frontcover .description {
|
553
|
+
display: inline-block;
|
554
|
+
width: 400px;
|
555
|
+
font-size: 20px;
|
556
|
+
color: rgba(255, 255, 255, 0.7);
|
557
|
+
}
|
558
|
+
|
559
|
+
/* line 127 */
|
560
|
+
.frontcover .description:after {
|
561
|
+
content: '';
|
562
|
+
display: block;
|
563
|
+
background: url("../images/kitabu-icon.svg") no-repeat center bottom;
|
564
|
+
background-size: 200px;
|
565
|
+
height: 300px;
|
566
|
+
margin-top: 50px;
|
567
|
+
}
|
568
|
+
|
569
|
+
/* line 136 */
|
570
|
+
.frontcover .authors {
|
571
|
+
font-size: 24px;
|
572
|
+
padding: 50px;
|
573
|
+
font-weight: bold;
|
574
|
+
margin-top: 30px;
|
575
|
+
color: rgba(0, 0, 0, 0.4);
|
576
|
+
text-transform: uppercase;
|
577
|
+
}
|
578
|
+
|
579
|
+
/* line 145 */
|
580
|
+
.frontcover .authors:before {
|
581
|
+
content: 'By ';
|
582
|
+
}
|
583
|
+
|
584
|
+
/* line 150 */
|
585
|
+
.chapters {
|
586
|
+
counter-reset: chapter;
|
587
|
+
}
|
588
|
+
|
589
|
+
/* line 154 */
|
590
|
+
.chapter {
|
591
|
+
page: chapter;
|
592
|
+
page-break-before: always;
|
593
|
+
counter-increment: chapter;
|
594
|
+
}
|
595
|
+
|
596
|
+
/* line 160 */
|
597
|
+
.chapter > h2 {
|
598
|
+
font-family: sans-serif;
|
599
|
+
margin: -100px -100px 75px -100px;
|
600
|
+
background: #5091b1;
|
601
|
+
padding: 100px;
|
602
|
+
color: rgba(255, 255, 255, 0.6);
|
603
|
+
font-size: 40px;
|
604
|
+
}
|
605
|
+
|
606
|
+
/* line 169 */
|
607
|
+
.chapter > h3 {
|
608
|
+
margin-top: 40px;
|
609
|
+
}
|
610
|
+
|
611
|
+
/* line 173 */
|
612
|
+
.chapter > h2:before {
|
613
|
+
content: "Chapter " counter(chapter);
|
614
|
+
display: block;
|
615
|
+
font-size: 18px;
|
616
|
+
text-transform: uppercase;
|
617
|
+
color: #fff;
|
618
|
+
}
|
619
|
+
|
620
|
+
/* line 182 */
|
621
|
+
p code,
|
622
|
+
li code {
|
623
|
+
font-size: 12px;
|
624
|
+
font-family: Menlo, monospace;
|
625
|
+
}
|
626
|
+
|
627
|
+
/* line 188 */
|
628
|
+
.highlight {
|
629
|
+
padding: 15px;
|
630
|
+
font-size: 12px;
|
631
|
+
}
|
632
|
+
|
633
|
+
/* line 193 */
|
634
|
+
.highlight * {
|
635
|
+
font-family: Menlo, monospace;
|
636
|
+
}
|
637
|
+
|
638
|
+
/* line 197 */
|
639
|
+
.highlight .gutter {
|
640
|
+
color: #aaa;
|
641
|
+
padding-right: 15px;
|
642
|
+
}
|
643
|
+
|
644
|
+
/* line 203 */
|
645
|
+
.lexers-list {
|
646
|
+
margin: 0;
|
647
|
+
padding: 0;
|
648
|
+
columns: 2;
|
649
|
+
list-style: none;
|
650
|
+
}
|
651
|
+
|
652
|
+
/* line 210 */
|
653
|
+
.lexers-list li {
|
654
|
+
-webkit-column-break-inside: avoid;
|
655
|
+
break-inside: avoid-column;
|
656
|
+
}
|
657
|
+
|
658
|
+
/* line 215 */
|
659
|
+
.lexers-list span {
|
660
|
+
font-size: 13px;
|
661
|
+
}
|
662
|
+
|
663
|
+
/* line 219 */
|
664
|
+
.lexers-list li + li {
|
665
|
+
margin-top: 15px;
|
666
|
+
}
|
667
|
+
|
668
|
+
/* line 224 */
|
669
|
+
.fn {
|
670
|
+
counter-increment: footnote;
|
671
|
+
display: prince-footnote;
|
672
|
+
font-size: 9pt;
|
673
|
+
footnote-style-position: inside;
|
674
|
+
line-height: 1.4;
|
675
|
+
position: footnote;
|
676
|
+
}
|
677
|
+
|
678
|
+
/* line 233 */
|
679
|
+
.fn::footnote-call {
|
680
|
+
content: "";
|
681
|
+
font-size: 80%;
|
682
|
+
}
|
683
|
+
|
684
|
+
/* line 238 */
|
685
|
+
.fn::footnote-marker {
|
686
|
+
padding-right: 0.4em;
|
687
|
+
vertical-align: super;
|
688
|
+
display: none;
|
689
|
+
}
|
690
|
+
|
691
|
+
/* line 244 */
|
692
|
+
.footnote a,
|
693
|
+
.fn a {
|
694
|
+
color: #000;
|
695
|
+
}
|
696
|
+
|
697
|
+
/* line 249 */
|
698
|
+
.fn code {
|
699
|
+
font-size: 8pt;
|
700
|
+
}
|
701
|
+
|
702
|
+
/* line 254 */
|
703
|
+
.table-of-contents {
|
704
|
+
page: chapter;
|
705
|
+
font-family: sans-serif;
|
706
|
+
}
|
707
|
+
|
708
|
+
/* line 259 */
|
709
|
+
.table-of-contents > h2 {
|
710
|
+
font-family: sans-serif;
|
711
|
+
margin: -100px -100px 75px -100px;
|
712
|
+
background: #5091b1;
|
713
|
+
padding: 100px;
|
714
|
+
color: rgba(255, 255, 255, 0.6);
|
715
|
+
font-size: 40px;
|
716
|
+
}
|
717
|
+
|
718
|
+
/* line 268 */
|
719
|
+
.table-of-contents a {
|
720
|
+
text-decoration: none;
|
721
|
+
}
|
722
|
+
|
723
|
+
/* line 273 */
|
724
|
+
.table-of-contents .level4 {
|
725
|
+
display: none;
|
726
|
+
}
|
727
|
+
/* line 274 */
|
728
|
+
.table-of-contents .level5 {
|
729
|
+
display: none;
|
730
|
+
}
|
731
|
+
/* line 275 */
|
732
|
+
.table-of-contents .level6 {
|
733
|
+
display: none;
|
734
|
+
}
|
735
|
+
|
736
|
+
/* line 278 */
|
737
|
+
.table-of-contents * + .level2 {
|
738
|
+
margin-top: 25px;
|
739
|
+
}
|
740
|
+
|
741
|
+
/* line 282 */
|
742
|
+
.table-of-contents .level2 a {
|
743
|
+
text-transform: uppercase;
|
744
|
+
font-weight: bold;
|
745
|
+
color: #000;
|
746
|
+
font-size: 20px;
|
747
|
+
position: relative;
|
748
|
+
padding-left: 25px;
|
749
|
+
}
|
750
|
+
/* line 290 */
|
751
|
+
.table-of-contents .level2 a:before {
|
752
|
+
content: target-counter(attr(href), page) " ";
|
753
|
+
position: absolute;
|
754
|
+
left: 0;
|
755
|
+
transform: translatex(-100%);
|
756
|
+
}
|
757
|
+
|
758
|
+
/* line 298 */
|
759
|
+
.table-of-contents .level3 {
|
760
|
+
padding-left: 25px;
|
761
|
+
}
|
762
|
+
|
763
|
+
/* line 302 */
|
764
|
+
.table-of-contents .level3 {
|
765
|
+
margin-top: 10px;
|
766
|
+
}
|
767
|
+
|
768
|
+
/* line 306 */
|
769
|
+
.table-of-contents .level3 a {
|
770
|
+
position: relative;
|
771
|
+
color: #777;
|
772
|
+
}
|
773
|
+
/* line 310 */
|
774
|
+
.table-of-contents .level3 a:after {
|
775
|
+
content: leader(".") target-counter(attr(href), page) " ";
|
776
|
+
cursor: default;
|
777
|
+
}
|
778
|
+
|
779
|
+
/* line 317 */
|
780
|
+
.chapters {
|
781
|
+
counter-reset: fnref;
|
782
|
+
counter-reset: fndesc;
|
783
|
+
}
|
784
|
+
|
785
|
+
/* line 322 */
|
786
|
+
.fn-ref {
|
787
|
+
counter-increment: fnref;
|
788
|
+
}
|
789
|
+
|
790
|
+
/* line 326 */
|
791
|
+
.fn-desc {
|
792
|
+
counter-increment: fndesc;
|
793
|
+
display: prince-footnote;
|
794
|
+
footnote-style-position: inside;
|
795
|
+
position: footnote;
|
796
|
+
}
|
797
|
+
|
798
|
+
/* line 333 */
|
799
|
+
.fn-desc:footnote-marker {
|
800
|
+
vertical-align: super;
|
801
|
+
content: counter(fndesc);
|
802
|
+
margin-right: 5px;
|
803
|
+
}
|
804
|
+
|
805
|
+
/* line 340 */
|
806
|
+
.note {
|
807
|
+
font-size: 13px;
|
808
|
+
float: right;
|
809
|
+
overflow: hidden;
|
810
|
+
position: relative;
|
811
|
+
padding-left: 50px;
|
812
|
+
margin: 30px 0;
|
813
|
+
}
|
814
|
+
|
815
|
+
/* line 349 */
|
816
|
+
.note:before {
|
817
|
+
content: '!';
|
818
|
+
display: inline-block;
|
819
|
+
font-size: 25px;
|
820
|
+
width: 10px;
|
821
|
+
height: 10px;
|
822
|
+
padding: 15px;
|
823
|
+
line-height: 15px;
|
824
|
+
text-align: center;
|
825
|
+
position: absolute;
|
826
|
+
top: 15px;
|
827
|
+
left: 0;
|
828
|
+
}
|
829
|
+
|
830
|
+
/* line 363 */
|
831
|
+
.note.info:before {
|
832
|
+
background: #f5be28;
|
833
|
+
color: #fff;
|
834
|
+
}
|
835
|
+
|
836
|
+
/* line 368 */
|
837
|
+
.note.warning:before {
|
838
|
+
background: #e42e24;
|
839
|
+
color: #fff;
|
840
|
+
}
|