zurb-foundation-5 5.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bowerrc +3 -0
- data/.editorconfig +9 -0
- data/.gitignore +46 -0
- data/.travis.yml +34 -0
- data/CONTRIBUTING.md +55 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +16 -0
- data/Gruntfile.js +222 -0
- data/LICENSE +22 -0
- data/README.md +44 -0
- data/bower.json +20 -0
- data/composer.json +9 -0
- data/foundation.gemspec +21 -0
- data/humans.txt +8 -0
- data/js/foundation/foundation.abide.js +299 -0
- data/js/foundation/foundation.accordion.js +54 -0
- data/js/foundation/foundation.alert.js +43 -0
- data/js/foundation/foundation.clearing.js +531 -0
- data/js/foundation/foundation.dropdown.js +306 -0
- data/js/foundation/foundation.equalizer.js +68 -0
- data/js/foundation/foundation.interchange.js +331 -0
- data/js/foundation/foundation.joyride.js +849 -0
- data/js/foundation/foundation.js +609 -0
- data/js/foundation/foundation.magellan.js +173 -0
- data/js/foundation/foundation.offcanvas.js +50 -0
- data/js/foundation/foundation.orbit.js +606 -0
- data/js/foundation/foundation.reveal.js +427 -0
- data/js/foundation/foundation.slider.js +200 -0
- data/js/foundation/foundation.tab.js +168 -0
- data/js/foundation/foundation.tooltip.js +272 -0
- data/js/foundation/foundation.topbar.js +422 -0
- data/karma.conf.js +114 -0
- data/lib/foundation/engine.rb +20 -0
- data/lib/foundation/generators/USAGE +15 -0
- data/lib/foundation/generators/install_generator.rb +54 -0
- data/lib/foundation/generators/templates/application.html.erb +47 -0
- data/lib/foundation/generators/templates/application.html.haml +31 -0
- data/lib/foundation/generators/templates/application.html.slim +35 -0
- data/lib/foundation/sprockets.rb +4 -0
- data/lib/foundation/version.rb +3 -0
- data/lib/scss.js +114 -0
- data/lib/zurb-foundation.rb +33 -0
- data/package.json +48 -0
- data/robots.txt +4 -0
- data/run-tests.sh +83 -0
- data/sache.json +5 -0
- data/scss/foundation.scss +45 -0
- data/scss/foundation/_functions.scss +101 -0
- data/scss/foundation/_settings.scss +1279 -0
- data/scss/foundation/components/_accordion.scss +52 -0
- data/scss/foundation/components/_alert-boxes.scss +126 -0
- data/scss/foundation/components/_block-grid.scss +132 -0
- data/scss/foundation/components/_breadcrumbs.scss +127 -0
- data/scss/foundation/components/_button-groups.scss +108 -0
- data/scss/foundation/components/_buttons.scss +222 -0
- data/scss/foundation/components/_clearing.scss +247 -0
- data/scss/foundation/components/_dropdown-buttons.scss +129 -0
- data/scss/foundation/components/_dropdown.scss +248 -0
- data/scss/foundation/components/_flex-video.scss +51 -0
- data/scss/foundation/components/_forms.scss +496 -0
- data/scss/foundation/components/_global.scss +365 -0
- data/scss/foundation/components/_grid.scss +261 -0
- data/scss/foundation/components/_inline-lists.scss +56 -0
- data/scss/foundation/components/_joyride.scss +220 -0
- data/scss/foundation/components/_keystrokes.scss +61 -0
- data/scss/foundation/components/_labels.scss +104 -0
- data/scss/foundation/components/_magellan.scss +34 -0
- data/scss/foundation/components/_offcanvas.scss +381 -0
- data/scss/foundation/components/_orbit.scss +415 -0
- data/scss/foundation/components/_pagination.scss +150 -0
- data/scss/foundation/components/_panels.scss +91 -0
- data/scss/foundation/components/_pricing-tables.scss +150 -0
- data/scss/foundation/components/_progress-bars.scss +79 -0
- data/scss/foundation/components/_range-slider.scss +148 -0
- data/scss/foundation/components/_reveal-new.scss +0 -0
- data/scss/foundation/components/_reveal.scss +216 -0
- data/scss/foundation/components/_side-nav.scss +93 -0
- data/scss/foundation/components/_split-buttons.scss +191 -0
- data/scss/foundation/components/_sub-nav.scss +125 -0
- data/scss/foundation/components/_switch.scss +294 -0
- data/scss/foundation/components/_tables.scss +97 -0
- data/scss/foundation/components/_tabs.scss +105 -0
- data/scss/foundation/components/_thumbs.scss +68 -0
- data/scss/foundation/components/_tooltips.scss +140 -0
- data/scss/foundation/components/_top-bar.scss +640 -0
- data/scss/foundation/components/_type.scss +493 -0
- data/scss/foundation/components/_visibility.scss +345 -0
- data/scss/foundation/test.html +0 -0
- data/scss/normalize.scss +423 -0
- data/spec/abide/abide.js +173 -0
- data/spec/abide/advanced.html +22 -0
- data/spec/abide/basic.html +13 -0
- data/spec/accordion/accordion.js +94 -0
- data/spec/accordion/basic.html +39 -0
- data/spec/accordion/grid.html +44 -0
- data/spec/accordion/multiexpand.html +20 -0
- data/spec/alert/alert.js +35 -0
- data/spec/alert/basic.html +4 -0
- data/spec/clearing/222.gif +0 -0
- data/spec/clearing/777.gif +0 -0
- data/spec/clearing/basic.html +5 -0
- data/spec/clearing/ccc.gif +0 -0
- data/spec/clearing/clearing.js +55 -0
- data/spec/dropdown/basic.html +10 -0
- data/spec/dropdown/dropdown.js +65 -0
- data/spec/equalizer/basic.html +24 -0
- data/spec/equalizer/equalizer.js +30 -0
- data/spec/framework/framework.js +14 -0
- data/spec/helpers.js +37 -0
- data/spec/interchange/basic.html +3 -0
- data/spec/interchange/interchange.js +60 -0
- data/spec/joyride/joyride.js +14 -0
- data/spec/magellan/magellan.js +14 -0
- data/spec/offcanvas/offcanvas.js +14 -0
- data/spec/orbit/orbit.js +14 -0
- data/spec/reveal/reveal.js +14 -0
- data/spec/tab/tab.js +14 -0
- data/spec/tooltip/tooltip.js +14 -0
- data/spec/topbar/multidropdown.html +60 -0
- data/spec/topbar/sticky.html +31 -0
- data/spec/topbar/topbar.js +96 -0
- metadata +238 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
$include-html-inline-list-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use this to control the margins and padding of the inline list.
|
13
|
+
$inline-list-top-margin: 0 !default;
|
14
|
+
$inline-list-opposite-margin: 0 !default;
|
15
|
+
$inline-list-bottom-margin: rem-calc(17) !default;
|
16
|
+
$inline-list-default-float-margin: rem-calc(-22) !default;
|
17
|
+
|
18
|
+
$inline-list-padding: 0 !default;
|
19
|
+
|
20
|
+
// We use this to control the overflow of the inline list.
|
21
|
+
$inline-list-overflow: hidden !default;
|
22
|
+
|
23
|
+
// We use this to control the list items
|
24
|
+
$inline-list-display: block !default;
|
25
|
+
|
26
|
+
// We use this to control any elements within list items
|
27
|
+
$inline-list-children-display: block !default;
|
28
|
+
|
29
|
+
//
|
30
|
+
// @mixins
|
31
|
+
//
|
32
|
+
// We use this mixin to create inline lists
|
33
|
+
@mixin inline-list {
|
34
|
+
margin: $inline-list-top-margin auto $inline-list-bottom-margin auto;
|
35
|
+
margin-#{$default-float}: $inline-list-default-float-margin;
|
36
|
+
margin-#{$opposite-direction}: $inline-list-opposite-margin;
|
37
|
+
padding: $inline-list-padding;
|
38
|
+
list-style: none;
|
39
|
+
overflow: $inline-list-overflow;
|
40
|
+
|
41
|
+
& > li {
|
42
|
+
list-style: none;
|
43
|
+
float: $default-float;
|
44
|
+
margin-#{$default-float}: rem-calc(22);
|
45
|
+
display: $inline-list-display;
|
46
|
+
&>* { display: $inline-list-children-display; }
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
@include exports("inline-list") {
|
51
|
+
@if $include-html-inline-list-classes {
|
52
|
+
.inline-list {
|
53
|
+
@include inline-list();
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,220 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
$include-html-joyride-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// Controlling default Joyride styles
|
13
|
+
$joyride-tip-bg: #333 !default;
|
14
|
+
$joyride-tip-default-width: 300px !default;
|
15
|
+
$joyride-tip-padding: rem-calc(18 20 24) !default;
|
16
|
+
$joyride-tip-border: solid 1px #555 !default;
|
17
|
+
$joyride-tip-radius: 4px !default;
|
18
|
+
$joyride-tip-position-offset: 22px !default;
|
19
|
+
|
20
|
+
// Here, we're setting the tip font styles
|
21
|
+
$joyride-tip-font-color: #fff !default;
|
22
|
+
$joyride-tip-font-size: rem-calc(14) !default;
|
23
|
+
$joyride-tip-header-weight: bold !default;
|
24
|
+
|
25
|
+
// This changes the nub size
|
26
|
+
$joyride-tip-nub-size: 10px !default;
|
27
|
+
|
28
|
+
// This adjusts the styles for the timer when its enabled
|
29
|
+
$joyride-tip-timer-width: 50px !default;
|
30
|
+
$joyride-tip-timer-height: 3px !default;
|
31
|
+
$joyride-tip-timer-color: #666 !default;
|
32
|
+
|
33
|
+
// This changes up the styles for the close button
|
34
|
+
$joyride-tip-close-color: #777 !default;
|
35
|
+
$joyride-tip-close-size: 24px !default;
|
36
|
+
$joyride-tip-close-weight: normal !default;
|
37
|
+
|
38
|
+
// When Joyride is filling the screen, we use this style for the bg
|
39
|
+
$joyride-screenfill: rgba(0,0,0,0.5) !default;
|
40
|
+
|
41
|
+
|
42
|
+
// We decided not to make a mixin for this because it relies on
|
43
|
+
// predefined classes to work properly.
|
44
|
+
@include exports("joyride") {
|
45
|
+
@if $include-html-joyride-classes {
|
46
|
+
|
47
|
+
/* Foundation Joyride */
|
48
|
+
.joyride-list { display: none; }
|
49
|
+
|
50
|
+
/* Default styles for the container */
|
51
|
+
.joyride-tip-guide {
|
52
|
+
display: none;
|
53
|
+
position: absolute;
|
54
|
+
background: $joyride-tip-bg;
|
55
|
+
color: $joyride-tip-font-color;
|
56
|
+
z-index: 101;
|
57
|
+
top: 0;
|
58
|
+
#{$default-float}: 2.5%;
|
59
|
+
font-family: inherit;
|
60
|
+
font-weight: normal;
|
61
|
+
width: 95%;
|
62
|
+
}
|
63
|
+
|
64
|
+
.lt-ie9 .joyride-tip-guide {
|
65
|
+
max-width:800px;
|
66
|
+
#{$default-float}: 50%;
|
67
|
+
margin-#{$default-float}:-400px;
|
68
|
+
}
|
69
|
+
|
70
|
+
.joyride-content-wrapper {
|
71
|
+
width: 100%;
|
72
|
+
|
73
|
+
padding: $joyride-tip-padding;
|
74
|
+
|
75
|
+
.button { margin-bottom: 0 !important; }
|
76
|
+
}
|
77
|
+
|
78
|
+
/* Add a little css triangle pip, older browser just miss out on the fanciness of it */
|
79
|
+
.joyride-tip-guide {
|
80
|
+
.joyride-nub {
|
81
|
+
display: block;
|
82
|
+
position: absolute;
|
83
|
+
#{$default-float}: $joyride-tip-position-offset;
|
84
|
+
width: 0;
|
85
|
+
height: 0;
|
86
|
+
border: $joyride-tip-nub-size solid $joyride-tip-bg;
|
87
|
+
|
88
|
+
&.top {
|
89
|
+
border-top-style: solid;
|
90
|
+
border-color: $joyride-tip-bg;
|
91
|
+
border-top-color: transparent !important;
|
92
|
+
border-#{$default-float}-color: transparent !important;
|
93
|
+
border-#{$opposite-direction}-color: transparent !important;
|
94
|
+
top: -($joyride-tip-nub-size*2);
|
95
|
+
}
|
96
|
+
&.bottom {
|
97
|
+
border-bottom-style: solid;
|
98
|
+
border-color: $joyride-tip-bg !important;
|
99
|
+
border-bottom-color: transparent !important;
|
100
|
+
border-#{$default-float}-color: transparent !important;
|
101
|
+
border-#{$opposite-direction}-color: transparent !important;
|
102
|
+
bottom: -($joyride-tip-nub-size*2);
|
103
|
+
}
|
104
|
+
|
105
|
+
&.right { right: -($joyride-tip-nub-size*2); }
|
106
|
+
&.left { left: -($joyride-tip-nub-size*2); }
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
/* Typography */
|
111
|
+
.joyride-tip-guide h1,
|
112
|
+
.joyride-tip-guide h2,
|
113
|
+
.joyride-tip-guide h3,
|
114
|
+
.joyride-tip-guide h4,
|
115
|
+
.joyride-tip-guide h5,
|
116
|
+
.joyride-tip-guide h6 {
|
117
|
+
line-height: 1.25;
|
118
|
+
margin: 0;
|
119
|
+
font-weight: $joyride-tip-header-weight;
|
120
|
+
color: $joyride-tip-font-color;
|
121
|
+
}
|
122
|
+
.joyride-tip-guide p {
|
123
|
+
margin: rem-calc(0 0 18 0);
|
124
|
+
font-size: $joyride-tip-font-size;
|
125
|
+
line-height: 1.3;
|
126
|
+
}
|
127
|
+
|
128
|
+
.joyride-timer-indicator-wrap {
|
129
|
+
width: $joyride-tip-timer-width;
|
130
|
+
height: $joyride-tip-timer-height;
|
131
|
+
border: $joyride-tip-border;
|
132
|
+
position: absolute;
|
133
|
+
#{$opposite-direction}: rem-calc(17);
|
134
|
+
bottom: rem-calc(16);
|
135
|
+
}
|
136
|
+
.joyride-timer-indicator {
|
137
|
+
display: block;
|
138
|
+
width: 0;
|
139
|
+
height: inherit;
|
140
|
+
background: $joyride-tip-timer-color;
|
141
|
+
}
|
142
|
+
|
143
|
+
.joyride-close-tip {
|
144
|
+
position: absolute;
|
145
|
+
#{$opposite-direction}: 12px;
|
146
|
+
top: 10px;
|
147
|
+
color: $joyride-tip-close-color !important;
|
148
|
+
text-decoration: none;
|
149
|
+
font-size: $joyride-tip-close-size;
|
150
|
+
font-weight: $joyride-tip-close-weight;
|
151
|
+
line-height: .5 !important;
|
152
|
+
|
153
|
+
&:hover,
|
154
|
+
&:focus { color: #eee !important; }
|
155
|
+
}
|
156
|
+
|
157
|
+
.joyride-modal-bg {
|
158
|
+
position: fixed;
|
159
|
+
height: 100%;
|
160
|
+
width: 100%;
|
161
|
+
background: transparent;
|
162
|
+
background: $joyride-screenfill;
|
163
|
+
z-index: 100;
|
164
|
+
display: none;
|
165
|
+
top: 0;
|
166
|
+
#{$default-float}: 0;
|
167
|
+
cursor: $cursor-pointer-value;
|
168
|
+
}
|
169
|
+
|
170
|
+
.joyride-expose-wrapper {
|
171
|
+
background-color: #ffffff;
|
172
|
+
position: absolute;
|
173
|
+
border-radius: 3px;
|
174
|
+
z-index: 102;
|
175
|
+
box-shadow: 0 0 15px #ffffff;
|
176
|
+
}
|
177
|
+
|
178
|
+
.joyride-expose-cover {
|
179
|
+
background: transparent;
|
180
|
+
border-radius: 3px;
|
181
|
+
position: absolute;
|
182
|
+
z-index: 9999;
|
183
|
+
top: 0;
|
184
|
+
left: 0;
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
/* Styles for screens that are at least 768px; */
|
189
|
+
@media #{$small} {
|
190
|
+
.joyride-tip-guide { width: $joyride-tip-default-width; #{$default-float}: inherit;
|
191
|
+
.joyride-nub {
|
192
|
+
&.bottom {
|
193
|
+
border-color: $joyride-tip-bg !important;
|
194
|
+
border-bottom-color: transparent !important;
|
195
|
+
border-#{$default-float}-color: transparent !important;
|
196
|
+
border-#{$opposite-direction}-color: transparent !important;
|
197
|
+
bottom: -($joyride-tip-nub-size*2);
|
198
|
+
}
|
199
|
+
&.right {
|
200
|
+
border-color: $joyride-tip-bg !important;
|
201
|
+
border-top-color: transparent !important;
|
202
|
+
border-right-color: transparent !important; border-bottom-color: transparent !important;
|
203
|
+
top: $joyride-tip-position-offset;
|
204
|
+
left: auto;
|
205
|
+
right: -($joyride-tip-nub-size*2);
|
206
|
+
}
|
207
|
+
&.left {
|
208
|
+
border-color: $joyride-tip-bg !important;
|
209
|
+
border-top-color: transparent !important;
|
210
|
+
border-left-color: transparent !important;
|
211
|
+
border-bottom-color: transparent !important;
|
212
|
+
top: $joyride-tip-position-offset;
|
213
|
+
left: -($joyride-tip-nub-size*2);
|
214
|
+
right: auto;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
$include-html-keystroke-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use these to control text styles.
|
13
|
+
$keystroke-font: "Consolas", "Menlo", "Courier", monospace !default;
|
14
|
+
$keystroke-font-size: inherit !default;
|
15
|
+
$keystroke-font-color: #222 !default;
|
16
|
+
$keystroke-font-color-alt: #fff !default;
|
17
|
+
$keystroke-function-factor: -7% !default;
|
18
|
+
|
19
|
+
// We use this to control keystroke padding.
|
20
|
+
$keystroke-padding: rem-calc(2 4 0) !default;
|
21
|
+
|
22
|
+
// We use these to control background and border styles.
|
23
|
+
$keystroke-bg: scale-color(#fff, $lightness: $keystroke-function-factor) !default;
|
24
|
+
$keystroke-border-style: solid !default;
|
25
|
+
$keystroke-border-width: 1px !default;
|
26
|
+
$keystroke-border-color: scale-color($keystroke-bg, $lightness: $keystroke-function-factor) !default;
|
27
|
+
$keystroke-radius: $global-radius !default;
|
28
|
+
|
29
|
+
//
|
30
|
+
// @mixins
|
31
|
+
//
|
32
|
+
// We use this mixin to create keystroke styles.
|
33
|
+
// $bg - Default: $keystroke-bg || scale-color(#fff, $lightness: $keystroke-function-factor) !default;
|
34
|
+
@mixin keystroke($bg:$keystroke-bg) {
|
35
|
+
// This find the lightness percentage of the background color.
|
36
|
+
$bg-lightness: lightness($bg);
|
37
|
+
|
38
|
+
background-color: $bg;
|
39
|
+
border-color: scale-color($bg, $lightness: $keystroke-function-factor);
|
40
|
+
|
41
|
+
// We adjust the font color based on the brightness of the background.
|
42
|
+
@if $bg-lightness > 70% { color: $keystroke-font-color; }
|
43
|
+
@else { color: $keystroke-font-color-alt; }
|
44
|
+
|
45
|
+
border-style: $keystroke-border-style;
|
46
|
+
border-width: $keystroke-border-width;
|
47
|
+
margin: 0;
|
48
|
+
font-family: $keystroke-font;
|
49
|
+
font-size: $keystroke-font-size;
|
50
|
+
padding: $keystroke-padding;
|
51
|
+
}
|
52
|
+
|
53
|
+
@include exports("keystroke") {
|
54
|
+
@if $include-html-keystroke-classes {
|
55
|
+
.keystroke,
|
56
|
+
kbd {
|
57
|
+
@include keystroke;
|
58
|
+
@include radius($keystroke-radius);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
$include-html-label-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
// We use these to style the labels
|
13
|
+
$label-padding: rem-calc(4 8 6) !default;
|
14
|
+
$label-radius: $global-radius !default;
|
15
|
+
|
16
|
+
// We use these to style the label text
|
17
|
+
$label-font-sizing: rem-calc(11) !default;
|
18
|
+
$label-font-weight: normal !default;
|
19
|
+
$label-font-color: #333 !default;
|
20
|
+
$label-font-color-alt: #fff !default;
|
21
|
+
$label-font-family: $body-font-family !default;
|
22
|
+
|
23
|
+
//
|
24
|
+
// @mixins
|
25
|
+
//
|
26
|
+
// We use this mixin to create a default label base.
|
27
|
+
@mixin label-base {
|
28
|
+
font-weight: $label-font-weight;
|
29
|
+
font-family: $label-font-family;
|
30
|
+
text-align: center;
|
31
|
+
text-decoration: none;
|
32
|
+
line-height: 1;
|
33
|
+
white-space: nowrap;
|
34
|
+
display: inline-block;
|
35
|
+
position: relative;
|
36
|
+
margin-bottom: inherit;
|
37
|
+
}
|
38
|
+
|
39
|
+
// @mixins
|
40
|
+
//
|
41
|
+
// We use this mixin to add label size styles.
|
42
|
+
// $padding - Used to determine label padding. Default: $label-padding || rem-calc(3 10 4) !default
|
43
|
+
// $text-size - Used to determine label text-size. Default: $text-size found in settings
|
44
|
+
@mixin label-size($padding:$label-padding, $text-size:$label-font-sizing) {
|
45
|
+
@if $padding { padding: $padding; }
|
46
|
+
@if $text-size { font-size: $text-size; }
|
47
|
+
}
|
48
|
+
|
49
|
+
// @mixins
|
50
|
+
//
|
51
|
+
// We use this mixin to add label styles.
|
52
|
+
// $bg - Default: $primary-color (found in settings file)
|
53
|
+
// $radius - Default: false, Options: true, sets radius to $global-radius (found in settings file)
|
54
|
+
@mixin label-style($bg:$primary-color, $radius:false) {
|
55
|
+
|
56
|
+
// We control which background color comes through
|
57
|
+
@if $bg {
|
58
|
+
|
59
|
+
// This find the lightness percentage of the background color.
|
60
|
+
$bg-lightness: lightness($bg);
|
61
|
+
|
62
|
+
background-color: $bg;
|
63
|
+
|
64
|
+
// We control the text color for you based on the background color.
|
65
|
+
@if $bg-lightness < 70% { color: $label-font-color-alt; }
|
66
|
+
@else { color: $label-font-color; }
|
67
|
+
}
|
68
|
+
|
69
|
+
// We use this to control the radius on labels.
|
70
|
+
@if $radius == true { @include radius($label-radius); }
|
71
|
+
@else if $radius { @include radius($radius); }
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
// @mixins
|
76
|
+
//
|
77
|
+
// We use this to add close buttons to alerts
|
78
|
+
// $padding - Default: $label-padding,
|
79
|
+
// $text-size - Default: $label-font-sizing,
|
80
|
+
// $bg - Default: $primary-color(found in settings file)
|
81
|
+
// $radius - Default: false, Options: true which sets radius to $global-radius (found in settings file)
|
82
|
+
@mixin label($padding:$label-padding, $text-size:$label-font-sizing, $bg:$primary-color, $radius:false) {
|
83
|
+
|
84
|
+
@include label-base;
|
85
|
+
@include label-size($padding, $text-size);
|
86
|
+
@include label-style($bg, $radius);
|
87
|
+
}
|
88
|
+
|
89
|
+
@include exports("label") {
|
90
|
+
@if $include-html-label-classes {
|
91
|
+
.label {
|
92
|
+
@include label-base;
|
93
|
+
@include label-size;
|
94
|
+
@include label-style;
|
95
|
+
|
96
|
+
&.radius { @include label-style(false, true); }
|
97
|
+
&.round { @include label-style(false, $radius:1000px); }
|
98
|
+
|
99
|
+
&.alert { @include label-style($alert-color); }
|
100
|
+
&.success { @include label-style($success-color); }
|
101
|
+
&.secondary { @include label-style($secondary-color); }
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
$include-html-magellan-classes: $include-html-classes !default;
|
11
|
+
|
12
|
+
$magellan-bg: #fff !default;
|
13
|
+
$magellan-padding: 10px !default;
|
14
|
+
|
15
|
+
@include exports("magellan") {
|
16
|
+
@if $include-html-magellan-classes {
|
17
|
+
|
18
|
+
#{data('magellan-expedition')}, #{data('magellan-expedition-clone')} {
|
19
|
+
background: $magellan-bg;
|
20
|
+
z-index: 50;
|
21
|
+
min-width: 100%;
|
22
|
+
padding: $magellan-padding;
|
23
|
+
|
24
|
+
.sub-nav {
|
25
|
+
margin-bottom: 0;
|
26
|
+
dd { margin-bottom: 0; }
|
27
|
+
a {
|
28
|
+
line-height: 1.8em;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
}
|
34
|
+
}
|