alb3rtobr-test 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bookbinder.gemspec +43 -0
- data/install_bin/bookbinder +5 -0
- data/lib/bookbinder/cli.rb +105 -0
- data/lib/bookbinder/code_example_reader.rb +95 -0
- data/lib/bookbinder/colorizer.rb +16 -0
- data/lib/bookbinder/commands/bind.rb +120 -0
- data/lib/bookbinder/commands/collection.rb +181 -0
- data/lib/bookbinder/commands/components/bind/directory_preparer.rb +33 -0
- data/lib/bookbinder/commands/components/bind/layout_preparer.rb +27 -0
- data/lib/bookbinder/commands/components/command_options.rb +45 -0
- data/lib/bookbinder/commands/components/imprint/directory_preparer.rb +24 -0
- data/lib/bookbinder/commands/generate.rb +92 -0
- data/lib/bookbinder/commands/imprint.rb +55 -0
- data/lib/bookbinder/commands/punch.rb +33 -0
- data/lib/bookbinder/commands/update_local_doc_repos.rb +42 -0
- data/lib/bookbinder/commands/watch.rb +100 -0
- data/lib/bookbinder/config/checkers/archive_menu_checker.rb +29 -0
- data/lib/bookbinder/config/checkers/ditamap_presence_checker.rb +27 -0
- data/lib/bookbinder/config/checkers/duplicate_section_name_checker.rb +33 -0
- data/lib/bookbinder/config/checkers/products_checker.rb +34 -0
- data/lib/bookbinder/config/checkers/repository_name_presence_checker.rb +34 -0
- data/lib/bookbinder/config/checkers/required_keys_checker.rb +18 -0
- data/lib/bookbinder/config/checkers/section_presence_checker.rb +15 -0
- data/lib/bookbinder/config/configuration.rb +119 -0
- data/lib/bookbinder/config/configuration_decorator.rb +54 -0
- data/lib/bookbinder/config/dita_config_generator.rb +61 -0
- data/lib/bookbinder/config/fetcher.rb +64 -0
- data/lib/bookbinder/config/imprint/configuration.rb +24 -0
- data/lib/bookbinder/config/product_config.rb +34 -0
- data/lib/bookbinder/config/section_config.rb +85 -0
- data/lib/bookbinder/config/validator.rb +33 -0
- data/lib/bookbinder/config/yaml_loader.rb +34 -0
- data/lib/bookbinder/css_link_checker.rb +67 -0
- data/lib/bookbinder/directory_helpers.rb +15 -0
- data/lib/bookbinder/dita_command_creator.rb +95 -0
- data/lib/bookbinder/dita_html_for_middleman_formatter.rb +45 -0
- data/lib/bookbinder/errors/programmer_mistake.rb +5 -0
- data/lib/bookbinder/html_document_manipulator.rb +21 -0
- data/lib/bookbinder/ingest/cloner_factory.rb +26 -0
- data/lib/bookbinder/ingest/destination_directory.rb +21 -0
- data/lib/bookbinder/ingest/git_accessor.rb +102 -0
- data/lib/bookbinder/ingest/git_cloner.rb +36 -0
- data/lib/bookbinder/ingest/local_filesystem_cloner.rb +66 -0
- data/lib/bookbinder/ingest/missing_working_copy.rb +27 -0
- data/lib/bookbinder/ingest/repo_identifier.rb +45 -0
- data/lib/bookbinder/ingest/section_repository.rb +49 -0
- data/lib/bookbinder/ingest/update_failure.rb +15 -0
- data/lib/bookbinder/ingest/update_success.rb +12 -0
- data/lib/bookbinder/ingest/working_copy.rb +36 -0
- data/lib/bookbinder/local_filesystem_accessor.rb +122 -0
- data/lib/bookbinder/middleman_runner.rb +50 -0
- data/lib/bookbinder/postprocessing/link_checker.rb +125 -0
- data/lib/bookbinder/postprocessing/redirection.rb +38 -0
- data/lib/bookbinder/preprocessing/dita_html_preprocessor.rb +91 -0
- data/lib/bookbinder/preprocessing/dita_pdf_preprocessor.rb +48 -0
- data/lib/bookbinder/preprocessing/link_to_site_gen_dir.rb +39 -0
- data/lib/bookbinder/preprocessing/preprocessor.rb +26 -0
- data/lib/bookbinder/server_director.rb +30 -0
- data/lib/bookbinder/sheller.rb +52 -0
- data/lib/bookbinder/streams/colorized_stream.rb +25 -0
- data/lib/bookbinder/streams/filter_stream.rb +22 -0
- data/lib/bookbinder/subnav/navigation_entries_from_html_toc.rb +59 -0
- data/lib/bookbinder/subnav/navigation_entries_from_markdown_root.rb +116 -0
- data/lib/bookbinder/subnav/pdf_config_creator.rb +50 -0
- data/lib/bookbinder/subnav/subnav_generator.rb +28 -0
- data/lib/bookbinder/subnav/subnav_generator_factory.rb +29 -0
- data/lib/bookbinder/subnav/template_creator.rb +71 -0
- data/lib/bookbinder/terminal.rb +19 -0
- data/lib/bookbinder/values/output_locations.rb +91 -0
- data/lib/bookbinder/values/product_info.rb +11 -0
- data/lib/bookbinder/values/section.rb +58 -0
- data/lib/bookbinder/values/subnav_template.rb +4 -0
- data/lib/bookbinder/values/user_message.rb +15 -0
- data/master_middleman/archive_drop_down_menu.rb +50 -0
- data/master_middleman/bookbinder_helpers.rb +282 -0
- data/master_middleman/compass_runner.rb +0 -0
- data/master_middleman/config.rb +45 -0
- data/master_middleman/proof.rb +90 -0
- data/master_middleman/quicklinks_renderer.rb +80 -0
- data/master_middleman/source/javascripts/all.js +2 -0
- data/master_middleman/source/javascripts/book.js +1 -0
- data/master_middleman/source/javascripts/bookbinder.js +130 -0
- data/master_middleman/source/layouts/_additional-scripts.erb +0 -0
- data/master_middleman/source/layouts/_book-footer.erb +0 -0
- data/master_middleman/source/layouts/_book-search.erb +0 -0
- data/master_middleman/source/layouts/_book-title.erb +3 -0
- data/master_middleman/source/layouts/_header.erb +34 -0
- data/master_middleman/source/layouts/_local-header.erb +0 -0
- data/master_middleman/source/layouts/_page-footer.erb +1 -0
- data/master_middleman/source/layouts/_title.erb +5 -0
- data/master_middleman/source/layouts/layout.erb +70 -0
- data/master_middleman/source/stylesheets/all.css.scss +3 -0
- data/master_middleman/source/stylesheets/base.scss +324 -0
- data/master_middleman/source/stylesheets/book-styles.scss +0 -0
- data/master_middleman/source/stylesheets/layout-styles.scss +0 -0
- data/master_middleman/source/stylesheets/partials/_book-base-values.scss +0 -0
- data/master_middleman/source/stylesheets/partials/_book-vars.scss +0 -0
- data/master_middleman/source/stylesheets/partials/_default.scss +302 -0
- data/master_middleman/source/stylesheets/partials/_footer.scss +64 -0
- data/master_middleman/source/stylesheets/partials/_header.scss +419 -0
- data/master_middleman/source/stylesheets/partials/_layout-vars.scss +0 -0
- data/master_middleman/source/stylesheets/partials/_mixins.scss +53 -0
- data/master_middleman/source/stylesheets/partials/_reset.scss +233 -0
- data/master_middleman/source/stylesheets/partials/_search.scss +78 -0
- data/master_middleman/source/stylesheets/partials/_sidenav.scss +191 -0
- data/master_middleman/source/stylesheets/partials/_syntax-highlight.scss +64 -0
- data/master_middleman/source/stylesheets/partials/_vars.scss +64 -0
- data/master_middleman/source/stylesheets/print-book-styles.scss +0 -0
- data/master_middleman/source/stylesheets/print-layout-styles.scss +0 -0
- data/master_middleman/source/stylesheets/print.css.scss +57 -0
- data/master_middleman/source/subnavs/_default.erb +0 -0
- data/master_middleman/source/subnavs/_nav-links.erb +10 -0
- data/master_middleman/source/subnavs/_subnav_template.erb +8 -0
- data/master_middleman/subdirectory_aware_assets.rb +36 -0
- data/template_app/Gemfile +10 -0
- data/template_app/Gemfile.lock +46 -0
- data/template_app/config.ru +9 -0
- data/template_app/lib/rack_static_if_exists.rb +19 -0
- data/template_app/lib/search/handler.rb +73 -0
- data/template_app/lib/search/hit.rb +21 -0
- data/template_app/lib/search/query.rb +74 -0
- data/template_app/lib/search/renderer.rb +30 -0
- data/template_app/lib/server.rb +52 -0
- data/template_app/mail_sender.rb +61 -0
- data/template_app/rack_app.rb +110 -0
- data/template_app/search-results.html.erb +81 -0
- data/template_app/search.yml +23 -0
- metadata +562 -0
@@ -0,0 +1,324 @@
|
|
1
|
+
@import "font-awesome/variables";
|
2
|
+
@import "font-awesome/core";
|
3
|
+
@import "font-awesome/path";
|
4
|
+
|
5
|
+
@import "partials/vars";
|
6
|
+
@import "partials/mixins";
|
7
|
+
|
8
|
+
@import "partials/reset";
|
9
|
+
@import "partials/default";
|
10
|
+
|
11
|
+
@import "partials/syntax-highlight";
|
12
|
+
@import "partials/header";
|
13
|
+
@import "partials/footer";
|
14
|
+
@import "partials/search";
|
15
|
+
@import "partials/sidenav";
|
16
|
+
|
17
|
+
// ~LAYOUT
|
18
|
+
// ===================================================
|
19
|
+
.container {
|
20
|
+
background: #fff;
|
21
|
+
clear: both;
|
22
|
+
margin: 0 auto;
|
23
|
+
max-width: 1024px;
|
24
|
+
}
|
25
|
+
.content-layout {
|
26
|
+
padding: 2em 1.5em 2em 1.5em;
|
27
|
+
@media (min-width: $bp-wide) {
|
28
|
+
padding-top: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
@media (min-width: $bp-wide) {
|
32
|
+
#top:before {
|
33
|
+
content: '';
|
34
|
+
padding-bottom: 4em;
|
35
|
+
border: none;
|
36
|
+
display: block;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
.has-subnav .container {
|
41
|
+
max-width: auto;
|
42
|
+
@media (min-width: $bp-wide) {
|
43
|
+
margin-left: $sidenav-wide;
|
44
|
+
}
|
45
|
+
@media (min-width: $bp-widest) {
|
46
|
+
margin-left: $sidenav-widest;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
.has-subnav .content-layout {
|
50
|
+
@media (min-width: $bp-wide) {
|
51
|
+
max-width: 45em;
|
52
|
+
padding: 0 2em 2em;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
.nav-container {
|
56
|
+
@media (min-width: $bp-wide) {
|
57
|
+
position: fixed;
|
58
|
+
z-index: 10;
|
59
|
+
top: 38px;
|
60
|
+
left: 0;
|
61
|
+
bottom: 0;
|
62
|
+
overflow-y: auto;
|
63
|
+
overflow-x: hidden;
|
64
|
+
-webkit-overflow-scrolling: touch;
|
65
|
+
width: $sidenav-wide;
|
66
|
+
}
|
67
|
+
@media (min-width: $bp-widest) {
|
68
|
+
width: $sidenav-widest;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
// ~SIDE NAV RELATED STYLES
|
74
|
+
// ===================================================
|
75
|
+
.has-sidenav table {
|
76
|
+
border-color: $color-border;
|
77
|
+
border: 1px solid $color-border;
|
78
|
+
}
|
79
|
+
.has-sidenav th {
|
80
|
+
background-color: transparentize($color-accent, 0.95);
|
81
|
+
}
|
82
|
+
.has-sidenav table tr:nth-child(2n+1) {
|
83
|
+
background: none;
|
84
|
+
}
|
85
|
+
.has-sidenav .content tr:nth-child(2n+1) {
|
86
|
+
background-color: $color-border-row;
|
87
|
+
}
|
88
|
+
|
89
|
+
// ~GRID HELPER
|
90
|
+
// ===================================================
|
91
|
+
.span3 {
|
92
|
+
display: block;
|
93
|
+
@media (min-width: $bp-wide) {
|
94
|
+
// 2 col
|
95
|
+
float: left;
|
96
|
+
margin-right: 2%;
|
97
|
+
width: 48%;
|
98
|
+
}
|
99
|
+
@media (min-width: $bp-widest) {
|
100
|
+
// 3 col
|
101
|
+
width: 32%;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
// first of 2
|
105
|
+
.span3:nth-child(2n+1) {
|
106
|
+
@media (min-width: $bp-wide) and (max-width: $bp-widest) {
|
107
|
+
clear: left;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
// last of 2
|
111
|
+
.span3:nth-child(2n) {
|
112
|
+
@media (min-width: $bp-wide) and (max-width: $bp-widest) {
|
113
|
+
margin-right: 0;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
// first of 3
|
118
|
+
.span3:nth-child(3n+1) {
|
119
|
+
@media (min-width: $bp-widest) {
|
120
|
+
clear: left;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
// last of 3
|
124
|
+
.span3:nth-child(3n) {
|
125
|
+
@media (min-width: $bp-widest) {
|
126
|
+
margin-right: 0;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
/*doc
|
131
|
+
---
|
132
|
+
title: Title Container
|
133
|
+
name: title_container
|
134
|
+
category: basics
|
135
|
+
---
|
136
|
+
```html_example
|
137
|
+
<h1 class="title-container">
|
138
|
+
Lorem Ipsum Dolor
|
139
|
+
</h1>
|
140
|
+
```
|
141
|
+
*/
|
142
|
+
|
143
|
+
// Title of content
|
144
|
+
.title-container {
|
145
|
+
line-height: 1.1;
|
146
|
+
font-weight: 600;
|
147
|
+
font-size: $font-size-xl;
|
148
|
+
margin-top: 0;
|
149
|
+
@media (min-width: $bp-wide) {
|
150
|
+
font-size: $font-size-xxl
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
// ~QUICK LINKS
|
155
|
+
// ===================================================
|
156
|
+
/*doc
|
157
|
+
---
|
158
|
+
title: Nav - Quick Links
|
159
|
+
name: nav-quick_links
|
160
|
+
category: basics
|
161
|
+
---
|
162
|
+
```html_example
|
163
|
+
<div class="quick-links">
|
164
|
+
<ul>
|
165
|
+
<li><a href="#">quick link</a></li>
|
166
|
+
<li><a href="#">quick link</a></li>
|
167
|
+
<li><a href="#">quick link</a></li>
|
168
|
+
</ul>
|
169
|
+
</div>
|
170
|
+
```
|
171
|
+
*/
|
172
|
+
.quick-links {
|
173
|
+
background-color: $color-bg-light;
|
174
|
+
border-radius: 3px;
|
175
|
+
border: 1px solid $color-border-superlight;
|
176
|
+
display: inline-block;
|
177
|
+
padding: 1em 1.5em;
|
178
|
+
|
179
|
+
ol, ul, li {
|
180
|
+
margin: 0;
|
181
|
+
}
|
182
|
+
|
183
|
+
> ul {
|
184
|
+
list-style-position: inside;
|
185
|
+
list-style-type: disk;
|
186
|
+
margin-left: -1em;
|
187
|
+
|
188
|
+
&:before {
|
189
|
+
content: "In this topic:";
|
190
|
+
display: block;
|
191
|
+
padding-bottom: 0.25em;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
ul ul {
|
196
|
+
padding-left: 1.8em;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
.list-style-none .quick-links > ul {
|
201
|
+
list-style-type: none;
|
202
|
+
}
|
203
|
+
|
204
|
+
// ~CONTENT
|
205
|
+
// ===================================================
|
206
|
+
// Designate external links with an icon
|
207
|
+
|
208
|
+
/*doc
|
209
|
+
---
|
210
|
+
title: Link External
|
211
|
+
name: link_external
|
212
|
+
category: basics
|
213
|
+
---
|
214
|
+
```html_example
|
215
|
+
<a class="external-link" href="#">Link</a>
|
216
|
+
```
|
217
|
+
*/
|
218
|
+
.content a[href^="http"]:after,
|
219
|
+
.external-link:after {
|
220
|
+
@extend .fa;
|
221
|
+
content: $fa-var-external-link;
|
222
|
+
font-size: 0.75em;
|
223
|
+
padding-left: 0.5em;
|
224
|
+
}
|
225
|
+
|
226
|
+
.content a:hover,
|
227
|
+
.content a:focus,
|
228
|
+
.content a:active,
|
229
|
+
.link:hover,
|
230
|
+
.link:focus,
|
231
|
+
.link:active {
|
232
|
+
background-color: transparentize($color-accent-bright, 0.92);
|
233
|
+
border-bottom-style: solid;
|
234
|
+
}
|
235
|
+
|
236
|
+
// Enlarge first paragraph of content.
|
237
|
+
|
238
|
+
/*doc
|
239
|
+
---
|
240
|
+
title: Content Helper - Intro
|
241
|
+
name: content_helper-intro
|
242
|
+
category: basics
|
243
|
+
---
|
244
|
+
```html_example
|
245
|
+
<p class="intro">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Necessitatibus totam libero facilis voluptatem aliquam incidunt ipsa officiis, dicta nihil expedita, molestiae delectus impedit hic quidem deserunt laudantium, sint debitis tenetur.</p>
|
246
|
+
```
|
247
|
+
*/
|
248
|
+
|
249
|
+
.intro {
|
250
|
+
font-size: $font-size-m;
|
251
|
+
font-weight: 300;
|
252
|
+
}
|
253
|
+
|
254
|
+
// ~CODE EXAMPLE STYLES
|
255
|
+
// ===================================================
|
256
|
+
|
257
|
+
/*doc
|
258
|
+
---
|
259
|
+
title: Code Example - Terminal
|
260
|
+
name: code_example-terminal
|
261
|
+
category: basics
|
262
|
+
---
|
263
|
+
```html_example
|
264
|
+
<pre class="terminal">$ keytool -import -alias ops-metrics-ssl -file ops-metrics.cer -keystore localhost.truststore</pre>
|
265
|
+
```
|
266
|
+
*/
|
267
|
+
|
268
|
+
.terminal {
|
269
|
+
background-color: #3a3a3a;
|
270
|
+
border: 0;
|
271
|
+
color: #fefefe;
|
272
|
+
}
|
273
|
+
|
274
|
+
|
275
|
+
// ~BACK TO TOP
|
276
|
+
// ===================================================
|
277
|
+
.to-top {
|
278
|
+
visibility: hidden;
|
279
|
+
opacity: 0;
|
280
|
+
@include transition(all 0.2s linear);
|
281
|
+
a {
|
282
|
+
border: 0;
|
283
|
+
bottom: 4em;
|
284
|
+
position: fixed;
|
285
|
+
right: 4em;
|
286
|
+
z-index: 10;
|
287
|
+
&:hover {
|
288
|
+
background: none;
|
289
|
+
}
|
290
|
+
&:before {
|
291
|
+
content: $fa-var-arrow-up;
|
292
|
+
@extend .fa;
|
293
|
+
background: $color-accent-bright;
|
294
|
+
box-shadow: 0 0 9px rgba(153, 153, 153, 0.8);
|
295
|
+
color: #fff;
|
296
|
+
line-height: 2.5em;
|
297
|
+
height: 2.5em;
|
298
|
+
text-align: center;
|
299
|
+
width: 2.5em;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
&.sticky {
|
303
|
+
// display: inline-block;
|
304
|
+
visibility: visible;
|
305
|
+
opacity: 1;
|
306
|
+
}
|
307
|
+
@media (max-width: $bp-wide) {
|
308
|
+
// Hide back to top on narrow width screens
|
309
|
+
display: none;
|
310
|
+
}
|
311
|
+
}
|
312
|
+
// Hide back to top on homepage
|
313
|
+
.index .to-top {
|
314
|
+
display: none;
|
315
|
+
}
|
316
|
+
|
317
|
+
.partial-notice {
|
318
|
+
color: red;
|
319
|
+
font-size: $font-size-m;
|
320
|
+
|
321
|
+
ul {
|
322
|
+
font-size: $font-size-s;
|
323
|
+
}
|
324
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,302 @@
|
|
1
|
+
/*
|
2
|
+
* FILE: _default.scss
|
3
|
+
======================================================================== */
|
4
|
+
* {
|
5
|
+
-webkit-font-smoothing: antialiased;
|
6
|
+
}
|
7
|
+
html {
|
8
|
+
font-size: 1em;
|
9
|
+
}
|
10
|
+
body {
|
11
|
+
background-color: #fff;
|
12
|
+
// background-color: $color-bg;
|
13
|
+
font-family: $font-primary;
|
14
|
+
font-weight: 400;
|
15
|
+
line-height: 1.45;
|
16
|
+
color: #333;
|
17
|
+
margin: 0;
|
18
|
+
padding: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
// Paragraphs
|
22
|
+
p {
|
23
|
+
margin-bottom: 1.3em;
|
24
|
+
}
|
25
|
+
li p {
|
26
|
+
margin: 0; // Hack to fix broken markdown.
|
27
|
+
}
|
28
|
+
|
29
|
+
/*doc
|
30
|
+
---
|
31
|
+
title: Link Default
|
32
|
+
name: link_default
|
33
|
+
category: basics
|
34
|
+
---
|
35
|
+
```html_example
|
36
|
+
<a class="link" href="#">Link</a>
|
37
|
+
```
|
38
|
+
*/
|
39
|
+
|
40
|
+
a, .link {
|
41
|
+
border-bottom: 1px dotted lighten(desaturate($color-link, 40%), 40%);
|
42
|
+
color: $color-link;
|
43
|
+
text-decoration: none;
|
44
|
+
@include transition(all 0.1s linear);
|
45
|
+
}
|
46
|
+
|
47
|
+
img {
|
48
|
+
height: auto;
|
49
|
+
max-width: 100%;
|
50
|
+
}
|
51
|
+
|
52
|
+
// Type Scale: Major Third 1.250
|
53
|
+
h1, h2, h3, h4, h5, h6 {
|
54
|
+
margin: 60px 0 0.5em;
|
55
|
+
font-weight: inherit;
|
56
|
+
line-height: 1.2;
|
57
|
+
}
|
58
|
+
|
59
|
+
.steps-header {
|
60
|
+
margin-top: -0.2em;
|
61
|
+
}
|
62
|
+
|
63
|
+
/*doc
|
64
|
+
---
|
65
|
+
title: Headings
|
66
|
+
name: headings
|
67
|
+
category: basics
|
68
|
+
---
|
69
|
+
```html_example
|
70
|
+
<h1>h1. heading level 1</h1>
|
71
|
+
<h2>h2. heading level 2</h2>
|
72
|
+
<h3>h3. heading level 3</h3>
|
73
|
+
<h4>h4. heading level 4</h4>
|
74
|
+
<div class="h2">this is a div with an h2 class</div>
|
75
|
+
<h5 class="h3">this is an h5 with an h3 class</h5>
|
76
|
+
<h2><a id='fake-anchor'></a>h2. heading with link</h2>
|
77
|
+
<h3><a id='other-fake-anchor'></a>h3. heading with link</h3>
|
78
|
+
```
|
79
|
+
*/
|
80
|
+
|
81
|
+
h1, .h1 {
|
82
|
+
margin-top: 0;
|
83
|
+
font-size: $font-size-xxl;
|
84
|
+
}
|
85
|
+
h2, .h2 {
|
86
|
+
font-size: $font-size-xl;
|
87
|
+
}
|
88
|
+
h3, .h3 {
|
89
|
+
font-size: $font-size-l;
|
90
|
+
}
|
91
|
+
h4, h5, .h4 {
|
92
|
+
font-size: $font-size-m;
|
93
|
+
}
|
94
|
+
small,
|
95
|
+
.font_small {
|
96
|
+
font-size: 0.8em;
|
97
|
+
}
|
98
|
+
h2 > a:before, h3 > a:before {
|
99
|
+
@media (min-width: $bp-wide) {
|
100
|
+
content: "";
|
101
|
+
display: block;
|
102
|
+
height: 80px;
|
103
|
+
margin: -80px 0 0;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
// Lists
|
108
|
+
ul,
|
109
|
+
ol {
|
110
|
+
margin: 0 0 1em;
|
111
|
+
}
|
112
|
+
ul {
|
113
|
+
padding: 0 0 0 1.2em;
|
114
|
+
}
|
115
|
+
ol {
|
116
|
+
padding: 0 0 0 1.4em;
|
117
|
+
}
|
118
|
+
ul ul,
|
119
|
+
ol ol,
|
120
|
+
ul ol,
|
121
|
+
ol ul {
|
122
|
+
margin-top: 1em;
|
123
|
+
padding-bottom: 0
|
124
|
+
}
|
125
|
+
|
126
|
+
// Vertical spacing for ordered lists
|
127
|
+
ol li {
|
128
|
+
margin: 0 0 1.3em;
|
129
|
+
padding: 0;
|
130
|
+
}
|
131
|
+
|
132
|
+
// Tight spacing for unordered lists
|
133
|
+
ul li {
|
134
|
+
margin: 0 0 0.5em;
|
135
|
+
padding: 0;
|
136
|
+
}
|
137
|
+
|
138
|
+
// Tight spacing for nested lists
|
139
|
+
li li {
|
140
|
+
margin-bottom: 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
// Image spacing inside lists
|
144
|
+
ol img,
|
145
|
+
ul img {
|
146
|
+
margin: 0.5em 0;
|
147
|
+
}
|
148
|
+
|
149
|
+
// Input forms
|
150
|
+
input {
|
151
|
+
background-color: #f1f1f1;
|
152
|
+
border: 1px solid $color-border;
|
153
|
+
border-radius: $radius;
|
154
|
+
box-shadow: $color-border 1px 1px 4px -2px inset;
|
155
|
+
color: $color-text;
|
156
|
+
display: block;
|
157
|
+
padding: 0.5em 1em;
|
158
|
+
@include transition(all 0.1s linear);
|
159
|
+
width: 100%;
|
160
|
+
|
161
|
+
&:hover {
|
162
|
+
border-color: transparentize(darken($color-accent, 10%), 0.5);
|
163
|
+
background-color: #fff;
|
164
|
+
}
|
165
|
+
&:focus {
|
166
|
+
background-color: #fff;
|
167
|
+
border-color: $color-accent;
|
168
|
+
box-shadow: $color-border 0 0 4px;
|
169
|
+
outline: 0;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
// Tables
|
174
|
+
table {
|
175
|
+
border-color: #b5b5b5;
|
176
|
+
border-collapse: collapse;
|
177
|
+
border-style: solid;
|
178
|
+
border-width: 1px;
|
179
|
+
color: #333333;
|
180
|
+
font-size: 1em;
|
181
|
+
margin-top: 1em;
|
182
|
+
padding: 0.8em 0.7rem;
|
183
|
+
width: 100%;
|
184
|
+
}
|
185
|
+
th {
|
186
|
+
background-color: #f8f8f8;
|
187
|
+
border-color: #b5b5b5;
|
188
|
+
color: #4b6475;
|
189
|
+
line-height: 1.1;
|
190
|
+
font-size: $font-size-s;
|
191
|
+
text-align: left;
|
192
|
+
}
|
193
|
+
tr {
|
194
|
+
color: #686868;
|
195
|
+
}
|
196
|
+
|
197
|
+
.content td, .content th, .content tr {
|
198
|
+
border: solid 1px grey;
|
199
|
+
}
|
200
|
+
|
201
|
+
.content tr:hover {
|
202
|
+
background-color: #fdfdfd;
|
203
|
+
color: #333;
|
204
|
+
}
|
205
|
+
|
206
|
+
caption {
|
207
|
+
font-size: $font-size-m;
|
208
|
+
padding: 0.5em;
|
209
|
+
}
|
210
|
+
|
211
|
+
// Code
|
212
|
+
|
213
|
+
/*doc
|
214
|
+
---
|
215
|
+
title: Code Example - Default
|
216
|
+
name: code_example-default
|
217
|
+
category: basics
|
218
|
+
---
|
219
|
+
```html_example
|
220
|
+
<pre><code class="highlight ruby"><span class="nb">require</span> <span class="s1">'ova_manager'</span>
|
221
|
+
<span class="nb">require</span> <span class="s1">'vsphere_clients'</span>
|
222
|
+
|
223
|
+
<span class="no">OvaManager</span><span class="o">::</span><span class="no">Deployer</span><span class="p">.</span><span class="nf">new</span><span class="p">({</span>
|
224
|
+
<span class="ss">host: </span><span class="s2">"172.16.74.3"</span><span class="p">,</span>
|
225
|
+
<span class="ss">user: </span><span class="s2">"root"</span><span class="p">,</span>
|
226
|
+
<span class="ss">password: </span><span class="s2">"vmware"</span>
|
227
|
+
<span class="p">})</span>
|
228
|
+
</code></pre>
|
229
|
+
```
|
230
|
+
*/
|
231
|
+
|
232
|
+
pre {
|
233
|
+
background-color: #f0f0f0;
|
234
|
+
border-radius: 3px;
|
235
|
+
font-size: rem(13);
|
236
|
+
padding: 1em;
|
237
|
+
white-space: pre;
|
238
|
+
// max-width: 20em;
|
239
|
+
overflow: auto;
|
240
|
+
}
|
241
|
+
pre code {
|
242
|
+
background-color: transparent;
|
243
|
+
border: 0;
|
244
|
+
color: $color-text;
|
245
|
+
direction: ltr;
|
246
|
+
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
247
|
+
overflow: auto;
|
248
|
+
text-align: left;
|
249
|
+
margin: 0;
|
250
|
+
padding: 0;
|
251
|
+
word-spacing: normal;
|
252
|
+
word-break: normal;
|
253
|
+
}
|
254
|
+
|
255
|
+
/*doc
|
256
|
+
---
|
257
|
+
title: Code Example - Inline
|
258
|
+
name: code_example-inline
|
259
|
+
|
260
|
+
category: basics
|
261
|
+
---
|
262
|
+
```html_example
|
263
|
+
<code>"mbus"=>"nats://nats:nats@192.168.86.17:4222"</code>
|
264
|
+
```
|
265
|
+
*/
|
266
|
+
|
267
|
+
code {
|
268
|
+
background-color: #f5f5ff;
|
269
|
+
border: 1px solid #e4e4e4;
|
270
|
+
display: inline-block;
|
271
|
+
font-size: rem(13);
|
272
|
+
line-height: 1.4;
|
273
|
+
margin: 0.2em 0.1em 0.1em;
|
274
|
+
padding: 0 0.4em 0 0.4em;
|
275
|
+
vertical-align: text-top;
|
276
|
+
}
|
277
|
+
code a {
|
278
|
+
color: #fefefe;
|
279
|
+
}
|
280
|
+
|
281
|
+
hr {
|
282
|
+
background-color: $color-border-light;
|
283
|
+
border: 0;
|
284
|
+
height: 1px;
|
285
|
+
float: left;
|
286
|
+
width: 100%;
|
287
|
+
}
|
288
|
+
.content pre {
|
289
|
+
&::-webkit-scrollbar {
|
290
|
+
-webkit-appearance: none;
|
291
|
+
width: 7px;
|
292
|
+
height: 7px;
|
293
|
+
}
|
294
|
+
&::-webkit-scrollbar-thumb {
|
295
|
+
border-radius: 4px;
|
296
|
+
background-color: rgba(0,0,0,.5);
|
297
|
+
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
|
298
|
+
}
|
299
|
+
}
|
300
|
+
.hidden {
|
301
|
+
display: none !important;
|
302
|
+
}
|