foundation-rails 5.5.1.2 → 5.5.2.0
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/bower.json +2 -2
- data/lib/foundation/rails/version.rb +1 -1
- data/vendor/assets/javascripts/foundation.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.abide.js +96 -28
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +28 -7
- data/vendor/assets/javascripts/foundation/foundation.alert.js +3 -3
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +50 -20
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +26 -11
- data/vendor/assets/javascripts/foundation/foundation.equalizer.js +43 -16
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +19 -14
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.js +51 -29
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +40 -28
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +3 -3
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +70 -43
- data/vendor/assets/javascripts/foundation/foundation.slider.js +23 -5
- data/vendor/assets/javascripts/foundation/foundation.tab.js +30 -18
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +47 -15
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +31 -25
- data/vendor/assets/stylesheets/foundation.scss +37 -38
- data/vendor/assets/stylesheets/foundation/_functions.scss +52 -42
- data/vendor/assets/stylesheets/foundation/_settings.scss +53 -34
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +7 -7
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +11 -11
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +13 -13
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +17 -18
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +29 -22
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +13 -17
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +51 -47
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +10 -11
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +42 -36
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +7 -7
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +82 -50
- data/vendor/assets/stylesheets/foundation/components/_global.scss +86 -64
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +24 -21
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +335 -234
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +8 -8
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +40 -42
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +2 -3
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +6 -6
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +178 -175
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +82 -62
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +15 -15
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +21 -15
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +16 -16
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +23 -16
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +27 -27
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +15 -11
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +16 -16
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +14 -11
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +22 -19
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +8 -8
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +49 -32
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +8 -8
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +25 -25
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +163 -122
- data/vendor/assets/stylesheets/foundation/components/_type.scss +19 -19
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +23 -5
- data/vendor/assets/stylesheets/normalize.scss +8 -11
- metadata +28 -20
- checksums.yaml +0 -7
- data/vendor/assets/stylesheets/foundation/components/_toolbar.scss +0 -72
@@ -2,7 +2,7 @@
|
|
2
2
|
// foundation.zurb.com
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
|
-
@import
|
5
|
+
@import 'global';
|
6
6
|
|
7
7
|
//
|
8
8
|
// @variables
|
@@ -32,19 +32,19 @@ $inline-list-children-display: block !default;
|
|
32
32
|
//
|
33
33
|
// We use this mixin to create inline lists
|
34
34
|
@mixin inline-list {
|
35
|
-
|
35
|
+
list-style: none;
|
36
36
|
margin-#{$default-float}: $inline-list-default-float-margin;
|
37
37
|
margin-#{$opposite-direction}: $inline-list-opposite-margin;
|
38
|
-
|
39
|
-
list-style: none;
|
38
|
+
margin: $inline-list-top-margin auto $inline-list-bottom-margin auto;
|
40
39
|
overflow: $inline-list-overflow;
|
40
|
+
padding: $inline-list-padding;
|
41
41
|
|
42
|
-
|
43
|
-
list-
|
42
|
+
> li {
|
43
|
+
display: $inline-list-display;
|
44
44
|
float: $default-float;
|
45
|
+
list-style: none;
|
45
46
|
margin-#{$default-float}: $inline-list-default-float-list-margin;
|
46
|
-
display: $inline-list-display;
|
47
|
-
&>* { display: $inline-list-children-display; }
|
47
|
+
> * { display: $inline-list-children-display; }
|
48
48
|
}
|
49
49
|
}
|
50
50
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// foundation.zurb.com
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
|
-
@import
|
5
|
+
@import 'global';
|
6
6
|
|
7
7
|
//
|
8
8
|
// @variables
|
@@ -49,28 +49,27 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
49
49
|
|
50
50
|
/* Default styles for the container */
|
51
51
|
.joyride-tip-guide {
|
52
|
-
display: none;
|
53
|
-
position: absolute;
|
54
52
|
background: $joyride-tip-bg;
|
55
53
|
color: $joyride-tip-font-color;
|
56
|
-
|
57
|
-
top: 0;
|
58
|
-
#{$default-float}: 2.5%;
|
54
|
+
display: none;
|
59
55
|
font-family: inherit;
|
60
56
|
font-weight: $font-weight-normal;
|
57
|
+
position: absolute;
|
58
|
+
top: 0;
|
61
59
|
width: 95%;
|
60
|
+
z-index: 101;
|
61
|
+
#{$default-float}: 2.5%;
|
62
62
|
}
|
63
63
|
|
64
64
|
.lt-ie9 .joyride-tip-guide {
|
65
|
-
|
65
|
+
margin-#{$default-float}: -400px;
|
66
|
+
max-width: 800px;
|
66
67
|
#{$default-float}: 50%;
|
67
|
-
margin-#{$default-float}:-400px;
|
68
68
|
}
|
69
69
|
|
70
70
|
.joyride-content-wrapper {
|
71
|
-
width: 100%;
|
72
|
-
|
73
71
|
padding: $joyride-tip-padding;
|
72
|
+
width: 100%;
|
74
73
|
|
75
74
|
.button { margin-bottom: 0 !important; }
|
76
75
|
|
@@ -80,25 +79,25 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
80
79
|
/* Add a little css triangle pip, older browser just miss out on the fanciness of it */
|
81
80
|
.joyride-tip-guide {
|
82
81
|
.joyride-nub {
|
82
|
+
border: $joyride-tip-nub-size solid $joyride-tip-bg;
|
83
83
|
display: block;
|
84
|
+
height: 0;
|
84
85
|
position: absolute;
|
85
|
-
#{$default-float}: $joyride-tip-position-offset;
|
86
86
|
width: 0;
|
87
|
-
|
88
|
-
border: $joyride-tip-nub-size solid $joyride-tip-bg;
|
87
|
+
#{$default-float}: $joyride-tip-position-offset;
|
89
88
|
|
90
89
|
&.top {
|
91
|
-
border-top-style: solid;
|
92
90
|
border-color: $joyride-tip-bg;
|
93
91
|
border-top-color: transparent !important;
|
92
|
+
border-top-style: solid;
|
94
93
|
border-#{$default-float}-color: transparent !important;
|
95
94
|
border-#{$opposite-direction}-color: transparent !important;
|
96
95
|
top: -($joyride-tip-nub-size*2);
|
97
96
|
}
|
98
97
|
&.bottom {
|
99
|
-
border-bottom-style: solid;
|
100
98
|
border-color: $joyride-tip-bg !important;
|
101
99
|
border-bottom-color: transparent !important;
|
100
|
+
border-bottom-style: solid;
|
102
101
|
border-#{$default-float}-color: transparent !important;
|
103
102
|
border-#{$opposite-direction}-color: transparent !important;
|
104
103
|
bottom: -($joyride-tip-nub-size*2);
|
@@ -116,74 +115,73 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
116
115
|
.joyride-tip-guide h4,
|
117
116
|
.joyride-tip-guide h5,
|
118
117
|
.joyride-tip-guide h6 {
|
118
|
+
color: $joyride-tip-font-color;
|
119
|
+
font-weight: $joyride-tip-header-weight;
|
119
120
|
line-height: 1.25;
|
120
121
|
margin: 0;
|
121
|
-
font-weight: $joyride-tip-header-weight;
|
122
|
-
color: $joyride-tip-font-color;
|
123
122
|
}
|
124
123
|
.joyride-tip-guide p {
|
125
|
-
margin: rem-calc(0 0 18 0);
|
126
124
|
font-size: $joyride-tip-font-size;
|
127
125
|
line-height: 1.3;
|
126
|
+
margin: rem-calc(0 0 18 0);
|
128
127
|
}
|
129
128
|
|
130
129
|
.joyride-timer-indicator-wrap {
|
131
|
-
width: $joyride-tip-timer-width;
|
132
|
-
height: $joyride-tip-timer-height;
|
133
130
|
border: $joyride-tip-border;
|
131
|
+
bottom: rem-calc(16);
|
132
|
+
height: $joyride-tip-timer-height;
|
134
133
|
position: absolute;
|
134
|
+
width: $joyride-tip-timer-width;
|
135
135
|
#{$opposite-direction}: rem-calc(17);
|
136
|
-
bottom: rem-calc(16);
|
137
136
|
}
|
138
137
|
.joyride-timer-indicator {
|
138
|
+
background: $joyride-tip-timer-color;
|
139
139
|
display: block;
|
140
|
-
width: 0;
|
141
140
|
height: inherit;
|
142
|
-
|
141
|
+
width: 0;
|
143
142
|
}
|
144
143
|
|
145
144
|
.joyride-close-tip {
|
146
|
-
position: absolute;
|
147
|
-
#{$opposite-direction}: 12px;
|
148
|
-
top: 10px;
|
149
145
|
color: $joyride-tip-close-color !important;
|
150
|
-
text-decoration: none;
|
151
146
|
font-size: $joyride-tip-close-size;
|
152
147
|
font-weight: $joyride-tip-close-weight;
|
153
148
|
line-height: .5 !important;
|
149
|
+
position: absolute;
|
150
|
+
text-decoration: none;
|
151
|
+
top: 10px;
|
152
|
+
#{$opposite-direction}: 12px;
|
154
153
|
|
155
154
|
&:hover,
|
156
155
|
&:focus { color: $smoke !important; }
|
157
156
|
}
|
158
157
|
|
159
158
|
.joyride-modal-bg {
|
160
|
-
position: fixed;
|
161
|
-
height: 100%;
|
162
|
-
width: 100%;
|
163
|
-
background: transparent;
|
164
159
|
background: $joyride-screenfill;
|
165
|
-
|
160
|
+
cursor: $cursor-pointer-value;
|
166
161
|
display: none;
|
162
|
+
height: 100%;
|
163
|
+
position: fixed;
|
167
164
|
top: 0;
|
165
|
+
width: 100%;
|
166
|
+
z-index: 100;
|
168
167
|
#{$default-float}: 0;
|
169
|
-
cursor: $cursor-pointer-value;
|
170
168
|
}
|
171
169
|
|
172
170
|
.joyride-expose-wrapper {
|
173
171
|
background-color: $white;
|
174
|
-
position: absolute;
|
175
172
|
border-radius: 3px;
|
176
|
-
z-index: 102;
|
177
173
|
box-shadow: 0 0 15px $white;
|
174
|
+
position: absolute;
|
175
|
+
z-index: 102;
|
178
176
|
}
|
179
177
|
|
180
178
|
.joyride-expose-cover {
|
181
179
|
background: transparent;
|
182
180
|
border-radius: 3px;
|
181
|
+
left: 0;
|
183
182
|
position: absolute;
|
184
|
-
z-index: 9999;
|
185
183
|
top: 0;
|
186
|
-
|
184
|
+
z-index: 9999;
|
187
185
|
}
|
188
186
|
|
189
187
|
|
@@ -200,20 +198,20 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
200
198
|
}
|
201
199
|
&.right {
|
202
200
|
border-color: $joyride-tip-bg !important;
|
203
|
-
border-top-color: transparent !important;
|
204
201
|
border-right-color: transparent !important; border-bottom-color: transparent !important;
|
205
|
-
top:
|
202
|
+
border-top-color: transparent !important;
|
206
203
|
left: auto;
|
207
204
|
right: -($joyride-tip-nub-size*2);
|
205
|
+
top: $joyride-tip-position-offset;
|
208
206
|
}
|
209
207
|
&.left {
|
210
208
|
border-color: $joyride-tip-bg !important;
|
211
|
-
border-top-color: transparent !important;
|
212
|
-
border-left-color: transparent !important;
|
213
209
|
border-bottom-color: transparent !important;
|
214
|
-
|
210
|
+
border-left-color: transparent !important;
|
211
|
+
border-top-color: transparent !important;
|
215
212
|
left: -($joyride-tip-nub-size*2);
|
216
213
|
right: auto;
|
214
|
+
top: $joyride-tip-position-offset;
|
217
215
|
}
|
218
216
|
}
|
219
217
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// foundation.zurb.com
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
|
-
@import
|
5
|
+
@import 'global';
|
6
6
|
|
7
7
|
//
|
8
8
|
// @variables
|
@@ -34,7 +34,6 @@ $keystroke-radius: $global-radius !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);
|
37
|
-
|
38
37
|
background-color: $bg;
|
39
38
|
border-color: scale-color($bg, $lightness: $keystroke-function-factor);
|
40
39
|
|
@@ -44,9 +43,9 @@ $keystroke-radius: $global-radius !default;
|
|
44
43
|
|
45
44
|
border-style: $keystroke-border-style;
|
46
45
|
border-width: $keystroke-border-width;
|
47
|
-
margin: 0;
|
48
46
|
font-family: $keystroke-font;
|
49
47
|
font-size: $keystroke-font-size;
|
48
|
+
margin: 0;
|
50
49
|
padding: $keystroke-padding;
|
51
50
|
}
|
52
51
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// foundation.zurb.com
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
|
-
@import
|
5
|
+
@import 'global';
|
6
6
|
|
7
7
|
//
|
8
8
|
// @variables
|
@@ -25,15 +25,15 @@ $label-font-family: $body-font-family !default;
|
|
25
25
|
//
|
26
26
|
// We use this mixin to create a default label base.
|
27
27
|
@mixin label-base {
|
28
|
-
|
28
|
+
display: inline-block;
|
29
29
|
font-family: $label-font-family;
|
30
|
+
font-weight: $label-font-weight;
|
31
|
+
line-height: 1;
|
32
|
+
margin-bottom: auto;
|
33
|
+
position: relative;
|
30
34
|
text-align: center;
|
31
35
|
text-decoration: none;
|
32
|
-
line-height: 1;
|
33
36
|
white-space: nowrap;
|
34
|
-
display: inline-block;
|
35
|
-
position: relative;
|
36
|
-
margin-bottom: auto;
|
37
37
|
}
|
38
38
|
|
39
39
|
// @mixins
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// foundation.zurb.com
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
|
-
@import
|
5
|
+
@import 'global';
|
6
6
|
|
7
7
|
//
|
8
8
|
// @variables
|
@@ -17,9 +17,9 @@ $magellan-padding: 10px !default;
|
|
17
17
|
|
18
18
|
#{data('magellan-expedition')}, #{data('magellan-expedition-clone')} {
|
19
19
|
background: $magellan-bg;
|
20
|
-
z-index: 50;
|
21
20
|
min-width: 100%;
|
22
21
|
padding: $magellan-padding;
|
22
|
+
z-index: 50;
|
23
23
|
|
24
24
|
.sub-nav {
|
25
25
|
margin-bottom: 0;
|
@@ -2,8 +2,8 @@
|
|
2
2
|
// foundation.zurb.com
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
|
-
@import
|
6
|
-
@import
|
5
|
+
@import 'global';
|
6
|
+
@import 'type';
|
7
7
|
|
8
8
|
// Off Canvas Tab Bar Variables
|
9
9
|
$include-html-off-canvas-classes: $include-html-classes !default;
|
@@ -30,9 +30,10 @@ $tabbar-header-margin: 0 !default;
|
|
30
30
|
$off-canvas-width: rem-calc(250) !default;
|
31
31
|
$off-canvas-bg: $oil !default;
|
32
32
|
$off-canvas-bg-hover: scale-color($tabbar-bg, $lightness: -30%) !default;
|
33
|
+
$off-canvas-bg-active: scale-color($tabbar-bg, $lightness: -30%) !default;
|
33
34
|
|
34
35
|
// Off Canvas Menu List Variables
|
35
|
-
$off-canvas-label-padding:
|
36
|
+
$off-canvas-label-padding: .3rem rem-calc(15) !default;
|
36
37
|
$off-canvas-label-color: $aluminum !default;
|
37
38
|
$off-canvas-label-text-transform: uppercase !default;
|
38
39
|
$off-canvas-label-font-size: rem-calc(12) !default;
|
@@ -42,7 +43,7 @@ $off-canvas-label-border-top: 1px solid scale-color($off-canvas-label-bg, $light
|
|
42
43
|
$off-canvas-label-border-bottom: none !default;
|
43
44
|
$off-canvas-label-margin:0 !default;
|
44
45
|
$off-canvas-link-padding: rem-calc(10, 15) !default;
|
45
|
-
$off-canvas-link-color: rgba($white,
|
46
|
+
$off-canvas-link-color: rgba($white, .7) !default;
|
46
47
|
$off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%) !default;
|
47
48
|
$off-canvas-back-bg: #444 !default;
|
48
49
|
$off-canvas-back-border-top: $off-canvas-label-border-top !default;
|
@@ -69,9 +70,9 @@ $tabbar-hamburger-icon-gap: 6px !default;
|
|
69
70
|
// Off Canvas Back-Link Overlay
|
70
71
|
$off-canvas-overlay-transition: background 300ms ease !default;
|
71
72
|
$off-canvas-overlay-cursor: pointer !default;
|
72
|
-
$off-canvas-overlay-box-shadow: -4px 0 4px rgba($black,
|
73
|
-
$off-canvas-overlay-background: rgba($white,
|
74
|
-
$off-canvas-overlay-background-hover: rgba($white,
|
73
|
+
$off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, .5), 4px 0 4px rgba($black, .5) !default;
|
74
|
+
$off-canvas-overlay-background: rgba($white, .2) !default;
|
75
|
+
$off-canvas-overlay-background-hover: rgba($white, .05) !default;
|
75
76
|
|
76
77
|
// Transition Variables
|
77
78
|
$menu-slide: "transform 500ms ease" !default;
|
@@ -90,31 +91,31 @@ $menu-slide: "transform 500ms ease" !default;
|
|
90
91
|
width: 100%;
|
91
92
|
}
|
92
93
|
|
93
|
-
@mixin translate3d($tx
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
-ms-transform: translate3d($tx
|
98
|
-
-o-transform: translate3d($tx
|
99
|
-
transform: translate3d($tx
|
94
|
+
@mixin translate3d($tx, $ty, $tz) {
|
95
|
+
-webkit-transform: translate3d($tx, $ty, $tz);
|
96
|
+
-moz-transform: translate3d($tx, $ty, $tz);
|
97
|
+
-ms-transform: translate($tx, $ty);
|
98
|
+
-ms-transform: translate3d($tx, $ty, $tz);
|
99
|
+
-o-transform: translate3d($tx, $ty, $tz);
|
100
|
+
transform: translate3d($tx, $ty, $tz)
|
100
101
|
}
|
101
102
|
|
102
103
|
// basic styles for off-canvas menu container
|
103
104
|
@mixin off-canvas-menu($position) {
|
104
105
|
@include kill-flicker;
|
105
106
|
* { @include kill-flicker; }
|
106
|
-
width: $off-canvas-width;
|
107
|
-
top: 0;
|
108
|
-
bottom: 0;
|
109
|
-
position: absolute;
|
110
|
-
overflow-x: hidden;
|
111
|
-
overflow-y: auto;
|
112
107
|
background: $off-canvas-bg;
|
113
|
-
|
108
|
+
bottom: 0;
|
114
109
|
box-sizing: content-box;
|
115
|
-
transition: transform 500ms ease 0s;
|
116
110
|
-webkit-overflow-scrolling: touch;
|
117
111
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
112
|
+
overflow-x: hidden;
|
113
|
+
overflow-y: auto;
|
114
|
+
position: absolute;
|
115
|
+
top: 0;
|
116
|
+
transition: transform 500ms ease 0s;
|
117
|
+
width: $off-canvas-width;
|
118
|
+
z-index: 1001;
|
118
119
|
|
119
120
|
@if $position == left {
|
120
121
|
@include translate3d(-100%,0,0);
|
@@ -166,22 +167,22 @@ $menu-slide: "transform 500ms ease" !default;
|
|
166
167
|
// z-index: 999;
|
167
168
|
|
168
169
|
// Typography
|
169
|
-
h1,h2,h3,h4,h5,h6 {
|
170
|
+
h1, h2, h3, h4, h5, h6 {
|
170
171
|
color: $tabbar-header-color;
|
171
172
|
font-weight: $tabbar-header-weight;
|
172
173
|
line-height: $tabbar-header-line-height;
|
173
174
|
margin: $tabbar-header-margin;
|
174
175
|
}
|
175
|
-
h1,h2,h3,h4 { font-size: $h5-font-size; }
|
176
|
+
h1, h2, h3, h4 { font-size: $h5-font-size; }
|
176
177
|
}
|
177
178
|
|
178
179
|
// SMALL SECTIONS
|
179
180
|
// These are small sections on the left and right that contain the off-canvas toggle buttons;
|
180
181
|
@mixin tabbar-small-section($position) {
|
181
|
-
width: $tabbar-icon-width;
|
182
182
|
height: $tabbar-height;
|
183
183
|
position: absolute;
|
184
184
|
top: 0;
|
185
|
+
width: $tabbar-icon-width;
|
185
186
|
@if $position == left {
|
186
187
|
border-right: $tabbar-left-section-border;
|
187
188
|
// box-shadow: 1px 0 0 scale-color($tabbar-bg, $lightness: 13%);
|
@@ -195,15 +196,14 @@ $menu-slide: "transform 500ms ease" !default;
|
|
195
196
|
}
|
196
197
|
|
197
198
|
@mixin tab-bar-section {
|
199
|
+
height: $tabbar-height;
|
198
200
|
padding: $tabbar-middle-padding;
|
199
201
|
position: absolute;
|
200
202
|
text-align: center;
|
201
|
-
height: $tabbar-height;
|
202
203
|
top: 0;
|
203
|
-
@media #{$medium-up} {
|
204
204
|
&.left { text-align: left; }
|
205
205
|
&.right { text-align: right; }
|
206
|
-
|
206
|
+
|
207
207
|
|
208
208
|
// still need to make these non-presentational
|
209
209
|
&.left {
|
@@ -224,31 +224,34 @@ $menu-slide: "transform 500ms ease" !default;
|
|
224
224
|
// This is the list of links in the off-canvas menu
|
225
225
|
@mixin off-canvas-list {
|
226
226
|
list-style-type: none;
|
227
|
-
padding:0;
|
228
227
|
margin:0;
|
228
|
+
padding:0;
|
229
229
|
|
230
230
|
li {
|
231
231
|
label {
|
232
|
-
|
233
|
-
|
232
|
+
background: $off-canvas-label-bg;
|
233
|
+
border-bottom: $off-canvas-label-border-bottom;
|
234
|
+
border-top: $off-canvas-label-border-top;
|
234
235
|
color: $off-canvas-label-color;
|
235
|
-
|
236
|
+
display: block;
|
236
237
|
font-size: $off-canvas-label-font-size;
|
237
238
|
font-weight: $off-canvas-label-font-weight;
|
238
|
-
background: $off-canvas-label-bg;
|
239
|
-
border-top: $off-canvas-label-border-top;
|
240
|
-
border-bottom: $off-canvas-label-border-bottom;
|
241
239
|
margin: $off-canvas-label-margin;
|
240
|
+
padding: $off-canvas-label-padding;
|
241
|
+
text-transform: $off-canvas-label-text-transform;
|
242
242
|
}
|
243
243
|
a {
|
244
|
+
border-bottom: $off-canvas-link-border-bottom;
|
245
|
+
color: $off-canvas-link-color;
|
244
246
|
display: block;
|
245
247
|
padding: $off-canvas-link-padding;
|
246
|
-
color: $off-canvas-link-color;
|
247
|
-
border-bottom: $off-canvas-link-border-bottom;
|
248
248
|
transition: background 300ms ease;
|
249
249
|
&:hover {
|
250
250
|
background: $off-canvas-bg-hover;
|
251
251
|
}
|
252
|
+
&:active {
|
253
|
+
background: $off-canvas-bg-active;
|
254
|
+
}
|
252
255
|
}
|
253
256
|
}
|
254
257
|
|
@@ -257,28 +260,121 @@ $menu-slide: "transform 500ms ease" !default;
|
|
257
260
|
// BACK LINK
|
258
261
|
// This is an overlay that, when clicked, will toggle off the off canvas menu
|
259
262
|
@mixin back-link {
|
260
|
-
|
261
|
-
|
262
|
-
transition: $off-canvas-overlay-transition;
|
263
|
-
cursor: $off-canvas-overlay-cursor;
|
264
|
-
box-shadow: $off-canvas-overlay-box-shadow;
|
265
|
-
|
266
|
-
// fill the screen
|
267
|
-
display: block;
|
268
|
-
position: absolute;
|
269
|
-
background: $off-canvas-overlay-background;
|
270
|
-
top: 0;
|
271
|
-
bottom: 0;
|
272
|
-
left:0;
|
273
|
-
right:0;
|
274
|
-
z-index: 1002;
|
275
|
-
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
263
|
+
@include kill-flicker;
|
276
264
|
|
277
|
-
|
278
|
-
|
279
|
-
|
265
|
+
box-shadow: $off-canvas-overlay-box-shadow;
|
266
|
+
cursor: $off-canvas-overlay-cursor;
|
267
|
+
transition: $off-canvas-overlay-transition;
|
268
|
+
|
269
|
+
// fill the screen
|
270
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
271
|
+
background: $off-canvas-overlay-background;
|
272
|
+
bottom: 0;
|
273
|
+
display: block;
|
274
|
+
left: 0;
|
275
|
+
position: absolute;
|
276
|
+
right: 0;
|
277
|
+
top: 0;
|
278
|
+
z-index: 1002;
|
279
|
+
|
280
|
+
@media #{$medium-up} {
|
281
|
+
&:hover {
|
282
|
+
background: $off-canvas-overlay-background-hover;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
//
|
288
|
+
// Off-Canvas Submenu Classes
|
289
|
+
//
|
290
|
+
@mixin off-canvas-submenu($position) {
|
291
|
+
@include kill-flicker;
|
292
|
+
* { @include kill-flicker; }
|
293
|
+
-webkit-overflow-scrolling: touch;
|
294
|
+
background: $off-canvas-bg;
|
295
|
+
bottom: 0;
|
296
|
+
box-sizing: content-box;
|
297
|
+
margin: 0;
|
298
|
+
overflow-x: hidden;
|
299
|
+
overflow-y: auto;
|
300
|
+
position: absolute;
|
301
|
+
top: 0;
|
302
|
+
width: $off-canvas-width;
|
303
|
+
z-index: 1002;
|
304
|
+
@if $position == left {
|
305
|
+
@include translate3d(-100%,0,0);
|
306
|
+
left: 0;
|
307
|
+
}
|
308
|
+
@if $position == right {
|
309
|
+
@include translate3d(100%,0,0);
|
310
|
+
right: 0;
|
311
|
+
}
|
312
|
+
-webkit-transition: -webkit-#{$menu-slide};
|
313
|
+
-moz-transition: -moz-#{$menu-slide};
|
314
|
+
-ms-transition: -ms-#{$menu-slide};
|
315
|
+
-o-transition: -o-#{$menu-slide};
|
316
|
+
transition: #{$menu-slide};
|
317
|
+
|
318
|
+
//back button style like label
|
319
|
+
.back > a {
|
320
|
+
background: $off-canvas-back-bg;
|
321
|
+
border-bottom: $off-canvas-back-border-bottom;
|
322
|
+
border-top: $off-canvas-back-border-top;
|
323
|
+
color: $off-canvas-label-color;
|
324
|
+
font-weight: $off-canvas-label-font-weight;
|
325
|
+
padding: $off-canvas-label-padding;
|
326
|
+
text-transform: $off-canvas-label-text-transform;
|
327
|
+
|
328
|
+
&:hover {
|
329
|
+
background: $off-canvas-back-hover-bg;
|
330
|
+
border-bottom: $off-canvas-back-hover-border-bottom;
|
331
|
+
border-top: $off-canvas-back-hover-border-top;
|
332
|
+
}
|
333
|
+
|
334
|
+
margin: $off-canvas-label-margin;
|
335
|
+
@if $position == right {
|
336
|
+
@if $text-direction == rtl {
|
337
|
+
&:before {
|
338
|
+
@include icon-double-arrows($position: left);
|
339
|
+
}
|
340
|
+
} @else {
|
341
|
+
&:after {
|
342
|
+
@include icon-double-arrows($position: right);
|
343
|
+
}
|
344
|
+
}
|
345
|
+
}
|
346
|
+
@if $position == left {
|
347
|
+
@if $text-direction == rtl {
|
348
|
+
&:after {
|
349
|
+
@include icon-double-arrows($position: right);
|
350
|
+
}
|
351
|
+
} @else {
|
352
|
+
&:before {
|
353
|
+
@include icon-double-arrows($position: left);
|
354
|
+
}
|
280
355
|
}
|
281
356
|
}
|
357
|
+
}
|
358
|
+
}
|
359
|
+
//Left double angle quote or Right double angle quote chars
|
360
|
+
@mixin icon-double-arrows ($position) {
|
361
|
+
@if $position == left {
|
362
|
+
content: "\AB";
|
363
|
+
@if $text-direction == rtl {
|
364
|
+
margin-left: .5rem;
|
365
|
+
} @else {
|
366
|
+
margin-right: .5rem;
|
367
|
+
}
|
368
|
+
}
|
369
|
+
@if $position == right {
|
370
|
+
content: "\BB";
|
371
|
+
@if $text-direction == rtl {
|
372
|
+
margin-right: .5rem;
|
373
|
+
} @else {
|
374
|
+
margin-left: .5rem;
|
375
|
+
}
|
376
|
+
}
|
377
|
+
display: inline;
|
282
378
|
}
|
283
379
|
|
284
380
|
//
|
@@ -300,14 +396,14 @@ $menu-slide: "transform 500ms ease" !default;
|
|
300
396
|
// MENU BUTTON
|
301
397
|
// This is a little bonus. You don't need it for off canvas to work. Mixins to be written in the future.
|
302
398
|
.tab-bar .menu-icon {
|
303
|
-
|
304
|
-
width: $tabbar-menu-icon-width;
|
305
|
-
height: $tabbar-menu-icon-height;
|
399
|
+
color: $tabbar-menu-icon-color;
|
306
400
|
display: block;
|
401
|
+
height: $tabbar-menu-icon-height;
|
307
402
|
padding: $tabbar-menu-icon-padding;
|
308
|
-
color: $tabbar-menu-icon-color;
|
309
403
|
position: relative;
|
404
|
+
text-indent: $tabbar-menu-icon-text-indent;
|
310
405
|
transform: translate3d(0,0,0);
|
406
|
+
width: $tabbar-menu-icon-width;
|
311
407
|
|
312
408
|
// @include for the hamburger menu-icon
|
313
409
|
//
|
@@ -388,128 +484,35 @@ $menu-slide: "transform 500ms ease" !default;
|
|
388
484
|
.move-right > .inner-wrap { left: $off-canvas-width; }
|
389
485
|
}
|
390
486
|
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
// Off-Canvas Submenu Classes
|
396
|
-
//
|
397
|
-
@mixin off-canvas-submenu($position) {
|
398
|
-
@include kill-flicker;
|
399
|
-
* { @include kill-flicker; }
|
400
|
-
width: $off-canvas-width;
|
401
|
-
top: 0;
|
402
|
-
bottom: 0;
|
403
|
-
position: absolute;
|
404
|
-
margin: 0;
|
405
|
-
overflow-x: hidden;
|
406
|
-
overflow-y: auto;
|
407
|
-
background: $off-canvas-bg;
|
408
|
-
z-index: 1002;
|
409
|
-
box-sizing: content-box;
|
410
|
-
-webkit-overflow-scrolling: touch;
|
411
|
-
@if $position == left {
|
412
|
-
@include translate3d(-100%,0,0);
|
413
|
-
left: 0;
|
414
|
-
}
|
415
|
-
@if $position == right {
|
416
|
-
@include translate3d(100%,0,0);
|
417
|
-
right: 0;
|
418
|
-
}
|
419
|
-
-webkit-transition: -webkit-#{$menu-slide};
|
420
|
-
-moz-transition: -moz-#{$menu-slide};
|
421
|
-
-ms-transition: -ms-#{$menu-slide};
|
422
|
-
-o-transition: -o-#{$menu-slide};
|
423
|
-
transition: #{$menu-slide};
|
424
|
-
|
425
|
-
//back button style like label
|
426
|
-
.back > a {
|
427
|
-
padding: $off-canvas-label-padding;
|
428
|
-
color: $off-canvas-label-color;
|
429
|
-
text-transform: $off-canvas-label-text-transform;
|
430
|
-
font-weight: $off-canvas-label-font-weight;
|
431
|
-
background: $off-canvas-back-bg;
|
432
|
-
border-top: $off-canvas-back-border-top;
|
433
|
-
border-bottom: $off-canvas-back-border-bottom;
|
434
|
-
&:hover {
|
435
|
-
background: $off-canvas-back-hover-bg;
|
436
|
-
border-top: $off-canvas-back-hover-border-top;
|
437
|
-
border-bottom: $off-canvas-back-hover-border-bottom;
|
438
|
-
}
|
439
|
-
margin: $off-canvas-label-margin;
|
440
|
-
@if $position == right {
|
441
|
-
@if $text-direction == rtl {
|
442
|
-
&:before {
|
443
|
-
@include icon-double-arrows($position: left);
|
444
|
-
}
|
445
|
-
} @else {
|
446
|
-
&:after {
|
447
|
-
@include icon-double-arrows($position: right);
|
448
|
-
}
|
487
|
+
.left-submenu {
|
488
|
+
@include off-canvas-submenu($position: left);
|
489
|
+
&.move-right, &.offcanvas-overlap-right, &.offcanvas-overlap {
|
490
|
+
@include translate3d(0%,0,0);
|
449
491
|
}
|
450
492
|
}
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
} @else {
|
457
|
-
&:before {
|
458
|
-
@include icon-double-arrows($position: left);
|
459
|
-
}
|
493
|
+
|
494
|
+
.right-submenu {
|
495
|
+
@include off-canvas-submenu($position: right);
|
496
|
+
&.move-left, &.offcanvas-overlap-left, &.offcanvas-overlap {
|
497
|
+
@include translate3d(0%,0,0);
|
460
498
|
}
|
461
499
|
}
|
462
|
-
|
463
|
-
}
|
464
|
-
//Left double angle quote or Right double angle quote chars
|
465
|
-
@mixin icon-double-arrows ($position){
|
466
|
-
@if $position == left {
|
467
|
-
content: "\AB";
|
468
|
-
@if $text-direction == rtl {
|
469
|
-
margin-left: 0.5rem;
|
470
|
-
} @else {
|
471
|
-
margin-right: 0.5rem;
|
472
|
-
}
|
473
|
-
}
|
474
|
-
@if $position == right {
|
475
|
-
content: "\BB";
|
500
|
+
|
476
501
|
@if $text-direction == rtl {
|
477
|
-
|
502
|
+
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
|
503
|
+
@include icon-double-arrows($position: left);
|
504
|
+
}
|
505
|
+
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
|
506
|
+
@include icon-double-arrows($position: right);
|
507
|
+
}
|
478
508
|
} @else {
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
@if $include-html-off-canvas-classes {
|
486
|
-
.left-submenu {
|
487
|
-
@include off-canvas-submenu($position: left);
|
488
|
-
&.move-right, &.offcanvas-overlap-right, &.offcanvas-overlap {
|
489
|
-
@include translate3d(0%,0,0);
|
490
|
-
}
|
491
|
-
}
|
492
|
-
|
493
|
-
.right-submenu {
|
494
|
-
@include off-canvas-submenu($position: right);
|
495
|
-
&.move-left, &.offcanvas-overlap-left, &.offcanvas-overlap {
|
496
|
-
@include translate3d(0%,0,0);
|
509
|
+
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
|
510
|
+
@include icon-double-arrows($position: right);
|
511
|
+
}
|
512
|
+
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
|
513
|
+
@include icon-double-arrows($position: left);
|
514
|
+
}
|
497
515
|
}
|
498
|
-
}
|
499
516
|
|
500
|
-
@if $text-direction == rtl {
|
501
|
-
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
|
502
|
-
@include icon-double-arrows($position: left);
|
503
|
-
}
|
504
|
-
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
|
505
|
-
@include icon-double-arrows($position: right);
|
506
|
-
}
|
507
|
-
} @else {
|
508
|
-
.left-off-canvas-menu ul.off-canvas-list li.has-submenu > a:after {
|
509
|
-
@include icon-double-arrows($position: right);
|
510
|
-
}
|
511
|
-
.right-off-canvas-menu ul.off-canvas-list li.has-submenu > a:before {
|
512
|
-
@include icon-double-arrows($position: left);
|
513
|
-
}
|
514
517
|
}
|
515
518
|
}
|