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,64 @@
|
|
1
|
+
/*
|
2
|
+
* FILE: _footer.scss
|
3
|
+
======================================================================== */
|
4
|
+
.site-footer-links {
|
5
|
+
font-size: $font-size-xs;
|
6
|
+
clear: both;
|
7
|
+
padding: 1em 30px 4em 30px;
|
8
|
+
a {
|
9
|
+
color: $color-text;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.copyright {
|
14
|
+
@media (min-width: $bp-wide) {
|
15
|
+
float: left;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.support {
|
20
|
+
@media (min-width: $bp-wide) {
|
21
|
+
float: right;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
#feedback {
|
26
|
+
#feedback-comments {
|
27
|
+
margin-top: 1em;
|
28
|
+
width: 49%;
|
29
|
+
}
|
30
|
+
#feedback-helpful {
|
31
|
+
border: none;
|
32
|
+
margin-top: 1em;
|
33
|
+
}
|
34
|
+
.feedback-option {
|
35
|
+
float: left;
|
36
|
+
margin-left: 2em;
|
37
|
+
margin-top: 0.5em;
|
38
|
+
width: 22%;
|
39
|
+
}
|
40
|
+
form fieldset {
|
41
|
+
width: 11em;
|
42
|
+
float: left;
|
43
|
+
}
|
44
|
+
textarea {
|
45
|
+
width: 100%;
|
46
|
+
}
|
47
|
+
input[type='submit'] {
|
48
|
+
background-color: transparentize($color-accent-bright, 0.8);
|
49
|
+
float: left;
|
50
|
+
margin-left: 1em;
|
51
|
+
margin-top: 2.5em;
|
52
|
+
padding: 1em;
|
53
|
+
width: 8em;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
#repo-link {
|
58
|
+
display: block;
|
59
|
+
border-bottom: solid 1px #eceae9;
|
60
|
+
border-top: solid 1px #eceae9;
|
61
|
+
text-align: center;
|
62
|
+
padding: 1em 0;
|
63
|
+
font-weight: bold;
|
64
|
+
}
|
@@ -0,0 +1,419 @@
|
|
1
|
+
/*
|
2
|
+
* FILE: _header.scss
|
3
|
+
======================================================================== */
|
4
|
+
.header-layout {
|
5
|
+
@media (min-width: $bp-wide) {
|
6
|
+
left: 0;
|
7
|
+
padding-left: em(30);
|
8
|
+
padding-right: em(30);
|
9
|
+
position: fixed;
|
10
|
+
top: 0;
|
11
|
+
width: 100%;
|
12
|
+
z-index: 11;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
/*doc
|
17
|
+
---
|
18
|
+
title: Header Bar
|
19
|
+
name: header_bar
|
20
|
+
category: basics
|
21
|
+
---
|
22
|
+
Add <code>.header-layout</code> to header tag to get fixed positioning.
|
23
|
+
|
24
|
+
```html_example
|
25
|
+
<header class="header">
|
26
|
+
<h1 class="logo">
|
27
|
+
Pivotal Cloud Foundry Documentation
|
28
|
+
</h1>
|
29
|
+
<div class="header-links js-bar-links">
|
30
|
+
<div class="btn-menu" data-behavior="MenuMobile"></div>
|
31
|
+
<div class="header-item">
|
32
|
+
<a href="/">Docs Home</a>
|
33
|
+
</div>
|
34
|
+
<div class="header-item">
|
35
|
+
<a href="<%=vars.support_url%>" target="_blank">Support</a>
|
36
|
+
</div>
|
37
|
+
<div class="header-item searchbar js-searchbar">
|
38
|
+
<a class="search-icon" data-behavior="Search"></a>
|
39
|
+
<div class="search-input">
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</header>
|
44
|
+
```
|
45
|
+
*/
|
46
|
+
.header {
|
47
|
+
background: $color-bg-header;
|
48
|
+
border-bottom: 3px solid $color-accent-bright;
|
49
|
+
color: #fefefe;
|
50
|
+
min-height: em(38);
|
51
|
+
padding: em(5) 1em em(5) 1em;
|
52
|
+
@include clearfix;
|
53
|
+
}
|
54
|
+
.header a {
|
55
|
+
color: #fff;
|
56
|
+
display: inline-block;
|
57
|
+
}
|
58
|
+
.header img {
|
59
|
+
height: 1;
|
60
|
+
margin-right: 0.5em;
|
61
|
+
width: 25px;
|
62
|
+
vertical-align: top;
|
63
|
+
}
|
64
|
+
|
65
|
+
// logo
|
66
|
+
.logo {
|
67
|
+
float: left;
|
68
|
+
font-size: 1em;
|
69
|
+
font-weight: bold;
|
70
|
+
line-height: rem(25);
|
71
|
+
margin-bottom: 0;
|
72
|
+
}
|
73
|
+
.logo a {
|
74
|
+
border: 0;
|
75
|
+
}
|
76
|
+
|
77
|
+
// header links
|
78
|
+
.header-links {
|
79
|
+
@media (min-width: $bp-wide) {
|
80
|
+
float: right;
|
81
|
+
text-align: right;
|
82
|
+
width: 50%;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
.btn-menu {
|
86
|
+
float: right;
|
87
|
+
position: relative;
|
88
|
+
right: -1em;
|
89
|
+
&:before {
|
90
|
+
content: $fa-var-bars;
|
91
|
+
@extend .fa;
|
92
|
+
padding-right: 0.4em;
|
93
|
+
padding-top: 0.4em;
|
94
|
+
}
|
95
|
+
&:hover {
|
96
|
+
cursor: pointer;
|
97
|
+
}
|
98
|
+
padding: 0 1em;
|
99
|
+
@media (min-width: $bp-wide) {
|
100
|
+
display: none;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
.menu-active .btn-menu {
|
104
|
+
&:before {
|
105
|
+
content: '\d7';
|
106
|
+
}
|
107
|
+
//@extend .fa-plus;
|
108
|
+
margin-bottom: 0.5em;
|
109
|
+
//&:before {
|
110
|
+
// @include transform(rotate(45deg));
|
111
|
+
// @include transform-origin(0.4em 0.7em);
|
112
|
+
//}
|
113
|
+
}
|
114
|
+
.header-item {
|
115
|
+
clear: both;
|
116
|
+
display: none;
|
117
|
+
font-weight: bold;
|
118
|
+
@include transition (opacity);
|
119
|
+
font-size: $font-size-xs;
|
120
|
+
line-height: 1;
|
121
|
+
@media (min-width: $bp-wide) {
|
122
|
+
clear: none;
|
123
|
+
display: inline-block;
|
124
|
+
padding-top: 0.55em;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
.menu-active .header-item {
|
128
|
+
@media (max-width: $bp-wide) {
|
129
|
+
display: block;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
.header-item:after {
|
133
|
+
@media (min-width: $bp-wide) {
|
134
|
+
content: "|";
|
135
|
+
}
|
136
|
+
}
|
137
|
+
.header-item:last-child:after {
|
138
|
+
@media (min-width: $bp-wide) {
|
139
|
+
content: "";
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
/*doc
|
144
|
+
---
|
145
|
+
title: Link Header
|
146
|
+
name: link header
|
147
|
+
category: basics
|
148
|
+
---
|
149
|
+
```html_example
|
150
|
+
<div style="background: black">
|
151
|
+
<div class="header-item">
|
152
|
+
<a href="#">Link</a>
|
153
|
+
</div>
|
154
|
+
<div class="header-item">
|
155
|
+
<a href="#">Link</a>
|
156
|
+
</div>
|
157
|
+
<div class="header-item">
|
158
|
+
<a href="#">Link</a>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
```
|
162
|
+
*/
|
163
|
+
.header-item a {
|
164
|
+
border-bottom-color: $gray2;
|
165
|
+
border-style: dotted;
|
166
|
+
border-width: 0 0 1px;
|
167
|
+
color: #fff;
|
168
|
+
display: block;
|
169
|
+
padding: 0.5em 0;
|
170
|
+
@media (min-width: $bp-wide) {
|
171
|
+
display: inline;
|
172
|
+
margin-left: 1em;
|
173
|
+
margin-right: 1em;
|
174
|
+
padding: 0
|
175
|
+
}
|
176
|
+
}
|
177
|
+
.header-item a:hover {
|
178
|
+
@media (min-width: $bp-wide) {
|
179
|
+
background-color: transparent;
|
180
|
+
border-bottom: 0;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
// ~HOME
|
185
|
+
// ===================================================
|
186
|
+
|
187
|
+
.header-home {
|
188
|
+
border-top: 5px solid $color-accent-bright;
|
189
|
+
background: $color-bg-header;
|
190
|
+
color: #fff;
|
191
|
+
padding: 0 1.5em 4em 1.5em;
|
192
|
+
text-align: center;
|
193
|
+
margin-bottom: 3em;
|
194
|
+
}
|
195
|
+
|
196
|
+
.home-links {
|
197
|
+
padding-top: .5rem;
|
198
|
+
margin-bottom: 3em;
|
199
|
+
text-align: left;
|
200
|
+
@media (min-width: $bp-wide) {
|
201
|
+
text-align: right;
|
202
|
+
margin-bottom: 0;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
/*doc
|
206
|
+
---
|
207
|
+
title: Title Flashy
|
208
|
+
name: title_flashy
|
209
|
+
category: basics
|
210
|
+
---
|
211
|
+
```html_example
|
212
|
+
<h1 class="title-flashy">
|
213
|
+
<span class="title-deemph">Pivotal</span> Documentation
|
214
|
+
</h1>
|
215
|
+
```
|
216
|
+
*/
|
217
|
+
.title-flashy {
|
218
|
+
display: inline-block;
|
219
|
+
font-weight: 600;
|
220
|
+
font-size: $font-size-l;
|
221
|
+
text-align: left;
|
222
|
+
margin-left: 1rem;
|
223
|
+
img {
|
224
|
+
height: rem(61);
|
225
|
+
vertical-align: middle;
|
226
|
+
padding-right: .5rem;
|
227
|
+
float: left;
|
228
|
+
@media (min-width: $bp-wide) {
|
229
|
+
height: rem(45);
|
230
|
+
float: none;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
@media (min-width: $bp-wide) {
|
234
|
+
font-size: $font-size-xxl;
|
235
|
+
margin-left: 0;
|
236
|
+
padding-left: 1.8em;
|
237
|
+
padding-top: 2rem;
|
238
|
+
text-align: center;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
/*doc
|
242
|
+
---
|
243
|
+
title: Title Intro
|
244
|
+
name: title_intro
|
245
|
+
category: basics
|
246
|
+
---
|
247
|
+
```html_example
|
248
|
+
<h2 class="title-intro">
|
249
|
+
Everything you need to know about Pivotal Software.
|
250
|
+
</h2>
|
251
|
+
```
|
252
|
+
*/
|
253
|
+
.title-intro {
|
254
|
+
font-size: $font-size-m;
|
255
|
+
font-weight: 300;
|
256
|
+
margin: 0 auto 0.5em;
|
257
|
+
max-width: 30em;
|
258
|
+
text-align: center;
|
259
|
+
@media (min-width: $bp-wide) {
|
260
|
+
font-size: $font-size-l;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
.title-deemph {
|
265
|
+
font-weight: 300;
|
266
|
+
}
|
267
|
+
|
268
|
+
|
269
|
+
// ~HEADER SEARCH
|
270
|
+
// ===================================================
|
271
|
+
.searchbar {
|
272
|
+
@include transition(all 0.2s linear);
|
273
|
+
color: #eee;
|
274
|
+
margin-bottom: 1em;
|
275
|
+
margin-top: 1.3em;
|
276
|
+
padding-top: 0;
|
277
|
+
@media (min-width: $bp-wide) {
|
278
|
+
margin-bottom: 0;
|
279
|
+
margin-top: 0;
|
280
|
+
position: relative;
|
281
|
+
}
|
282
|
+
}
|
283
|
+
.searchbar:hover {
|
284
|
+
cursor: pointer;
|
285
|
+
}
|
286
|
+
.searchbar a {
|
287
|
+
margin: 0;
|
288
|
+
padding: 0.55em 1em;
|
289
|
+
}
|
290
|
+
.searchbar a,
|
291
|
+
.searchbar a:hover {
|
292
|
+
border-bottom: 0;
|
293
|
+
}
|
294
|
+
.search-input-inner {
|
295
|
+
position: relative;
|
296
|
+
}
|
297
|
+
|
298
|
+
// search icon
|
299
|
+
.search-icon {
|
300
|
+
&:before {
|
301
|
+
content: $fa-var-search;
|
302
|
+
color: #c7c7c7;
|
303
|
+
@extend .fa;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
.header-item .search-icon {
|
307
|
+
display: none;
|
308
|
+
@media (min-width: $bp-wide) {
|
309
|
+
display: block;
|
310
|
+
}
|
311
|
+
}
|
312
|
+
|
313
|
+
// search input
|
314
|
+
.search-input {
|
315
|
+
//@include border-bottom-radius(3px);
|
316
|
+
display: none;
|
317
|
+
@media (min-width: $bp-wide) {
|
318
|
+
padding: 1em;
|
319
|
+
position: absolute;
|
320
|
+
right: 0;
|
321
|
+
top: 100%;
|
322
|
+
width: 30em;
|
323
|
+
}
|
324
|
+
}
|
325
|
+
// wide view
|
326
|
+
.active .search-input {
|
327
|
+
display: block;
|
328
|
+
}
|
329
|
+
// narrow view
|
330
|
+
.menu-active .search-input {
|
331
|
+
@media (max-width: $bp-wide) {
|
332
|
+
display: block;
|
333
|
+
}
|
334
|
+
}
|
335
|
+
// search
|
336
|
+
#search-dropdown-box {
|
337
|
+
display: none;
|
338
|
+
}
|
339
|
+
|
340
|
+
|
341
|
+
// ~VERSION
|
342
|
+
// ===================================================
|
343
|
+
|
344
|
+
/*doc
|
345
|
+
---
|
346
|
+
title: Version Menu
|
347
|
+
name: version menu
|
348
|
+
category: basics
|
349
|
+
---
|
350
|
+
```html_example
|
351
|
+
<div class="header-dropdown">
|
352
|
+
<a class="subnav-link" href="#">
|
353
|
+
v1.2.0.0
|
354
|
+
</a>
|
355
|
+
<div class="header-dropdown-content">
|
356
|
+
<ul>
|
357
|
+
<li><a href="">v1.2.0.0</a></li>
|
358
|
+
</ul>
|
359
|
+
</div>
|
360
|
+
</div>
|
361
|
+
```
|
362
|
+
*/
|
363
|
+
.header-dropdown {
|
364
|
+
border-radius: 0.5em;
|
365
|
+
float: left;
|
366
|
+
font-size: 0.9em;
|
367
|
+
font-weight: bold;
|
368
|
+
line-height: rem(25);
|
369
|
+
margin-left: 0.5em;
|
370
|
+
margin-top: 0.04em;
|
371
|
+
position: relative;
|
372
|
+
}
|
373
|
+
.header-dropdown:hover .header-dropdown-content {
|
374
|
+
display: block;
|
375
|
+
}
|
376
|
+
.header-dropdown-link {
|
377
|
+
border: 0;
|
378
|
+
display: block;
|
379
|
+
line-height: 1.4;
|
380
|
+
padding: 0 0.5em;
|
381
|
+
}
|
382
|
+
.header-dropdown-link:after {
|
383
|
+
@extend .fa;
|
384
|
+
color: $color-bg-dark;
|
385
|
+
content: $fa-var-caret-down;
|
386
|
+
font-size: 0.8em;
|
387
|
+
padding-left: 0.2em;
|
388
|
+
}
|
389
|
+
.header-dropdown:hover {
|
390
|
+
//@include border-bottom-radius(0);
|
391
|
+
}
|
392
|
+
.header-dropdown-content {
|
393
|
+
background: $color-bg-light;
|
394
|
+
box-shadow: 2px 1px 5px rgba(153, 153, 153, 0.2);
|
395
|
+
border: 1px solid $color-border-light;
|
396
|
+
display: none;
|
397
|
+
left: rem(-14);
|
398
|
+
min-width: em(100);
|
399
|
+
padding: 0.5em;
|
400
|
+
position: absolute;
|
401
|
+
top: 100%;
|
402
|
+
z-index: 11;
|
403
|
+
}
|
404
|
+
.header-dropdown-content a {
|
405
|
+
border: 0;
|
406
|
+
color: $color-text;
|
407
|
+
display: block;
|
408
|
+
padding-left: 0.9em;
|
409
|
+
}
|
410
|
+
.header-dropdown-content ol,
|
411
|
+
.header-dropdown-content ul {
|
412
|
+
list-style: none;
|
413
|
+
margin: 0;
|
414
|
+
padding: 0;
|
415
|
+
}
|
416
|
+
.header-dropdown-content li {
|
417
|
+
display: block;
|
418
|
+
margin: 0;
|
419
|
+
}
|