zurb-foundation 4.1.5 → 4.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/README.md +4 -0
- data/docs/CHANGELOG.md +10 -0
- data/docs/components/block-grid.html.erb +1 -1
- data/docs/components/grid.html.erb +4 -4
- data/docs/components/inline-lists.html.erb +2 -2
- data/docs/components/panels.html.erb +2 -2
- data/docs/components/pricing-tables.html.erb +1 -1
- data/docs/components/progress-bars.html.erb +1 -1
- data/docs/components/reveal.html.erb +1 -1
- data/docs/components/section.html.erb +546 -19
- data/docs/components/split-buttons.html.erb +2 -2
- data/docs/components/thumbnails.html.erb +2 -2
- data/docs/components/top-bar.html.erb +2 -3
- data/docs/components/type.html.erb +5 -5
- data/docs/components/visibility.html.erb +1 -1
- data/docs/css/docs.scss +54 -0
- data/docs/sass.html.erb +3 -1
- data/js/foundation/foundation.forms.js +311 -227
- data/js/foundation/foundation.joyride.js +10 -8
- data/js/foundation/foundation.js +1 -1
- data/js/foundation/foundation.section.js +4 -4
- data/lib/foundation/version.rb +1 -1
- data/scss/foundation/_variables.scss +185 -171
- data/scss/foundation/components/_alert-boxes.scss +1 -0
- data/scss/foundation/components/_block-grid.scss +2 -4
- data/scss/foundation/components/_breadcrumbs.scss +1 -0
- data/scss/foundation/components/_button-groups.scss +1 -0
- data/scss/foundation/components/_buttons.scss +1 -0
- data/scss/foundation/components/_clearing.scss +154 -151
- data/scss/foundation/components/_custom-forms.scss +35 -21
- data/scss/foundation/components/_dropdown-buttons.scss +2 -1
- data/scss/foundation/components/_dropdown.scss +2 -1
- data/scss/foundation/components/_flex-video.scss +1 -0
- data/scss/foundation/components/_forms.scss +1 -0
- data/scss/foundation/components/_global.scss +75 -84
- data/scss/foundation/components/_grid.scss +9 -8
- data/scss/foundation/components/_inline-lists.scss +2 -1
- data/scss/foundation/components/_joyride.scss +165 -160
- data/scss/foundation/components/_keystrokes.scss +2 -1
- data/scss/foundation/components/_labels.scss +1 -0
- data/scss/foundation/components/_magellan.scss +2 -0
- data/scss/foundation/components/_orbit.scss +158 -154
- data/scss/foundation/components/_pagination.scss +1 -0
- data/scss/foundation/components/_panels.scss +1 -0
- data/scss/foundation/components/_pricing-tables.scss +1 -0
- data/scss/foundation/components/_progress-bars.scss +1 -0
- data/scss/foundation/components/_reveal.scss +2 -1
- data/scss/foundation/components/_section.scss +108 -93
- data/scss/foundation/components/_side-nav.scss +2 -1
- data/scss/foundation/components/_split-buttons.scss +1 -0
- data/scss/foundation/components/_sub-nav.scss +1 -0
- data/scss/foundation/components/_switch.scss +4 -2
- data/scss/foundation/components/_tables.scss +7 -3
- data/scss/foundation/components/_thumbs.scss +1 -0
- data/scss/foundation/components/_tooltips.scss +85 -81
- data/scss/foundation/components/_top-bar.scss +323 -318
- data/scss/foundation/components/_type.scss +290 -286
- data/scss/foundation/components/_visibility.scss +2 -0
- data/templates/project/index.html +0 -1
- data/templates/project/manifest.rb +0 -1
- data/templates/project/scss/app.scss +3 -0
- metadata +4 -4
@@ -1,6 +1,7 @@
|
|
1
1
|
//
|
2
2
|
// Keystroke Variables
|
3
3
|
//
|
4
|
+
$include-html-type-classes: $include-html-classes !default;
|
4
5
|
|
5
6
|
// We use these to control text styles.
|
6
7
|
$keystroke-font: "Consolas", "Menlo", "Courier", monospace !default;
|
@@ -44,7 +45,7 @@ $keystroke-radius: $global-radius !default;
|
|
44
45
|
}
|
45
46
|
|
46
47
|
|
47
|
-
@if $include-html-
|
48
|
+
@if $include-html-type-classes != false {
|
48
49
|
|
49
50
|
/* Keystroke Characters */
|
50
51
|
.keystroke,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
// Orbit Settings
|
2
|
+
$include-html-orbit-classes: $include-html-classes !default;
|
2
3
|
|
3
4
|
// We use these to control the caption styles
|
4
5
|
$orbit-container-bg: #f5f5f5 !default;
|
@@ -27,183 +28,186 @@ $orbit-slide-number-padding: emCalc(5px) !default;
|
|
27
28
|
// Margin for when Orbit is stacked on small screens
|
28
29
|
$stack-on-small-margin-bottom: emCalc(20px) !default;
|
29
30
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
background: $orbit-container-bg;
|
36
|
-
|
37
|
-
.orbit-slides-container {
|
38
|
-
list-style: none;
|
39
|
-
margin: 0;
|
40
|
-
padding: 0;
|
31
|
+
@if $include-html-orbit-classes != false {
|
32
|
+
|
33
|
+
.orbit-container {
|
34
|
+
overflow: hidden;
|
35
|
+
width: 100%;
|
41
36
|
position: relative;
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
37
|
+
background: $orbit-container-bg;
|
38
|
+
|
39
|
+
.orbit-slides-container {
|
40
|
+
list-style: none;
|
41
|
+
margin: 0;
|
42
|
+
padding: 0;
|
46
43
|
position: relative;
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
position:
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
44
|
+
|
45
|
+
img { display: block; }
|
46
|
+
|
47
|
+
&>* {
|
48
|
+
position: relative;
|
49
|
+
float: $default-float;
|
50
|
+
height: 100%;
|
51
|
+
|
52
|
+
.orbit-caption {
|
53
|
+
position: absolute;
|
54
|
+
bottom: 0;
|
55
|
+
background-color: $orbit-caption-bg-old;
|
56
|
+
background-color: $orbit-caption-bg;
|
57
|
+
color: #fff;
|
58
|
+
width: 100%;
|
59
|
+
padding: 10px 14px;
|
60
|
+
font-size: emCalc(14px);
|
61
|
+
|
62
|
+
* { color: $orbit-caption-font-color; }
|
63
|
+
}
|
61
64
|
}
|
62
65
|
}
|
63
|
-
|
64
|
-
|
65
|
-
.orbit-slide-number {
|
66
|
-
position: absolute;
|
67
|
-
top: 10px;
|
68
|
-
#{$default-float}: 10px;
|
69
|
-
font-size: 12px;
|
70
|
-
span { font-weight: 700; padding: $orbit-slide-number-padding;}
|
71
|
-
color: $orbit-slide-number-font-color;
|
72
|
-
background: $orbit-slide-number-bg;
|
73
|
-
}
|
74
|
-
|
75
|
-
.orbit-timer {
|
76
|
-
position: absolute;
|
77
|
-
top: 10px;
|
78
|
-
#{$opposite-direction}: 10px;
|
79
|
-
height: 6px;
|
80
|
-
width: 100px;
|
81
|
-
.orbit-progress {
|
82
|
-
height: 100%;
|
83
|
-
background-color: $orbit-timer-bg-old;
|
84
|
-
background-color: $orbit-timer-bg;
|
85
|
-
display: block;
|
86
|
-
width: 0%;
|
87
|
-
}
|
88
|
-
|
89
|
-
& > span {
|
90
|
-
display: none;
|
66
|
+
|
67
|
+
.orbit-slide-number {
|
91
68
|
position: absolute;
|
92
69
|
top: 10px;
|
93
|
-
#{$
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
border-bottom: none;
|
70
|
+
#{$default-float}: 10px;
|
71
|
+
font-size: 12px;
|
72
|
+
span { font-weight: 700; padding: $orbit-slide-number-padding;}
|
73
|
+
color: $orbit-slide-number-font-color;
|
74
|
+
background: $orbit-slide-number-bg;
|
99
75
|
}
|
100
|
-
|
101
|
-
|
76
|
+
|
77
|
+
.orbit-timer {
|
78
|
+
position: absolute;
|
79
|
+
top: 10px;
|
80
|
+
#{$opposite-direction}: 10px;
|
81
|
+
height: 6px;
|
82
|
+
width: 100px;
|
83
|
+
.orbit-progress {
|
84
|
+
height: 100%;
|
85
|
+
background-color: $orbit-timer-bg-old;
|
86
|
+
background-color: $orbit-timer-bg;
|
87
|
+
display: block;
|
88
|
+
width: 0%;
|
89
|
+
}
|
90
|
+
|
102
91
|
& > span {
|
103
|
-
|
104
|
-
|
92
|
+
display: none;
|
93
|
+
position: absolute;
|
94
|
+
top: 10px;
|
95
|
+
#{$opposite-direction}: 0px;
|
105
96
|
width: 11px;
|
106
97
|
height: 14px;
|
107
|
-
border:
|
108
|
-
border-
|
109
|
-
border-
|
98
|
+
border: solid 4px #000;
|
99
|
+
border-top: none;
|
100
|
+
border-bottom: none;
|
101
|
+
}
|
102
|
+
|
103
|
+
&.paused {
|
104
|
+
& > span {
|
105
|
+
#{$opposite-direction}: -6px;
|
106
|
+
top: 9px;
|
107
|
+
width: 11px;
|
108
|
+
height: 14px;
|
109
|
+
border: inset 8px;
|
110
|
+
border-right-style: solid;
|
111
|
+
border-color: transparent transparent transparent #000;
|
112
|
+
}
|
110
113
|
}
|
111
114
|
}
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
.orbit-next {
|
119
|
-
position: absolute;
|
120
|
-
top: 50%;
|
121
|
-
margin-top: -25px;
|
122
|
-
background-color: $orbit-nav-bg-old;
|
123
|
-
background-color: $orbit-nav-bg;
|
124
|
-
width: 50px;
|
125
|
-
height: 60px;
|
126
|
-
line-height: 50px;
|
127
|
-
color: white;
|
128
|
-
text-indent: -9999px !important;
|
129
|
-
|
130
|
-
& > span {
|
115
|
+
|
116
|
+
&:hover .orbit-timer > span { display: block; }
|
117
|
+
|
118
|
+
// Let's get those controls to be right in the center on each side
|
119
|
+
.orbit-prev,
|
120
|
+
.orbit-next {
|
131
121
|
position: absolute;
|
132
122
|
top: 50%;
|
133
|
-
margin-top: -
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
123
|
+
margin-top: -25px;
|
124
|
+
background-color: $orbit-nav-bg-old;
|
125
|
+
background-color: $orbit-nav-bg;
|
126
|
+
width: 50px;
|
127
|
+
height: 60px;
|
128
|
+
line-height: 50px;
|
129
|
+
color: white;
|
130
|
+
text-indent: -9999px !important;
|
131
|
+
|
132
|
+
& > span {
|
133
|
+
position: absolute;
|
134
|
+
top: 50%;
|
135
|
+
margin-top: -16px;
|
136
|
+
display: block;
|
137
|
+
width: 0;
|
138
|
+
height: 0;
|
139
|
+
border: inset 16px;
|
140
|
+
}
|
148
141
|
}
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
142
|
+
.orbit-prev { #{$default-float}: 0;
|
143
|
+
& > span {
|
144
|
+
border-#{$opposite-direction}-style: solid;
|
145
|
+
border-color: transparent;
|
146
|
+
border-#{$opposite-direction}-color: #fff;
|
147
|
+
}
|
148
|
+
&:hover > span {
|
149
|
+
border-#{$opposite-direction}-color: #ccc;
|
150
|
+
}
|
157
151
|
}
|
158
|
-
|
159
|
-
|
152
|
+
.orbit-next { #{$opposite-direction}: 0;
|
153
|
+
& > span {
|
154
|
+
border-color: transparent;
|
155
|
+
border-#{$default-float}-style: solid;
|
156
|
+
border-#{$default-float}-color: #fff;
|
157
|
+
#{$default-float}: 50%;
|
158
|
+
margin-#{$default-float}: -8px;
|
159
|
+
}
|
160
|
+
&:hover > span {
|
161
|
+
border-#{$default-float}-color: #ccc;
|
162
|
+
}
|
160
163
|
}
|
161
164
|
}
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
165
|
+
|
166
|
+
.orbit-bullets {
|
167
|
+
margin: 0 auto 30px auto;
|
168
|
+
overflow: hidden;
|
169
|
+
position: relative;
|
170
|
+
top: 10px;
|
171
|
+
|
172
|
+
li {
|
173
|
+
display: block;
|
174
|
+
width: 18px;
|
175
|
+
height: 18px;
|
176
|
+
background: $orbit-bullet-nav-color;
|
177
|
+
float: $default-float;
|
178
|
+
margin-#{$opposite-direction}: 6px;
|
179
|
+
border: solid 2px $orbit-bullet-nav-color-active;
|
180
|
+
@include radius(1000px);
|
181
|
+
|
182
|
+
&.active {
|
183
|
+
background: $orbit-bullet-nav-color-active;
|
184
|
+
}
|
185
|
+
|
186
|
+
&:last-child { margin-#{$opposite-direction}: 0; }
|
182
187
|
}
|
183
|
-
|
184
|
-
&:last-child { margin-#{$opposite-direction}: 0; }
|
185
|
-
}
|
186
|
-
}
|
187
|
-
|
188
|
-
.touch {
|
189
|
-
.orbit-container {
|
190
|
-
.orbit-prev,
|
191
|
-
.orbit-next { display: none; }
|
192
188
|
}
|
193
|
-
|
194
|
-
.orbit-bullets { display: none; }
|
195
|
-
}
|
196
|
-
|
197
|
-
|
198
|
-
@media #{$small} {
|
199
|
-
|
189
|
+
|
200
190
|
.touch {
|
201
191
|
.orbit-container {
|
202
192
|
.orbit-prev,
|
203
|
-
.orbit-next { display:
|
193
|
+
.orbit-next { display: none; }
|
204
194
|
}
|
205
|
-
|
206
|
-
.orbit-bullets { display:
|
195
|
+
|
196
|
+
.orbit-bullets { display: none; }
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
@media #{$small} {
|
201
|
+
|
202
|
+
.touch {
|
203
|
+
.orbit-container {
|
204
|
+
.orbit-prev,
|
205
|
+
.orbit-next { display: inherit; }
|
206
|
+
}
|
207
|
+
|
208
|
+
.orbit-bullets { display: block; }
|
209
|
+
}
|
210
|
+
|
207
211
|
}
|
208
212
|
|
209
|
-
}
|
213
|
+
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
// NEED TO FINISH THE LOGIC HERE
|
2
|
+
$include-html-reveal-classes: $include-html-classes !default;
|
2
3
|
|
3
4
|
//
|
4
5
|
// Reveal Variables
|
@@ -126,6 +127,6 @@ $reveal-border-color: #666 !default;
|
|
126
127
|
|
127
128
|
// Reveal Print Styles
|
128
129
|
@media print {
|
129
|
-
|
130
|
+
.reveal-modal {background: #fff !important;}
|
130
131
|
}
|
131
132
|
}
|
@@ -1,21 +1,27 @@
|
|
1
1
|
//
|
2
2
|
// Section Variables
|
3
3
|
//
|
4
|
+
$include-html-section-classes: $include-html-classes !default;
|
4
5
|
|
5
6
|
// We use these to set padding and hover factor
|
6
|
-
$section-padding:
|
7
|
-
$section-
|
7
|
+
$section-title-padding: emCalc(15px) !default;
|
8
|
+
$section-content-padding: emCalc(15px) !default;
|
9
|
+
$section-function-factor: 10% !default;
|
8
10
|
|
9
11
|
// These style the titles
|
10
|
-
$section-title-color:
|
11
|
-
$section-title-bg:
|
12
|
-
$section-title-bg-active:
|
13
|
-
$section-title-bg-active-tabs:
|
12
|
+
$section-title-color: #333 !default;
|
13
|
+
$section-title-bg: #efefef !default;
|
14
|
+
$section-title-bg-active: darken($section-title-bg, $section-function-factor) !default;
|
15
|
+
$section-title-bg-active-tabs: #fff !default;
|
16
|
+
$section-title-bg-hover: darken($section-title-bg, $section-function-factor/2) !default;
|
14
17
|
|
15
18
|
// Want to control border size, here ya go!
|
16
|
-
$section-border-size:
|
17
|
-
$section-border-style:
|
18
|
-
$section-border-color:
|
19
|
+
$section-border-size: 1px !default;
|
20
|
+
$section-border-style: solid !default;
|
21
|
+
$section-border-color: #ccc !default;
|
22
|
+
|
23
|
+
// Font controls
|
24
|
+
$section-font-size: emCalc(14px) !default;
|
19
25
|
|
20
26
|
// Control the color of the background and some size options
|
21
27
|
$section-content-bg: #fff !default;
|
@@ -31,7 +37,7 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
31
37
|
// We use this mixin to create the basic container styles for sections when they act like accordions
|
32
38
|
@mixin section-container($base-style:true, $section-type:accordion) {
|
33
39
|
|
34
|
-
|
40
|
+
/// We can set this to false to not include these styles to avoid repeated CSS on classes.
|
35
41
|
@if $base-style {
|
36
42
|
width: 100%;
|
37
43
|
display: block;
|
@@ -58,7 +64,8 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
58
64
|
|
59
65
|
// Vertical Nav container border styles
|
60
66
|
@else if $section-type == vertical-nav {
|
61
|
-
|
67
|
+
border: 0;
|
68
|
+
position: relative;
|
62
69
|
}
|
63
70
|
|
64
71
|
// Horizontal Nav container border styles
|
@@ -67,161 +74,169 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
67
74
|
background: $section-title-bg;
|
68
75
|
border: $section-border-size $section-border-style $section-border-color;
|
69
76
|
}
|
70
|
-
}
|
71
77
|
|
72
|
-
|
73
|
-
@mixin section($section-type:accordion) {
|
78
|
+
}
|
74
79
|
|
75
|
-
// Accordion styles
|
76
|
-
@if $section-type == accordion {
|
77
80
|
|
78
|
-
|
79
|
-
position: relative;
|
81
|
+
@mixin section($section-type:accordion, $title-selector:".title", $content-selector:".content", $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, $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) {
|
80
82
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
background-color: $section-title-bg;
|
83
|
+
// Default Styles
|
84
|
+
> #{$title-selector} {
|
85
|
+
background-color: $title-bg;
|
86
|
+
cursor: pointer;
|
87
|
+
margin-bottom: 0;
|
87
88
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
width: 100%;
|
95
|
-
}
|
96
|
-
&:hover { background-color: darken($section-title-bg, $section-function-factor/2); }
|
89
|
+
a {
|
90
|
+
padding: $title-padding;
|
91
|
+
display: inline-block;
|
92
|
+
color: $title-color;
|
93
|
+
font-size: $title-font-size;
|
94
|
+
white-space: nowrap;
|
97
95
|
}
|
96
|
+
&:hover { background-color: $title-bg-hover; }
|
97
|
+
}
|
98
98
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
&>*:last-child { margin-bottom: 0; }
|
105
|
-
&>*:first-child { padding-top: 0; }
|
106
|
-
&>*:last-child { padding-bottom: 0; }
|
107
|
-
}
|
99
|
+
#{$content-selector} {
|
100
|
+
display: none;
|
101
|
+
padding: $content-padding;
|
102
|
+
background-color: $content-bg;
|
108
103
|
|
104
|
+
&>*:last-child { margin-bottom: 0; }
|
105
|
+
&>*:first-child { padding-top: 0; }
|
106
|
+
&>*:last-child { padding-bottom: 0; }
|
107
|
+
}
|
109
108
|
|
110
|
-
|
111
|
-
|
112
|
-
|
109
|
+
&.active {
|
110
|
+
& > #{$content-selector} { display: block; }
|
111
|
+
& > #{$title-selector} { background: $title-bg-active;
|
112
|
+
a { color: $title-color-active; }
|
113
113
|
}
|
114
|
+
}
|
115
|
+
|
116
|
+
// Style for when Accordion
|
117
|
+
@if $section-type == accordion {
|
118
|
+
// border-top: $section-border-size $section-border-style $section-border-color;
|
119
|
+
position: relative;
|
114
120
|
|
121
|
+
> #{$title-selector} {
|
122
|
+
top: 0;
|
123
|
+
width: 100%;
|
124
|
+
margin: 0;
|
125
|
+
border-top: $section-border-style $section-border-size $section-border-color;
|
115
126
|
|
127
|
+
a { width: 100%; }
|
128
|
+
}
|
116
129
|
}
|
117
130
|
|
118
|
-
//
|
131
|
+
// Styles for when tabs
|
119
132
|
@else if $section-type == tabs {
|
120
|
-
padding-top: 0;
|
121
133
|
border: 0;
|
122
134
|
position: static;
|
123
135
|
|
124
|
-
|
136
|
+
> #{$title-selector} {
|
125
137
|
width: auto;
|
126
|
-
border: $section-border-
|
138
|
+
border: $section-border-style $section-border-size $section-border-color;
|
127
139
|
border-#{$opposite-direction}: 0;
|
128
140
|
border-bottom: 0;
|
129
141
|
position: absolute;
|
142
|
+
top: 0;
|
130
143
|
z-index: 1;
|
131
144
|
|
132
145
|
a { width: 100%; }
|
133
146
|
}
|
134
|
-
&:last-child
|
147
|
+
&:last-child #{$title-selector} { border-#{$opposite-direction}: $section-border-style $section-border-size $section-border-color; }
|
135
148
|
|
136
|
-
|
137
|
-
border: $section-border-
|
149
|
+
#{$content-selector} {
|
150
|
+
border: $section-border-style $section-border-size $section-border-color;
|
138
151
|
position: absolute;
|
139
152
|
z-index: 10;
|
153
|
+
display: none;
|
140
154
|
top: -1px;
|
141
155
|
}
|
142
156
|
|
143
157
|
&.active {
|
144
|
-
|
145
|
-
& > .title {
|
146
|
-
background-color: $section-title-bg-active-tabs;
|
158
|
+
& > #{$title-selector} {
|
147
159
|
z-index: 11;
|
148
160
|
border-bottom: 0;
|
161
|
+
background-color: $title-bg-active;
|
149
162
|
}
|
150
|
-
& >
|
163
|
+
& > #{$content-selector} { position: relative; }
|
151
164
|
}
|
152
165
|
}
|
153
166
|
|
167
|
+
// Styles for when Vertical Tabs
|
154
168
|
@else if $section-type == vertical-tabs {
|
155
169
|
padding-top: 0 !important;
|
156
170
|
border: 0;
|
157
171
|
position: static;
|
158
|
-
background-color: $section-title-bg;
|
159
172
|
|
160
|
-
|
173
|
+
> #{$title-selector} {
|
161
174
|
position: absolute;
|
162
|
-
border-top: $section-border-
|
175
|
+
border-top: $section-border-style $section-border-size $section-border-color;
|
163
176
|
width: $section-vertical-tabs-title-width;
|
164
177
|
}
|
178
|
+
&:first-child #{$title-selector} { border-top: 0; }
|
165
179
|
|
166
|
-
|
167
|
-
|
168
|
-
.content {
|
180
|
+
#{$content-selector} {
|
169
181
|
// Display all content blocks to account for the scrollbar
|
170
182
|
// in the outerWidth measurements. JavaScript will toggle the active tabs.
|
171
183
|
display: block;
|
172
|
-
|
173
184
|
position: relative;
|
174
185
|
left: $section-vertical-tabs-title-width;
|
175
|
-
border-left: $section-border-
|
186
|
+
border-left: $section-border-style $section-border-size $section-border-color;
|
176
187
|
z-index: 10;
|
177
188
|
}
|
178
189
|
|
179
190
|
&.active {
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
border-right: 0;
|
191
|
+
& > #{$title-selector} {
|
192
|
+
background-color: $title-bg-active;
|
193
|
+
width: $section-vertical-tabs-title-width + emCalc(1px); // Cover the content's left border
|
194
|
+
border-right: solid 0 transparent;
|
185
195
|
z-index: 11; // Put active title on top of the content
|
186
196
|
}
|
187
|
-
|
188
|
-
&:last-child .title {
|
189
|
-
border-bottom: $section-border-size $section-border-style $section-border-color;
|
190
|
-
}
|
197
|
+
&:last-child #{$title-selector} { border-bottom: 0; }
|
191
198
|
}
|
192
199
|
}
|
193
200
|
|
194
|
-
// Vertical Nav
|
201
|
+
// Styles for when Vertical Nav
|
195
202
|
@else if $section-type == vertical-nav {
|
196
|
-
|
197
203
|
padding-top: 0 !important;
|
204
|
+
position: relative;
|
198
205
|
|
199
|
-
|
206
|
+
> #{$title-selector} {
|
207
|
+
border-top: none;
|
208
|
+
border: $section-border-style $section-border-size $section-border-color;
|
200
209
|
|
201
|
-
|
210
|
+
a {
|
211
|
+
display: block;
|
212
|
+
width: 100%;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
#{$content-selector} { display: none; }
|
216
|
+
&:first-child #{$title-selector} { border-bottom: none; }
|
202
217
|
|
203
218
|
&.active {
|
204
|
-
& >
|
219
|
+
& > #{$content-selector} {
|
205
220
|
display: block;
|
206
221
|
position: absolute;
|
207
222
|
#{$default-float}: 100%;
|
208
|
-
top:
|
223
|
+
top: 0px;
|
209
224
|
z-index: 999;
|
210
225
|
min-width: $section-vertical-nav-min-width;
|
211
|
-
border: $section-border-
|
226
|
+
border: $section-border-style $section-border-size $section-border-color;
|
212
227
|
}
|
213
228
|
}
|
214
229
|
}
|
215
230
|
|
216
|
-
// Horizontal Nav
|
231
|
+
// Styles for when Horizontal Nav
|
217
232
|
@else if $section-type == horizontal-nav {
|
218
233
|
padding-top: 0;
|
219
234
|
border: 0;
|
220
235
|
position: static;
|
221
236
|
|
222
|
-
|
237
|
+
> #{$title-selector} {
|
223
238
|
width: auto;
|
224
|
-
border: $section-border-
|
239
|
+
border: $section-border-style $section-border-size $section-border-color;
|
225
240
|
border-#{$default-float}: 0;
|
226
241
|
top: -1px;
|
227
242
|
position: absolute;
|
@@ -230,40 +245,40 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
230
245
|
a { width: 100%; }
|
231
246
|
}
|
232
247
|
|
233
|
-
|
248
|
+
#{$content-selector} { display: none; }
|
234
249
|
|
235
250
|
&.active {
|
236
|
-
& >
|
251
|
+
& > #{$content-selector} {
|
237
252
|
display: block;
|
238
253
|
position: absolute;
|
239
254
|
z-index: 999;
|
240
255
|
#{$default-float}: 0;
|
241
256
|
top: -2px;
|
242
257
|
min-width: $section-vertical-nav-min-width;
|
243
|
-
border: $section-border-
|
258
|
+
border: $section-border-style $section-border-size $section-border-color;
|
244
259
|
}
|
245
260
|
}
|
246
261
|
}
|
262
|
+
|
247
263
|
}
|
248
264
|
|
249
265
|
|
266
|
+
|
250
267
|
@if $include-html-section-classes != false {
|
251
268
|
|
252
269
|
/* Sections */
|
253
270
|
.section-container, .section-container.auto {
|
254
|
-
@include section-container;
|
271
|
+
@include section-container(accordion);
|
255
272
|
|
256
273
|
&>section,
|
257
|
-
&>.section {
|
258
|
-
@include section;
|
259
|
-
}
|
274
|
+
&>.section { @include section(accordion); }
|
260
275
|
}
|
261
276
|
|
262
277
|
.section-container.tabs {
|
263
278
|
@include section-container(false, tabs);
|
264
279
|
|
265
280
|
&>section,
|
266
|
-
&>.section { @include section(tabs); }
|
281
|
+
&>.section { @include section(tabs, $title-bg-active:#fff); }
|
267
282
|
}
|
268
283
|
|
269
284
|
@media #{$small} {
|
@@ -272,7 +287,7 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
272
287
|
@include section-container(false, tabs);
|
273
288
|
|
274
289
|
&>section,
|
275
|
-
&>.section { @include section(tabs); }
|
290
|
+
&>.section { @include section(tabs, $title-bg-active:#fff); }
|
276
291
|
}
|
277
292
|
.section-container.accordion .section {
|
278
293
|
padding-top: 0 !important;
|
@@ -286,7 +301,7 @@ $section-bottom-margin: emCalc(20px) !default;
|
|
286
301
|
}
|
287
302
|
|
288
303
|
.section-container.vertical-nav {
|
289
|
-
@include section-container(false);
|
304
|
+
@include section-container(false, vertical-nav);
|
290
305
|
|
291
306
|
&>section,
|
292
307
|
&>.section { @include section(vertical-nav); }
|