foundation-rails 5.3.3.0 → 5.4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bower.json +2 -2
- data/lib/foundation/rails/version.rb +1 -1
- data/vendor/assets/_settings.scss +363 -258
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +55 -27
- data/vendor/assets/javascripts/foundation/foundation.js +14 -2
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +37 -6
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.slider.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +19 -16
- data/vendor/assets/stylesheets/foundation/_settings.scss +363 -258
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +3 -3
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +8 -3
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +89 -5
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +5 -5
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +7 -7
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +18 -17
- data/vendor/assets/stylesheets/foundation/components/_global.scss +36 -9
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +3 -1
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +96 -33
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +8 -8
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +164 -12
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +10 -10
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +5 -5
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +11 -11
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +44 -38
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +6 -2
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +8 -6
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +17 -6
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_toolbar.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +6 -5
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +29 -26
- data/vendor/assets/stylesheets/foundation/components/_type.scss +8 -8
- metadata +4 -4
@@ -13,6 +13,8 @@ $include-xl-html-grid-classes: false !default;
|
|
13
13
|
$row-width: rem-calc(1000) !default;
|
14
14
|
$total-columns: 12 !default;
|
15
15
|
|
16
|
+
$last-child-float: $opposite-direction !default;
|
17
|
+
|
16
18
|
//
|
17
19
|
// Grid Functions
|
18
20
|
//
|
@@ -231,7 +233,7 @@ $total-columns: 12 !default;
|
|
231
233
|
.column,
|
232
234
|
.columns { @include grid-column($columns:$total-columns); }
|
233
235
|
|
234
|
-
[class*="column"] + [class*="column"]:last-child { float: $
|
236
|
+
[class*="column"] + [class*="column"]:last-child { float: $last-child-float; }
|
235
237
|
[class*="column"] + [class*="column"].end { float: $default-float; }
|
236
238
|
|
237
239
|
@media #{$small-up} {
|
@@ -13,11 +13,11 @@ $include-html-icon-bar-classes: $include-html-classes !default;
|
|
13
13
|
// @variables
|
14
14
|
|
15
15
|
// We use these to style the icon-bar and items
|
16
|
-
$icon-bar-bg:
|
17
|
-
$icon-bar-font-color:
|
16
|
+
$icon-bar-bg: $oil !default;
|
17
|
+
$icon-bar-font-color: $white !default;
|
18
18
|
$icon-bar-font-size: 1rem !default;
|
19
19
|
$icon-bar-hover-color: $primary-color !default;
|
20
|
-
$icon-bar-icon-color:
|
20
|
+
$icon-bar-icon-color: $white !default;
|
21
21
|
$icon-bar-icon-size: 1.875rem !default;
|
22
22
|
$icon-bar-image-width: 1.875rem !default;
|
23
23
|
$icon-bar-image-height: 1.875rem !default;
|
@@ -28,10 +28,8 @@ $icon-bar-item-padding: 1.25rem !default;
|
|
28
28
|
// @mixins
|
29
29
|
//
|
30
30
|
|
31
|
-
// We use this mixin to create the base styles for our
|
31
|
+
// We use this mixin to create the base styles for our Icon bar element.
|
32
32
|
//
|
33
|
-
// $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
|
34
|
-
// $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
|
35
33
|
@mixin icon-bar-base() {
|
36
34
|
|
37
35
|
width: 100%;
|
@@ -85,7 +83,7 @@ $icon-bar-item-padding: 1.25rem !default;
|
|
85
83
|
text-align: left;
|
86
84
|
}
|
87
85
|
|
88
|
-
&.vertical {
|
86
|
+
&.vertical, &.small-vertical{
|
89
87
|
height: 100%;
|
90
88
|
width: auto;
|
91
89
|
|
@@ -95,12 +93,34 @@ $icon-bar-item-padding: 1.25rem !default;
|
|
95
93
|
float: none;
|
96
94
|
}
|
97
95
|
}
|
96
|
+
|
97
|
+
&.medium-vertical {
|
98
|
+
@media #{$medium-up} {
|
99
|
+
height: 100%;
|
100
|
+
width: auto;
|
101
|
+
|
102
|
+
.item {
|
103
|
+
width: auto;
|
104
|
+
margin: auto;
|
105
|
+
float: none;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
&.large-vertical {
|
110
|
+
@media #{$large-up} {
|
111
|
+
height: 100%;
|
112
|
+
width: auto;
|
113
|
+
|
114
|
+
.item {
|
115
|
+
width: auto;
|
116
|
+
margin: auto;
|
117
|
+
float: none;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
98
121
|
}
|
99
122
|
|
100
123
|
// We use this mixin to create the size styles for icon bars.
|
101
|
-
//
|
102
|
-
// $height - Height (in px) of the switch. Default: $switch-height-med.
|
103
|
-
// $font-size - Font size of text in switch. Default: $switch-font-size-med.
|
104
124
|
@mixin icon-bar-size(
|
105
125
|
$padding: $icon-bar-item-padding,
|
106
126
|
$font-size: $icon-bar-font-size,
|
@@ -109,8 +129,8 @@ $icon-bar-item-padding: 1.25rem !default;
|
|
109
129
|
$image-height: $icon-bar-image-height) {
|
110
130
|
|
111
131
|
& > * {
|
112
|
-
font-size: $
|
113
|
-
padding: $
|
132
|
+
font-size: $font-size;
|
133
|
+
padding: $padding;
|
114
134
|
|
115
135
|
i, img {
|
116
136
|
|
@@ -120,24 +140,17 @@ $icon-bar-item-padding: 1.25rem !default;
|
|
120
140
|
}
|
121
141
|
|
122
142
|
i {
|
123
|
-
font-size: $icon-
|
143
|
+
font-size: $icon-size;
|
124
144
|
}
|
125
145
|
|
126
146
|
img {
|
127
|
-
width: $
|
128
|
-
height: $
|
147
|
+
width: $image-width;
|
148
|
+
height: $image-height;
|
129
149
|
}
|
130
150
|
}
|
131
151
|
|
132
152
|
}
|
133
153
|
|
134
|
-
// We use this mixin to add color and other fanciness to the switches.
|
135
|
-
//
|
136
|
-
// $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
|
137
|
-
// $active-color - Background color of positive side of switch. Default: $switch-positive-color.
|
138
|
-
// $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
|
139
|
-
// $radius - Radius to apply to switch. Default: false.
|
140
|
-
// $base-style - Apply base styles? Default: true.
|
141
154
|
@mixin icon-bar-style(
|
142
155
|
$bar-bg:$icon-bar-bg,
|
143
156
|
$bar-font-color:$icon-bar-font-color,
|
@@ -165,12 +178,12 @@ $icon-bar-item-padding: 1.25rem !default;
|
|
165
178
|
}
|
166
179
|
|
167
180
|
// We use this to quickly create icon bars with a single mixin
|
168
|
-
// $height
|
169
|
-
// $bar-bg
|
170
|
-
// $bar-font-color
|
171
|
-
// $bar-hover-color
|
172
|
-
// $bar-icon-color
|
173
|
-
// $bar-active-color
|
181
|
+
// $height - The overall calculated height of the icon bar (horizontal)
|
182
|
+
// $bar-bg - the background color of the bar
|
183
|
+
// $bar-font-color - the font color
|
184
|
+
// $bar-hover-color - okay these are pretty obvious variables
|
185
|
+
// $bar-icon-color - maybe we could skip explaining them all? Okay this one does change icon color if you use an icon font
|
186
|
+
// $bar-active-color - the color of an active / hover state
|
174
187
|
// $base-style - Apply base styles? Default: true.
|
175
188
|
|
176
189
|
@mixin icon-bar(
|
@@ -208,23 +221,73 @@ $icon-bar-item-padding: 1.25rem !default;
|
|
208
221
|
|
209
222
|
&.two-up {
|
210
223
|
.item { width: 50%; }
|
211
|
-
&.vertical .item { width: auto; }
|
224
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
225
|
+
&.medium-vertical .item {
|
226
|
+
@media #{$medium-up} {
|
227
|
+
width: auto;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
&.large-vertical .item {
|
231
|
+
@media #{$large-up} {
|
232
|
+
width: auto;
|
233
|
+
}
|
234
|
+
}
|
212
235
|
}
|
213
236
|
&.three-up {
|
214
237
|
.item { width: 33.3333%; }
|
215
|
-
&.vertical .item { width: auto; }
|
238
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
239
|
+
&.medium-vertical .item {
|
240
|
+
@media #{$medium-up} {
|
241
|
+
width: auto;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
&.large-vertical .item {
|
245
|
+
@media #{$large-up} {
|
246
|
+
width: auto;
|
247
|
+
}
|
248
|
+
}
|
216
249
|
}
|
217
250
|
&.four-up {
|
218
251
|
.item { width: 25%; }
|
219
|
-
&.vertical .item { width: auto; }
|
252
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
253
|
+
&.medium-vertical .item {
|
254
|
+
@media #{$medium-up} {
|
255
|
+
width: auto;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
&.large-vertical .item {
|
259
|
+
@media #{$large-up} {
|
260
|
+
width: auto;
|
261
|
+
}
|
262
|
+
}
|
220
263
|
}
|
221
264
|
&.five-up {
|
222
265
|
.item { width: 20%; }
|
223
|
-
&.vertical .item { width: auto; }
|
266
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
267
|
+
&.medium-vertical .item {
|
268
|
+
@media #{$medium-up} {
|
269
|
+
width: auto;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
&.large-vertical .item {
|
273
|
+
@media #{$large-up} {
|
274
|
+
width: auto;
|
275
|
+
}
|
276
|
+
}
|
224
277
|
}
|
225
278
|
&.six-up {
|
226
279
|
.item { width: 16.66667%; }
|
227
|
-
&.vertical .item { width: auto; }
|
280
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
281
|
+
&.medium-vertical .item {
|
282
|
+
@media #{$medium-up} {
|
283
|
+
width: auto;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
&.large-vertical .item {
|
287
|
+
@media #{$large-up} {
|
288
|
+
width: auto;
|
289
|
+
}
|
290
|
+
}
|
228
291
|
}
|
229
292
|
}
|
230
293
|
}
|
@@ -10,15 +10,15 @@
|
|
10
10
|
$include-html-joyride-classes: $include-html-classes !default;
|
11
11
|
|
12
12
|
// Controlling default Joyride styles
|
13
|
-
$joyride-tip-bg:
|
13
|
+
$joyride-tip-bg: $oil !default;
|
14
14
|
$joyride-tip-default-width: 300px !default;
|
15
15
|
$joyride-tip-padding: rem-calc(18 20 24) !default;
|
16
|
-
$joyride-tip-border: solid 1px
|
16
|
+
$joyride-tip-border: solid 1px $charcoal !default;
|
17
17
|
$joyride-tip-radius: 4px !default;
|
18
18
|
$joyride-tip-position-offset: 22px !default;
|
19
19
|
|
20
20
|
// Here, we're setting the tip font styles
|
21
|
-
$joyride-tip-font-color:
|
21
|
+
$joyride-tip-font-color: $white !default;
|
22
22
|
$joyride-tip-font-size: rem-calc(14) !default;
|
23
23
|
$joyride-tip-header-weight: $font-weight-bold !default;
|
24
24
|
|
@@ -28,10 +28,10 @@ $joyride-tip-nub-size: 10px !default;
|
|
28
28
|
// This adjusts the styles for the timer when its enabled
|
29
29
|
$joyride-tip-timer-width: 50px !default;
|
30
30
|
$joyride-tip-timer-height: 3px !default;
|
31
|
-
$joyride-tip-timer-color:
|
31
|
+
$joyride-tip-timer-color: $steel !default;
|
32
32
|
|
33
33
|
// This changes up the styles for the close button
|
34
|
-
$joyride-tip-close-color:
|
34
|
+
$joyride-tip-close-color: $monsoon !default;
|
35
35
|
$joyride-tip-close-size: 24px !default;
|
36
36
|
$joyride-tip-close-weight: $font-weight-normal !default;
|
37
37
|
|
@@ -153,7 +153,7 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
153
153
|
line-height: .5 !important;
|
154
154
|
|
155
155
|
&:hover,
|
156
|
-
&:focus { color:
|
156
|
+
&:focus { color: $smoke !important; }
|
157
157
|
}
|
158
158
|
|
159
159
|
.joyride-modal-bg {
|
@@ -170,11 +170,11 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
170
170
|
}
|
171
171
|
|
172
172
|
.joyride-expose-wrapper {
|
173
|
-
background-color:
|
173
|
+
background-color: $white;
|
174
174
|
position: absolute;
|
175
175
|
border-radius: 3px;
|
176
176
|
z-index: 102;
|
177
|
-
box-shadow: 0 0 15px
|
177
|
+
box-shadow: 0 0 15px $white;
|
178
178
|
}
|
179
179
|
|
180
180
|
.joyride-expose-cover {
|
@@ -12,15 +12,15 @@ $include-html-keystroke-classes: $include-html-classes !default;
|
|
12
12
|
// We use these to control text styles.
|
13
13
|
$keystroke-font: "Consolas", "Menlo", "Courier", monospace !default;
|
14
14
|
$keystroke-font-size: inherit !default;
|
15
|
-
$keystroke-font-color:
|
16
|
-
$keystroke-font-color-alt:
|
15
|
+
$keystroke-font-color: $jet !default;
|
16
|
+
$keystroke-font-color-alt: $white !default;
|
17
17
|
$keystroke-function-factor: -7% !default;
|
18
18
|
|
19
19
|
// We use this to control keystroke padding.
|
20
20
|
$keystroke-padding: rem-calc(2 4 0) !default;
|
21
21
|
|
22
22
|
// We use these to control background and border styles.
|
23
|
-
$keystroke-bg: scale-color(
|
23
|
+
$keystroke-bg: scale-color($white, $lightness: $keystroke-function-factor) !default;
|
24
24
|
$keystroke-border-style: solid !default;
|
25
25
|
$keystroke-border-width: 1px !default;
|
26
26
|
$keystroke-border-color: scale-color($keystroke-bg, $lightness: $keystroke-function-factor) !default;
|
@@ -30,7 +30,7 @@ $keystroke-radius: $global-radius !default;
|
|
30
30
|
// @mixins
|
31
31
|
//
|
32
32
|
// We use this mixin to create keystroke styles.
|
33
|
-
// $bg - Default: $keystroke-bg || scale-color(
|
33
|
+
// $bg - Default: $keystroke-bg || scale-color($white, $lightness: $keystroke-function-factor) !default;
|
34
34
|
@mixin keystroke($bg:$keystroke-bg) {
|
35
35
|
// This find the lightness percentage of the background color.
|
36
36
|
$bg-lightness: lightness($bg);
|
@@ -16,8 +16,8 @@ $label-radius: $global-radius !default;
|
|
16
16
|
// We use these to style the label text
|
17
17
|
$label-font-sizing: rem-calc(11) !default;
|
18
18
|
$label-font-weight: $font-weight-normal !default;
|
19
|
-
$label-font-color:
|
20
|
-
$label-font-color-alt:
|
19
|
+
$label-font-color: $oil !default;
|
20
|
+
$label-font-color-alt: $white !default;
|
21
21
|
$label-font-family: $body-font-family !default;
|
22
22
|
|
23
23
|
//
|
@@ -8,11 +8,11 @@
|
|
8
8
|
// Off Canvas Tab Bar Variables
|
9
9
|
$include-html-off-canvas-classes: $include-html-classes !default;
|
10
10
|
|
11
|
-
$tabbar-bg:
|
11
|
+
$tabbar-bg: $oil !default;
|
12
12
|
$tabbar-height: rem-calc(45) !default;
|
13
13
|
$tabbar-icon-width: $tabbar-height !default;
|
14
14
|
$tabbar-line-height: $tabbar-height !default;
|
15
|
-
$tabbar-color:
|
15
|
+
$tabbar-color: $white !default;
|
16
16
|
$tabbar-middle-padding: 0 rem-calc(10) !default;
|
17
17
|
|
18
18
|
// Off Canvas Divider Styles
|
@@ -21,31 +21,37 @@ $tabbar-right-section-border: $tabbar-left-section-border;
|
|
21
21
|
|
22
22
|
|
23
23
|
// Off Canvas Tab Bar Headers
|
24
|
-
$tabbar-header-color:
|
24
|
+
$tabbar-header-color: $white !default;
|
25
25
|
$tabbar-header-weight: $font-weight-bold !default;
|
26
26
|
$tabbar-header-line-height: $tabbar-height !default;
|
27
27
|
$tabbar-header-margin: 0 !default;
|
28
28
|
|
29
29
|
// Off Canvas Menu Variables
|
30
30
|
$off-canvas-width: rem-calc(250) !default;
|
31
|
-
$off-canvas-bg:
|
31
|
+
$off-canvas-bg: $oil !default;
|
32
32
|
|
33
33
|
// Off Canvas Menu List Variables
|
34
34
|
$off-canvas-label-padding: 0.3rem rem-calc(15) !default;
|
35
|
-
$off-canvas-label-color:
|
35
|
+
$off-canvas-label-color: $aluminum !default;
|
36
36
|
$off-canvas-label-text-transform: uppercase !default;
|
37
37
|
$off-canvas-label-font-size: rem-calc(12) !default;
|
38
38
|
$off-canvas-label-font-weight: $font-weight-bold !default;
|
39
|
-
$off-canvas-label-bg:
|
39
|
+
$off-canvas-label-bg: $tuatara !default;
|
40
40
|
$off-canvas-label-border-top: 1px solid scale-color($off-canvas-label-bg, $lightness: 14%) !default;
|
41
41
|
$off-canvas-label-border-bottom: none !default;
|
42
42
|
$off-canvas-label-margin:0 !default;
|
43
43
|
$off-canvas-link-padding: rem-calc(10, 15) !default;
|
44
|
-
$off-canvas-link-color: rgba(
|
44
|
+
$off-canvas-link-color: rgba($white, 0.7) !default;
|
45
45
|
$off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%) !default;
|
46
|
+
$off-canvas-back-bg: #444 !default;
|
47
|
+
$off-canvas-back-border-top: $off-canvas-label-border-top !default;
|
48
|
+
$off-canvas-back-border-bottom: $off-canvas-label-border-bottom !default;
|
49
|
+
$off-canvas-back-hover-bg: scale-color($off-canvas-back-bg, $lightness: -30%) !default;
|
50
|
+
$off-canvas-back-hover-border-top: 1px solid scale-color($off-canvas-label-bg, $lightness: 14%) !default;
|
51
|
+
$off-canvas-back-hover-border-bottom: none !default;
|
46
52
|
|
47
53
|
// Off Canvas Menu Icon Variables
|
48
|
-
$tabbar-menu-icon-color:
|
54
|
+
$tabbar-menu-icon-color: $white !default;
|
49
55
|
$tabbar-menu-icon-hover: scale-color($tabbar-menu-icon-color, $lightness: -30%) !default;
|
50
56
|
|
51
57
|
$tabbar-menu-icon-text-indent: rem-calc(35) !default;
|
@@ -62,9 +68,9 @@ $tabbar-hamburger-icon-gap: 6px !default;
|
|
62
68
|
// Off Canvas Back-Link Overlay
|
63
69
|
$off-canvas-overlay-transition: background 300ms ease !default;
|
64
70
|
$off-canvas-overlay-cursor: pointer !default;
|
65
|
-
$off-canvas-overlay-box-shadow: -4px 0 4px rgba(
|
66
|
-
$off-canvas-overlay-background: rgba(
|
67
|
-
$off-canvas-overlay-background-hover: rgba(
|
71
|
+
$off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, 0.5), 4px 0 4px rgba($black, 0.5) !default;
|
72
|
+
$off-canvas-overlay-background: rgba($white, 0.2) !default;
|
73
|
+
$off-canvas-overlay-background-hover: rgba($white, 0.05) !default;
|
68
74
|
|
69
75
|
// Transition Variables
|
70
76
|
$menu-slide: "transform 500ms ease" !default;
|
@@ -189,7 +195,9 @@ $menu-slide: "transform 500ms ease" !default;
|
|
189
195
|
text-align: center;
|
190
196
|
height: $tabbar-height;
|
191
197
|
top: 0;
|
192
|
-
@media #{$medium-up} {
|
198
|
+
@media #{$medium-up} {
|
199
|
+
&.left, &.right { text-align: left; }
|
200
|
+
}
|
193
201
|
|
194
202
|
// still need to make these non-presentational
|
195
203
|
&.left {
|
@@ -340,6 +348,28 @@ $menu-slide: "transform 500ms ease" !default;
|
|
340
348
|
}
|
341
349
|
.exit-off-canvas { @include back-link; }
|
342
350
|
}
|
351
|
+
.offcanvas-overlap-left {
|
352
|
+
.right-off-canvas-menu {
|
353
|
+
-ms-transform: none;
|
354
|
+
-webkit-transform: none;
|
355
|
+
-moz-transform: none;
|
356
|
+
-o-transform: none;
|
357
|
+
transform: none;
|
358
|
+
z-index: 1003;
|
359
|
+
}
|
360
|
+
.exit-off-canvas { @include back-link; }
|
361
|
+
}
|
362
|
+
.offcanvas-overlap-right {
|
363
|
+
.left-off-canvas-menu {
|
364
|
+
-ms-transform: none;
|
365
|
+
-webkit-transform: none;
|
366
|
+
-moz-transform: none;
|
367
|
+
-o-transform: none;
|
368
|
+
transform: none;
|
369
|
+
z-index: 1003;
|
370
|
+
}
|
371
|
+
.exit-off-canvas { @include back-link; }
|
372
|
+
}
|
343
373
|
|
344
374
|
// Older browsers
|
345
375
|
.no-csstransforms {
|
@@ -352,3 +382,125 @@ $menu-slide: "transform 500ms ease" !default;
|
|
352
382
|
|
353
383
|
}
|
354
384
|
}
|
385
|
+
|
386
|
+
//
|
387
|
+
// Off-Canvas Submenu Classes
|
388
|
+
//
|
389
|
+
@mixin off-canvas-submenu($position) {
|
390
|
+
@include kill-flicker;
|
391
|
+
* { @include kill-flicker; }
|
392
|
+
width: $off-canvas-width;
|
393
|
+
top: 0;
|
394
|
+
bottom: 0;
|
395
|
+
position: absolute;
|
396
|
+
margin: 0;
|
397
|
+
overflow-y: auto;
|
398
|
+
background: $off-canvas-bg;
|
399
|
+
z-index: 1002;
|
400
|
+
box-sizing: content-box;
|
401
|
+
-webkit-overflow-scrolling: touch;
|
402
|
+
@if $position == left {
|
403
|
+
@include translate3d(-100%,0,0);
|
404
|
+
left: 0;
|
405
|
+
}
|
406
|
+
@if $position == right {
|
407
|
+
@include translate3d(100%,0,0);
|
408
|
+
right: 0;
|
409
|
+
}
|
410
|
+
-webkit-transition: -webkit-#{$menu-slide};
|
411
|
+
-moz-transition: -moz-#{$menu-slide};
|
412
|
+
-ms-transition: -ms-#{$menu-slide};
|
413
|
+
-o-transition: -o-#{$menu-slide};
|
414
|
+
transition: #{$menu-slide};
|
415
|
+
|
416
|
+
//back button style like label
|
417
|
+
.back > a {
|
418
|
+
padding: $off-canvas-label-padding;
|
419
|
+
color: $off-canvas-label-color;
|
420
|
+
text-transform: $off-canvas-label-text-transform;
|
421
|
+
font-weight: $off-canvas-label-font-weight;
|
422
|
+
background: $off-canvas-back-bg;
|
423
|
+
border-top: $off-canvas-back-border-top;
|
424
|
+
border-bottom: $off-canvas-back-border-bottom;
|
425
|
+
&:hover {
|
426
|
+
background: $off-canvas-back-hover-bg;
|
427
|
+
border-top: $off-canvas-back-hover-border-top;
|
428
|
+
border-bottom: $off-canvas-back-hover-border-bottom;
|
429
|
+
}
|
430
|
+
margin: $off-canvas-label-margin;
|
431
|
+
@if $position == right {
|
432
|
+
@if $text-direction == rtl {
|
433
|
+
&:before {
|
434
|
+
@include icon-double-arrows($position: left);
|
435
|
+
}
|
436
|
+
} @else {
|
437
|
+
&:after {
|
438
|
+
@include icon-double-arrows($position: right);
|
439
|
+
}
|
440
|
+
}
|
441
|
+
}
|
442
|
+
@if $position == left {
|
443
|
+
@if $text-direction == rtl {
|
444
|
+
&:after {
|
445
|
+
@include icon-double-arrows($position: right);
|
446
|
+
}
|
447
|
+
} @else {
|
448
|
+
&:before {
|
449
|
+
@include icon-double-arrows($position: left);
|
450
|
+
}
|
451
|
+
}
|
452
|
+
}
|
453
|
+
}
|
454
|
+
}
|
455
|
+
//Left double angle quote or Right double angle quote chars
|
456
|
+
@mixin icon-double-arrows ($position){
|
457
|
+
@if $position == left {
|
458
|
+
content: "\AB";
|
459
|
+
@if $text-direction == rtl {
|
460
|
+
margin-left: 0.5rem;
|
461
|
+
} @else {
|
462
|
+
margin-right: 0.5rem;
|
463
|
+
}
|
464
|
+
}
|
465
|
+
@if $position == right {
|
466
|
+
content: "\BB";
|
467
|
+
@if $text-direction == rtl {
|
468
|
+
margin-right: 0.5rem;
|
469
|
+
} @else {
|
470
|
+
margin-left: 0.5rem;
|
471
|
+
}
|
472
|
+
}
|
473
|
+
display: inline;
|
474
|
+
}
|
475
|
+
|
476
|
+
@if $include-html-off-canvas-classes {
|
477
|
+
.left-submenu {
|
478
|
+
@include off-canvas-submenu($position: left);
|
479
|
+
&.move-right {
|
480
|
+
@include translate3d(0%,0,0);
|
481
|
+
}
|
482
|
+
}
|
483
|
+
|
484
|
+
.right-submenu {
|
485
|
+
@include off-canvas-submenu($position: right);
|
486
|
+
&.move-left {
|
487
|
+
@include translate3d(0%,0,0);
|
488
|
+
}
|
489
|
+
}
|
490
|
+
|
491
|
+
@if $text-direction == rtl {
|
492
|
+
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
|
493
|
+
@include icon-double-arrows($position: left);
|
494
|
+
}
|
495
|
+
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
|
496
|
+
@include icon-double-arrows($position: right);
|
497
|
+
}
|
498
|
+
} @else {
|
499
|
+
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
|
500
|
+
@include icon-double-arrows($position: right);
|
501
|
+
}
|
502
|
+
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
|
503
|
+
@include icon-double-arrows($position: left);
|
504
|
+
}
|
505
|
+
}
|
506
|
+
}
|