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,212 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
@import 'grid';
|
7
|
-
|
8
|
-
//
|
9
|
-
// @name _reveal.scss
|
10
|
-
// @dependencies _global.scss
|
11
|
-
//
|
12
|
-
|
13
|
-
$include-html-reveal-classes: $include-html-classes !default;
|
14
|
-
|
15
|
-
// We use these to control the style of the reveal overlay.
|
16
|
-
$reveal-overlay-bg: rgba($black, .45) !default;
|
17
|
-
$reveal-overlay-bg-old: $black !default;
|
18
|
-
|
19
|
-
// We use these to control the style of the modal itself.
|
20
|
-
$reveal-modal-bg: $white !default;
|
21
|
-
$reveal-position-top: rem-calc(100) !default;
|
22
|
-
$reveal-default-width: 80% !default;
|
23
|
-
$reveal-max-width: $row-width !default;
|
24
|
-
$reveal-modal-padding: rem-calc(30) !default;
|
25
|
-
$reveal-box-shadow: 0 0 10px rgba($black,.4) !default;
|
26
|
-
|
27
|
-
// We use these to style the reveal close button
|
28
|
-
$reveal-close-font-size: rem-calc(40) !default;
|
29
|
-
$reveal-close-top: rem-calc(10) !default;
|
30
|
-
$reveal-close-side: rem-calc(22) !default;
|
31
|
-
$reveal-close-color: $base !default;
|
32
|
-
$reveal-close-weight: $font-weight-bold !default;
|
33
|
-
|
34
|
-
// We use this to set the default radius used throughout the core.
|
35
|
-
$reveal-radius: $global-radius !default;
|
36
|
-
$reveal-round: $global-rounded !default;
|
37
|
-
|
38
|
-
// We use these to control the modal border
|
39
|
-
$reveal-border-style: solid !default;
|
40
|
-
$reveal-border-width: 1px !default;
|
41
|
-
$reveal-border-color: $steel !default;
|
42
|
-
|
43
|
-
$reveal-modal-class: "reveal-modal" !default;
|
44
|
-
$close-reveal-modal-class: "close-reveal-modal" !default;
|
45
|
-
|
46
|
-
// Set base z-index
|
47
|
-
$z-index-base: 1005;
|
48
|
-
|
49
|
-
//
|
50
|
-
// @mixins
|
51
|
-
//
|
52
|
-
|
53
|
-
// We use this to create the reveal background overlay styles
|
54
|
-
@mixin reveal-bg( $include-z-index-value: true ) {
|
55
|
-
// position: absolute; // allows modal background to extend beyond window position
|
56
|
-
background: $reveal-overlay-bg-old; // Autoprefixer should be used to avoid such variables needed when Foundation for Sites can do so in the near future.
|
57
|
-
background: $reveal-overlay-bg;
|
58
|
-
bottom: 0;
|
59
|
-
display: none;
|
60
|
-
left: 0;
|
61
|
-
position: fixed;
|
62
|
-
right: 0;
|
63
|
-
top: 0;
|
64
|
-
z-index: if( $include-z-index-value, $z-index-base - 1, auto );
|
65
|
-
#{$default-float}: 0;
|
66
|
-
}
|
67
|
-
|
68
|
-
// We use this mixin to create the structure of a reveal modal
|
69
|
-
//
|
70
|
-
// $base-style - Provides reveal base styles, can be set to false to override. Default: true, Options: false
|
71
|
-
// $width - Sets reveal width Default: $reveal-default-width || 80%
|
72
|
-
//
|
73
|
-
@mixin reveal-modal-base( $base-style: true, $width:$reveal-default-width, $max-width:$reveal-max-width, $border-radius: $reveal-radius) {
|
74
|
-
@if $base-style {
|
75
|
-
border-radius: $border-radius;
|
76
|
-
display: none;
|
77
|
-
position: absolute;
|
78
|
-
top:0;
|
79
|
-
visibility: hidden;
|
80
|
-
width: 100%;
|
81
|
-
z-index: $z-index-base;
|
82
|
-
#{$default-float}: 0;
|
83
|
-
|
84
|
-
@media #{$small-only} {
|
85
|
-
min-height:100vh;
|
86
|
-
}
|
87
|
-
|
88
|
-
// Make sure rows don't have a min-width on them
|
89
|
-
.column, .columns { min-width: 0; }
|
90
|
-
|
91
|
-
// Get rid of margin from first and last element inside modal
|
92
|
-
> :first-child { margin-top: 0; }
|
93
|
-
|
94
|
-
> :last-child { margin-bottom: 0; }
|
95
|
-
}
|
96
|
-
|
97
|
-
@if $width {
|
98
|
-
@media #{$medium-up} {
|
99
|
-
left: 0;
|
100
|
-
margin: 0 auto;
|
101
|
-
max-width: $max-width;
|
102
|
-
right: 0;
|
103
|
-
width: $width;
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
// We use this to style the reveal modal defaults
|
109
|
-
//
|
110
|
-
// $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || $white
|
111
|
-
// $padding - Padding to apply to reveal modal. Default: $reveal-modal-padding.
|
112
|
-
// $border - Choose whether reveal uses a border. Default: true, Options: false
|
113
|
-
// $border-style - Set reveal border style. Default: $reveal-border-style || solid
|
114
|
-
// $border-width - Width of border (i.e. 1px). Default: $reveal-border-width.
|
115
|
-
// $border-color - Color of border. Default: $reveal-border-color.
|
116
|
-
// $box-shadow - Choose whether or not to include the default box-shadow. Default: true, Options: false
|
117
|
-
// $radius - If true, set to modal radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: false
|
118
|
-
// $top-offset - Default: $reveal-position-top || 50px
|
119
|
-
@mixin reveal-modal-style(
|
120
|
-
$bg:false,
|
121
|
-
$padding:false,
|
122
|
-
$border:false,
|
123
|
-
$border-style:$reveal-border-style,
|
124
|
-
$border-width:$reveal-border-width,
|
125
|
-
$border-color:$reveal-border-color,
|
126
|
-
$box-shadow:false,
|
127
|
-
$radius:false,
|
128
|
-
$top-offset:false) {
|
129
|
-
|
130
|
-
@if $bg { background-color: $bg; }
|
131
|
-
@if $padding != false { padding: $padding; }
|
132
|
-
|
133
|
-
@if $border { border: $border-style $border-width $border-color; }
|
134
|
-
|
135
|
-
// We can choose whether or not to include the default box-shadow.
|
136
|
-
@if $box-shadow {
|
137
|
-
box-shadow: $reveal-box-shadow;
|
138
|
-
}
|
139
|
-
@else{
|
140
|
-
box-shadow: none;
|
141
|
-
}
|
142
|
-
|
143
|
-
// We can control how much radius is used on the modal
|
144
|
-
@if $radius == true { @include radius($reveal-radius); }
|
145
|
-
@else if $radius { @include radius($radius); }
|
146
|
-
|
147
|
-
@if $top-offset {
|
148
|
-
@media #{$medium-up} {
|
149
|
-
top: $top-offset;
|
150
|
-
}
|
151
|
-
}
|
152
|
-
}
|
153
|
-
|
154
|
-
// We use this to create a close button for the reveal modal
|
155
|
-
//
|
156
|
-
// $color - Default: $reveal-close-color || $base
|
157
|
-
@mixin reveal-close($color:$reveal-close-color) {
|
158
|
-
color: $color;
|
159
|
-
cursor: $cursor-pointer-value;
|
160
|
-
font-size: $reveal-close-font-size;
|
161
|
-
font-weight: $reveal-close-weight;
|
162
|
-
line-height: 1;
|
163
|
-
position: absolute;
|
164
|
-
top: $reveal-close-top;
|
165
|
-
#{$opposite-direction}: $reveal-close-side;
|
166
|
-
}
|
167
|
-
|
168
|
-
@include exports("reveal") {
|
169
|
-
@if $include-html-reveal-classes {
|
170
|
-
|
171
|
-
// Reveal Modals
|
172
|
-
.reveal-modal-bg { @include reveal-bg; }
|
173
|
-
|
174
|
-
.#{$reveal-modal-class} {
|
175
|
-
@include reveal-modal-base;
|
176
|
-
@include reveal-modal-style(
|
177
|
-
$bg:$reveal-modal-bg,
|
178
|
-
$padding:$reveal-modal-padding,
|
179
|
-
$border:true,
|
180
|
-
$box-shadow:true,
|
181
|
-
$radius:false,
|
182
|
-
$top-offset:$reveal-position-top
|
183
|
-
);
|
184
|
-
|
185
|
-
&.radius { @include reveal-modal-style($radius:true); }
|
186
|
-
&.round { @include reveal-modal-style($radius:$reveal-round); }
|
187
|
-
&.collapse { @include reveal-modal-style($padding:0); }
|
188
|
-
&.tiny { @include reveal-modal-base(false, 30%); }
|
189
|
-
&.small { @include reveal-modal-base(false, 40%); }
|
190
|
-
&.medium { @include reveal-modal-base(false, 60%); }
|
191
|
-
&.large { @include reveal-modal-base(false, 70%); }
|
192
|
-
&.xlarge { @include reveal-modal-base(false, 95%); }
|
193
|
-
&.full {
|
194
|
-
@include reveal-modal-base(false, 100%);
|
195
|
-
height: 100vh;
|
196
|
-
height:100%;
|
197
|
-
left:0;
|
198
|
-
margin-left: 0 !important;
|
199
|
-
max-width: none !important;
|
200
|
-
min-height:100vh;
|
201
|
-
top:0;
|
202
|
-
}
|
203
|
-
|
204
|
-
// Modals pushed to back
|
205
|
-
&.toback {
|
206
|
-
z-index: $z-index-base - 2;
|
207
|
-
}
|
208
|
-
|
209
|
-
.#{$close-reveal-modal-class} { @include reveal-close; }
|
210
|
-
}
|
211
|
-
}
|
212
|
-
}
|
@@ -1,120 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
|
7
|
-
//
|
8
|
-
// @variables
|
9
|
-
//
|
10
|
-
|
11
|
-
$include-html-nav-classes: $include-html-classes !default;
|
12
|
-
|
13
|
-
// We use this to control padding.
|
14
|
-
$side-nav-padding: rem-calc(14 0) !default;
|
15
|
-
|
16
|
-
// We use these to control list styles.
|
17
|
-
$side-nav-list-type: none !default;
|
18
|
-
$side-nav-list-position: outside !default;
|
19
|
-
$side-nav-list-margin: rem-calc(0 0 7 0) !default;
|
20
|
-
|
21
|
-
// We use these to control link styles.
|
22
|
-
$side-nav-link-color: $primary-color !default;
|
23
|
-
$side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
24
|
-
$side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
25
|
-
$side-nav-link-bg-hover: hsla(0, 0, 0, .025) !default;
|
26
|
-
$side-nav-link-margin: 0 !default;
|
27
|
-
$side-nav-link-padding: rem-calc(7 14) !default;
|
28
|
-
$side-nav-font-size: rem-calc(14) !default;
|
29
|
-
$side-nav-font-weight: $font-weight-normal !default;
|
30
|
-
$side-nav-font-weight-active: $side-nav-font-weight !default;
|
31
|
-
$side-nav-font-family: $body-font-family !default;
|
32
|
-
$side-nav-font-family-active: $side-nav-font-family !default;
|
33
|
-
|
34
|
-
// We use these to control heading styles.
|
35
|
-
$side-nav-heading-color: $side-nav-link-color !default;
|
36
|
-
$side-nav-heading-font-size: $side-nav-font-size !default;
|
37
|
-
$side-nav-heading-font-weight: bold !default;
|
38
|
-
$side-nav-heading-text-transform: uppercase !default;
|
39
|
-
|
40
|
-
// We use these to control border styles
|
41
|
-
$side-nav-divider-size: 1px !default;
|
42
|
-
$side-nav-divider-style: solid !default;
|
43
|
-
$side-nav-divider-color: scale-color($white, $lightness: -10%) !default;
|
44
|
-
|
45
|
-
|
46
|
-
//
|
47
|
-
// @mixins
|
48
|
-
//
|
49
|
-
|
50
|
-
|
51
|
-
// We use this to style the side-nav
|
52
|
-
//
|
53
|
-
// $divider-color - Border color of divider. Default: $side-nav-divider-color.
|
54
|
-
// $font-size - Font size of nav items. Default: $side-nav-font-size.
|
55
|
-
// $link-color - Color of navigation links. Default: $side-nav-link-color.
|
56
|
-
// $link-color-hover - Color of navigation links when hovered. Default: $side-nav-link-color-hover.
|
57
|
-
@mixin side-nav(
|
58
|
-
$divider-color:$side-nav-divider-color,
|
59
|
-
$font-size:$side-nav-font-size,
|
60
|
-
$link-color:$side-nav-link-color,
|
61
|
-
$link-color-active:$side-nav-link-color-active,
|
62
|
-
$link-color-hover:$side-nav-link-color-hover,
|
63
|
-
$link-bg-hover:$side-nav-link-bg-hover) {
|
64
|
-
display: block;
|
65
|
-
font-family: $side-nav-font-family;
|
66
|
-
list-style-position: $side-nav-list-position;
|
67
|
-
list-style-type: $side-nav-list-type;
|
68
|
-
margin: 0;
|
69
|
-
padding: $side-nav-padding;
|
70
|
-
|
71
|
-
li {
|
72
|
-
font-size: $font-size;
|
73
|
-
font-weight: $side-nav-font-weight;
|
74
|
-
margin: $side-nav-list-margin;
|
75
|
-
|
76
|
-
a:not(.button) {
|
77
|
-
color: $link-color;
|
78
|
-
display: block;
|
79
|
-
margin: $side-nav-link-margin;
|
80
|
-
padding: $side-nav-link-padding;
|
81
|
-
&:hover,
|
82
|
-
&:focus {
|
83
|
-
background: $link-bg-hover;
|
84
|
-
color: $link-color-hover;
|
85
|
-
}
|
86
|
-
&:active {
|
87
|
-
color: $link-color-active;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
&.active > a:first-child:not(.button) {
|
92
|
-
color: $side-nav-link-color-active;
|
93
|
-
font-family: $side-nav-font-family-active;
|
94
|
-
font-weight: $side-nav-font-weight-active;
|
95
|
-
}
|
96
|
-
|
97
|
-
&.divider {
|
98
|
-
border-top: $side-nav-divider-size $side-nav-divider-style;
|
99
|
-
height: 0;
|
100
|
-
list-style: none;
|
101
|
-
padding: 0;
|
102
|
-
border-top-color: $divider-color;
|
103
|
-
}
|
104
|
-
|
105
|
-
&.heading {
|
106
|
-
color: $side-nav-heading-color;
|
107
|
-
font: {
|
108
|
-
size: $side-nav-heading-font-size;
|
109
|
-
weight: $side-nav-heading-font-weight;
|
110
|
-
}
|
111
|
-
text-transform: $side-nav-heading-text-transform;
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
@include exports("side-nav") {
|
117
|
-
@if $include-html-nav-classes {
|
118
|
-
.side-nav {@include side-nav;}
|
119
|
-
}
|
120
|
-
}
|
@@ -1,203 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import 'global';
|
6
|
-
@import 'buttons';
|
7
|
-
@import 'dropdown-buttons';
|
8
|
-
|
9
|
-
//
|
10
|
-
// @name _split-buttons.scss
|
11
|
-
// @dependencies _buttons.scss, _global.scss
|
12
|
-
//
|
13
|
-
|
14
|
-
//
|
15
|
-
// @variables
|
16
|
-
//
|
17
|
-
|
18
|
-
$include-html-button-classes: $include-html-classes !default;
|
19
|
-
|
20
|
-
// We use these to control different shared styles for Split Buttons
|
21
|
-
$split-button-function-factor: 10% !default;
|
22
|
-
$split-button-pip-color: $white !default;
|
23
|
-
$split-button-pip-color-alt: $oil !default;
|
24
|
-
$split-button-active-bg-tint: rgba(0,0,0,0.1) !default;
|
25
|
-
$split-button-span-border-color: rgba(255,255,255,0.5) !default;
|
26
|
-
|
27
|
-
// We use these to control tiny split buttons
|
28
|
-
$split-button-padding-tny: $button-pip-tny * 10 !default;
|
29
|
-
$split-button-span-width-tny: $button-pip-tny * 6 !default;
|
30
|
-
$split-button-pip-size-tny: $button-pip-tny !default;
|
31
|
-
$split-button-pip-top-tny: $button-pip-tny * 2 !default;
|
32
|
-
$split-button-pip-default-float-tny: rem-calc(-6) !default;
|
33
|
-
|
34
|
-
// We use these to control small split buttons
|
35
|
-
$split-button-padding-sml: $button-pip-sml * 10 !default;
|
36
|
-
$split-button-span-width-sml: $button-pip-sml * 6 !default;
|
37
|
-
$split-button-pip-size-sml: $button-pip-sml !default;
|
38
|
-
$split-button-pip-top-sml: $button-pip-sml * 1.5 !default;
|
39
|
-
$split-button-pip-default-float-sml: rem-calc(-6) !default;
|
40
|
-
|
41
|
-
// We use these to control medium split buttons
|
42
|
-
$split-button-padding-med: $button-pip-med * 9 !default;
|
43
|
-
$split-button-span-width-med: $button-pip-med * 5.5 !default;
|
44
|
-
$split-button-pip-size-med: $button-pip-med - rem-calc(3) !default;
|
45
|
-
$split-button-pip-top-med: $button-pip-med * 1.5 !default;
|
46
|
-
$split-button-pip-default-float-med: rem-calc(-6) !default;
|
47
|
-
|
48
|
-
// We use these to control large split buttons
|
49
|
-
$split-button-padding-lrg: $button-pip-lrg * 8 !default;
|
50
|
-
$split-button-span-width-lrg: $button-pip-lrg * 5 !default;
|
51
|
-
$split-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default;
|
52
|
-
$split-button-pip-top-lrg: $button-pip-lrg + rem-calc(5) !default;
|
53
|
-
$split-button-pip-default-float-lrg: rem-calc(-6) !default;
|
54
|
-
|
55
|
-
|
56
|
-
//
|
57
|
-
// @mixins
|
58
|
-
//
|
59
|
-
|
60
|
-
// We use this mixin to create split buttons that build upon the button mixins
|
61
|
-
//
|
62
|
-
// $padding - Type of padding to apply. Default: medium. Options: tiny, small, medium, large.
|
63
|
-
// $pip-color - Color of the triangle. Default: $split-button-pip-color.
|
64
|
-
// $span-border - Border color of button divider. Default: $split-button-span-border-color.
|
65
|
-
// $base-style - Apply base style to split button. Default: true.
|
66
|
-
@mixin split-button(
|
67
|
-
$padding:medium,
|
68
|
-
$pip-color:$split-button-pip-color,
|
69
|
-
$span-border:$split-button-span-border-color,
|
70
|
-
$base-style:true) {
|
71
|
-
|
72
|
-
// With this, we can control whether or not the base styles come through.
|
73
|
-
@if $base-style {
|
74
|
-
position: relative;
|
75
|
-
|
76
|
-
// Styling for the split arrow clickable area
|
77
|
-
span {
|
78
|
-
display: block;
|
79
|
-
height: 100%;
|
80
|
-
position: absolute;
|
81
|
-
#{$opposite-direction}: 0;
|
82
|
-
top: 0;
|
83
|
-
border-#{$default-float}: solid 1px;
|
84
|
-
|
85
|
-
// Building the triangle pip indicator
|
86
|
-
&:after {
|
87
|
-
position: absolute;
|
88
|
-
content: "";
|
89
|
-
width: 0;
|
90
|
-
height: 0;
|
91
|
-
display: block;
|
92
|
-
border-style: inset;
|
93
|
-
top: 50%;
|
94
|
-
#{$default-float}: 50%;
|
95
|
-
}
|
96
|
-
|
97
|
-
&:active { background-color: $split-button-active-bg-tint; }
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
// Control the border color for the span area of the split button
|
102
|
-
@if $span-border {
|
103
|
-
span {
|
104
|
-
border-#{$default-float}-color: $span-border;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
// Style of the button and clickable area for tiny sizes
|
109
|
-
@if $padding == tiny {
|
110
|
-
padding-#{$opposite-direction}: $split-button-padding-tny;
|
111
|
-
|
112
|
-
span { width: $split-button-span-width-tny;
|
113
|
-
&:after {
|
114
|
-
border-top-style: solid;
|
115
|
-
border-width: $split-button-pip-size-tny;
|
116
|
-
margin-#{$default-float}: $split-button-pip-default-float-tny;
|
117
|
-
top: 48%;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
}
|
121
|
-
|
122
|
-
// Style of the button and clickable area for small sizes
|
123
|
-
@else if $padding == small {
|
124
|
-
padding-#{$opposite-direction}: $split-button-padding-sml;
|
125
|
-
|
126
|
-
span { width: $split-button-span-width-sml;
|
127
|
-
&:after {
|
128
|
-
border-top-style: solid;
|
129
|
-
border-width: $split-button-pip-size-sml;
|
130
|
-
margin-#{$default-float}: $split-button-pip-default-float-sml;
|
131
|
-
top: 48%;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
// Style of the button and clickable area for default (medium) sizes
|
137
|
-
@else if $padding == medium {
|
138
|
-
padding-#{$opposite-direction}: $split-button-padding-med;
|
139
|
-
|
140
|
-
span { width: $split-button-span-width-med;
|
141
|
-
&:after {
|
142
|
-
border-top-style: solid;
|
143
|
-
border-width: $split-button-pip-size-med;
|
144
|
-
margin-#{$default-float}: $split-button-pip-default-float-med;
|
145
|
-
top: 48%;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
// Style of the button and clickable area for large sizes
|
151
|
-
@else if $padding == large {
|
152
|
-
padding-#{$opposite-direction}: $split-button-padding-lrg;
|
153
|
-
|
154
|
-
span { width: $split-button-span-width-lrg;
|
155
|
-
&:after {
|
156
|
-
border-top-style: solid;
|
157
|
-
border-width: $split-button-pip-size-lrg;
|
158
|
-
margin-#{$default-float}: $split-button-pip-default-float-lrg;
|
159
|
-
top: 48%;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
// Control the color of the triangle pip
|
165
|
-
@if $pip-color {
|
166
|
-
span:after { border-color: $pip-color transparent transparent transparent; }
|
167
|
-
}
|
168
|
-
}
|
169
|
-
|
170
|
-
@include exports("split-button") {
|
171
|
-
@if $include-html-button-classes {
|
172
|
-
|
173
|
-
.split.button { @include split-button;
|
174
|
-
|
175
|
-
&.secondary { @include split-button(false, $split-button-pip-color, $split-button-span-border-color, false); }
|
176
|
-
&.alert { @include split-button(false, false, $split-button-span-border-color, false); }
|
177
|
-
&.success { @include split-button(false, false, $split-button-span-border-color, false); }
|
178
|
-
|
179
|
-
&.tiny { @include split-button(tiny, false, false, false); }
|
180
|
-
&.small { @include split-button(small, false, false, false); }
|
181
|
-
&.large { @include split-button(large, false, false, false); }
|
182
|
-
&.expand { padding-left: 2rem; }
|
183
|
-
|
184
|
-
&.secondary { @include split-button(false, $split-button-pip-color-alt, false, false); }
|
185
|
-
|
186
|
-
&.radius span { @include side-radius($opposite-direction, $global-radius); }
|
187
|
-
&.round span { @include side-radius($opposite-direction, 1000px); }
|
188
|
-
&.no-pip{
|
189
|
-
span:before{ border-style:none; }
|
190
|
-
span:after{ border-style:none; }
|
191
|
-
span>i{
|
192
|
-
display: block;
|
193
|
-
left: 50%;
|
194
|
-
margin-left: -0.28889em;
|
195
|
-
margin-top: -0.48889em;
|
196
|
-
position: absolute;
|
197
|
-
top: 50%;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
201
|
-
|
202
|
-
}
|
203
|
-
}
|