foundation-sass-rails 5.5.3.2
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.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +62 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/foundation-sass-rails.gemspec +29 -0
- data/lib/foundation-sass-rails.rb +8 -0
- data/lib/foundation/version.rb +5 -0
- data/lib/generators/foundation/overrides_generator.rb +39 -0
- data/vendor/assets/stylesheets/foundation.scss +42 -0
- data/vendor/assets/stylesheets/foundation/_functions.scss +156 -0
- data/vendor/assets/stylesheets/foundation/_settings.scss +1489 -0
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +161 -0
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +133 -0
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +208 -0
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +261 -0
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +260 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +130 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +269 -0
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +607 -0
- data/vendor/assets/stylesheets/foundation/components/_global.scss +566 -0
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +292 -0
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +460 -0
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +58 -0
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +60 -0
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +106 -0
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +34 -0
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +606 -0
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +388 -0
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +163 -0
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +107 -0
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +85 -0
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +177 -0
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +212 -0
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +120 -0
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +203 -0
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +125 -0
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +241 -0
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +135 -0
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +745 -0
- data/vendor/assets/stylesheets/foundation/components/_type.scss +525 -0
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +425 -0
- data/vendor/assets/stylesheets/normalize.scss +424 -0
- metadata +163 -0
@@ -0,0 +1,606 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
@import 'type';
|
7
|
+
|
8
|
+
// Off Canvas Tab Bar Variables
|
9
|
+
$include-html-off-canvas-classes: $include-html-classes !default;
|
10
|
+
|
11
|
+
$tabbar-bg: $oil !default;
|
12
|
+
$tabbar-height: rem-calc(45) !default;
|
13
|
+
$tabbar-icon-width: $tabbar-height !default;
|
14
|
+
$tabbar-line-height: $tabbar-height !default;
|
15
|
+
$tabbar-color: $white !default;
|
16
|
+
$tabbar-middle-padding: 0 rem-calc(10) !default;
|
17
|
+
|
18
|
+
// Off Canvas Divider Styles
|
19
|
+
$tabbar-left-section-border: solid 1px scale-color($tabbar-bg, $lightness: -50%) !default;
|
20
|
+
$tabbar-right-section-border: $tabbar-left-section-border;
|
21
|
+
|
22
|
+
|
23
|
+
// Off Canvas Tab Bar Headers
|
24
|
+
$tabbar-header-color: $white !default;
|
25
|
+
$tabbar-header-weight: $font-weight-bold !default;
|
26
|
+
$tabbar-header-line-height: $tabbar-height !default;
|
27
|
+
$tabbar-header-margin: 0 !default;
|
28
|
+
|
29
|
+
// Off Canvas Menu Variables
|
30
|
+
$off-canvas-width: rem-calc(250) !default;
|
31
|
+
$off-canvas-height: rem-calc(300) !default;
|
32
|
+
$off-canvas-bg: $oil !default;
|
33
|
+
$off-canvas-bg-hover: scale-color($tabbar-bg, $lightness: -30%) !default;
|
34
|
+
$off-canvas-bg-active: scale-color($tabbar-bg, $lightness: -30%) !default;
|
35
|
+
|
36
|
+
// Off Canvas Menu List Variables
|
37
|
+
$off-canvas-label-padding: .3rem rem-calc(15) !default;
|
38
|
+
$off-canvas-label-color: $aluminum !default;
|
39
|
+
$off-canvas-label-text-transform: uppercase !default;
|
40
|
+
$off-canvas-label-font-size: rem-calc(12) !default;
|
41
|
+
$off-canvas-label-font-weight: $font-weight-bold !default;
|
42
|
+
$off-canvas-label-bg: $tuatara !default;
|
43
|
+
$off-canvas-label-border-top: 1px solid scale-color($off-canvas-label-bg, $lightness: 14%) !default;
|
44
|
+
$off-canvas-label-border-bottom: none !default;
|
45
|
+
$off-canvas-label-margin:0 !default;
|
46
|
+
$off-canvas-link-padding: rem-calc(10, 15) !default;
|
47
|
+
$off-canvas-link-color: rgba($white, .7) !default;
|
48
|
+
$off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%) !default;
|
49
|
+
$off-canvas-back-bg: #444 !default;
|
50
|
+
$off-canvas-back-border-top: $off-canvas-label-border-top !default;
|
51
|
+
$off-canvas-back-border-bottom: $off-canvas-label-border-bottom !default;
|
52
|
+
$off-canvas-back-hover-bg: scale-color($off-canvas-back-bg, $lightness: -30%) !default;
|
53
|
+
$off-canvas-back-hover-border-top: 1px solid scale-color($off-canvas-label-bg, $lightness: 14%) !default;
|
54
|
+
$off-canvas-back-hover-border-bottom: none !default;
|
55
|
+
|
56
|
+
// Off Canvas Menu Icon Variables
|
57
|
+
$tabbar-menu-icon-color: $white !default;
|
58
|
+
$tabbar-menu-icon-hover: scale-color($tabbar-menu-icon-color, $lightness: -30%) !default;
|
59
|
+
|
60
|
+
$tabbar-menu-icon-text-indent: rem-calc(35) !default;
|
61
|
+
$tabbar-menu-icon-width: $tabbar-icon-width !default;
|
62
|
+
$tabbar-menu-icon-height: $tabbar-height !default;
|
63
|
+
$tabbar-menu-icon-padding: 0 !default;
|
64
|
+
|
65
|
+
$tabbar-hamburger-icon-width: rem-calc(16) !default;
|
66
|
+
$tabbar-hamburger-icon-left: false !default;
|
67
|
+
$tabbar-hamburger-icon-top: false !default;
|
68
|
+
$tabbar-hamburger-icon-thickness: 1px !default;
|
69
|
+
$tabbar-hamburger-icon-gap: 6px !default;
|
70
|
+
|
71
|
+
// Off Canvas Back-Link Overlay
|
72
|
+
$off-canvas-overlay-transition: background 300ms ease !default;
|
73
|
+
$off-canvas-overlay-cursor: pointer !default;
|
74
|
+
$off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, .5), 4px 0 4px rgba($black, .5) !default;
|
75
|
+
$off-canvas-overlay-background: rgba($white, .2) !default;
|
76
|
+
$off-canvas-overlay-background-hover: rgba($white, .05) !default;
|
77
|
+
|
78
|
+
// Transition Variables
|
79
|
+
$menu-slide: "transform 500ms ease" !default;
|
80
|
+
|
81
|
+
|
82
|
+
// MIXINS
|
83
|
+
// Remove transition flicker on phones
|
84
|
+
@mixin kill-flicker {
|
85
|
+
// -webkit-transform: translateZ(0x);
|
86
|
+
-webkit-backface-visibility: hidden;
|
87
|
+
}
|
88
|
+
|
89
|
+
// Basic properties for the content wraps
|
90
|
+
@mixin wrap-base {
|
91
|
+
position: relative;
|
92
|
+
width: 100%;
|
93
|
+
}
|
94
|
+
|
95
|
+
@mixin translate3d($tx, $ty, $tz) {
|
96
|
+
-webkit-transform: translate3d($tx, $ty, $tz);
|
97
|
+
-moz-transform: translate3d($tx, $ty, $tz);
|
98
|
+
-ms-transform: translate($tx, $ty);
|
99
|
+
-o-transform: translate3d($tx, $ty, $tz);
|
100
|
+
transform: translate3d($tx, $ty, $tz)
|
101
|
+
}
|
102
|
+
|
103
|
+
// basic styles for off-canvas menu container
|
104
|
+
@mixin off-canvas-menu($position) {
|
105
|
+
@include kill-flicker;
|
106
|
+
* { @include kill-flicker; }
|
107
|
+
background: $off-canvas-bg;
|
108
|
+
bottom: 0;
|
109
|
+
box-sizing: content-box;
|
110
|
+
-webkit-overflow-scrolling: touch;
|
111
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
112
|
+
overflow-x: hidden;
|
113
|
+
overflow-y: auto;
|
114
|
+
position: absolute;
|
115
|
+
transition: transform 500ms ease 0s;
|
116
|
+
width: $off-canvas-width;
|
117
|
+
z-index: 1001;
|
118
|
+
|
119
|
+
@if $position == left {
|
120
|
+
@include translate3d(-100%,0,0);
|
121
|
+
left: 0;
|
122
|
+
top: 0;
|
123
|
+
}
|
124
|
+
@if $position == right {
|
125
|
+
@include translate3d(100%,0,0);
|
126
|
+
right: 0;
|
127
|
+
top: 0;
|
128
|
+
}
|
129
|
+
@if $position == top {
|
130
|
+
@include translate3d(0,-100%,0);
|
131
|
+
top: 0;
|
132
|
+
width: 100%;
|
133
|
+
height: $off-canvas-height;
|
134
|
+
}
|
135
|
+
@if $position == bottom {
|
136
|
+
@include translate3d(0,100%,0);
|
137
|
+
bottom: 0;
|
138
|
+
width: 100%;
|
139
|
+
height: $off-canvas-height;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
// OFF CANVAS WRAP
|
144
|
+
// Wrap visible content and prevent scroll bars
|
145
|
+
@mixin off-canvas-wrap {
|
146
|
+
@include kill-flicker;
|
147
|
+
@include wrap-base;
|
148
|
+
overflow: hidden;
|
149
|
+
&.move-right,
|
150
|
+
&.move-left,
|
151
|
+
&.move-bottom,
|
152
|
+
&.move-top { min-height: 100%; -webkit-overflow-scrolling: touch; }
|
153
|
+
}
|
154
|
+
|
155
|
+
// INNER WRAP
|
156
|
+
// Main content area that moves to reveal the off-canvas nav
|
157
|
+
@mixin inner-wrap {
|
158
|
+
// @include kill-flicker;
|
159
|
+
// removed for now till chrome fixes backface issue
|
160
|
+
@include wrap-base;
|
161
|
+
@include clearfix;
|
162
|
+
-webkit-transition: -webkit-#{$menu-slide};
|
163
|
+
-moz-transition: -moz-#{$menu-slide};
|
164
|
+
-ms-transition: -ms-#{$menu-slide};
|
165
|
+
-o-transition: -o-#{$menu-slide};
|
166
|
+
transition: #{$menu-slide};
|
167
|
+
}
|
168
|
+
|
169
|
+
// TAB BAR
|
170
|
+
// This is the tab bar base
|
171
|
+
@mixin tab-bar-base {
|
172
|
+
@include kill-flicker;
|
173
|
+
|
174
|
+
// base styles
|
175
|
+
background: $tabbar-bg;
|
176
|
+
color: $tabbar-color;
|
177
|
+
height: $tabbar-height;
|
178
|
+
line-height: $tabbar-line-height;
|
179
|
+
|
180
|
+
// make sure it's below the .exit-off-canvas link
|
181
|
+
position: relative;
|
182
|
+
// z-index: 999;
|
183
|
+
|
184
|
+
// Typography
|
185
|
+
h1, h2, h3, h4, h5, h6 {
|
186
|
+
color: $tabbar-header-color;
|
187
|
+
font-weight: $tabbar-header-weight;
|
188
|
+
line-height: $tabbar-header-line-height;
|
189
|
+
margin: $tabbar-header-margin;
|
190
|
+
}
|
191
|
+
h1, h2, h3, h4 { font-size: $h5-font-size; }
|
192
|
+
}
|
193
|
+
|
194
|
+
// SMALL SECTIONS
|
195
|
+
// These are small sections on the left and right that contain the off-canvas toggle buttons;
|
196
|
+
@mixin tabbar-small-section($position) {
|
197
|
+
height: $tabbar-height;
|
198
|
+
position: absolute;
|
199
|
+
top: 0;
|
200
|
+
width: $tabbar-icon-width;
|
201
|
+
@if $position == left {
|
202
|
+
border-right: $tabbar-left-section-border;
|
203
|
+
// box-shadow: 1px 0 0 scale-color($tabbar-bg, $lightness: 13%);
|
204
|
+
left: 0;
|
205
|
+
}
|
206
|
+
@if $position == right {
|
207
|
+
border-left: $tabbar-right-section-border;
|
208
|
+
// box-shadow: -1px 0 0 scale-color($tabbar-bg, $lightness: -50%);
|
209
|
+
right:0;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
@mixin tab-bar-section {
|
214
|
+
height: $tabbar-height;
|
215
|
+
padding: $tabbar-middle-padding;
|
216
|
+
position: absolute;
|
217
|
+
text-align: center;
|
218
|
+
top: 0;
|
219
|
+
&.left { text-align: left; }
|
220
|
+
&.right { text-align: right; }
|
221
|
+
|
222
|
+
|
223
|
+
// still need to make these non-presentational
|
224
|
+
&.left {
|
225
|
+
left: 0;
|
226
|
+
right: $tabbar-icon-width;
|
227
|
+
}
|
228
|
+
&.right {
|
229
|
+
left: $tabbar-icon-width;
|
230
|
+
right: 0;
|
231
|
+
}
|
232
|
+
&.middle {
|
233
|
+
left: $tabbar-icon-width;
|
234
|
+
right: $tabbar-icon-width;
|
235
|
+
}
|
236
|
+
}
|
237
|
+
|
238
|
+
// OFF CANVAS LIST
|
239
|
+
// This is the list of links in the off-canvas menu
|
240
|
+
@mixin off-canvas-list {
|
241
|
+
list-style-type: none;
|
242
|
+
margin:0;
|
243
|
+
padding:0;
|
244
|
+
|
245
|
+
li {
|
246
|
+
label {
|
247
|
+
background: $off-canvas-label-bg;
|
248
|
+
border-bottom: $off-canvas-label-border-bottom;
|
249
|
+
border-top: $off-canvas-label-border-top;
|
250
|
+
color: $off-canvas-label-color;
|
251
|
+
display: block;
|
252
|
+
font-size: $off-canvas-label-font-size;
|
253
|
+
font-weight: $off-canvas-label-font-weight;
|
254
|
+
margin: $off-canvas-label-margin;
|
255
|
+
padding: $off-canvas-label-padding;
|
256
|
+
text-transform: $off-canvas-label-text-transform;
|
257
|
+
}
|
258
|
+
a {
|
259
|
+
border-bottom: $off-canvas-link-border-bottom;
|
260
|
+
color: $off-canvas-link-color;
|
261
|
+
display: block;
|
262
|
+
padding: $off-canvas-link-padding;
|
263
|
+
transition: background 300ms ease;
|
264
|
+
&:hover {
|
265
|
+
background: $off-canvas-bg-hover;
|
266
|
+
}
|
267
|
+
&:active {
|
268
|
+
background: $off-canvas-bg-active;
|
269
|
+
}
|
270
|
+
}
|
271
|
+
}
|
272
|
+
|
273
|
+
}
|
274
|
+
|
275
|
+
// BACK LINK
|
276
|
+
// This is an overlay that, when clicked, will toggle off the off canvas menu
|
277
|
+
@mixin back-link {
|
278
|
+
@include kill-flicker;
|
279
|
+
|
280
|
+
box-shadow: $off-canvas-overlay-box-shadow;
|
281
|
+
cursor: $off-canvas-overlay-cursor;
|
282
|
+
transition: $off-canvas-overlay-transition;
|
283
|
+
|
284
|
+
// fill the screen
|
285
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
286
|
+
background: $off-canvas-overlay-background;
|
287
|
+
bottom: 0;
|
288
|
+
display: block;
|
289
|
+
left: 0;
|
290
|
+
position: absolute;
|
291
|
+
right: 0;
|
292
|
+
top: 0;
|
293
|
+
z-index: 1002;
|
294
|
+
|
295
|
+
@media #{$medium-up} {
|
296
|
+
&:hover {
|
297
|
+
background: $off-canvas-overlay-background-hover;
|
298
|
+
}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
|
302
|
+
//
|
303
|
+
// Off-Canvas Submenu Classes
|
304
|
+
//
|
305
|
+
@mixin off-canvas-submenu($position) {
|
306
|
+
@include kill-flicker;
|
307
|
+
* { @include kill-flicker; }
|
308
|
+
-webkit-overflow-scrolling: touch;
|
309
|
+
background: $off-canvas-bg;
|
310
|
+
bottom: 0;
|
311
|
+
box-sizing: content-box;
|
312
|
+
margin: 0;
|
313
|
+
overflow-x: hidden;
|
314
|
+
overflow-y: auto;
|
315
|
+
position: absolute;
|
316
|
+
top: 0;
|
317
|
+
width: $off-canvas-width;
|
318
|
+
height: $off-canvas-height;
|
319
|
+
z-index: 1002;
|
320
|
+
@if $position == left {
|
321
|
+
@include translate3d(-100%,0,0);
|
322
|
+
left: 0;
|
323
|
+
}
|
324
|
+
@if $position == right {
|
325
|
+
@include translate3d(100%,0,0);
|
326
|
+
right: 0;
|
327
|
+
}
|
328
|
+
@if $position == top {
|
329
|
+
@include translate3d(0,-100%,0);
|
330
|
+
top: 0;
|
331
|
+
width: 100%;
|
332
|
+
}
|
333
|
+
@if $position == bottom {
|
334
|
+
@include translate3d(0,100%,0);
|
335
|
+
bottom: 0;
|
336
|
+
width: 100%;
|
337
|
+
}
|
338
|
+
-webkit-transition: -webkit-#{$menu-slide};
|
339
|
+
-moz-transition: -moz-#{$menu-slide};
|
340
|
+
-ms-transition: -ms-#{$menu-slide};
|
341
|
+
-o-transition: -o-#{$menu-slide};
|
342
|
+
transition: #{$menu-slide};
|
343
|
+
|
344
|
+
//back button style like label
|
345
|
+
.back > a {
|
346
|
+
background: $off-canvas-back-bg;
|
347
|
+
border-bottom: $off-canvas-back-border-bottom;
|
348
|
+
border-top: $off-canvas-back-border-top;
|
349
|
+
color: $off-canvas-label-color;
|
350
|
+
font-weight: $off-canvas-label-font-weight;
|
351
|
+
padding: $off-canvas-label-padding;
|
352
|
+
text-transform: $off-canvas-label-text-transform;
|
353
|
+
|
354
|
+
&:hover {
|
355
|
+
background: $off-canvas-back-hover-bg;
|
356
|
+
border-bottom: $off-canvas-back-hover-border-bottom;
|
357
|
+
border-top: $off-canvas-back-hover-border-top;
|
358
|
+
}
|
359
|
+
|
360
|
+
margin: $off-canvas-label-margin;
|
361
|
+
@if $position == right {
|
362
|
+
@if $text-direction == rtl {
|
363
|
+
&:before {
|
364
|
+
@include icon-double-arrows($position: left);
|
365
|
+
}
|
366
|
+
} @else {
|
367
|
+
&:after {
|
368
|
+
@include icon-double-arrows($position: right);
|
369
|
+
}
|
370
|
+
}
|
371
|
+
}
|
372
|
+
@if $position == left {
|
373
|
+
@if $text-direction == rtl {
|
374
|
+
&:after {
|
375
|
+
@include icon-double-arrows($position: right);
|
376
|
+
}
|
377
|
+
} @else {
|
378
|
+
&:before {
|
379
|
+
@include icon-double-arrows($position: left);
|
380
|
+
}
|
381
|
+
}
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
//Left double angle quote or Right double angle quote chars
|
386
|
+
@mixin icon-double-arrows ($position) {
|
387
|
+
@if $position == left {
|
388
|
+
content: "\AB";
|
389
|
+
@if $text-direction == rtl {
|
390
|
+
margin-left: .5rem;
|
391
|
+
} @else {
|
392
|
+
margin-right: .5rem;
|
393
|
+
}
|
394
|
+
}
|
395
|
+
@if $position == right {
|
396
|
+
content: "\BB";
|
397
|
+
@if $text-direction == rtl {
|
398
|
+
margin-right: .5rem;
|
399
|
+
} @else {
|
400
|
+
margin-left: .5rem;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
display: inline;
|
404
|
+
}
|
405
|
+
|
406
|
+
//
|
407
|
+
// DEFAULT CLASSES
|
408
|
+
//
|
409
|
+
@include exports("offcanvas") {
|
410
|
+
@if $include-html-off-canvas-classes {
|
411
|
+
|
412
|
+
.off-canvas-wrap { @include off-canvas-wrap; }
|
413
|
+
.inner-wrap { @include inner-wrap; }
|
414
|
+
|
415
|
+
.tab-bar { @include tab-bar-base; }
|
416
|
+
|
417
|
+
.left-small { @include tabbar-small-section($position: left); }
|
418
|
+
.right-small { @include tabbar-small-section($position: right); }
|
419
|
+
|
420
|
+
.tab-bar-section { @include tab-bar-section; }
|
421
|
+
|
422
|
+
// MENU BUTTON
|
423
|
+
// This is a little bonus. You don't need it for off canvas to work. Mixins to be written in the future.
|
424
|
+
.tab-bar .menu-icon {
|
425
|
+
color: $tabbar-menu-icon-color;
|
426
|
+
display: block;
|
427
|
+
height: $tabbar-menu-icon-height;
|
428
|
+
padding: $tabbar-menu-icon-padding;
|
429
|
+
position: relative;
|
430
|
+
text-indent: $tabbar-menu-icon-text-indent;
|
431
|
+
transform: translate3d(0,0,0);
|
432
|
+
width: $tabbar-menu-icon-width;
|
433
|
+
|
434
|
+
// @include for the hamburger menu-icon
|
435
|
+
//
|
436
|
+
// Arguments as follows: ($width, $left, $top, $thickness, $gap, $color, $hover-color)
|
437
|
+
// $width - Width of hamburger icon in rem Default: $tabbar-hamburger-icon-width.
|
438
|
+
// $left - If false, icon will be centered horizontally || explicitly set value in rem Default: $tabbar-hamburger-icon-left= False
|
439
|
+
// $top - If false, icon will be centered vertically || explicitly set value in rem Default: = False
|
440
|
+
// $thickness - thickness of lines in hamburger icon, set value in px Default: $tabbar-hamburger-icon-thickness = 1px
|
441
|
+
// $gap - spacing between the lines in hamburger icon, set value in px Default: $tabbar-hamburger-icon-gap = 6px
|
442
|
+
// $color - icon color Default: $tabbar-menu-icon-color
|
443
|
+
// $hover-color - icon color when hovered Default: $tabbar-menu-icon-hover
|
444
|
+
// $offcanvas - Set to true
|
445
|
+
@include hamburger($tabbar-hamburger-icon-width, $tabbar-hamburger-icon-left, $tabbar-hamburger-icon-top, $tabbar-hamburger-icon-thickness, $tabbar-hamburger-icon-gap, $tabbar-menu-icon-color, $tabbar-menu-icon-hover, true)
|
446
|
+
}
|
447
|
+
|
448
|
+
.left-off-canvas-menu { @include off-canvas-menu($position: left); }
|
449
|
+
.right-off-canvas-menu { @include off-canvas-menu($position: right); }
|
450
|
+
.top-off-canvas-menu { @include off-canvas-menu($position: top); }
|
451
|
+
.bottom-off-canvas-menu { @include off-canvas-menu($position: bottom); }
|
452
|
+
|
453
|
+
ul.off-canvas-list { @include off-canvas-list; }
|
454
|
+
|
455
|
+
|
456
|
+
// ANIMATION CLASSES
|
457
|
+
// These classes are added with JS and trigger the actual animation.
|
458
|
+
.move-right {
|
459
|
+
> .inner-wrap {
|
460
|
+
@include translate3d($off-canvas-width,0,0);
|
461
|
+
}
|
462
|
+
.exit-off-canvas { @include back-link;}
|
463
|
+
}
|
464
|
+
|
465
|
+
.move-left {
|
466
|
+
> .inner-wrap {
|
467
|
+
@include translate3d(-($off-canvas-width),0,0);
|
468
|
+
|
469
|
+
}
|
470
|
+
.exit-off-canvas { @include back-link; }
|
471
|
+
}
|
472
|
+
.move-top {
|
473
|
+
> .inner-wrap {
|
474
|
+
@include translate3d(0,-($off-canvas-height),0);
|
475
|
+
|
476
|
+
}
|
477
|
+
.exit-off-canvas { @include back-link; }
|
478
|
+
}
|
479
|
+
.move-bottom {
|
480
|
+
> .inner-wrap {
|
481
|
+
@include translate3d(0,($off-canvas-height),0);
|
482
|
+
|
483
|
+
}
|
484
|
+
.exit-off-canvas { @include back-link; }
|
485
|
+
}
|
486
|
+
.offcanvas-overlap {
|
487
|
+
.left-off-canvas-menu, .right-off-canvas-menu,
|
488
|
+
.top-off-canvas-menu, .bottom-off-canvas-menu {
|
489
|
+
-ms-transform: none;
|
490
|
+
-webkit-transform: none;
|
491
|
+
-moz-transform: none;
|
492
|
+
-o-transform: none;
|
493
|
+
transform: none;
|
494
|
+
z-index: 1003;
|
495
|
+
}
|
496
|
+
.exit-off-canvas { @include back-link; }
|
497
|
+
}
|
498
|
+
.offcanvas-overlap-left {
|
499
|
+
.right-off-canvas-menu {
|
500
|
+
-ms-transform: none;
|
501
|
+
-webkit-transform: none;
|
502
|
+
-moz-transform: none;
|
503
|
+
-o-transform: none;
|
504
|
+
transform: none;
|
505
|
+
z-index: 1003;
|
506
|
+
}
|
507
|
+
.exit-off-canvas { @include back-link; }
|
508
|
+
}
|
509
|
+
.offcanvas-overlap-right {
|
510
|
+
.left-off-canvas-menu {
|
511
|
+
-ms-transform: none;
|
512
|
+
-webkit-transform: none;
|
513
|
+
-moz-transform: none;
|
514
|
+
-o-transform: none;
|
515
|
+
transform: none;
|
516
|
+
z-index: 1003;
|
517
|
+
}
|
518
|
+
.exit-off-canvas { @include back-link; }
|
519
|
+
}
|
520
|
+
.offcanvas-overlap-top {
|
521
|
+
.bottom-off-canvas-menu {
|
522
|
+
-ms-transform: none;
|
523
|
+
-webkit-transform: none;
|
524
|
+
-moz-transform: none;
|
525
|
+
-o-transform: none;
|
526
|
+
transform: none;
|
527
|
+
z-index: 1003;
|
528
|
+
}
|
529
|
+
.exit-off-canvas { @include back-link; }
|
530
|
+
}
|
531
|
+
.offcanvas-overlap-bottom {
|
532
|
+
.top-off-canvas-menu {
|
533
|
+
-ms-transform: none;
|
534
|
+
-webkit-transform: none;
|
535
|
+
-moz-transform: none;
|
536
|
+
-o-transform: none;
|
537
|
+
transform: none;
|
538
|
+
z-index: 1003;
|
539
|
+
}
|
540
|
+
.exit-off-canvas { @include back-link; }
|
541
|
+
}
|
542
|
+
|
543
|
+
// Older browsers
|
544
|
+
.no-csstransforms {
|
545
|
+
.left-off-canvas-menu { left: -($off-canvas-width); }
|
546
|
+
.right-off-canvas-menu { right: -($off-canvas-width); }
|
547
|
+
.top-off-canvas-menu { top: -($off-canvas-height); }
|
548
|
+
.bottom-off-canvas-menu { bottom: -($off-canvas-height); }
|
549
|
+
|
550
|
+
.move-left > .inner-wrap { right: $off-canvas-width; }
|
551
|
+
.move-right > .inner-wrap { left: $off-canvas-width; }
|
552
|
+
.move-top > .inner-wrap { right: $off-canvas-height; }
|
553
|
+
.move-bottom > .inner-wrap { left: $off-canvas-height; }
|
554
|
+
|
555
|
+
|
556
|
+
}
|
557
|
+
|
558
|
+
.left-submenu {
|
559
|
+
@include off-canvas-submenu($position: left);
|
560
|
+
&.move-right, &.offcanvas-overlap-right, &.offcanvas-overlap {
|
561
|
+
@include translate3d(0%,0,0);
|
562
|
+
}
|
563
|
+
}
|
564
|
+
|
565
|
+
.right-submenu {
|
566
|
+
@include off-canvas-submenu($position: right);
|
567
|
+
&.move-left, &.offcanvas-overlap-left, &.offcanvas-overlap {
|
568
|
+
@include translate3d(0%,0,0);
|
569
|
+
}
|
570
|
+
}
|
571
|
+
|
572
|
+
.top-submenu {
|
573
|
+
@include off-canvas-submenu($position: top);
|
574
|
+
&.move-bottom, &.offcanvas-overlap-bottom, &.offcanvas-overlap {
|
575
|
+
@include translate3d(0,0%,0);
|
576
|
+
}
|
577
|
+
}
|
578
|
+
|
579
|
+
.bottom-submenu {
|
580
|
+
@include off-canvas-submenu($position: bottom);
|
581
|
+
&.move-top, &.offcanvas-overlap-top, &.offcanvas-overlap {
|
582
|
+
@include translate3d(0,0%,0);
|
583
|
+
}
|
584
|
+
}
|
585
|
+
|
586
|
+
@if $text-direction == rtl {
|
587
|
+
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
|
588
|
+
@include icon-double-arrows($position: left);
|
589
|
+
}
|
590
|
+
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
|
591
|
+
@include icon-double-arrows($position: right);
|
592
|
+
}
|
593
|
+
} @else {
|
594
|
+
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
|
595
|
+
@include icon-double-arrows($position: right);
|
596
|
+
}
|
597
|
+
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
|
598
|
+
@include icon-double-arrows($position: left);
|
599
|
+
}
|
600
|
+
}
|
601
|
+
|
602
|
+
}
|
603
|
+
}
|
604
|
+
|
605
|
+
|
606
|
+
|