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
@@ -1,70 +0,0 @@
|
|
1
|
-
$modules: () !default;
|
2
|
-
@mixin exports($name) {
|
3
|
-
@if (index($modules, $name) == false) {
|
4
|
-
$modules: append($modules, $name);
|
5
|
-
@content;
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//
|
10
|
-
// @functions
|
11
|
-
//
|
12
|
-
|
13
|
-
@function lower-bound($range){
|
14
|
-
@if length($range) <= 0 {
|
15
|
-
@return 0;
|
16
|
-
}
|
17
|
-
@return nth($range,1);
|
18
|
-
}
|
19
|
-
|
20
|
-
@function upper-bound($range) {
|
21
|
-
@if length($range) < 2 {
|
22
|
-
@return 999999999999;
|
23
|
-
}
|
24
|
-
@return nth($range, 2);
|
25
|
-
}
|
26
|
-
|
27
|
-
|
28
|
-
// It strips the unit of measure and returns it
|
29
|
-
@function strip-unit($num) {
|
30
|
-
@return $num / ($num * 0 + 1);
|
31
|
-
}
|
32
|
-
|
33
|
-
// New Syntax, allows to optionally calculate on a different base value to counter compounding effect of rem's.
|
34
|
-
// Call with 1, 2, 3 or 4 parameters, 'px' is not required but supported
|
35
|
-
// rem-calc(10 20 30px 40);
|
36
|
-
// Space delimited, if you want to delimit using comma's, wrap it in another pair of brackets
|
37
|
-
// rem-calc((10, 20, 30, 40px));
|
38
|
-
// Optionally call with a different base (eg: 8px) to calculate rem.
|
39
|
-
// rem-calc(16px 32px 48px, 8px);
|
40
|
-
// If you require to comma separate your list
|
41
|
-
// rem-calc((16px, 32px, 48), 8px);
|
42
|
-
|
43
|
-
@function convert-to-rem($value, $base-value: $rem-base) {
|
44
|
-
$value: strip-unit($value) / strip-unit($base-value) * 1rem;
|
45
|
-
@if ($value == 0rem) { $value: 0; } // Turn 0rem into 0
|
46
|
-
@return $value;
|
47
|
-
}
|
48
|
-
|
49
|
-
@function rem-calc($values, $base-value: $rem-base) {
|
50
|
-
$max: length($values);
|
51
|
-
|
52
|
-
@if $max == 1 { @return convert-to-rem(nth($values, 1), $base-value); }
|
53
|
-
|
54
|
-
$remValues: ();
|
55
|
-
@for $i from 1 through $max {
|
56
|
-
$remValues: append($remValues, convert-to-rem(nth($values, $i), $base-value));
|
57
|
-
}
|
58
|
-
@return $remValues;
|
59
|
-
}
|
60
|
-
|
61
|
-
// Deprecated: We'll drop support for this in 5.1.0, use rem-calc()
|
62
|
-
@function emCalc($values){
|
63
|
-
@return rem-calc($values);
|
64
|
-
}
|
65
|
-
|
66
|
-
// Maybe you want to create rems with pixels
|
67
|
-
// $rem-base: 0.625 !default; //Set the value corresponding to body font size. In this case, you should set as: body {font-size: 62.5%;}
|
68
|
-
// @function remCalc($pxWidth) {
|
69
|
-
// @return $pxWidth / $rem-base * 1rem;
|
70
|
-
// }
|