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
@@ -1,58 +0,0 @@
|
|
1
|
-
.hll { background-color: #ffffcc }
|
2
|
-
.c { color: #aaaaaa; } /* Comment */
|
3
|
-
.err { color: #F00000; background-color: #F0A0A0 } /* Error */
|
4
|
-
.k { color: #0000aa } /* Keyword */
|
5
|
-
.cm { color: #aaaaaa; } /* Comment.Multiline */
|
6
|
-
.cp { color: #4c8317 } /* Comment.Preproc */
|
7
|
-
.c1 { color: #aaaaaa; } /* Comment.Single */
|
8
|
-
.cs { color: #0000aa; } /* Comment.Special */
|
9
|
-
.gd { color: #aa0000 } /* Generic.Deleted */
|
10
|
-
.ge { } /* Generic.Emph */
|
11
|
-
.gr { color: #aa0000 } /* Generic.Error */
|
12
|
-
.gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
13
|
-
.gi { color: #00aa00 } /* Generic.Inserted */
|
14
|
-
.go { color: #888888 } /* Generic.Output */
|
15
|
-
.gp { color: #555555 } /* Generic.Prompt */
|
16
|
-
.gs { font-weight: bold } /* Generic.Strong */
|
17
|
-
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
18
|
-
.gt { color: #aa0000 } /* Generic.Traceback */
|
19
|
-
.kc { color: #0000aa } /* Keyword.Constant */
|
20
|
-
.kd { color: #0000aa } /* Keyword.Declaration */
|
21
|
-
.kn { color: #0000aa } /* Keyword.Namespace */
|
22
|
-
.kp { color: #0000aa } /* Keyword.Pseudo */
|
23
|
-
.kr { color: #0000aa } /* Keyword.Reserved */
|
24
|
-
.kt { color: #00aaaa } /* Keyword.Type */
|
25
|
-
.m { color: #009999 } /* Literal.Number */
|
26
|
-
.s { color: #aa5500 } /* Literal.String */
|
27
|
-
.na { color: #1e90ff } /* Name.Attribute */
|
28
|
-
.nb { color: #00aaaa } /* Name.Builtin */
|
29
|
-
.nc { color: #00aa00; } /* Name.Class */
|
30
|
-
.no { color: #aa0000 } /* Name.Constant */
|
31
|
-
.nd { color: #888888 } /* Name.Decorator */
|
32
|
-
.ni { color: #800000; font-weight: bold } /* Name.Entity */
|
33
|
-
.nf { color: #00aa00 } /* Name.Function */
|
34
|
-
.nn { color: #00aaaa; } /* Name.Namespace */
|
35
|
-
.nt { color: #1e90ff; font-weight: bold } /* Name.Tag */
|
36
|
-
.nv { color: #aa0000 } /* Name.Variable */
|
37
|
-
.ow { color: #0000aa } /* Operator.Word */
|
38
|
-
.w { color: #bbbbbb } /* Text.Whitespace */
|
39
|
-
.mf { color: #009999 } /* Literal.Number.Float */
|
40
|
-
.mh { color: #009999 } /* Literal.Number.Hex */
|
41
|
-
.mi { color: #009999 } /* Literal.Number.Integer */
|
42
|
-
.mo { color: #009999 } /* Literal.Number.Oct */
|
43
|
-
.sb { color: #aa5500 } /* Literal.String.Backtick */
|
44
|
-
.sc { color: #aa5500 } /* Literal.String.Char */
|
45
|
-
.sd { color: #aa5500 } /* Literal.String.Doc */
|
46
|
-
.s2 { color: #aa5500 } /* Literal.String.Double */
|
47
|
-
.se { color: #aa5500 } /* Literal.String.Escape */
|
48
|
-
.sh { color: #aa5500 } /* Literal.String.Heredoc */
|
49
|
-
.si { color: #aa5500 } /* Literal.String.Interpol */
|
50
|
-
.sx { color: #aa5500 } /* Literal.String.Other */
|
51
|
-
.sr { color: #009999 } /* Literal.String.Regex */
|
52
|
-
.s1 { color: #aa5500 } /* Literal.String.Single */
|
53
|
-
.ss { color: #0000aa } /* Literal.String.Symbol */
|
54
|
-
.bp { color: #00aaaa } /* Name.Builtin.Pseudo */
|
55
|
-
.vc { color: #aa0000 } /* Name.Variable.Class */
|
56
|
-
.vg { color: #aa0000 } /* Name.Variable.Global */
|
57
|
-
.vi { color: #aa0000 } /* Name.Variable.Instance */
|
58
|
-
.il { color: #009999 } /* Literal.Number.Integer.Long */
|
@@ -1 +0,0 @@
|
|
1
|
-
/* add custom CSS */
|
data/templates/epub.css
DELETED
@@ -1,500 +0,0 @@
|
|
1
|
-
/*! normalize.css v1.0.0 | MIT License | git.io/normalize */
|
2
|
-
|
3
|
-
/* ==========================================================================
|
4
|
-
HTML5 display definitions
|
5
|
-
========================================================================== */
|
6
|
-
|
7
|
-
/*
|
8
|
-
* Corrects `block` display not defined in IE 6/7/8/9 and Firefox 3.
|
9
|
-
*/
|
10
|
-
|
11
|
-
article,
|
12
|
-
aside,
|
13
|
-
details,
|
14
|
-
figcaption,
|
15
|
-
figure,
|
16
|
-
footer,
|
17
|
-
header,
|
18
|
-
hgroup,
|
19
|
-
nav,
|
20
|
-
section,
|
21
|
-
summary {
|
22
|
-
display: block;
|
23
|
-
}
|
24
|
-
|
25
|
-
/*
|
26
|
-
* Corrects `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
|
27
|
-
*/
|
28
|
-
|
29
|
-
audio,
|
30
|
-
canvas,
|
31
|
-
video {
|
32
|
-
display: inline-block;
|
33
|
-
*display: inline;
|
34
|
-
*zoom: 1;
|
35
|
-
}
|
36
|
-
|
37
|
-
/*
|
38
|
-
* Prevents modern browsers from displaying `audio` without controls.
|
39
|
-
* Remove excess height in iOS 5 devices.
|
40
|
-
*/
|
41
|
-
|
42
|
-
audio:not([controls]) {
|
43
|
-
display: none;
|
44
|
-
height: 0;
|
45
|
-
}
|
46
|
-
|
47
|
-
/*
|
48
|
-
* Addresses styling for `hidden` attribute not present in IE 7/8/9, Firefox 3,
|
49
|
-
* and Safari 4.
|
50
|
-
* Known issue: no IE 6 support.
|
51
|
-
*/
|
52
|
-
|
53
|
-
[hidden] {
|
54
|
-
display: none;
|
55
|
-
}
|
56
|
-
|
57
|
-
/* ==========================================================================
|
58
|
-
Base
|
59
|
-
========================================================================== */
|
60
|
-
|
61
|
-
/*
|
62
|
-
* 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
|
63
|
-
* `em` units.
|
64
|
-
* 2. Prevents iOS text size adjust after orientation change, without disabling
|
65
|
-
* user zoom.
|
66
|
-
*/
|
67
|
-
|
68
|
-
html {
|
69
|
-
font-size: 100%; /* 1 */
|
70
|
-
-webkit-text-size-adjust: 100%; /* 2 */
|
71
|
-
-ms-text-size-adjust: 100%; /* 2 */
|
72
|
-
}
|
73
|
-
|
74
|
-
/*
|
75
|
-
* Addresses `font-family` inconsistency between `textarea` and other form
|
76
|
-
* elements.
|
77
|
-
*/
|
78
|
-
|
79
|
-
html,
|
80
|
-
button,
|
81
|
-
input,
|
82
|
-
select,
|
83
|
-
textarea {
|
84
|
-
font-family: sans-serif;
|
85
|
-
}
|
86
|
-
|
87
|
-
/*
|
88
|
-
* Addresses margins handled incorrectly in IE 6/7.
|
89
|
-
*/
|
90
|
-
|
91
|
-
body {
|
92
|
-
margin: 0;
|
93
|
-
}
|
94
|
-
|
95
|
-
/* ==========================================================================
|
96
|
-
Links
|
97
|
-
========================================================================== */
|
98
|
-
|
99
|
-
/*
|
100
|
-
* Addresses `outline` inconsistency between Chrome and other browsers.
|
101
|
-
*/
|
102
|
-
|
103
|
-
a:focus {
|
104
|
-
outline: thin dotted;
|
105
|
-
}
|
106
|
-
|
107
|
-
/*
|
108
|
-
* Improves readability when focused and also mouse hovered in all browsers.
|
109
|
-
*/
|
110
|
-
|
111
|
-
a:active,
|
112
|
-
a:hover {
|
113
|
-
outline: 0;
|
114
|
-
}
|
115
|
-
|
116
|
-
/* ==========================================================================
|
117
|
-
Typography
|
118
|
-
========================================================================== */
|
119
|
-
|
120
|
-
/*
|
121
|
-
* Addresses font sizes and margins set differently in IE 6/7.
|
122
|
-
* Addresses font sizes within `section` and `article` in Firefox 4+, Safari 5,
|
123
|
-
* and Chrome.
|
124
|
-
*/
|
125
|
-
|
126
|
-
h1 {
|
127
|
-
font-size: 2em;
|
128
|
-
margin: 0.67em 0;
|
129
|
-
}
|
130
|
-
|
131
|
-
h2 {
|
132
|
-
font-size: 1.5em;
|
133
|
-
margin: 0.83em 0;
|
134
|
-
}
|
135
|
-
|
136
|
-
h3 {
|
137
|
-
font-size: 1.17em;
|
138
|
-
margin: 1em 0;
|
139
|
-
}
|
140
|
-
|
141
|
-
h4 {
|
142
|
-
font-size: 1em;
|
143
|
-
margin: 1.33em 0;
|
144
|
-
}
|
145
|
-
|
146
|
-
h5 {
|
147
|
-
font-size: 0.83em;
|
148
|
-
margin: 1.67em 0;
|
149
|
-
}
|
150
|
-
|
151
|
-
h6 {
|
152
|
-
font-size: 0.75em;
|
153
|
-
margin: 2.33em 0;
|
154
|
-
}
|
155
|
-
|
156
|
-
/*
|
157
|
-
* Addresses styling not present in IE 7/8/9, Safari 5, and Chrome.
|
158
|
-
*/
|
159
|
-
|
160
|
-
abbr[title] {
|
161
|
-
border-bottom: 1px dotted;
|
162
|
-
}
|
163
|
-
|
164
|
-
/*
|
165
|
-
* Addresses style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
|
166
|
-
*/
|
167
|
-
|
168
|
-
b,
|
169
|
-
strong {
|
170
|
-
font-weight: bold;
|
171
|
-
}
|
172
|
-
|
173
|
-
blockquote {
|
174
|
-
margin: 1em 40px;
|
175
|
-
}
|
176
|
-
|
177
|
-
/*
|
178
|
-
* Addresses styling not present in Safari 5 and Chrome.
|
179
|
-
*/
|
180
|
-
|
181
|
-
dfn {
|
182
|
-
font-style: italic;
|
183
|
-
}
|
184
|
-
|
185
|
-
/*
|
186
|
-
* Addresses styling not present in IE 6/7/8/9.
|
187
|
-
*/
|
188
|
-
|
189
|
-
mark {
|
190
|
-
background: #ff0;
|
191
|
-
color: #000;
|
192
|
-
}
|
193
|
-
|
194
|
-
/*
|
195
|
-
* Addresses margins set differently in IE 6/7.
|
196
|
-
*/
|
197
|
-
|
198
|
-
p,
|
199
|
-
pre {
|
200
|
-
margin: 1em 0;
|
201
|
-
}
|
202
|
-
|
203
|
-
/*
|
204
|
-
* Corrects font family set oddly in IE 6, Safari 4/5, and Chrome.
|
205
|
-
*/
|
206
|
-
|
207
|
-
code,
|
208
|
-
kbd,
|
209
|
-
pre,
|
210
|
-
samp {
|
211
|
-
font-family: monospace, serif;
|
212
|
-
_font-family: 'courier new', monospace;
|
213
|
-
font-size: 1em;
|
214
|
-
}
|
215
|
-
|
216
|
-
/*
|
217
|
-
* Improves readability of pre-formatted text in all browsers.
|
218
|
-
*/
|
219
|
-
|
220
|
-
pre {
|
221
|
-
white-space: pre;
|
222
|
-
white-space: pre-wrap;
|
223
|
-
word-wrap: break-word;
|
224
|
-
}
|
225
|
-
|
226
|
-
/*
|
227
|
-
* Addresses CSS quotes not supported in IE 6/7.
|
228
|
-
*/
|
229
|
-
|
230
|
-
q {
|
231
|
-
quotes: none;
|
232
|
-
}
|
233
|
-
|
234
|
-
/*
|
235
|
-
* Addresses `quotes` property not supported in Safari 4.
|
236
|
-
*/
|
237
|
-
|
238
|
-
q:before,
|
239
|
-
q:after {
|
240
|
-
content: '';
|
241
|
-
content: none;
|
242
|
-
}
|
243
|
-
|
244
|
-
small {
|
245
|
-
font-size: 75%;
|
246
|
-
}
|
247
|
-
|
248
|
-
/*
|
249
|
-
* Prevents `sub` and `sup` affecting `line-height` in all browsers.
|
250
|
-
*/
|
251
|
-
|
252
|
-
sub,
|
253
|
-
sup {
|
254
|
-
font-size: 75%;
|
255
|
-
line-height: 0;
|
256
|
-
position: relative;
|
257
|
-
vertical-align: baseline;
|
258
|
-
}
|
259
|
-
|
260
|
-
sup {
|
261
|
-
top: -0.5em;
|
262
|
-
}
|
263
|
-
|
264
|
-
sub {
|
265
|
-
bottom: -0.25em;
|
266
|
-
}
|
267
|
-
|
268
|
-
/* ==========================================================================
|
269
|
-
Lists
|
270
|
-
========================================================================== */
|
271
|
-
|
272
|
-
/*
|
273
|
-
* Addresses margins set differently in IE 6/7.
|
274
|
-
*/
|
275
|
-
|
276
|
-
dl,
|
277
|
-
menu,
|
278
|
-
ol,
|
279
|
-
ul {
|
280
|
-
margin: 1em 0;
|
281
|
-
}
|
282
|
-
|
283
|
-
dd {
|
284
|
-
margin: 0 0 0 40px;
|
285
|
-
}
|
286
|
-
|
287
|
-
/*
|
288
|
-
* Addresses paddings set differently in IE 6/7.
|
289
|
-
*/
|
290
|
-
|
291
|
-
menu,
|
292
|
-
ol,
|
293
|
-
ul {
|
294
|
-
padding: 0 0 0 40px;
|
295
|
-
}
|
296
|
-
|
297
|
-
/*
|
298
|
-
* Corrects list images handled incorrectly in IE 7.
|
299
|
-
*/
|
300
|
-
|
301
|
-
nav ul,
|
302
|
-
nav ol {
|
303
|
-
list-style: none;
|
304
|
-
list-style-image: none;
|
305
|
-
}
|
306
|
-
|
307
|
-
/* ==========================================================================
|
308
|
-
Embedded content
|
309
|
-
========================================================================== */
|
310
|
-
|
311
|
-
/*
|
312
|
-
* 1. Removes border when inside `a` element in IE 6/7/8/9 and Firefox 3.
|
313
|
-
* 2. Improves image quality when scaled in IE 7.
|
314
|
-
*/
|
315
|
-
|
316
|
-
img {
|
317
|
-
border: 0; /* 1 */
|
318
|
-
-ms-interpolation-mode: bicubic; /* 2 */
|
319
|
-
}
|
320
|
-
|
321
|
-
/*
|
322
|
-
* Corrects overflow displayed oddly in IE 9.
|
323
|
-
*/
|
324
|
-
|
325
|
-
svg:not(:root) {
|
326
|
-
overflow: hidden;
|
327
|
-
}
|
328
|
-
|
329
|
-
/* ==========================================================================
|
330
|
-
Figures
|
331
|
-
========================================================================== */
|
332
|
-
|
333
|
-
/*
|
334
|
-
* Addresses margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
|
335
|
-
*/
|
336
|
-
|
337
|
-
figure {
|
338
|
-
margin: 0;
|
339
|
-
}
|
340
|
-
|
341
|
-
/* ==========================================================================
|
342
|
-
Forms
|
343
|
-
========================================================================== */
|
344
|
-
|
345
|
-
/*
|
346
|
-
* Corrects margin displayed oddly in IE 6/7.
|
347
|
-
*/
|
348
|
-
|
349
|
-
form {
|
350
|
-
margin: 0;
|
351
|
-
}
|
352
|
-
|
353
|
-
/*
|
354
|
-
* Define consistent border, margin, and padding.
|
355
|
-
*/
|
356
|
-
|
357
|
-
fieldset {
|
358
|
-
border: 1px solid #c0c0c0;
|
359
|
-
margin: 0 2px;
|
360
|
-
padding: 0.35em 0.625em 0.75em;
|
361
|
-
}
|
362
|
-
|
363
|
-
/*
|
364
|
-
* 1. Corrects color not being inherited in IE 6/7/8/9.
|
365
|
-
* 2. Corrects text not wrapping in Firefox 3.
|
366
|
-
* 3. Corrects alignment displayed oddly in IE 6/7.
|
367
|
-
*/
|
368
|
-
|
369
|
-
legend {
|
370
|
-
border: 0; /* 1 */
|
371
|
-
padding: 0;
|
372
|
-
white-space: normal; /* 2 */
|
373
|
-
*margin-left: -7px; /* 3 */
|
374
|
-
}
|
375
|
-
|
376
|
-
/*
|
377
|
-
* 1. Corrects font size not being inherited in all browsers.
|
378
|
-
* 2. Addresses margins set differently in IE 6/7, Firefox 3+, Safari 5,
|
379
|
-
* and Chrome.
|
380
|
-
* 3. Improves appearance and consistency in all browsers.
|
381
|
-
*/
|
382
|
-
|
383
|
-
button,
|
384
|
-
input,
|
385
|
-
select,
|
386
|
-
textarea {
|
387
|
-
font-size: 100%; /* 1 */
|
388
|
-
margin: 0; /* 2 */
|
389
|
-
vertical-align: baseline; /* 3 */
|
390
|
-
*vertical-align: middle; /* 3 */
|
391
|
-
}
|
392
|
-
|
393
|
-
/*
|
394
|
-
* Addresses Firefox 3+ setting `line-height` on `input` using `!important` in
|
395
|
-
* the UA stylesheet.
|
396
|
-
*/
|
397
|
-
|
398
|
-
button,
|
399
|
-
input {
|
400
|
-
line-height: normal;
|
401
|
-
}
|
402
|
-
|
403
|
-
/*
|
404
|
-
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
405
|
-
* and `video` controls.
|
406
|
-
* 2. Corrects inability to style clickable `input` types in iOS.
|
407
|
-
* 3. Improves usability and consistency of cursor style between image-type
|
408
|
-
* `input` and others.
|
409
|
-
* 4. Removes inner spacing in IE 7 without affecting normal text inputs.
|
410
|
-
* Known issue: inner spacing remains in IE 6.
|
411
|
-
*/
|
412
|
-
|
413
|
-
button,
|
414
|
-
html input[type="button"], /* 1 */
|
415
|
-
input[type="reset"],
|
416
|
-
input[type="submit"] {
|
417
|
-
-webkit-appearance: button; /* 2 */
|
418
|
-
cursor: pointer; /* 3 */
|
419
|
-
*overflow: visible; /* 4 */
|
420
|
-
}
|
421
|
-
|
422
|
-
/*
|
423
|
-
* Re-set default cursor for disabled elements.
|
424
|
-
*/
|
425
|
-
|
426
|
-
button[disabled],
|
427
|
-
input[disabled] {
|
428
|
-
cursor: default;
|
429
|
-
}
|
430
|
-
|
431
|
-
/*
|
432
|
-
* 1. Addresses box sizing set to content-box in IE 8/9.
|
433
|
-
* 2. Removes excess padding in IE 8/9.
|
434
|
-
* 3. Removes excess padding in IE 7.
|
435
|
-
* Known issue: excess padding remains in IE 6.
|
436
|
-
*/
|
437
|
-
|
438
|
-
input[type="checkbox"],
|
439
|
-
input[type="radio"] {
|
440
|
-
box-sizing: border-box; /* 1 */
|
441
|
-
padding: 0; /* 2 */
|
442
|
-
*height: 13px; /* 3 */
|
443
|
-
*width: 13px; /* 3 */
|
444
|
-
}
|
445
|
-
|
446
|
-
/*
|
447
|
-
* 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
|
448
|
-
* 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
|
449
|
-
* (include `-moz` to future-proof).
|
450
|
-
*/
|
451
|
-
|
452
|
-
input[type="search"] {
|
453
|
-
-webkit-appearance: textfield; /* 1 */
|
454
|
-
-moz-box-sizing: content-box;
|
455
|
-
-webkit-box-sizing: content-box; /* 2 */
|
456
|
-
box-sizing: content-box;
|
457
|
-
}
|
458
|
-
|
459
|
-
/*
|
460
|
-
* Removes inner padding and search cancel button in Safari 5 and Chrome
|
461
|
-
* on OS X.
|
462
|
-
*/
|
463
|
-
|
464
|
-
input[type="search"]::-webkit-search-cancel-button,
|
465
|
-
input[type="search"]::-webkit-search-decoration {
|
466
|
-
-webkit-appearance: none;
|
467
|
-
}
|
468
|
-
|
469
|
-
/*
|
470
|
-
* Removes inner padding and border in Firefox 3+.
|
471
|
-
*/
|
472
|
-
|
473
|
-
button::-moz-focus-inner,
|
474
|
-
input::-moz-focus-inner {
|
475
|
-
border: 0;
|
476
|
-
padding: 0;
|
477
|
-
}
|
478
|
-
|
479
|
-
/*
|
480
|
-
* 1. Removes default vertical scrollbar in IE 6/7/8/9.
|
481
|
-
* 2. Improves readability and alignment in all browsers.
|
482
|
-
*/
|
483
|
-
|
484
|
-
textarea {
|
485
|
-
overflow: auto; /* 1 */
|
486
|
-
vertical-align: top; /* 2 */
|
487
|
-
}
|
488
|
-
|
489
|
-
/* ==========================================================================
|
490
|
-
Tables
|
491
|
-
========================================================================== */
|
492
|
-
|
493
|
-
/*
|
494
|
-
* Remove most spacing between table cells.
|
495
|
-
*/
|
496
|
-
|
497
|
-
table {
|
498
|
-
border-collapse: collapse;
|
499
|
-
border-spacing: 0;
|
500
|
-
}
|