foundation-rails 5.0.3.1 → 5.1.0.1
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 +4 -4
- data/.gitignore +1 -0
- data/README.md +6 -2
- data/bower.json +7 -0
- data/lib/foundation/rails/version.rb +1 -1
- data/update-gem.sh +13 -0
- data/vendor/assets/javascripts/foundation.js +2 -1
- data/vendor/assets/javascripts/foundation/foundation.abide.js +67 -33
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +19 -11
- data/vendor/assets/javascripts/foundation/foundation.alert.js +8 -5
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +74 -52
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +52 -46
- data/vendor/assets/javascripts/foundation/foundation.equalizer.js +63 -0
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +47 -26
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +42 -36
- data/vendor/assets/javascripts/foundation/foundation.js +286 -118
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +139 -98
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +8 -6
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +29 -21
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +58 -50
- data/vendor/assets/javascripts/foundation/foundation.tab.js +22 -10
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +38 -26
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +79 -73
- data/vendor/assets/stylesheets/foundation/_functions.scss +37 -18
- data/vendor/assets/stylesheets/foundation/_settings.scss +115 -110
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +14 -9
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +13 -1
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +23 -29
- data/vendor/assets/stylesheets/foundation/components/_global.scss +23 -54
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +38 -31
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +96 -96
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +3 -0
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +8 -3
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +10 -5
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +6 -3
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +2 -0
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +11 -1
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +20 -7
- data/vendor/assets/stylesheets/foundation/components/_type.scss +82 -4
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +2 -2
- metadata +5 -2
|
@@ -19,7 +19,7 @@ $inline-list-overflow: hidden !default;
|
|
|
19
19
|
// We use this to control the list items
|
|
20
20
|
$inline-list-display: block !default;
|
|
21
21
|
|
|
22
|
-
// We use this to control any
|
|
22
|
+
// We use this to control any elements within list items
|
|
23
23
|
$inline-list-children-display: block !default;
|
|
24
24
|
|
|
25
25
|
//
|
|
@@ -49,4 +49,4 @@ $inline-list-children-display: block !default;
|
|
|
49
49
|
@include inline-list();
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
}
|
|
52
|
+
}
|
|
@@ -185,7 +185,7 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
|
|
188
|
-
/* Styles for screens that are
|
|
188
|
+
/* Styles for screens that are at least 768px; */
|
|
189
189
|
@media #{$small} {
|
|
190
190
|
.joyride-tip-guide { width: $joyride-tip-default-width; #{$default-float}: inherit;
|
|
191
191
|
.joyride-nub {
|
|
@@ -217,4 +217,4 @@ $joyride-screenfill: rgba(0,0,0,0.5) !default;
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
}
|
|
220
|
+
}
|
|
@@ -11,7 +11,7 @@ $magellan-padding: 10px !default;
|
|
|
11
11
|
@include exports("magellan") {
|
|
12
12
|
@if $include-html-magellan-classes {
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
#{data('magellan-expedition')} {
|
|
15
15
|
background: $magellan-bg;
|
|
16
16
|
z-index: 50;
|
|
17
17
|
min-width: 100%;
|
|
@@ -20,7 +20,7 @@ $magellan-padding: 10px !default;
|
|
|
20
20
|
.sub-nav {
|
|
21
21
|
margin-bottom: 0;
|
|
22
22
|
dd { margin-bottom: 0; }
|
|
23
|
-
|
|
23
|
+
a {
|
|
24
24
|
line-height: 1.8em;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -59,11 +59,11 @@ $off-canvas-overlay-box-shadow: -4px 0 4px rgba(#000, 0.5), 4px 0 4px rgba(#000,
|
|
|
59
59
|
$off-canvas-overlay-background: rgba(#FFF, 0.2) !default;
|
|
60
60
|
$off-canvas-overlay-background-hover: rgba(#FFF, 0.05) !default;
|
|
61
61
|
|
|
62
|
-
// Transition
|
|
62
|
+
// Transition Variables
|
|
63
63
|
$menu-slide: "transform 500ms ease" !default;
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
//
|
|
66
|
+
// MIXINS
|
|
67
67
|
// Remove transition flicker on phones
|
|
68
68
|
@mixin kill-flicker {
|
|
69
69
|
// -webkit-transform: translateZ(0x);
|
|
@@ -81,7 +81,6 @@ $menu-slide: "transform 500ms ease" !default;
|
|
|
81
81
|
width: $off-canvas-width;
|
|
82
82
|
top:0;
|
|
83
83
|
bottom:0;
|
|
84
|
-
height: 100%;
|
|
85
84
|
position: absolute;
|
|
86
85
|
overflow-y: auto;
|
|
87
86
|
background: $off-canvas-bg;
|
|
@@ -101,24 +100,26 @@ $menu-slide: "transform 500ms ease" !default;
|
|
|
101
100
|
// OFF CANVAS WRAP
|
|
102
101
|
// Wrap visible content and prevent scroll bars
|
|
103
102
|
@mixin off-canvas-wrap {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
|
|
104
|
+
@include kill-flicker;
|
|
105
|
+
@include wrap-base;
|
|
106
|
+
overflow-x: hidden;
|
|
107
|
+
&.move-right,
|
|
108
|
+
&.move-left { height: 100%; }
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
// INNER WRAP
|
|
110
112
|
// Main content area that moves to reveal the off-canvas nav
|
|
111
113
|
@mixin inner-wrap {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
@include kill-flicker;
|
|
115
|
+
@include wrap-base;
|
|
116
|
+
@include clearfix;
|
|
117
|
+
|
|
118
|
+
-webkit-transition: -webkit-#{$menu-slide};
|
|
119
|
+
-moz-transition: -moz-#{$menu-slide};
|
|
120
|
+
-ms-transition: -ms-#{$menu-slide};
|
|
121
|
+
-o-transition: -o-#{$menu-slide};
|
|
122
|
+
transition: #{$menu-slide};
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
// TAB BAR
|
|
@@ -179,7 +180,7 @@ $menu-slide: "transform 500ms ease" !default;
|
|
|
179
180
|
text-align: left;
|
|
180
181
|
}
|
|
181
182
|
|
|
182
|
-
// still need to make these non-
|
|
183
|
+
// still need to make these non-presentational
|
|
183
184
|
&.left {
|
|
184
185
|
left: 0;
|
|
185
186
|
right: $tabbar-height;
|
|
@@ -268,105 +269,104 @@ $menu-slide: "transform 500ms ease" !default;
|
|
|
268
269
|
//
|
|
269
270
|
// DEFAULT CLASSES
|
|
270
271
|
//
|
|
272
|
+
@include exports("offcanvas") {
|
|
273
|
+
@if $include-html-off-canvas-classes {
|
|
271
274
|
|
|
272
|
-
@
|
|
275
|
+
.off-canvas-wrap { @include off-canvas-wrap; }
|
|
276
|
+
.inner-wrap { @include inner-wrap; }
|
|
273
277
|
|
|
274
|
-
|
|
275
|
-
.inner-wrap { @include inner-wrap; }
|
|
278
|
+
nav.tab-bar { @include tab-bar-base; }
|
|
276
279
|
|
|
277
|
-
|
|
280
|
+
section.left-small { @include left-small-section; }
|
|
281
|
+
section.right-small { @include right-small-section; }
|
|
278
282
|
|
|
279
|
-
|
|
280
|
-
section.right-small { @include right-small-section; }
|
|
283
|
+
section.tab-bar-section { @include tab-bar-section; }
|
|
281
284
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
width: $tabbar-height;
|
|
289
|
-
height: $tabbar-height;
|
|
290
|
-
display: block;
|
|
291
|
-
line-height: $tabbar-menu-icon-line-height;
|
|
292
|
-
padding: $tabbar-menu-icon-padding;
|
|
293
|
-
color: $topbar-menu-link-color;
|
|
294
|
-
position: relative;
|
|
295
|
-
|
|
296
|
-
// this is the actual hamburger icon
|
|
297
|
-
span {
|
|
298
|
-
|
|
299
|
-
position: absolute;
|
|
285
|
+
// MENU BUTTON
|
|
286
|
+
// This is a little bonus. You don't need it for off canvas to work. Mixins to be written in the future.
|
|
287
|
+
a.menu-icon {
|
|
288
|
+
text-indent: $tabbar-menu-icon-text-indent;
|
|
289
|
+
width: $tabbar-height;
|
|
290
|
+
height: $tabbar-height;
|
|
300
291
|
display: block;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
292
|
+
line-height: $tabbar-menu-icon-line-height;
|
|
293
|
+
padding: $tabbar-menu-icon-padding;
|
|
294
|
+
color: $topbar-menu-link-color;
|
|
295
|
+
position: relative;
|
|
296
|
+
|
|
297
|
+
// this is the actual hamburger icon
|
|
298
|
+
span {
|
|
299
|
+
|
|
300
|
+
position: absolute;
|
|
301
|
+
display: block;
|
|
302
|
+
width: $tabbar-hamburger-icon-width;
|
|
303
|
+
height: 0;
|
|
304
|
+
left: $tabbar-hamburger-icon-left;
|
|
305
|
+
top: $tabbar-hamburger-icon-top;
|
|
306
|
+
// margin-top: $tabbar-height / 4;
|
|
307
|
+
|
|
308
|
+
@if $experimental {
|
|
309
|
+
-webkit-box-shadow: 1px 10px 1px 1px $tabbar-menu-icon-color,
|
|
310
|
+
1px 16px 1px 1px $tabbar-menu-icon-color,
|
|
311
|
+
1px 22px 1px 1px $tabbar-menu-icon-color;
|
|
312
|
+
}
|
|
313
|
+
box-shadow: 0 10px 0 1px $tabbar-menu-icon-color,
|
|
314
|
+
0 16px 0 1px $tabbar-menu-icon-color,
|
|
315
|
+
0 22px 0 1px $tabbar-menu-icon-color;
|
|
311
316
|
}
|
|
312
|
-
box-shadow: 0 10px 0 1px $tabbar-menu-icon-color,
|
|
313
|
-
0 16px 0 1px $tabbar-menu-icon-color,
|
|
314
|
-
0 22px 0 1px $tabbar-menu-icon-color;
|
|
315
|
-
}
|
|
316
317
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
&:hover span {
|
|
319
|
+
@if $experimental {
|
|
320
|
+
-webkit-box-shadow: 1px 10px 1px 1px $tabbar-menu-icon-hover,
|
|
321
|
+
1px 16px 1px 1px $tabbar-menu-icon-hover,
|
|
322
|
+
1px 22px 1px 1px $tabbar-menu-icon-hover;
|
|
323
|
+
}
|
|
324
|
+
box-shadow: 0 10px 0 1px $tabbar-menu-icon-hover,
|
|
325
|
+
0 16px 0 1px $tabbar-menu-icon-hover,
|
|
326
|
+
0 22px 0 1px $tabbar-menu-icon-hover;
|
|
322
327
|
}
|
|
323
|
-
box-shadow: 0 10px 0 1px $tabbar-menu-icon-hover,
|
|
324
|
-
0 16px 0 1px $tabbar-menu-icon-hover,
|
|
325
|
-
0 22px 0 1px $tabbar-menu-icon-hover;
|
|
326
328
|
}
|
|
327
|
-
}
|
|
328
329
|
|
|
329
|
-
|
|
330
|
-
|
|
330
|
+
.left-off-canvas-menu { @include left-off-canvas-menu; }
|
|
331
|
+
.right-off-canvas-menu { @include right-off-canvas-menu; }
|
|
331
332
|
|
|
332
|
-
|
|
333
|
+
ul.off-canvas-list { @include off-canvas-list; }
|
|
333
334
|
|
|
334
335
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
336
|
+
// ANIMATION CLASSES
|
|
337
|
+
// These classes are added with JS and trigger the actual animation.
|
|
338
|
+
.move-right {
|
|
339
|
+
> .inner-wrap {
|
|
340
|
+
@include translate3d($off-canvas-width,0,0);
|
|
341
|
+
}
|
|
342
|
+
a.exit-off-canvas { @include back-link;}
|
|
340
343
|
}
|
|
341
|
-
a.exit-off-canvas { @include back-link;}
|
|
342
|
-
}
|
|
343
344
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
.move-left {
|
|
346
|
+
> .inner-wrap {
|
|
347
|
+
@include translate3d(-($off-canvas-width),0,0);
|
|
347
348
|
|
|
349
|
+
}
|
|
350
|
+
a.exit-off-canvas { @include back-link; }
|
|
348
351
|
}
|
|
349
|
-
a.exit-off-canvas { @include back-link; }
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
// Opera 12.16 and IE9 - don't have 3d transforms
|
|
353
|
-
.csstransforms.no-csstransforms3d {
|
|
354
|
-
.left-off-canvas-menu { @include translate2d(-100%, 0); }
|
|
355
|
-
.right-off-canvas-menu { @include translate2d(100%, 0); }
|
|
356
|
-
|
|
357
|
-
.move-left > .inner-wrap { @include translate2d(-($off-canvas-width),0); }
|
|
358
|
-
.move-right > .inner-wrap { @include translate2d($off-canvas-width,0); }
|
|
359
|
-
}
|
|
360
352
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
353
|
+
// Opera 12.16 and IE9 - don't have 3d transforms
|
|
354
|
+
.csstransforms.no-csstransforms3d {
|
|
355
|
+
.left-off-canvas-menu { @include translate2d(-100%, 0); }
|
|
356
|
+
.right-off-canvas-menu { @include translate2d(100%, 0); }
|
|
365
357
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
358
|
+
.move-left > .inner-wrap { @include translate2d(-($off-canvas-width),0); }
|
|
359
|
+
.move-right > .inner-wrap { @include translate2d($off-canvas-width,0); }
|
|
360
|
+
}
|
|
369
361
|
|
|
370
|
-
|
|
362
|
+
// Older browsers
|
|
363
|
+
.no-csstransforms {
|
|
364
|
+
.left-off-canvas-menu { left: -($off-canvas-width); }
|
|
365
|
+
.right-off-canvas-menu { right: -($off-canvas-width); }
|
|
371
366
|
|
|
367
|
+
.move-left > .inner-wrap { right: $off-canvas-width; }
|
|
368
|
+
.move-right > .inner-wrap { left: $off-canvas-width; }
|
|
369
|
+
}
|
|
372
370
|
|
|
371
|
+
}
|
|
372
|
+
}
|
|
@@ -131,6 +131,9 @@ $preloader-class: "preloader" !default;
|
|
|
131
131
|
padding: 0;
|
|
132
132
|
position: relative;
|
|
133
133
|
|
|
134
|
+
// Prevents images (and captions) from disappearing after first rotation on Chrome for Android
|
|
135
|
+
-webkit-transform: translateZ(0);
|
|
136
|
+
|
|
134
137
|
img { display: block; max-width: 100%; }
|
|
135
138
|
|
|
136
139
|
&>* {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
//
|
|
6
6
|
$include-html-media-classes: $include-html-classes !default;
|
|
7
7
|
|
|
8
|
-
// We use this to
|
|
8
|
+
// We use this to set the progress bar height
|
|
9
9
|
$progress-bar-height: rem-calc(25) !default;
|
|
10
10
|
$progress-bar-color: #f6f6f6 !default;
|
|
11
11
|
|
|
@@ -72,4 +72,4 @@ $progress-meter-alert-color: $alert-color !default;
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
}
|
|
75
|
-
}
|
|
75
|
+
}
|
|
@@ -137,16 +137,21 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
|
|
|
137
137
|
// Reveal Modals
|
|
138
138
|
.reveal-modal-bg { @include reveal-bg; }
|
|
139
139
|
|
|
140
|
-
.#{$reveal-modal-class} {
|
|
140
|
+
dialog, .#{$reveal-modal-class} {
|
|
141
141
|
@include reveal-modal-base;
|
|
142
142
|
@include reveal-modal-style;
|
|
143
143
|
|
|
144
144
|
.#{$close-reveal-modal-class} { @include reveal-close; }
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
dialog[open] {
|
|
148
|
+
display:block;
|
|
149
|
+
visibility: visible;
|
|
150
|
+
}
|
|
151
|
+
|
|
147
152
|
@media #{$medium-up} {
|
|
148
153
|
|
|
149
|
-
.#{$reveal-modal-class} {
|
|
154
|
+
dialog, .#{$reveal-modal-class} {
|
|
150
155
|
@include reveal-modal-style(false, $reveal-modal-padding * 1.5, false, $box-shadow: false, $top-offset: $reveal-position-top);
|
|
151
156
|
|
|
152
157
|
&.tiny { @include reveal-modal-base(false, 30%); }
|
|
@@ -159,7 +164,7 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
|
|
|
159
164
|
|
|
160
165
|
// Reveal Print Styles
|
|
161
166
|
@media print {
|
|
162
|
-
.#{$reveal-modal-class} {background: #fff !important;}
|
|
167
|
+
dialog, .#{$reveal-modal-class} {background: #fff !important;}
|
|
163
168
|
}
|
|
164
169
|
}
|
|
165
170
|
}
|
|
@@ -16,7 +16,8 @@ $side-nav-list-margin: rem-calc(0 0 7 0) !default;
|
|
|
16
16
|
|
|
17
17
|
// We use these to control link styles.
|
|
18
18
|
$side-nav-link-color: $primary-color !default;
|
|
19
|
-
$side-nav-link-color-active: scale-color(
|
|
19
|
+
$side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
|
20
|
+
$side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
|
20
21
|
$side-nav-font-size: rem-calc(14) !default;
|
|
21
22
|
$side-nav-font-weight: normal !default;
|
|
22
23
|
$side-nav-font-family: $body-font-family !default;
|
|
@@ -40,10 +41,12 @@ $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
|
|
|
40
41
|
// $divider-color - Border color of divider. Default: $side-nav-divider-color.
|
|
41
42
|
// $font-size - Font size of nav items. Default: $side-nav-font-size.
|
|
42
43
|
// $link-color - Color of navigation links. Default: $side-nav-link-color.
|
|
44
|
+
// $link-color-hover - Color of navigation links when hovered. Default: $side-nav-link-color-hover.
|
|
43
45
|
@mixin side-nav(
|
|
44
46
|
$divider-color:$side-nav-divider-color,
|
|
45
47
|
$font-size:$side-nav-font-size,
|
|
46
|
-
$link-color:$side-nav-link-color
|
|
48
|
+
$link-color:$side-nav-link-color,
|
|
49
|
+
$link-color-hover:$side-nav-link-color-hover) {
|
|
47
50
|
display: block;
|
|
48
51
|
margin: 0;
|
|
49
52
|
padding: $side-nav-padding;
|
|
@@ -55,12 +58,14 @@ $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
|
|
|
55
58
|
margin: $side-nav-list-margin;
|
|
56
59
|
font-size: $font-size;
|
|
57
60
|
|
|
58
|
-
a {
|
|
61
|
+
a:not(.button) {
|
|
59
62
|
display: block;
|
|
60
63
|
color: $link-color;
|
|
64
|
+
&:hover,
|
|
65
|
+
&:focus { color: $link-color-hover; }
|
|
61
66
|
}
|
|
62
67
|
|
|
63
|
-
&.active > a:first-child {
|
|
68
|
+
&.active > a:first-child:not(.button) {
|
|
64
69
|
color: $side-nav-link-color-active;
|
|
65
70
|
font-weight: $side-nav-font-weight;
|
|
66
71
|
font-family: $side-nav-active-font-family;
|
|
@@ -80,4 +85,4 @@ $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
|
|
|
80
85
|
@if $include-html-nav-classes {
|
|
81
86
|
.side-nav { @include side-nav; }
|
|
82
87
|
}
|
|
83
|
-
}
|
|
88
|
+
}
|
|
@@ -21,6 +21,7 @@ $sub-nav-font-size: rem-calc(14) !default;
|
|
|
21
21
|
$sub-nav-font-color: #999 !default;
|
|
22
22
|
$sub-nav-font-weight: normal !default;
|
|
23
23
|
$sub-nav-text-decoration: none !default;
|
|
24
|
+
$sub-nav-padding: rem-calc(3 16) !default;
|
|
24
25
|
$sub-nav-border-radius: 3px !default;
|
|
25
26
|
$sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default;
|
|
26
27
|
|
|
@@ -31,7 +32,7 @@ $sub-nav-active-font-weight: normal !default;
|
|
|
31
32
|
$sub-nav-active-bg: $primary-color !default;
|
|
32
33
|
$sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
|
|
33
34
|
$sub-nav-active-color: #fff !default;
|
|
34
|
-
$sub-nav-active-padding:
|
|
35
|
+
$sub-nav-active-padding: $sub-nav-padding !default;
|
|
35
36
|
$sub-nav-active-cursor: default !default;
|
|
36
37
|
|
|
37
38
|
$sub-nav-item-divider: "" !default;
|
|
@@ -47,11 +48,12 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
|
|
|
47
48
|
// $font-color - Font color. Default: $sub-nav-font-color.
|
|
48
49
|
// $font-size - Font size. Default: $sub-nav-font-size.
|
|
49
50
|
// $active-bg - Background of active nav item. Default: $sub-nav-active-bg.
|
|
51
|
+
// $active-bg-hover - Background of active nav item, when hovered. Default: $sub-nav-active-bg-hover.
|
|
50
52
|
@mixin sub-nav(
|
|
51
53
|
$font-color: $sub-nav-font-color,
|
|
52
54
|
$font-size: $sub-nav-font-size,
|
|
53
55
|
$active-bg: $sub-nav-active-bg,
|
|
54
|
-
$active-bg-hover:
|
|
56
|
+
$active-bg-hover: $sub-nav-active-bg-hover) {
|
|
55
57
|
display: block;
|
|
56
58
|
width: auto;
|
|
57
59
|
overflow: hidden;
|
|
@@ -79,8 +81,9 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
|
|
|
79
81
|
a {
|
|
80
82
|
text-decoration: $sub-nav-text-decoration;
|
|
81
83
|
color: $sub-nav-font-color;
|
|
84
|
+
padding: $sub-nav-padding;
|
|
82
85
|
&:hover {
|
|
83
|
-
color: $
|
|
86
|
+
color: $sub-nav-font-color-hover;
|
|
84
87
|
}
|
|
85
88
|
}
|
|
86
89
|
|