locomotivecms_wagon 2.0.0.rc3 → 2.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/generators/blank/Gemfile.tt +8 -5
- data/generators/blank/Guardfile +22 -0
- data/generators/bootstrap/Gemfile.tt +7 -4
- data/generators/bootstrap/Guardfile +22 -0
- data/generators/bootstrap/public/stylesheets/bootstrap.css +1 -1
- data/generators/bootstrap/public/stylesheets/bootstrap.scss +1 -1
- data/generators/cloned/Gemfile.tt +7 -4
- data/generators/cloned/Guardfile +22 -0
- data/generators/foundation5/Gemfile.tt +7 -4
- data/generators/foundation5/Guardfile +22 -0
- data/lib/locomotive/wagon/cli.rb +1 -1
- data/lib/locomotive/wagon/commands/pull_sub_commands/concerns/assets_concern.rb +1 -1
- data/lib/locomotive/wagon/commands/push_sub_commands/push_theme_assets_command.rb +23 -3
- data/lib/locomotive/wagon/commands/serve_command.rb +2 -2
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +4 -3
- data/spec/fixtures/cassettes/authenticate.yml +27 -27
- data/spec/fixtures/cassettes/push.yml +1036 -1110
- data/spec/unit/commands/pull_sub_commands/concerns/assets_concern_spec.rb +24 -4
- data/spec/unit/commands/push_sub_commands/push_theme_assets_command_spec.rb +42 -0
- metadata +28 -99
- data/generators/foundation5/favicon.ico +0 -0
- data/generators/line_case/Gemfile.tt +0 -21
- data/generators/line_case/app/content_types/categories.yml +0 -56
- data/generators/line_case/app/content_types/emails.yml +0 -35
- data/generators/line_case/app/content_types/projects.yml +0 -58
- data/generators/line_case/app/views/pages/404.liquid.haml +0 -11
- data/generators/line_case/app/views/pages/email-registered.liquid.haml +0 -13
- data/generators/line_case/app/views/pages/index.liquid.haml +0 -110
- data/generators/line_case/app/views/pages/projects/content_type_template.liquid.haml +0 -32
- data/generators/line_case/app/views/snippets/newsletter_form.liquid.haml +0 -14
- data/generators/line_case/app/views/snippets/projects.liquid.haml +0 -17
- data/generators/line_case/app/views/snippets/social_links.liquid.haml +0 -19
- data/generators/line_case/config/deploy.yml +0 -15
- data/generators/line_case/config/site.yml.tt +0 -33
- data/generators/line_case/config/translations.yml +0 -8
- data/generators/line_case/data/categories.yml +0 -8
- data/generators/line_case/data/emails.yml +0 -2
- data/generators/line_case/data/projects.yml +0 -39
- data/generators/line_case/icon.png +0 -0
- data/generators/line_case/public/images/banner-header.png +0 -0
- data/generators/line_case/public/javascripts/foundation.min.js +0 -15
- data/generators/line_case/public/javascripts/foundation/foundation.abide.js +0 -194
- data/generators/line_case/public/javascripts/foundation/foundation.alerts.js +0 -57
- data/generators/line_case/public/javascripts/foundation/foundation.clearing.js +0 -516
- data/generators/line_case/public/javascripts/foundation/foundation.cookie.js +0 -74
- data/generators/line_case/public/javascripts/foundation/foundation.dropdown.js +0 -183
- data/generators/line_case/public/javascripts/foundation/foundation.forms.js +0 -556
- data/generators/line_case/public/javascripts/foundation/foundation.interchange.js +0 -280
- data/generators/line_case/public/javascripts/foundation/foundation.joyride.js +0 -852
- data/generators/line_case/public/javascripts/foundation/foundation.js +0 -464
- data/generators/line_case/public/javascripts/foundation/foundation.magellan.js +0 -136
- data/generators/line_case/public/javascripts/foundation/foundation.orbit.js +0 -432
- data/generators/line_case/public/javascripts/foundation/foundation.placeholder.js +0 -426
- data/generators/line_case/public/javascripts/foundation/foundation.reveal.js +0 -353
- data/generators/line_case/public/javascripts/foundation/foundation.section.js +0 -430
- data/generators/line_case/public/javascripts/foundation/foundation.tooltips.js +0 -209
- data/generators/line_case/public/javascripts/foundation/foundation.topbar.js +0 -370
- data/generators/line_case/public/javascripts/vendor/custom.modernizr.js +0 -4
- data/generators/line_case/public/javascripts/vendor/jquery.js +0 -9789
- data/generators/line_case/public/javascripts/vendor/zepto.js +0 -2000
- data/generators/line_case/public/samples/projects/sample.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample2.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample3.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample4.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample5.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample6.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample7.jpeg +0 -0
- data/generators/line_case/public/samples/projects/sample8.jpeg +0 -0
- data/generators/line_case/public/stylesheets/_variables.css.sass +0 -20
- data/generators/line_case/public/stylesheets/foundation.css.scss +0 -43
- data/generators/line_case/public/stylesheets/foundation.min.css +0 -1
- data/generators/line_case/public/stylesheets/foundation/_variables.scss +0 -1290
- data/generators/line_case/public/stylesheets/foundation/components/_alert-boxes.scss +0 -107
- data/generators/line_case/public/stylesheets/foundation/components/_block-grid.scss +0 -71
- data/generators/line_case/public/stylesheets/foundation/components/_breadcrumbs.scss +0 -124
- data/generators/line_case/public/stylesheets/foundation/components/_button-groups.scss +0 -89
- data/generators/line_case/public/stylesheets/foundation/components/_buttons.scss +0 -230
- data/generators/line_case/public/stylesheets/foundation/components/_clearing.scss +0 -227
- data/generators/line_case/public/stylesheets/foundation/components/_custom-forms.scss +0 -278
- data/generators/line_case/public/stylesheets/foundation/components/_dropdown-buttons.scss +0 -115
- data/generators/line_case/public/stylesheets/foundation/components/_dropdown.scss +0 -151
- data/generators/line_case/public/stylesheets/foundation/components/_flex-video.scss +0 -46
- data/generators/line_case/public/stylesheets/foundation/components/_forms.scss +0 -411
- data/generators/line_case/public/stylesheets/foundation/components/_global.scss +0 -366
- data/generators/line_case/public/stylesheets/foundation/components/_grid-5.scss +0 -214
- data/generators/line_case/public/stylesheets/foundation/components/_grid.scss +0 -188
- data/generators/line_case/public/stylesheets/foundation/components/_inline-lists.scss +0 -53
- data/generators/line_case/public/stylesheets/foundation/components/_joyride.scss +0 -217
- data/generators/line_case/public/stylesheets/foundation/components/_keystrokes.scss +0 -57
- data/generators/line_case/public/stylesheets/foundation/components/_labels.scss +0 -85
- data/generators/line_case/public/stylesheets/foundation/components/_magellan.scss +0 -23
- data/generators/line_case/public/stylesheets/foundation/components/_orbit.scss +0 -340
- data/generators/line_case/public/stylesheets/foundation/components/_pagination.scss +0 -140
- data/generators/line_case/public/stylesheets/foundation/components/_panels.scss +0 -83
- data/generators/line_case/public/stylesheets/foundation/components/_pricing-tables.scss +0 -131
- data/generators/line_case/public/stylesheets/foundation/components/_progress-bars.scss +0 -71
- data/generators/line_case/public/stylesheets/foundation/components/_reveal.scss +0 -136
- data/generators/line_case/public/stylesheets/foundation/components/_section.scss +0 -391
- data/generators/line_case/public/stylesheets/foundation/components/_side-nav.scss +0 -69
- data/generators/line_case/public/stylesheets/foundation/components/_split-buttons.scss +0 -167
- data/generators/line_case/public/stylesheets/foundation/components/_sub-nav.scss +0 -84
- data/generators/line_case/public/stylesheets/foundation/components/_switch.scss +0 -266
- data/generators/line_case/public/stylesheets/foundation/components/_tables.scss +0 -84
- data/generators/line_case/public/stylesheets/foundation/components/_thumbs.scss +0 -53
- data/generators/line_case/public/stylesheets/foundation/components/_tooltips.scss +0 -117
- data/generators/line_case/public/stylesheets/foundation/components/_top-bar.scss +0 -576
- data/generators/line_case/public/stylesheets/foundation/components/_type.scss +0 -435
- data/generators/line_case/public/stylesheets/foundation/components/_visibility.scss +0 -322
- data/generators/line_case/public/stylesheets/normalize.css.scss +0 -410
- data/generators/line_case/public/stylesheets/pages.css.sass +0 -163
- data/lib/locomotive/wagon/tools/livereload.rb +0 -45
@@ -1,391 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Section Variables
|
3
|
-
//
|
4
|
-
$include-html-section-classes: $include-html-classes !default;
|
5
|
-
|
6
|
-
// We use these to set padding and hover factor
|
7
|
-
$section-title-padding: em-calc(15) !default;
|
8
|
-
$section-content-padding: em-calc(15) !default;
|
9
|
-
$section-function-factor: 10% !default;
|
10
|
-
|
11
|
-
// These style the titles
|
12
|
-
$section-title-color: #333 !default;
|
13
|
-
$section-title-color-active: #333 !default;
|
14
|
-
$section-title-bg: #efefef !default;
|
15
|
-
$section-title-bg-active: darken($section-title-bg, $section-function-factor) !default;
|
16
|
-
$section-title-bg-active-tabs: #fff !default;
|
17
|
-
$section-title-bg-hover: darken($section-title-bg, $section-function-factor / 2) !default;
|
18
|
-
|
19
|
-
// Want to control border size, here ya go!
|
20
|
-
$section-border-size: 1px !default;
|
21
|
-
$section-border-style: solid !default;
|
22
|
-
$section-border-color: #ccc !default;
|
23
|
-
|
24
|
-
// Font controls
|
25
|
-
$section-font-size: em-calc(14) !default;
|
26
|
-
|
27
|
-
// Control the color of the background and some size options
|
28
|
-
$section-content-bg: #fff !default;
|
29
|
-
$section-vertical-nav-min-width: em-calc(200) !default;
|
30
|
-
$section-vertical-tabs-title-width: em-calc(200) !default;
|
31
|
-
$section-bottom-margin: em-calc(20) !default;
|
32
|
-
|
33
|
-
$title-selector: ".title" !default;
|
34
|
-
$content-selector: ".content" !default;
|
35
|
-
$active-region-selector: ".active" !default;
|
36
|
-
|
37
|
-
//
|
38
|
-
// Section Mixins
|
39
|
-
//
|
40
|
-
|
41
|
-
// basic styles for sections.js: positions
|
42
|
-
@mixin section-container-base($section-type: accordion) {
|
43
|
-
width: 100%;
|
44
|
-
position: relative;
|
45
|
-
display: block;
|
46
|
-
margin-bottom: $section-bottom-margin;
|
47
|
-
|
48
|
-
@if $section-type != accordion {
|
49
|
-
&:not([data-section-resized]):not([data-section-small-style]) {
|
50
|
-
visibility: hidden;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
@if $section-type != tabs {
|
55
|
-
&[data-section-small-style] {
|
56
|
-
width: 100% !important; // override inline style
|
57
|
-
|
58
|
-
& > [data-section-region], & > section, & > .section {
|
59
|
-
padding: 0 !important; // override inline style
|
60
|
-
margin: 0 !important; // override inline style
|
61
|
-
& > [data-section-title], & > #{$title-selector}{
|
62
|
-
width: 100% !important; // override inline style
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
// foundation styles for sections
|
70
|
-
@mixin section-container-style($section-type: accordion) {
|
71
|
-
|
72
|
-
// Accordion container border styles
|
73
|
-
@if $section-type == accordion {
|
74
|
-
border-top: $section-border-size $section-border-style $section-border-color;
|
75
|
-
}
|
76
|
-
|
77
|
-
// Tabs container border styles
|
78
|
-
@else if $section-type == tabs {
|
79
|
-
border: none;
|
80
|
-
}
|
81
|
-
|
82
|
-
// Vertical Tabs container border styles
|
83
|
-
@else if $section-type == vertical-tabs {
|
84
|
-
border: none;
|
85
|
-
}
|
86
|
-
|
87
|
-
// Vertical Nav container border styles
|
88
|
-
@else if $section-type == vertical-nav {
|
89
|
-
border: none;
|
90
|
-
}
|
91
|
-
|
92
|
-
// Horizontal Nav container border styles
|
93
|
-
@else if $section-type == horizontal-nav {
|
94
|
-
background: $section-title-bg;
|
95
|
-
border: $section-border-size $section-border-style $section-border-color;
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
//basic styles for section.js: section region positions
|
100
|
-
@mixin section-base($section-type: accordion) {
|
101
|
-
|
102
|
-
& > [data-section-title], & > #{$title-selector} {
|
103
|
-
margin-bottom: 0;
|
104
|
-
a {
|
105
|
-
width: 100%;
|
106
|
-
display: inline-block;
|
107
|
-
white-space: nowrap;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
|
-
& > [data-section-content], & > #{$content-selector} {
|
112
|
-
display: none;
|
113
|
-
}
|
114
|
-
|
115
|
-
&#{$active-region-selector} {
|
116
|
-
& > [data-section-content], & > #{$content-selector} { display: block; }
|
117
|
-
}
|
118
|
-
|
119
|
-
&:not(#{$active-region-selector}) {
|
120
|
-
padding: 0 !important; //override inline style
|
121
|
-
}
|
122
|
-
|
123
|
-
// Style for when Accordion
|
124
|
-
@if $section-type == accordion {
|
125
|
-
margin: 0;
|
126
|
-
& > [data-section-title], & > #{$title-selector} { width: 100%; }
|
127
|
-
}
|
128
|
-
|
129
|
-
// Styles for when tabs
|
130
|
-
@else if $section-type == tabs {
|
131
|
-
|
132
|
-
& > [data-section-title], & > #{$title-selector} {
|
133
|
-
width: auto;
|
134
|
-
position: absolute;
|
135
|
-
top: 0;
|
136
|
-
#{$default-float}: 0;
|
137
|
-
}
|
138
|
-
}
|
139
|
-
|
140
|
-
// Styles for when Vertical Tabs
|
141
|
-
@else if $section-type == vertical-tabs {
|
142
|
-
|
143
|
-
& > [data-section-title], & > #{$title-selector} {
|
144
|
-
position: absolute;
|
145
|
-
top:0;
|
146
|
-
#{$default-float}: 0;
|
147
|
-
width: $section-vertical-tabs-title-width;
|
148
|
-
}
|
149
|
-
|
150
|
-
&#{$active-region-selector} {
|
151
|
-
padding-#{$default-float}: $section-vertical-tabs-title-width;
|
152
|
-
|
153
|
-
& > [data-section-title], & > #{$title-selector} {
|
154
|
-
width: $section-vertical-tabs-title-width;
|
155
|
-
}
|
156
|
-
}
|
157
|
-
}
|
158
|
-
|
159
|
-
// Styles for when Vertical Nav
|
160
|
-
@else if $section-type == vertical-nav {
|
161
|
-
|
162
|
-
position: relative;
|
163
|
-
display: inline-block;
|
164
|
-
|
165
|
-
& > [data-section-title], & > #{$title-selector} {
|
166
|
-
position: static;
|
167
|
-
width: auto;
|
168
|
-
a { display: block; }
|
169
|
-
}
|
170
|
-
|
171
|
-
& > [data-section-content], & > #{$content-selector} {
|
172
|
-
position: absolute;
|
173
|
-
top:0;
|
174
|
-
#{$default-float}: 0;
|
175
|
-
z-index: 999;
|
176
|
-
min-width: $section-vertical-nav-min-width;
|
177
|
-
}
|
178
|
-
}
|
179
|
-
|
180
|
-
// Styles for when Horizontal Nav
|
181
|
-
@else if $section-type == horizontal-nav {
|
182
|
-
|
183
|
-
position: relative;
|
184
|
-
float: #{$default-float};
|
185
|
-
|
186
|
-
& > [data-section-title], & > #{$title-selector} {
|
187
|
-
position: static;
|
188
|
-
width: auto;
|
189
|
-
a { display: block; }
|
190
|
-
}
|
191
|
-
|
192
|
-
& > [data-section-content], & > #{$content-selector} {
|
193
|
-
width: auto;
|
194
|
-
position: absolute;
|
195
|
-
top: 0;
|
196
|
-
#{$default-float}: 0;
|
197
|
-
z-index: 999;
|
198
|
-
min-width: $section-vertical-nav-min-width;
|
199
|
-
}
|
200
|
-
}
|
201
|
-
}
|
202
|
-
|
203
|
-
//foundation styles for section regions
|
204
|
-
@mixin section-style($section-type:accordion, $title-selector: $title-selector, $content-selector: $content-selector, $title-padding:$section-title-padding, $title-color:$section-title-color, $title-font-size:$section-font-size, $title-bg:$section-title-bg, $title-bg-hover:$section-title-bg-hover, $title-bg-active:$section-title-bg-active, $title-color-active:$section-title-color-active, $content-bg:$section-content-bg, $content-padding:$section-content-padding, $section-border-size:$section-border-size, $section-border-style:$section-border-style, $section-border-color: $section-border-color) {
|
205
|
-
|
206
|
-
// Default Styles
|
207
|
-
& > #{$title-selector} {
|
208
|
-
background-color: $title-bg;
|
209
|
-
cursor: $cursor-pointer-value;
|
210
|
-
border: $section-border-style $section-border-size $section-border-color;
|
211
|
-
a {
|
212
|
-
padding: $title-padding;
|
213
|
-
color: $title-color;
|
214
|
-
font-size: $title-font-size;
|
215
|
-
background: none;
|
216
|
-
}
|
217
|
-
&:hover { background-color: $title-bg-hover; }
|
218
|
-
}
|
219
|
-
|
220
|
-
& > #{$content-selector} {
|
221
|
-
padding: $content-padding;
|
222
|
-
background-color: $content-bg;
|
223
|
-
border: $section-border-style $section-border-size $section-border-color;
|
224
|
-
|
225
|
-
&>*:last-child { margin-bottom: 0; }
|
226
|
-
&>*:first-child { padding-top: 0; }
|
227
|
-
&>*:last-child:not(.flex-video) { padding-bottom: 0; }
|
228
|
-
}
|
229
|
-
|
230
|
-
&#{$active-region-selector} {
|
231
|
-
& > #{$title-selector} {
|
232
|
-
background: $title-bg-active;
|
233
|
-
a { color: $title-color-active; }
|
234
|
-
}
|
235
|
-
}
|
236
|
-
|
237
|
-
&:not(#{$active-region-selector}) {
|
238
|
-
padding: 0 !important; //override inline style
|
239
|
-
}
|
240
|
-
|
241
|
-
// Style for when Accordion
|
242
|
-
@if $section-type == accordion {
|
243
|
-
& > #{$title-selector} { border-top: none; }
|
244
|
-
}
|
245
|
-
|
246
|
-
// Styles for when tabs
|
247
|
-
@else if $section-type == tabs {
|
248
|
-
|
249
|
-
&#{$active-region-selector} > #{$title-selector} {
|
250
|
-
border-bottom: 0;
|
251
|
-
}
|
252
|
-
}
|
253
|
-
|
254
|
-
// Styles for when Vertical Tabs
|
255
|
-
@else if $section-type == vertical-tabs {
|
256
|
-
|
257
|
-
&#{$active-region-selector} {
|
258
|
-
padding-#{$default-float}: $section-vertical-tabs-title-width - em-calc(1px);
|
259
|
-
|
260
|
-
& > #{$title-selector} {
|
261
|
-
background-color: $title-bg-active;
|
262
|
-
}
|
263
|
-
}
|
264
|
-
}
|
265
|
-
}
|
266
|
-
|
267
|
-
@mixin section-container($base-style:true, $section-type:accordion) {
|
268
|
-
@include section-container-base($section-type);
|
269
|
-
@include section-container-style($section-type);
|
270
|
-
}
|
271
|
-
|
272
|
-
@mixin section($section-type:accordion, $title-selector:$title-selector, $content-selector: $content-selector, $title-padding:$section-title-padding, $title-color:$section-title-color, $title-font-size:$section-font-size, $title-bg:$section-title-bg, $title-bg-hover:$section-title-bg-hover, $title-bg-active:$section-title-bg-active, $title-color-active:$section-title-color-active, $content-bg:$section-content-bg, $content-padding:$section-content-padding, $section-border-size:$section-border-size, $section-border-style:$section-border-style, $section-border-color: $section-border-color) {
|
273
|
-
@include section-base($section-type);
|
274
|
-
@include section-style($section-type, $title-selector, $content-selector, $title-padding, $title-color, $title-font-size, $title-bg, $title-bg-hover, $title-bg-active, $title-color-active, $content-bg, $content-padding, $section-border-size, $section-border-style, $section-border-color);
|
275
|
-
}
|
276
|
-
|
277
|
-
@if $include-html-section-classes != false {
|
278
|
-
|
279
|
-
/* Sections */
|
280
|
-
|
281
|
-
[data-section=''], [data-section='auto'], .section-container.auto,
|
282
|
-
[data-section='vertical-tabs'], .section-container.vertical-tabs,
|
283
|
-
[data-section='vertical-nav'], .section-container.vertical-nav,
|
284
|
-
[data-section='horizontal-nav'], .section-container.horizontal-nav,
|
285
|
-
[data-section='accordion'], .section-container.accordion {
|
286
|
-
@include section-container-base(accordion);
|
287
|
-
& > section, & > .section, & > [data-section-region] {
|
288
|
-
@include section-base(accordion);
|
289
|
-
}
|
290
|
-
}
|
291
|
-
|
292
|
-
.section-container.auto,
|
293
|
-
.section-container.vertical-tabs,
|
294
|
-
.section-container.vertical-nav,
|
295
|
-
.section-container.horizontal-nav,
|
296
|
-
.section-container.accordion {
|
297
|
-
@include section-container-style(accordion);
|
298
|
-
& > section, & > .section {
|
299
|
-
@include section-style(accordion);
|
300
|
-
}
|
301
|
-
}
|
302
|
-
|
303
|
-
[data-section='tabs'], .section-container.tabs {
|
304
|
-
@include section-container-base(tabs);
|
305
|
-
& > section, & > .section, & > [data-section-region] {
|
306
|
-
@include section-base(tabs);
|
307
|
-
}
|
308
|
-
}
|
309
|
-
|
310
|
-
.section-container.tabs {
|
311
|
-
@include section-container-style(tabs);
|
312
|
-
& > section, & > .section {
|
313
|
-
@include section-style(tabs, $title-bg-active: $section-title-bg-active-tabs);
|
314
|
-
}
|
315
|
-
}
|
316
|
-
|
317
|
-
@media #{$small} {
|
318
|
-
|
319
|
-
[data-section=''], [data-section='auto'], .section-container.auto {
|
320
|
-
@include section-container-base(tabs);
|
321
|
-
& > section, & > .section, & > [data-section-region] {
|
322
|
-
@include section-base(tabs);
|
323
|
-
}
|
324
|
-
}
|
325
|
-
|
326
|
-
.section-container.auto {
|
327
|
-
@include section-container-style(tabs);
|
328
|
-
& > section, & > .section {
|
329
|
-
@include section-style(tabs, $title-bg-active: $section-title-bg-active-tabs);
|
330
|
-
}
|
331
|
-
}
|
332
|
-
|
333
|
-
[data-section='vertical-tabs'], .section-container.vertical-tabs {
|
334
|
-
@include section-container-base(vertical-tabs);
|
335
|
-
& > section, & > .section, & > [data-section-region] {
|
336
|
-
@include section-base(vertical-tabs);
|
337
|
-
}
|
338
|
-
}
|
339
|
-
|
340
|
-
.section-container.vertical-tabs {
|
341
|
-
@include section-container-style(vertical-tabs);
|
342
|
-
& > section, & > .section {
|
343
|
-
@include section-style(vertical-tabs);
|
344
|
-
}
|
345
|
-
}
|
346
|
-
|
347
|
-
[data-section='vertical-nav'], .section-container.vertical-nav {
|
348
|
-
@include section-container-base(vertical-nav);
|
349
|
-
& > section, & > .section, & > [data-section-region] {
|
350
|
-
@include section-base(vertical-nav);
|
351
|
-
}
|
352
|
-
}
|
353
|
-
|
354
|
-
.section-container.vertical-nav {
|
355
|
-
@include section-container-style(vertical-nav);
|
356
|
-
& > section, & > .section {
|
357
|
-
@include section-style(vertical-nav);
|
358
|
-
}
|
359
|
-
}
|
360
|
-
|
361
|
-
[data-section='horizontal-nav'], .section-container.horizontal-nav {
|
362
|
-
@include section-container-base(horizontal-nav);
|
363
|
-
& > section, & > .section, & > [data-section-region] {
|
364
|
-
@include section-base(horizontal-nav);
|
365
|
-
}
|
366
|
-
}
|
367
|
-
|
368
|
-
.section-container.horizontal-nav {
|
369
|
-
@include section-container-style(horizontal-nav);
|
370
|
-
& > section, & > .section {
|
371
|
-
@include section-style(horizontal-nav);
|
372
|
-
}
|
373
|
-
}
|
374
|
-
}
|
375
|
-
|
376
|
-
// Change all variations to expanded accordions when no JS is detected.
|
377
|
-
.no-js {
|
378
|
-
[data-section], .section-container {
|
379
|
-
@include section-container-base(accordion);
|
380
|
-
& > section, & > .section, & > [data-section-region] {
|
381
|
-
@include section-base(accordion);
|
382
|
-
}
|
383
|
-
}
|
384
|
-
.section-container {
|
385
|
-
@include section-container-style(accordion);
|
386
|
-
& > section, & > .section {
|
387
|
-
@include section-style(accordion);
|
388
|
-
}
|
389
|
-
}
|
390
|
-
}
|
391
|
-
}
|
@@ -1,69 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Side Nav Variables
|
3
|
-
//
|
4
|
-
$include-html-nav-classes: $include-html-classes !default;
|
5
|
-
|
6
|
-
// We use this to control padding.
|
7
|
-
$side-nav-padding: em-calc(14 0) !default;
|
8
|
-
|
9
|
-
// We use these to control list styles.
|
10
|
-
$side-nav-list-type: none !default;
|
11
|
-
$side-nav-list-position: inside !default;
|
12
|
-
$side-nav-list-margin: em-calc(0 0 7 0) !default;
|
13
|
-
|
14
|
-
// We use these to control link styles.
|
15
|
-
$side-nav-link-color: $primary-color !default;
|
16
|
-
$side-nav-link-color-active: lighten(#000, 30%) !default;
|
17
|
-
$side-nav-font-size: em-calc(14) !default;
|
18
|
-
$side-nav-font-weight: bold !default;
|
19
|
-
|
20
|
-
// We use these to control border styles
|
21
|
-
$side-nav-divider-size: 1px !default;
|
22
|
-
$side-nav-divider-style: solid !default;
|
23
|
-
$side-nav-divider-color: darken(#fff, 10%) !default;
|
24
|
-
|
25
|
-
|
26
|
-
//
|
27
|
-
// Side Nav Mixins
|
28
|
-
//
|
29
|
-
|
30
|
-
|
31
|
-
// We use this to style the side-nav
|
32
|
-
@mixin side-nav($divider-color:$side-nav-divider-color, $font-size:$side-nav-font-size, $link-color:$side-nav-link-color) {
|
33
|
-
display: block;
|
34
|
-
margin: 0;
|
35
|
-
padding: $side-nav-padding;
|
36
|
-
list-style-type: $side-nav-list-type;
|
37
|
-
list-style-position: $side-nav-list-position;
|
38
|
-
|
39
|
-
li {
|
40
|
-
margin: $side-nav-list-margin;
|
41
|
-
font-size: $font-size;
|
42
|
-
|
43
|
-
a {
|
44
|
-
display: block;
|
45
|
-
color: $link-color;
|
46
|
-
}
|
47
|
-
|
48
|
-
&.active > a:first-child {
|
49
|
-
color: $side-nav-link-color-active;
|
50
|
-
font-weight: $side-nav-font-weight;
|
51
|
-
}
|
52
|
-
|
53
|
-
&.divider {
|
54
|
-
border-top: $side-nav-divider-size $side-nav-divider-style;
|
55
|
-
height: 0;
|
56
|
-
padding: 0;
|
57
|
-
list-style: none;
|
58
|
-
border-top-color: $divider-color;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
|
63
|
-
|
64
|
-
@if $include-html-nav-classes != false {
|
65
|
-
|
66
|
-
/* Side Nav */
|
67
|
-
.side-nav { @include side-nav; }
|
68
|
-
|
69
|
-
}
|