foundation-rails 5.0.2.0 → 5.0.3.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.
- checksums.yaml +4 -4
- data/lib/foundation/rails/version.rb +1 -1
- data/vendor/assets/javascripts/foundation/foundation.abide.js +27 -6
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +1 -1
- data/vendor/assets/javascripts/foundation/foundation.alert.js +3 -3
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +25 -12
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +25 -7
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +6 -5
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +19 -16
- data/vendor/assets/javascripts/foundation/foundation.js +12 -9
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +13 -1
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +2 -2
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +42 -20
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +80 -36
- data/vendor/assets/javascripts/foundation/foundation.tab.js +14 -5
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +9 -8
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +5 -4
- data/vendor/assets/javascripts/vendor/modernizr.js +1405 -3
- data/vendor/assets/stylesheets/foundation.scss +2 -0
- data/vendor/assets/stylesheets/foundation/_functions.scss +3 -0
- data/vendor/assets/stylesheets/foundation/_settings.scss +244 -50
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +15 -15
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +3 -2
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +3 -3
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +10 -4
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +8 -6
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +5 -5
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +43 -19
- data/vendor/assets/stylesheets/foundation/components/_global.scss +29 -18
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +41 -25
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +5 -5
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +110 -98
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +12 -10
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +6 -6
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +4 -4
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -0
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +9 -9
- data/vendor/assets/stylesheets/foundation/components/_switch.scss +30 -28
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +2 -2
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +75 -73
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +1 -2
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +1 -1
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +61 -47
- data/vendor/assets/stylesheets/foundation/components/_type.scss +13 -14
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +23 -8
- data/vendor/assets/stylesheets/normalize.scss +0 -0
- metadata +3 -5
- data/vendor/_settings.scss +0 -992
- data/vendor/assets/stylesheets/foundation/components/_functions.scss +0 -70
@@ -10,7 +10,7 @@ $orbit-caption-bg: rgba(51,51,51, 0.8) !default;
|
|
10
10
|
$orbit-caption-font-color: #fff !default;
|
11
11
|
$orbit-caption-font-size: rem-calc(14) !default;
|
12
12
|
$orbit-caption-position: "bottom" !default; // Supported values: "bottom", "under"
|
13
|
-
$orbit-caption-padding: rem-calc(10
|
13
|
+
$orbit-caption-padding: rem-calc(10 14) !default;
|
14
14
|
$orbit-caption-height: auto !default;
|
15
15
|
|
16
16
|
// We use these to control the left/right nav styles
|
@@ -164,8 +164,8 @@ $preloader-class: "preloader" !default;
|
|
164
164
|
background-color: $orbit-caption-bg;
|
165
165
|
color: $orbit-caption-font-color;
|
166
166
|
width: 100%;
|
167
|
-
padding:
|
168
|
-
font-size:
|
167
|
+
padding: $orbit-caption-padding;
|
168
|
+
font-size: $orbit-caption-font-size;
|
169
169
|
}
|
170
170
|
}
|
171
171
|
}
|
@@ -212,7 +212,7 @@ $preloader-class: "preloader" !default;
|
|
212
212
|
border-top: none;
|
213
213
|
border-bottom: none;
|
214
214
|
}
|
215
|
-
|
215
|
+
|
216
216
|
// Pause button
|
217
217
|
&.paused {
|
218
218
|
& > span {
|
@@ -224,7 +224,7 @@ $preloader-class: "preloader" !default;
|
|
224
224
|
border-right-style: solid;
|
225
225
|
border-color: transparent transparent transparent #fff;
|
226
226
|
&.dark {
|
227
|
-
|
227
|
+
border-color: transparent transparent transparent #333;
|
228
228
|
}
|
229
229
|
}
|
230
230
|
}
|
@@ -244,6 +244,7 @@ $preloader-class: "preloader" !default;
|
|
244
244
|
height: 60px;
|
245
245
|
line-height: 50px;
|
246
246
|
color: white;
|
247
|
+
background-color: $orbit-nav-bg;
|
247
248
|
text-indent: -9999px !important;
|
248
249
|
z-index: 10;
|
249
250
|
|
@@ -292,15 +293,16 @@ $preloader-class: "preloader" !default;
|
|
292
293
|
position: relative;
|
293
294
|
top: 10px;
|
294
295
|
float: none;
|
295
|
-
|
296
|
-
|
296
|
+
text-align: center;
|
297
|
+
display: block;
|
297
298
|
|
298
299
|
li {
|
299
|
-
display: block;
|
300
|
+
display: inline-block;
|
300
301
|
width: $orbit-bullet-radius;
|
301
302
|
height: $orbit-bullet-radius;
|
302
303
|
background: $orbit-bullet-nav-color;
|
303
|
-
float: $default-float;
|
304
|
+
// float: $default-float;
|
305
|
+
float: none;
|
304
306
|
margin-#{$opposite-direction}: 6px;
|
305
307
|
@include radius(1000px);
|
306
308
|
|
@@ -350,4 +352,4 @@ $preloader-class: "preloader" !default;
|
|
350
352
|
}
|
351
353
|
|
352
354
|
}
|
353
|
-
}
|
355
|
+
}
|
@@ -19,7 +19,7 @@ $pagination-li-margin: rem-calc(5) !default;
|
|
19
19
|
// We use these for the pagination anchor links
|
20
20
|
$pagination-link-pad: rem-calc(1 10 1) !default;
|
21
21
|
$pagination-link-font-color: #999 !default;
|
22
|
-
$pagination-link-active-bg:
|
22
|
+
$pagination-link-active-bg: scale-color(#fff, $lightness: -10%) !default;
|
23
23
|
|
24
24
|
// We use these for disabled anchor links
|
25
25
|
$pagination-link-unavailable-cursor: default !default;
|
@@ -6,13 +6,13 @@
|
|
6
6
|
$include-html-panel-classes: $include-html-classes !default;
|
7
7
|
|
8
8
|
// We use these to control the background and border styles
|
9
|
-
$panel-bg:
|
9
|
+
$panel-bg: scale-color(#fff, $lightness: -5%) !default;
|
10
10
|
$panel-border-style: solid !default;
|
11
11
|
$panel-border-size: 1px !default;
|
12
12
|
|
13
13
|
// We use this % to control how much we darken things on hover
|
14
|
-
$panel-function-factor:
|
15
|
-
$panel-border-color:
|
14
|
+
$panel-function-factor: -11% !default;
|
15
|
+
$panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor) !default;
|
16
16
|
|
17
17
|
// We use these to set default inner padding and bottom margin
|
18
18
|
$panel-margin-bottom: rem-calc(20) !default;
|
@@ -28,7 +28,7 @@ $callout-panel-link-color: $primary-color !default;
|
|
28
28
|
// @mixins
|
29
29
|
//
|
30
30
|
// We use this mixin to create panels.
|
31
|
-
// $bg - Sets the panel background color. Default: $panel-pg ||
|
31
|
+
// $bg - Sets the panel background color. Default: $panel-pg || scale-color(#fff, $lightness: -5%) !default
|
32
32
|
// $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
|
33
33
|
// $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
|
34
34
|
@mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust) {
|
@@ -38,7 +38,7 @@ $callout-panel-link-color: $primary-color !default;
|
|
38
38
|
|
39
39
|
border-style: $panel-border-style;
|
40
40
|
border-width: $panel-border-size;
|
41
|
-
border-color:
|
41
|
+
border-color: scale-color($bg, $lightness: $panel-function-factor);
|
42
42
|
margin-bottom: $panel-margin-bottom;
|
43
43
|
padding: $padding;
|
44
44
|
|
@@ -70,7 +70,7 @@ $callout-panel-link-color: $primary-color !default;
|
|
70
70
|
.panel { @include panel;
|
71
71
|
|
72
72
|
&.callout {
|
73
|
-
@include panel(
|
73
|
+
@include panel(scale-color($primary-color, $lightness: 94%));
|
74
74
|
a {
|
75
75
|
color: $callout-panel-link-color;
|
76
76
|
}
|
File without changes
|
@@ -10,7 +10,7 @@ $progress-bar-height: rem-calc(25) !default;
|
|
10
10
|
$progress-bar-color: #f6f6f6 !default;
|
11
11
|
|
12
12
|
// We use these to control the border styles
|
13
|
-
$progress-bar-border-color:
|
13
|
+
$progress-bar-border-color: scale-color(#fff, $lightness: 20%) !default;
|
14
14
|
$progress-bar-border-size: 1px !default;
|
15
15
|
$progress-bar-border-style: solid !default;
|
16
16
|
$progress-bar-border-radius: $global-radius !default;
|
@@ -13,7 +13,7 @@ $reveal-overlay-bg-old: #000 !default;
|
|
13
13
|
|
14
14
|
// We use these to control the style of the modal itself.
|
15
15
|
$reveal-modal-bg: #fff !default;
|
16
|
-
$reveal-position-top:
|
16
|
+
$reveal-position-top: rem-calc(100) !default;
|
17
17
|
$reveal-default-width: 80% !default;
|
18
18
|
$reveal-modal-padding: rem-calc(20) !default;
|
19
19
|
$reveal-box-shadow: 0 0 10px rgba(#000,.4) !default;
|
@@ -147,7 +147,7 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
|
|
147
147
|
@media #{$medium-up} {
|
148
148
|
|
149
149
|
.#{$reveal-modal-class} {
|
150
|
-
@include reveal-modal-style(false,
|
150
|
+
@include reveal-modal-style(false, $reveal-modal-padding * 1.5, false, $box-shadow: false, $top-offset: $reveal-position-top);
|
151
151
|
|
152
152
|
&.tiny { @include reveal-modal-base(false, 30%); }
|
153
153
|
&.small { @include reveal-modal-base(false, 40%); }
|
@@ -16,7 +16,7 @@ $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:
|
19
|
+
$side-nav-link-color-active: scale-color(#000, $lightness: 30%) !default;
|
20
20
|
$side-nav-font-size: rem-calc(14) !default;
|
21
21
|
$side-nav-font-weight: normal !default;
|
22
22
|
$side-nav-font-family: $body-font-family !default;
|
@@ -27,7 +27,7 @@ $side-nav-active-font-family: $side-nav-font-family !default;
|
|
27
27
|
// We use these to control border styles
|
28
28
|
$side-nav-divider-size: 1px !default;
|
29
29
|
$side-nav-divider-style: solid !default;
|
30
|
-
$side-nav-divider-color:
|
30
|
+
$side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
|
31
31
|
|
32
32
|
|
33
33
|
//
|
@@ -41,8 +41,8 @@ $side-nav-divider-color: darken(#fff, 10%) !default;
|
|
41
41
|
// $font-size - Font size of nav items. Default: $side-nav-font-size.
|
42
42
|
// $link-color - Color of navigation links. Default: $side-nav-link-color.
|
43
43
|
@mixin side-nav(
|
44
|
-
$divider-color:$side-nav-divider-color,
|
45
|
-
$font-size:$side-nav-font-size,
|
44
|
+
$divider-color:$side-nav-divider-color,
|
45
|
+
$font-size:$side-nav-font-size,
|
46
46
|
$link-color:$side-nav-link-color) {
|
47
47
|
display: block;
|
48
48
|
margin: 0;
|
File without changes
|
@@ -22,14 +22,14 @@ $sub-nav-font-color: #999 !default;
|
|
22
22
|
$sub-nav-font-weight: normal !default;
|
23
23
|
$sub-nav-text-decoration: none !default;
|
24
24
|
$sub-nav-border-radius: 3px !default;
|
25
|
-
$sub-nav-font-color-hover:
|
25
|
+
$sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default;
|
26
26
|
|
27
27
|
|
28
28
|
// We use these to control the active item styles
|
29
29
|
|
30
30
|
$sub-nav-active-font-weight: normal !default;
|
31
31
|
$sub-nav-active-bg: $primary-color !default;
|
32
|
-
$sub-nav-active-bg-hover:
|
32
|
+
$sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
|
33
33
|
$sub-nav-active-color: #fff !default;
|
34
34
|
$sub-nav-active-padding: rem-calc(3 16) !default;
|
35
35
|
$sub-nav-active-cursor: default !default;
|
@@ -48,10 +48,10 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
|
|
48
48
|
// $font-size - Font size. Default: $sub-nav-font-size.
|
49
49
|
// $active-bg - Background of active nav item. Default: $sub-nav-active-bg.
|
50
50
|
@mixin sub-nav(
|
51
|
-
$font-color
|
52
|
-
$font-size
|
53
|
-
$active-bg
|
54
|
-
$active-bg-hover:
|
51
|
+
$font-color: $sub-nav-font-color,
|
52
|
+
$font-size: $sub-nav-font-size,
|
53
|
+
$active-bg: $sub-nav-active-bg,
|
54
|
+
$active-bg-hover: scale-color(#008CBA, $lightness: -5%)) {
|
55
55
|
display: block;
|
56
56
|
width: auto;
|
57
57
|
overflow: hidden;
|
@@ -61,7 +61,7 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
|
|
61
61
|
margin-#{$default-float}: rem-calc(-12);
|
62
62
|
|
63
63
|
dt {
|
64
|
-
|
64
|
+
text-transform: uppercase;
|
65
65
|
}
|
66
66
|
|
67
67
|
dt,
|
@@ -80,7 +80,7 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
|
|
80
80
|
text-decoration: $sub-nav-text-decoration;
|
81
81
|
color: $sub-nav-font-color;
|
82
82
|
&:hover {
|
83
|
-
|
83
|
+
color: $active-bg-hover;
|
84
84
|
}
|
85
85
|
}
|
86
86
|
|
@@ -92,7 +92,7 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
|
|
92
92
|
cursor: $sub-nav-active-cursor;
|
93
93
|
color: $sub-nav-active-color;
|
94
94
|
&:hover {
|
95
|
-
|
95
|
+
background: $active-bg-hover;
|
96
96
|
}
|
97
97
|
}
|
98
98
|
@if $sub-nav-item-divider != "" {
|
@@ -3,16 +3,18 @@
|
|
3
3
|
//
|
4
4
|
// @name
|
5
5
|
// @dependencies _global.scss
|
6
|
-
//
|
6
|
+
//
|
7
7
|
|
8
8
|
//
|
9
9
|
// @variables
|
10
10
|
//
|
11
11
|
|
12
|
+
// NOTE: Switches have been deprecated in Foundation 5 and will be removed in the future.
|
13
|
+
|
12
14
|
$include-html-form-classes: $include-html-classes !default;
|
13
15
|
|
14
16
|
// Controlling border styles and background colors for the switch container
|
15
|
-
$switch-border-color:
|
17
|
+
$switch-border-color: scale-color(#fff, $lightness: -20%) !default;
|
16
18
|
$switch-border-style: solid !default;
|
17
19
|
$switch-border-width: 1px !default;
|
18
20
|
$switch-bg: #fff !default;
|
@@ -33,13 +35,13 @@ $switch-label-side-padding: 6px !default;
|
|
33
35
|
|
34
36
|
// We use these to style the switch-paddle
|
35
37
|
$switch-paddle-bg: #fff !default;
|
36
|
-
$switch-paddle-fade-to-color:
|
37
|
-
$switch-paddle-border-color:
|
38
|
+
$switch-paddle-fade-to-color: scale-color($switch-paddle-bg, $lightness: -10%) !default;
|
39
|
+
$switch-paddle-border-color: scale-color($switch-paddle-bg, $lightness: -35%) !default;
|
38
40
|
$switch-paddle-border-width: 1px !default;
|
39
41
|
$switch-paddle-border-style: solid !default;
|
40
42
|
$switch-paddle-transition-speed: .1s !default;
|
41
43
|
$switch-paddle-transition-ease: ease-out !default;
|
42
|
-
$switch-positive-color:
|
44
|
+
$switch-positive-color: scale-color($success-color, $lightness: 94%) !default;
|
43
45
|
$switch-negative-color: #f5f5f5 !default;
|
44
46
|
|
45
47
|
// Outline Style for tabbing through switches
|
@@ -55,7 +57,7 @@ $switch-label-outline: 1px dotted #888 !default;
|
|
55
57
|
// $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
|
56
58
|
// $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
|
57
59
|
@mixin switch-base(
|
58
|
-
$transition-speed:$switch-paddle-transition-speed,
|
60
|
+
$transition-speed:$switch-paddle-transition-speed,
|
59
61
|
$transition-ease:$switch-paddle-transition-ease) {
|
60
62
|
|
61
63
|
// Default position and structure for switch container.
|
@@ -160,8 +162,8 @@ $switch-label-outline: 1px dotted #888 !default;
|
|
160
162
|
// $font-size - Font size of text in switch. Default: $switch-font-size-med.
|
161
163
|
// $line-height - Line height of switch. Default: 2.3rem.
|
162
164
|
@mixin switch-size(
|
163
|
-
$height: $switch-height-med,
|
164
|
-
$font-size: $switch-font-size-med,
|
165
|
+
$height: $switch-height-med,
|
166
|
+
$font-size: $switch-font-size-med,
|
165
167
|
$line-height: 2.3rem) {
|
166
168
|
|
167
169
|
height: rem-calc($height);
|
@@ -195,10 +197,10 @@ $switch-label-outline: 1px dotted #888 !default;
|
|
195
197
|
// $radius - Radius to apply to switch. Default: false.
|
196
198
|
// $base-style - Apply base styles? Default: true.
|
197
199
|
@mixin switch-style(
|
198
|
-
$paddle-bg:$switch-paddle-bg,
|
199
|
-
$positive-color:$switch-positive-color,
|
200
|
-
$negative-color:$switch-negative-color,
|
201
|
-
$radius:false,
|
200
|
+
$paddle-bg:$switch-paddle-bg,
|
201
|
+
$positive-color:$switch-positive-color,
|
202
|
+
$negative-color:$switch-negative-color,
|
203
|
+
$radius:false,
|
202
204
|
$base-style:true) {
|
203
205
|
|
204
206
|
@if $base-style {
|
@@ -206,13 +208,13 @@ $switch-label-outline: 1px dotted #888 !default;
|
|
206
208
|
border-color: $switch-border-color;
|
207
209
|
|
208
210
|
span:last-child {
|
209
|
-
border-color:
|
211
|
+
border-color: scale-color($paddle-bg, $lightness: -30%);
|
210
212
|
background: $paddle-bg;
|
211
213
|
@if $experimental {
|
212
|
-
background: -moz-linear-gradient(top, $paddle-bg 0%,
|
213
|
-
background: -webkit-linear-gradient(top, $paddle-bg 0%,
|
214
|
+
background: -moz-linear-gradient(top, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -5%) 100%);
|
215
|
+
background: -webkit-linear-gradient(top, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -5%) 100%);
|
214
216
|
}
|
215
|
-
background: linear-gradient(to bottom, $paddle-bg 0%,
|
217
|
+
background: linear-gradient(to bottom, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -5%) 100%);
|
216
218
|
|
217
219
|
// Building the alternating colored sides of the switch
|
218
220
|
@if $experimental {
|
@@ -232,10 +234,10 @@ $switch-label-outline: 1px dotted #888 !default;
|
|
232
234
|
span:last-child {
|
233
235
|
background: $paddle-bg;
|
234
236
|
@if $experimental {
|
235
|
-
background: -moz-linear-gradient(top, $paddle-bg 0%,
|
236
|
-
background: -webkit-linear-gradient(top, $paddle-bg 0%,
|
237
|
+
background: -moz-linear-gradient(top, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -10%) 100%);
|
238
|
+
background: -webkit-linear-gradient(top, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -10%) 100%);
|
237
239
|
}
|
238
|
-
background: linear-gradient(to bottom, $paddle-bg 0%,
|
240
|
+
background: linear-gradient(to bottom, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -10%) 100%);
|
239
241
|
}
|
240
242
|
}
|
241
243
|
|
@@ -267,15 +269,15 @@ $switch-label-outline: 1px dotted #888 !default;
|
|
267
269
|
// $radius - Radius to apply to switch. Default: false.
|
268
270
|
// $base-style - Apply base styles? Default: true.
|
269
271
|
@mixin switch(
|
270
|
-
$transition-speed: $switch-paddle-transition-speed,
|
271
|
-
$transition-ease: $switch-paddle-transition-ease,
|
272
|
-
$height: $switch-height-med,
|
273
|
-
$font-size: $switch-font-size-med,
|
274
|
-
$line-height: 2.3rem,
|
275
|
-
$paddle-bg: $switch-paddle-bg,
|
276
|
-
$positive-color: $switch-positive-color,
|
277
|
-
$negative-color: $switch-negative-color,
|
278
|
-
$radius:false,
|
272
|
+
$transition-speed: $switch-paddle-transition-speed,
|
273
|
+
$transition-ease: $switch-paddle-transition-ease,
|
274
|
+
$height: $switch-height-med,
|
275
|
+
$font-size: $switch-font-size-med,
|
276
|
+
$line-height: 2.3rem,
|
277
|
+
$paddle-bg: $switch-paddle-bg,
|
278
|
+
$positive-color: $switch-positive-color,
|
279
|
+
$negative-color: $switch-negative-color,
|
280
|
+
$radius:false,
|
279
281
|
$base-style:true) {
|
280
282
|
@include switch-base($transition-speed, $transition-ease);
|
281
283
|
@include switch-size($height, $font-size, $line-height);
|
@@ -49,14 +49,14 @@ $table-margin-bottom: rem-calc(20) !default;
|
|
49
49
|
|
50
50
|
thead,
|
51
51
|
tfoot {
|
52
|
-
background: $table-head-bg;
|
53
|
-
font-weight: $table-head-font-weight;
|
52
|
+
background: $table-head-bg;
|
54
53
|
|
55
54
|
tr {
|
56
55
|
th,
|
57
56
|
td {
|
58
57
|
padding: $table-head-padding;
|
59
58
|
font-size: $table-head-font-size;
|
59
|
+
font-weight: $table-head-font-weight;
|
60
60
|
color: $table-head-font-color;
|
61
61
|
text-align: $default-float;
|
62
62
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
@import "global";
|
2
|
+
@import "grid";
|
2
3
|
|
3
4
|
//
|
4
5
|
// @variables
|
@@ -8,7 +9,8 @@ $include-html-tabs-classes: $include-html-classes !default;
|
|
8
9
|
|
9
10
|
$tabs-navigation-padding: rem-calc(16) !default;
|
10
11
|
$tabs-navigation-bg-color: #efefef !default;
|
11
|
-
$tabs-navigation-
|
12
|
+
$tabs-navigation-active-bg-color: #fff !default;
|
13
|
+
$tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%) !default;
|
12
14
|
$tabs-navigation-font-color: #222 !default;
|
13
15
|
$tabs-navigation-font-size: rem-calc(16) !default;
|
14
16
|
$tabs-navigation-font-family: $body-font-family !default;
|
@@ -19,77 +21,77 @@ $tabs-content-padding: $column-gutter/2 !default;
|
|
19
21
|
$tabs-vertical-navigation-margin-bottom: 1.25rem !default;
|
20
22
|
|
21
23
|
@include exports("tab") {
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
24
|
+
@if $include-html-tabs-classes {
|
25
|
+
.tabs {
|
26
|
+
@include clearfix;
|
27
|
+
margin-bottom: 0 !important;
|
28
|
+
dd {
|
29
|
+
position: relative;
|
30
|
+
margin-bottom: 0 !important;
|
31
|
+
top: 1px;
|
32
|
+
float: $default-float;
|
33
|
+
> a {
|
34
|
+
display: block;
|
35
|
+
background: $tabs-navigation-bg-color;
|
36
|
+
color: $tabs-navigation-font-color;
|
37
|
+
padding-top: $tabs-navigation-padding;
|
38
|
+
padding-#{$opposite-direction}: $tabs-navigation-padding * 2;
|
39
|
+
padding-bottom: $tabs-navigation-padding + rem-calc(1);
|
40
|
+
padding-#{$default-float}: $tabs-navigation-padding * 2;
|
41
|
+
font-family: $tabs-navigation-font-family;
|
42
|
+
font-size: $tabs-navigation-font-size;
|
43
|
+
&:hover { background: $tabs-navigation-hover-bg-color; }
|
44
|
+
}
|
45
|
+
&.active a { background: $tabs-navigation-active-bg-color; }
|
46
|
+
}
|
47
|
+
&.radius {
|
48
|
+
dd:first-child {
|
49
|
+
a { @include side-radius($default-float, $global-radius); }
|
50
|
+
}
|
51
|
+
dd:last-child {
|
52
|
+
a { @include side-radius($opposite-direction, $global-radius); }
|
53
|
+
}
|
54
|
+
}
|
55
|
+
&.vertical {
|
56
|
+
dd {
|
57
|
+
position: inherit;
|
58
|
+
float: none;
|
59
|
+
display: block;
|
60
|
+
top: auto;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
62
64
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
65
|
+
.tabs-content {
|
66
|
+
@include clearfix;
|
67
|
+
margin-bottom: $tabs-content-margin-bottom;
|
68
|
+
> .content {
|
69
|
+
display: none;
|
70
|
+
float: $default-float;
|
71
|
+
padding: $tabs-content-padding 0;
|
72
|
+
&.active { display: block; }
|
73
|
+
&.contained { padding: $tabs-content-padding; }
|
74
|
+
}
|
75
|
+
&.vertical {
|
76
|
+
display: block;
|
77
|
+
> .content { padding: 0 $tabs-content-padding; }
|
78
|
+
}
|
79
|
+
}
|
80
|
+
@media #{$medium-up} {
|
81
|
+
.tabs {
|
82
|
+
&.vertical {
|
83
|
+
width: 20%;
|
84
|
+
float: $default-float;
|
85
|
+
margin-bottom: $tabs-vertical-navigation-margin-bottom;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
.tabs-content {
|
89
|
+
&.vertical {
|
90
|
+
width: 80%;
|
91
|
+
float: $default-float;
|
92
|
+
margin-#{$default-float}: -1px;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
95
97
|
}
|