foundation-rails 5.5.3.2 → 6.1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +2 -8
- data/Rakefile +23 -0
- data/app/views/foundation/rails/styleguide/show.html.erb +2 -5
- data/bower.json +2 -2
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/install_generator.rb +6 -3
- data/lib/generators/foundation/templates/_settings.scss +546 -0
- data/lib/generators/foundation/templates/application.html.erb +0 -1
- data/lib/generators/foundation/templates/application.html.haml +0 -2
- data/lib/generators/foundation/templates/application.html.slim +0 -2
- data/lib/generators/foundation/templates/foundation_and_overrides.scss +51 -0
- data/vendor/assets/js/foundation.abide.js +418 -0
- data/vendor/assets/js/foundation.accordion.js +229 -0
- data/vendor/assets/js/foundation.accordionMenu.js +262 -0
- data/vendor/assets/js/foundation.core.js +378 -0
- data/vendor/assets/js/foundation.drilldown.js +321 -0
- data/vendor/assets/js/foundation.dropdown.js +390 -0
- data/vendor/assets/js/foundation.dropdownMenu.js +391 -0
- data/vendor/assets/js/foundation.equalizer.js +274 -0
- data/vendor/assets/js/foundation.interchange.js +184 -0
- data/vendor/assets/js/foundation.js +28 -0
- data/vendor/assets/js/foundation.magellan.js +212 -0
- data/vendor/assets/js/foundation.offcanvas.js +371 -0
- data/vendor/assets/js/foundation.orbit.js +419 -0
- data/vendor/assets/js/foundation.responsiveMenu.js +145 -0
- data/vendor/assets/js/foundation.responsiveToggle.js +106 -0
- data/vendor/assets/js/foundation.reveal.js +478 -0
- data/vendor/assets/js/foundation.slider.js +484 -0
- data/vendor/assets/js/foundation.sticky.js +436 -0
- data/vendor/assets/js/foundation.tabs.js +306 -0
- data/vendor/assets/js/foundation.toggler.js +147 -0
- data/vendor/assets/js/foundation.tooltip.js +429 -0
- data/vendor/assets/js/foundation.util.box.js +169 -0
- data/vendor/assets/js/foundation.util.keyboard.js +115 -0
- data/vendor/assets/js/foundation.util.mediaQuery.js +210 -0
- data/vendor/assets/js/foundation.util.motion.js +89 -0
- data/vendor/assets/js/foundation.util.nest.js +64 -0
- data/vendor/assets/js/foundation.util.timerAndImageLoader.js +78 -0
- data/vendor/assets/js/foundation.util.touch.js +339 -0
- data/vendor/assets/js/foundation.util.triggers.js +222 -0
- data/vendor/assets/scss/_global.scss +626 -0
- data/vendor/assets/scss/components/_accordion-menu.scss +32 -0
- data/vendor/assets/scss/components/_accordion.scss +113 -0
- data/vendor/assets/scss/components/_badge.scss +55 -0
- data/vendor/assets/scss/components/_breadcrumbs.scss +94 -0
- data/vendor/assets/scss/components/_button-group.scss +130 -0
- data/vendor/assets/scss/components/_button.scss +265 -0
- data/vendor/assets/scss/components/_callout.scss +105 -0
- data/vendor/assets/scss/components/_close-button.scss +61 -0
- data/vendor/assets/scss/components/_drilldown.scss +75 -0
- data/vendor/assets/scss/components/_dropdown-menu.scss +148 -0
- data/vendor/assets/scss/components/_dropdown.scss +64 -0
- data/vendor/assets/scss/components/_flex-video.scss +63 -0
- data/vendor/assets/scss/components/_float.scss +27 -0
- data/vendor/assets/scss/components/_label.scss +56 -0
- data/vendor/assets/scss/components/_media-object.scss +74 -0
- data/vendor/assets/scss/components/_menu.scss +209 -0
- data/vendor/assets/scss/components/_off-canvas.scss +180 -0
- data/vendor/assets/scss/components/_orbit.scss +193 -0
- data/vendor/assets/scss/components/_pagination.scss +158 -0
- data/vendor/assets/scss/components/_progress-bar.scss +83 -0
- data/vendor/assets/scss/components/_reveal.scss +156 -0
- data/vendor/assets/scss/components/_slider.scss +158 -0
- data/vendor/assets/scss/components/_sticky.scss +38 -0
- data/vendor/assets/scss/components/_switch.scss +232 -0
- data/vendor/assets/scss/components/_table.scss +213 -0
- data/vendor/assets/scss/components/_tabs.scss +170 -0
- data/vendor/assets/scss/components/_thumbnail.scss +54 -0
- data/vendor/assets/scss/components/_title-bar.scss +68 -0
- data/vendor/assets/scss/components/_tooltip.scss +100 -0
- data/vendor/assets/scss/components/_top-bar.scss +89 -0
- data/vendor/assets/scss/components/_visibility.scss +131 -0
- data/vendor/assets/scss/forms/_checkbox.scss +36 -0
- data/vendor/assets/scss/forms/_error.scss +82 -0
- data/vendor/assets/scss/forms/_fieldset.scss +53 -0
- data/vendor/assets/scss/forms/_forms.scss +32 -0
- data/vendor/assets/scss/forms/_help-text.scss +30 -0
- data/vendor/assets/scss/forms/_input-group.scss +91 -0
- data/vendor/assets/scss/forms/_label.scss +48 -0
- data/vendor/assets/scss/forms/_select.scss +63 -0
- data/vendor/assets/scss/forms/_text.scss +154 -0
- data/vendor/assets/scss/foundation.scss +91 -0
- data/vendor/assets/scss/grid/_classes.scss +153 -0
- data/vendor/assets/scss/grid/_column.scss +124 -0
- data/vendor/assets/scss/grid/_flex-grid.scss +281 -0
- data/vendor/assets/scss/grid/_grid.scss +48 -0
- data/vendor/assets/scss/grid/_gutter.scss +34 -0
- data/vendor/assets/scss/grid/_layout.scss +33 -0
- data/vendor/assets/scss/grid/_position.scss +72 -0
- data/vendor/assets/scss/grid/_row.scss +97 -0
- data/vendor/assets/scss/grid/_size.scss +24 -0
- data/vendor/assets/scss/settings/_settings.scss +547 -0
- data/vendor/assets/scss/typography/_alignment.scss +22 -0
- data/vendor/assets/scss/typography/_base.scss +439 -0
- data/vendor/assets/scss/typography/_helpers.scss +77 -0
- data/vendor/assets/scss/typography/_print.scss +73 -0
- data/vendor/assets/scss/typography/_typography.scss +28 -0
- data/vendor/assets/scss/util/_breakpoint.scss +266 -0
- data/vendor/assets/scss/util/_color.scss +41 -0
- data/vendor/assets/scss/util/_mixins.scss +223 -0
- data/vendor/assets/scss/util/_selector.scss +40 -0
- data/vendor/assets/scss/util/_unit.scss +90 -0
- data/vendor/assets/scss/util/_util.scss +15 -0
- data/vendor/assets/scss/util/_value.scss +126 -0
- metadata +97 -64
- data/update-gem.sh +0 -20
- data/vendor/assets/javascripts/foundation.js +0 -17
- data/vendor/assets/javascripts/foundation/foundation.abide.js +0 -426
- data/vendor/assets/javascripts/foundation/foundation.accordion.js +0 -125
- data/vendor/assets/javascripts/foundation/foundation.alert.js +0 -43
- data/vendor/assets/javascripts/foundation/foundation.clearing.js +0 -586
- data/vendor/assets/javascripts/foundation/foundation.dropdown.js +0 -468
- data/vendor/assets/javascripts/foundation/foundation.equalizer.js +0 -104
- data/vendor/assets/javascripts/foundation/foundation.interchange.js +0 -360
- data/vendor/assets/javascripts/foundation/foundation.joyride.js +0 -935
- data/vendor/assets/javascripts/foundation/foundation.js +0 -732
- data/vendor/assets/javascripts/foundation/foundation.magellan.js +0 -214
- data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +0 -225
- data/vendor/assets/javascripts/foundation/foundation.orbit.js +0 -476
- data/vendor/assets/javascripts/foundation/foundation.reveal.js +0 -522
- data/vendor/assets/javascripts/foundation/foundation.slider.js +0 -296
- data/vendor/assets/javascripts/foundation/foundation.tab.js +0 -247
- data/vendor/assets/javascripts/foundation/foundation.tooltip.js +0 -348
- data/vendor/assets/javascripts/foundation/foundation.topbar.js +0 -458
- data/vendor/assets/javascripts/vendor/modernizr.js +0 -1406
- data/vendor/assets/stylesheets/foundation.scss +0 -42
- data/vendor/assets/stylesheets/foundation/_functions.scss +0 -156
- data/vendor/assets/stylesheets/foundation/_settings.scss +0 -1489
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +0 -161
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +0 -133
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +0 -208
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +0 -261
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +0 -260
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +0 -269
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +0 -607
- data/vendor/assets/stylesheets/foundation/components/_global.scss +0 -566
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +0 -292
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +0 -460
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -58
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -220
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +0 -60
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -106
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -34
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +0 -606
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +0 -388
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +0 -163
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +0 -107
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +0 -85
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +0 -177
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +0 -212
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +0 -120
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -203
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +0 -125
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +0 -241
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +0 -135
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +0 -142
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +0 -745
- data/vendor/assets/stylesheets/foundation/components/_type.scss +0 -525
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +0 -425
- data/vendor/assets/stylesheets/normalize.scss +0 -424
@@ -1,125 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
|
7
|
-
//
|
8
|
-
// @name _sub-nav.scss
|
9
|
-
// @dependencies _global.scss
|
10
|
-
//
|
11
|
-
|
12
|
-
//
|
13
|
-
// @variables
|
14
|
-
//
|
15
|
-
|
16
|
-
$include-html-nav-classes: $include-html-classes !default;
|
17
|
-
|
18
|
-
// We use these to control margin and padding
|
19
|
-
$sub-nav-list-margin: rem-calc(-4 0 18) !default;
|
20
|
-
$sub-nav-list-padding-top: rem-calc(4) !default;
|
21
|
-
|
22
|
-
// We use this to control the definition
|
23
|
-
$sub-nav-font-family: $body-font-family !default;
|
24
|
-
$sub-nav-font-size: rem-calc(14) !default;
|
25
|
-
$sub-nav-font-color: $aluminum !default;
|
26
|
-
$sub-nav-font-weight: $font-weight-normal !default;
|
27
|
-
$sub-nav-text-decoration: none !default;
|
28
|
-
$sub-nav-padding: rem-calc(3 16) !default;
|
29
|
-
$sub-nav-border-radius: 3px !default;
|
30
|
-
$sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default;
|
31
|
-
|
32
|
-
|
33
|
-
// We use these to control the active item styles
|
34
|
-
|
35
|
-
$sub-nav-active-font-weight: $font-weight-normal !default;
|
36
|
-
$sub-nav-active-bg: $primary-color !default;
|
37
|
-
$sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
|
38
|
-
$sub-nav-active-color: $white !default;
|
39
|
-
$sub-nav-active-padding: $sub-nav-padding !default;
|
40
|
-
$sub-nav-active-cursor: default !default;
|
41
|
-
|
42
|
-
$sub-nav-item-divider: "" !default;
|
43
|
-
$sub-nav-item-divider-margin: rem-calc(12) !default;
|
44
|
-
|
45
|
-
//
|
46
|
-
// @mixins
|
47
|
-
//
|
48
|
-
|
49
|
-
|
50
|
-
// Create a sub-nav item
|
51
|
-
//
|
52
|
-
// $font-color - Font color. Default: $sub-nav-font-color.
|
53
|
-
// $font-size - Font size. Default: $sub-nav-font-size.
|
54
|
-
// $active-bg - Background of active nav item. Default: $sub-nav-active-bg.
|
55
|
-
// $active-bg-hover - Background of active nav item, when hovered. Default: $sub-nav-active-bg-hover.
|
56
|
-
@mixin sub-nav(
|
57
|
-
$font-color: $sub-nav-font-color,
|
58
|
-
$font-size: $sub-nav-font-size,
|
59
|
-
$active-bg: $sub-nav-active-bg,
|
60
|
-
$active-bg-hover: $sub-nav-active-bg-hover) {
|
61
|
-
display: block;
|
62
|
-
margin: $sub-nav-list-margin;
|
63
|
-
overflow: hidden;
|
64
|
-
padding-top: $sub-nav-list-padding-top;
|
65
|
-
width: auto;
|
66
|
-
|
67
|
-
dt {
|
68
|
-
text-transform: uppercase;
|
69
|
-
}
|
70
|
-
|
71
|
-
dt,
|
72
|
-
dd,
|
73
|
-
li {
|
74
|
-
color: $font-color;
|
75
|
-
float: $default-float;
|
76
|
-
font-family: $sub-nav-font-family;
|
77
|
-
font-size: $font-size;
|
78
|
-
font-weight: $sub-nav-font-weight;
|
79
|
-
margin-#{$default-float}: rem-calc(16);
|
80
|
-
margin-bottom: 0;
|
81
|
-
|
82
|
-
a {
|
83
|
-
color: $sub-nav-font-color;
|
84
|
-
padding: $sub-nav-padding;
|
85
|
-
text-decoration: $sub-nav-text-decoration;
|
86
|
-
|
87
|
-
&:hover {
|
88
|
-
color: $sub-nav-font-color-hover;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
&.active a {
|
93
|
-
@include radius($sub-nav-border-radius);
|
94
|
-
background: $active-bg;
|
95
|
-
color: $sub-nav-active-color;
|
96
|
-
cursor: $sub-nav-active-cursor;
|
97
|
-
font-weight: $sub-nav-active-font-weight;
|
98
|
-
padding: $sub-nav-active-padding;
|
99
|
-
|
100
|
-
&:hover {
|
101
|
-
background: $active-bg-hover;
|
102
|
-
}
|
103
|
-
}
|
104
|
-
|
105
|
-
@if $sub-nav-item-divider != "" {
|
106
|
-
margin-#{$default-float}: 0;
|
107
|
-
|
108
|
-
&:before {
|
109
|
-
content: "#{$sub-nav-item-divider}";
|
110
|
-
margin: 0 $sub-nav-item-divider-margin;
|
111
|
-
}
|
112
|
-
|
113
|
-
&:first-child:before {
|
114
|
-
content: "";
|
115
|
-
margin: 0;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
@include exports("sub-nav") {
|
122
|
-
@if $include-html-nav-classes {
|
123
|
-
.sub-nav { @include sub-nav; }
|
124
|
-
}
|
125
|
-
}
|
@@ -1,241 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
|
7
|
-
//
|
8
|
-
// @name
|
9
|
-
// @dependencies _global.scss
|
10
|
-
//
|
11
|
-
|
12
|
-
//
|
13
|
-
// @variables
|
14
|
-
//
|
15
|
-
|
16
|
-
$include-html-form-classes: $include-html-classes !default;
|
17
|
-
|
18
|
-
// Controlling background color for the switch container
|
19
|
-
$switch-bg: $gainsboro !default;
|
20
|
-
|
21
|
-
// We use these to control the switch heights for our default classes
|
22
|
-
$switch-height-tny: 1.5rem !default;
|
23
|
-
$switch-height-sml: 1.75rem !default;
|
24
|
-
$switch-height-med: 2rem !default;
|
25
|
-
$switch-height-lrg: 2.5rem !default;
|
26
|
-
$switch-bottom-margin: 1.5rem !default;
|
27
|
-
|
28
|
-
// We use these to style the switch-paddle
|
29
|
-
$switch-paddle-bg: $white !default;
|
30
|
-
$switch-paddle-transition-speed: .15s !default;
|
31
|
-
$switch-paddle-transition-ease: ease-out !default;
|
32
|
-
$switch-active-color: $primary-color !default;
|
33
|
-
|
34
|
-
|
35
|
-
//
|
36
|
-
// @mixins
|
37
|
-
//
|
38
|
-
|
39
|
-
// We use this mixin to create the base styles for our switch element.
|
40
|
-
//
|
41
|
-
// $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
|
42
|
-
// $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
|
43
|
-
@mixin switch-base(
|
44
|
-
$transition-speed:$switch-paddle-transition-speed,
|
45
|
-
$transition-ease:$switch-paddle-transition-ease) {
|
46
|
-
|
47
|
-
border: none;
|
48
|
-
margin-bottom: $switch-bottom-margin;
|
49
|
-
outline: 0;
|
50
|
-
padding: 0;
|
51
|
-
position: relative;
|
52
|
-
-webkit-user-select: none;
|
53
|
-
-moz-user-select: none;
|
54
|
-
-ms-user-select: none;
|
55
|
-
user-select: none;
|
56
|
-
|
57
|
-
// Default label styles for type and transition
|
58
|
-
label {
|
59
|
-
background: $switch-bg;
|
60
|
-
color: transparent;
|
61
|
-
cursor: pointer;
|
62
|
-
display: block;
|
63
|
-
margin-bottom: ($switch-height-med / 2);
|
64
|
-
position: relative;
|
65
|
-
text-indent: 100%;
|
66
|
-
width: $switch-height-med * 2; height: $switch-height-med;
|
67
|
-
|
68
|
-
// Transition for the switch label to follow paddle
|
69
|
-
@include single-transition(left, $transition-speed, $transition-ease);
|
70
|
-
}
|
71
|
-
|
72
|
-
// So that we don't need to recreate the form with any JS, we use the
|
73
|
-
// existing checkbox or radio button, but we cleverly position and hide it.
|
74
|
-
input {
|
75
|
-
left: 10px;
|
76
|
-
opacity: 0;
|
77
|
-
padding:0;
|
78
|
-
position: absolute;
|
79
|
-
top: 9px;
|
80
|
-
|
81
|
-
& + label { margin-left: 0; margin-right: 0; }
|
82
|
-
}
|
83
|
-
|
84
|
-
// The paddle for the switch is created from an after psuedoclass
|
85
|
-
// content element. This is sized and positioned, and reacts to
|
86
|
-
// the state of the input.
|
87
|
-
|
88
|
-
label:after {
|
89
|
-
background: $switch-paddle-bg;
|
90
|
-
content: "";
|
91
|
-
display: block;
|
92
|
-
height: $switch-height-med - .5rem;
|
93
|
-
left: .25rem;
|
94
|
-
position: absolute;
|
95
|
-
top: .25rem;
|
96
|
-
width: $switch-height-med - .5rem;
|
97
|
-
|
98
|
-
-webkit-transition: left $transition-speed $transition-ease;
|
99
|
-
-moz-transition: left $transition-speed $transition-ease;
|
100
|
-
-o-transition: translate3d(0,0,0);
|
101
|
-
transition: left $transition-speed $transition-ease;
|
102
|
-
|
103
|
-
-webkit-transform: translate3d(0,0,0);
|
104
|
-
-moz-transform: translate3d(0,0,0);
|
105
|
-
-ms-transform: translate3d(0,0,0);
|
106
|
-
-o-transform: translate3d(0,0,0);
|
107
|
-
transform: translate3d(0,0,0);
|
108
|
-
}
|
109
|
-
|
110
|
-
input:checked + label {
|
111
|
-
background: $switch-active-color;
|
112
|
-
}
|
113
|
-
|
114
|
-
input:checked + label:after {
|
115
|
-
left: $switch-height-med + .25rem;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
// We use this mixin to create the size styles for switches.
|
120
|
-
//
|
121
|
-
// $height - Height (in px) of the switch. Default: $switch-height-med.
|
122
|
-
// $font-size - Font size of text in switch. Default: $switch-font-size-med.
|
123
|
-
// $line-height - Line height of switch. Default: 2.3rem.
|
124
|
-
@mixin switch-size($height: $switch-height-med) {
|
125
|
-
|
126
|
-
label {
|
127
|
-
height: $height;
|
128
|
-
width: $height * 2;
|
129
|
-
}
|
130
|
-
|
131
|
-
label:after {
|
132
|
-
height: $height - .5rem;
|
133
|
-
width: $height - .5rem;
|
134
|
-
}
|
135
|
-
|
136
|
-
input:checked + label:after {
|
137
|
-
left: $height + .25rem;
|
138
|
-
}
|
139
|
-
|
140
|
-
}
|
141
|
-
|
142
|
-
// We use this mixin to add color and other fanciness to the switches.
|
143
|
-
//
|
144
|
-
// $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
|
145
|
-
// $active-color - Background color of positive side of switch. Default: $switch-positive-color.
|
146
|
-
// $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
|
147
|
-
// $radius - Radius to apply to switch. Default: false.
|
148
|
-
// $base-style - Apply base styles? Default: true.
|
149
|
-
@mixin switch-style(
|
150
|
-
$paddle-bg:$switch-paddle-bg,
|
151
|
-
$active-color:$switch-active-color,
|
152
|
-
$radius:false,
|
153
|
-
$base-style:true) {
|
154
|
-
|
155
|
-
@if $base-style {
|
156
|
-
|
157
|
-
label {
|
158
|
-
color: transparent;
|
159
|
-
background: $switch-bg;
|
160
|
-
}
|
161
|
-
|
162
|
-
label:after {
|
163
|
-
background: $paddle-bg;
|
164
|
-
}
|
165
|
-
|
166
|
-
input:checked + label {
|
167
|
-
background: $active-color;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
|
171
|
-
// Setting up the radius for switches
|
172
|
-
@if $radius == true {
|
173
|
-
label {
|
174
|
-
border-radius: 2rem;
|
175
|
-
}
|
176
|
-
label:after {
|
177
|
-
border-radius: 2rem;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
@else if $radius {
|
181
|
-
label {
|
182
|
-
border-radius: $radius;
|
183
|
-
}
|
184
|
-
label:after {
|
185
|
-
border-radius: $radius;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
|
189
|
-
}
|
190
|
-
|
191
|
-
// We use this to quickly create switches with a single mixin
|
192
|
-
//
|
193
|
-
// $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
|
194
|
-
// $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
|
195
|
-
// $height - Height (in px) of the switch. Default: $switch-height-med.
|
196
|
-
// $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
|
197
|
-
// $active-color - Background color of an active switch. Default: $switch-active-color.
|
198
|
-
// $radius - Radius to apply to switch. Default: false.
|
199
|
-
// $base-style - Apply base styles? Default: true.
|
200
|
-
@mixin switch(
|
201
|
-
$transition-speed: $switch-paddle-transition-speed,
|
202
|
-
$transition-ease: $switch-paddle-transition-ease,
|
203
|
-
$height: $switch-height-med,
|
204
|
-
$paddle-bg: $switch-paddle-bg,
|
205
|
-
$active-color: $switch-active-color,
|
206
|
-
$radius:false,
|
207
|
-
$base-style:true) {
|
208
|
-
@include switch-base($transition-speed, $transition-ease);
|
209
|
-
@include switch-size($height);
|
210
|
-
@include switch-style($paddle-bg, $active-color, $radius, $base-style);
|
211
|
-
}
|
212
|
-
|
213
|
-
@include exports("switch") {
|
214
|
-
@if $include-html-form-classes {
|
215
|
-
.switch {
|
216
|
-
@include switch;
|
217
|
-
|
218
|
-
// Large radio switches
|
219
|
-
&.large { @include switch-size($switch-height-lrg); }
|
220
|
-
|
221
|
-
// Small radio switches
|
222
|
-
&.small { @include switch-size($switch-height-sml); }
|
223
|
-
|
224
|
-
// Tiny radio switches
|
225
|
-
&.tiny { @include switch-size($switch-height-tny); }
|
226
|
-
|
227
|
-
// Add a radius to the switch
|
228
|
-
&.radius {
|
229
|
-
label { @include radius(4px); }
|
230
|
-
label:after { @include radius(3px); }
|
231
|
-
}
|
232
|
-
|
233
|
-
// Make the switch completely round, like a pill
|
234
|
-
&.round { @include radius(1000px);
|
235
|
-
label { @include radius(2rem); }
|
236
|
-
label:after { @include radius(2rem); }
|
237
|
-
}
|
238
|
-
|
239
|
-
}
|
240
|
-
}
|
241
|
-
}
|
@@ -1,135 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
|
7
|
-
//
|
8
|
-
// @name _tables.scss
|
9
|
-
// @dependencies _global.scss
|
10
|
-
//
|
11
|
-
|
12
|
-
//
|
13
|
-
// @variables
|
14
|
-
//
|
15
|
-
|
16
|
-
$include-html-table-classes: $include-html-classes !default;
|
17
|
-
|
18
|
-
// These control the background color for the table and even rows
|
19
|
-
$table-bg: $white !default;
|
20
|
-
$table-even-row-bg: $snow !default;
|
21
|
-
|
22
|
-
// These control the table cell border style
|
23
|
-
$table-border-style: solid !default;
|
24
|
-
$table-border-size: 1px !default;
|
25
|
-
$table-border-color: $gainsboro !default;
|
26
|
-
|
27
|
-
// These control the table head styles
|
28
|
-
$table-head-bg: $white-smoke !default;
|
29
|
-
$table-head-font-size: rem-calc(14) !default;
|
30
|
-
$table-head-font-color: $jet !default;
|
31
|
-
$table-head-font-weight: $font-weight-bold !default;
|
32
|
-
$table-head-padding: rem-calc(8 10 10) !default;
|
33
|
-
|
34
|
-
// These control the table foot styles
|
35
|
-
$table-foot-bg: $table-head-bg !default;
|
36
|
-
$table-foot-font-size: $table-head-font-size !default;
|
37
|
-
$table-foot-font-color: $table-head-font-color !default;
|
38
|
-
$table-foot-font-weight: $table-head-font-weight !default;
|
39
|
-
$table-foot-padding: $table-head-padding !default;
|
40
|
-
|
41
|
-
// These control the caption
|
42
|
-
$table-caption-bg: transparent !default;
|
43
|
-
$table-caption-font-color: $table-head-font-color !default;
|
44
|
-
$table-caption-font-size: rem-calc(16) !default;
|
45
|
-
$table-caption-font-weight: bold !default;
|
46
|
-
|
47
|
-
// These control the row padding and font styles
|
48
|
-
$table-row-padding: rem-calc(9 10) !default;
|
49
|
-
$table-row-font-size: rem-calc(14) !default;
|
50
|
-
$table-row-font-color: $jet !default;
|
51
|
-
$table-line-height: rem-calc(18) !default;
|
52
|
-
|
53
|
-
// These are for controlling the layout, display and margin of tables
|
54
|
-
$table-layout: auto !default;
|
55
|
-
$table-display: table-cell !default;
|
56
|
-
$table-margin-bottom: rem-calc(20) !default;
|
57
|
-
|
58
|
-
|
59
|
-
//
|
60
|
-
// @mixins
|
61
|
-
//
|
62
|
-
|
63
|
-
@mixin table {
|
64
|
-
background: $table-bg;
|
65
|
-
border: $table-border-style $table-border-size $table-border-color;
|
66
|
-
margin-bottom: $table-margin-bottom;
|
67
|
-
table-layout: $table-layout;
|
68
|
-
|
69
|
-
caption {
|
70
|
-
background: $table-caption-bg;
|
71
|
-
color: $table-caption-font-color;
|
72
|
-
font: {
|
73
|
-
size: $table-caption-font-size;
|
74
|
-
weight: $table-caption-font-weight;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
thead {
|
79
|
-
background: $table-head-bg;
|
80
|
-
|
81
|
-
tr {
|
82
|
-
th,
|
83
|
-
td {
|
84
|
-
color: $table-head-font-color;
|
85
|
-
font-size: $table-head-font-size;
|
86
|
-
font-weight: $table-head-font-weight;
|
87
|
-
padding: $table-head-padding;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
tfoot {
|
93
|
-
background: $table-foot-bg;
|
94
|
-
|
95
|
-
tr {
|
96
|
-
th,
|
97
|
-
td {
|
98
|
-
color: $table-foot-font-color;
|
99
|
-
font-size: $table-foot-font-size;
|
100
|
-
font-weight: $table-foot-font-weight;
|
101
|
-
padding: $table-foot-padding;
|
102
|
-
}
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
tr {
|
107
|
-
th,
|
108
|
-
td {
|
109
|
-
color: $table-row-font-color;
|
110
|
-
font-size: $table-row-font-size;
|
111
|
-
padding: $table-row-padding;
|
112
|
-
text-align: $default-float;
|
113
|
-
}
|
114
|
-
|
115
|
-
&.even,
|
116
|
-
&.alt,
|
117
|
-
&:nth-of-type(even) { background: $table-even-row-bg; }
|
118
|
-
}
|
119
|
-
|
120
|
-
thead tr th,
|
121
|
-
tfoot tr th,
|
122
|
-
tfoot tr td,
|
123
|
-
tbody tr th,
|
124
|
-
tbody tr td,
|
125
|
-
tr td { display: $table-display; line-height: $table-line-height; }
|
126
|
-
}
|
127
|
-
|
128
|
-
|
129
|
-
@include exports("table") {
|
130
|
-
@if $include-html-table-classes {
|
131
|
-
table {
|
132
|
-
@include table;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
}
|