sugarcss 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/sugarcss.rb +30 -0
- data/stylesheets/_sugar.scss +4 -0
- data/stylesheets/sugar/_BEM.scss +101 -0
- data/stylesheets/sugar/_animations.scss +101 -0
- data/stylesheets/sugar/_clearfix.scss +56 -0
- data/stylesheets/sugar/_colors.scss +126 -0
- data/stylesheets/sugar/_effects.scss +65 -0
- data/stylesheets/sugar/_filters.scss +67 -0
- data/stylesheets/sugar/_forms.scss +13 -0
- data/stylesheets/sugar/_functions.scss +328 -0
- data/stylesheets/sugar/_helper-classes.scss +109 -0
- data/stylesheets/sugar/_helper-functions.scss +56 -0
- data/stylesheets/sugar/_helper-mixins.scss +383 -0
- data/stylesheets/sugar/_icons.scss +21 -0
- data/stylesheets/sugar/_images.scss +150 -0
- data/stylesheets/sugar/_lists.scss +148 -0
- data/stylesheets/sugar/_medias.scss +141 -0
- data/stylesheets/sugar/_reset.scss +38 -0
- data/stylesheets/sugar/_shapes.scss +528 -0
- data/stylesheets/sugar/_sugar.scss +606 -0
- data/stylesheets/sugar/_typo.scss +849 -0
- data/stylesheets/sugar/_units.scss +120 -0
- data/stylesheets/sugar/tools/_arrow.scss +70 -0
- data/stylesheets/sugar/tools/_blank.scss +0 -0
- data/stylesheets/sugar/tools/_list.scss +103 -0
- data/stylesheets/sugar/tools/_map.scss +93 -0
- data/stylesheets/sugar/tools/_math.scss +196 -0
- data/stylesheets/sugar/tools/_string.scss +65 -0
- data/stylesheets/sugar/vendors/animatecss/_animate.scss +1474 -0
- data/stylesheets/sugar/vendors/animatecss/_base.scss +31 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_bounce.scss +26 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_flash.scss +14 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_jello.scss +34 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_pulse.scss +20 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_rubberBand.scss +34 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_shake.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_swing.scss +27 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_tada.scss +26 -0
- data/stylesheets/sugar/vendors/animatecss/attention_seekers/_wobble.scss +36 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceIn.scss +37 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceInDown.scss +32 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceInLeft.scss +32 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceInRight.scss +32 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_entrances/_bounceInUp.scss +32 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOut.scss +20 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOutDown.scss +20 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOutLeft.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOutRight.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/bouncing_exits/_bounceOutUp.scss +20 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeIn.scss +9 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInDown.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInDownBig.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInLeft.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInLeftBig.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInRight.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInRightBig.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInUp.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/fading_entrances/_fadeInUpBig.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOut.scss +9 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutDown.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutDownBig.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutLeft.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutLeftBig.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutRight.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutRightBig.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutUp.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/fading_exits/_fadeOutUpBig.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/flippers/_flip.scss +32 -0
- data/stylesheets/sugar/vendors/animatecss/flippers/_flipInX.scss +31 -0
- data/stylesheets/sugar/vendors/animatecss/flippers/_flipInY.scss +31 -0
- data/stylesheets/sugar/vendors/animatecss/flippers/_flipOutX.scss +21 -0
- data/stylesheets/sugar/vendors/animatecss/flippers/_flipOutY.scss +21 -0
- data/stylesheets/sugar/vendors/animatecss/lightspeed/_lightSpeedIn.scss +27 -0
- data/stylesheets/sugar/vendors/animatecss/lightspeed/_lightSpeedOut.scss +16 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateIn.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateInDownLeft.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateInDownRight.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateInUpLeft.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_entrances/_rotateInUpRight.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOut.scss +17 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOutDownLeft.scss +17 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOutDownRight.scss +17 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOutUpLeft.scss +17 -0
- data/stylesheets/sugar/vendors/animatecss/rotating_exits/_rotateOutUpRight.scss +17 -0
- data/stylesheets/sugar/vendors/animatecss/sliding_entrances/_slideInDown.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/sliding_entrances/_slideInLeft.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/sliding_entrances/_slideInRight.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/sliding_entrances/_slideInUp.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/sliding_exits/_slideOutDown.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/sliding_exits/_slideOutLeft.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/sliding_exits/_slideOutRight.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/sliding_exits/_slideOutUp.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/specials/_hinge.scss +29 -0
- data/stylesheets/sugar/vendors/animatecss/specials/_rollIn.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/specials/_rollOut.scss +17 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomIn.scss +15 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomInDown.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomInLeft.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomInRight.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_entrances/_zoomInUp.scss +18 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOut.scss +19 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOutDown.scss +19 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOutLeft.scss +17 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOutRight.scss +17 -0
- data/stylesheets/sugar/vendors/animatecss/zooming_exits/_zoomOutUp.scss +19 -0
- data/stylesheets/sugar/vendors/cssgram/_1977.scss +16 -0
- data/stylesheets/sugar/vendors/cssgram/_aden.scss +18 -0
- data/stylesheets/sugar/vendors/cssgram/_brooklyn.scss +17 -0
- data/stylesheets/sugar/vendors/cssgram/_cssgram.scss +18 -0
- data/stylesheets/sugar/vendors/cssgram/_earlybird.scss +17 -0
- data/stylesheets/sugar/vendors/cssgram/_gingham.scss +17 -0
- data/stylesheets/sugar/vendors/cssgram/_hudson.scss +18 -0
- data/stylesheets/sugar/vendors/cssgram/_inkwell.scss +11 -0
- data/stylesheets/sugar/vendors/cssgram/_lark.scss +21 -0
- data/stylesheets/sugar/vendors/cssgram/_lofi.scss +16 -0
- data/stylesheets/sugar/vendors/cssgram/_mayfair.scss +18 -0
- data/stylesheets/sugar/vendors/cssgram/_moon.scss +21 -0
- data/stylesheets/sugar/vendors/cssgram/_nashville.scss +22 -0
- data/stylesheets/sugar/vendors/cssgram/_perpetua.scss +17 -0
- data/stylesheets/sugar/vendors/cssgram/_reyes.scss +18 -0
- data/stylesheets/sugar/vendors/cssgram/_shared.scss +29 -0
- data/stylesheets/sugar/vendors/cssgram/_toaster.scss +17 -0
- data/stylesheets/sugar/vendors/cssgram/_walden.scss +18 -0
- data/stylesheets/sugar/vendors/cssgram/_xpro2.scss +17 -0
- data/stylesheets/sugar/vendors/fontawesome/_font-awesome.scss +2019 -0
- data/stylesheets/sugar/vendors/modularscale/_modular-scale-tests.scss +74 -0
- data/stylesheets/sugar/vendors/modularscale/_modular-scale.scss +18 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_calc.scss +17 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_function-list.scss +68 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_function.scss +55 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_generate-list.scss +103 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_pow.scss +40 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_ratios.scss +20 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_respond.scss +49 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_round-px.scss +6 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_sort-list.scss +93 -0
- data/stylesheets/sugar/vendors/modularscale/modular-scale/_tests.scss +22 -0
- data/stylesheets/sugar/vendors/sassdash/_sassdash.scss +6 -0
- data/stylesheets/sugar/vendors/sassdash/api/_add.scss +43 -0
- data/stylesheets/sugar/vendors/sassdash/api/_after.scss +66 -0
- data/stylesheets/sugar/vendors/sassdash/api/_ary.scss +43 -0
- data/stylesheets/sugar/vendors/sassdash/api/_assign.scss +113 -0
- data/stylesheets/sugar/vendors/sassdash/api/_at.scss +50 -0
- data/stylesheets/sugar/vendors/sassdash/api/_before.scss +64 -0
- data/stylesheets/sugar/vendors/sassdash/api/_bind.scss +46 -0
- data/stylesheets/sugar/vendors/sassdash/api/_call.scss +0 -0
- data/stylesheets/sugar/vendors/sassdash/api/_callback.scss +167 -0
- data/stylesheets/sugar/vendors/sassdash/api/_case.scss +179 -0
- data/stylesheets/sugar/vendors/sassdash/api/_chunk.scss +44 -0
- data/stylesheets/sugar/vendors/sassdash/api/_compact.scss +32 -0
- data/stylesheets/sugar/vendors/sassdash/api/_compare.scss +180 -0
- data/stylesheets/sugar/vendors/sassdash/api/_concat.scss +62 -0
- data/stylesheets/sugar/vendors/sassdash/api/_constant.scss +32 -0
- data/stylesheets/sugar/vendors/sassdash/api/_context.scss +51 -0
- data/stylesheets/sugar/vendors/sassdash/api/_count-by.scss +51 -0
- data/stylesheets/sugar/vendors/sassdash/api/_create.scss +78 -0
- data/stylesheets/sugar/vendors/sassdash/api/_debug.scss +26 -0
- data/stylesheets/sugar/vendors/sassdash/api/_declare.scss +46 -0
- data/stylesheets/sugar/vendors/sassdash/api/_defaults.scss +41 -0
- data/stylesheets/sugar/vendors/sassdash/api/_difference.scss +50 -0
- data/stylesheets/sugar/vendors/sassdash/api/_drop.scss +226 -0
- data/stylesheets/sugar/vendors/sassdash/api/_either.scss +42 -0
- data/stylesheets/sugar/vendors/sassdash/api/_encode.scss +42 -0
- data/stylesheets/sugar/vendors/sassdash/api/_ends-with.scss +76 -0
- data/stylesheets/sugar/vendors/sassdash/api/_escape.scss +39 -0
- data/stylesheets/sugar/vendors/sassdash/api/_every.scss +106 -0
- data/stylesheets/sugar/vendors/sassdash/api/_exec.scss +31 -0
- data/stylesheets/sugar/vendors/sassdash/api/_extrema.scss +224 -0
- data/stylesheets/sugar/vendors/sassdash/api/_fill.scss +74 -0
- data/stylesheets/sugar/vendors/sassdash/api/_filter.scss +112 -0
- data/stylesheets/sugar/vendors/sassdash/api/_find.scss +448 -0
- data/stylesheets/sugar/vendors/sassdash/api/_first.scss +29 -0
- data/stylesheets/sugar/vendors/sassdash/api/_flatten.scss +88 -0
- data/stylesheets/sugar/vendors/sassdash/api/_flow.scss +145 -0
- data/stylesheets/sugar/vendors/sassdash/api/_for.scss +325 -0
- data/stylesheets/sugar/vendors/sassdash/api/_functions.scss +42 -0
- data/stylesheets/sugar/vendors/sassdash/api/_group-by.scss +90 -0
- data/stylesheets/sugar/vendors/sassdash/api/_has.scss +30 -0
- data/stylesheets/sugar/vendors/sassdash/api/_identity.scss +20 -0
- data/stylesheets/sugar/vendors/sassdash/api/_includes.scss +76 -0
- data/stylesheets/sugar/vendors/sassdash/api/_index-by.scss +43 -0
- data/stylesheets/sugar/vendors/sassdash/api/_index-of.scss +154 -0
- data/stylesheets/sugar/vendors/sassdash/api/_initial.scss +19 -0
- data/stylesheets/sugar/vendors/sassdash/api/_intersection.scss +59 -0
- data/stylesheets/sugar/vendors/sassdash/api/_invert.scss +48 -0
- data/stylesheets/sugar/vendors/sassdash/api/_invoke.scss +74 -0
- data/stylesheets/sugar/vendors/sassdash/api/_is-empty.scss +48 -0
- data/stylesheets/sugar/vendors/sassdash/api/_is-equal.scss +175 -0
- data/stylesheets/sugar/vendors/sassdash/api/_is-match.scss +116 -0
- data/stylesheets/sugar/vendors/sassdash/api/_is-type.scss +479 -0
- data/stylesheets/sugar/vendors/sassdash/api/_join.scss +47 -0
- data/stylesheets/sugar/vendors/sassdash/api/_keys.scss +48 -0
- data/stylesheets/sugar/vendors/sassdash/api/_last.scss +21 -0
- data/stylesheets/sugar/vendors/sassdash/api/_map.scss +265 -0
- data/stylesheets/sugar/vendors/sassdash/api/_matches.scss +85 -0
- data/stylesheets/sugar/vendors/sassdash/api/_memoize.scss +105 -0
- data/stylesheets/sugar/vendors/sassdash/api/_merge.scss +148 -0
- data/stylesheets/sugar/vendors/sassdash/api/_modify.scss +17 -0
- data/stylesheets/sugar/vendors/sassdash/api/_module.scss +111 -0
- data/stylesheets/sugar/vendors/sassdash/api/_negate.scss +42 -0
- data/stylesheets/sugar/vendors/sassdash/api/_noop.scss +19 -0
- data/stylesheets/sugar/vendors/sassdash/api/_omit.scss +52 -0
- data/stylesheets/sugar/vendors/sassdash/api/_once.scss +27 -0
- data/stylesheets/sugar/vendors/sassdash/api/_pad.scss +121 -0
- data/stylesheets/sugar/vendors/sassdash/api/_pairs.scss +26 -0
- data/stylesheets/sugar/vendors/sassdash/api/_parse-int.scss +69 -0
- data/stylesheets/sugar/vendors/sassdash/api/_partial.scss +91 -0
- data/stylesheets/sugar/vendors/sassdash/api/_partition.scss +53 -0
- data/stylesheets/sugar/vendors/sassdash/api/_pick.scss +80 -0
- data/stylesheets/sugar/vendors/sassdash/api/_pluck.scss +27 -0
- data/stylesheets/sugar/vendors/sassdash/api/_property.scss +91 -0
- data/stylesheets/sugar/vendors/sassdash/api/_pull.scss +43 -0
- data/stylesheets/sugar/vendors/sassdash/api/_push.scss +27 -0
- data/stylesheets/sugar/vendors/sassdash/api/_rand.scss +79 -0
- data/stylesheets/sugar/vendors/sassdash/api/_range.scss +59 -0
- data/stylesheets/sugar/vendors/sassdash/api/_reduce.scss +146 -0
- data/stylesheets/sugar/vendors/sassdash/api/_reject.scss +68 -0
- data/stylesheets/sugar/vendors/sassdash/api/_repeat.scss +33 -0
- data/stylesheets/sugar/vendors/sassdash/api/_replace.scss +40 -0
- data/stylesheets/sugar/vendors/sassdash/api/_rest.scss +26 -0
- data/stylesheets/sugar/vendors/sassdash/api/_result.scss +48 -0
- data/stylesheets/sugar/vendors/sassdash/api/_reverse.scss +64 -0
- data/stylesheets/sugar/vendors/sassdash/api/_rules.scss +55 -0
- data/stylesheets/sugar/vendors/sassdash/api/_sample.scss +33 -0
- data/stylesheets/sugar/vendors/sassdash/api/_shuffle.scss +37 -0
- data/stylesheets/sugar/vendors/sassdash/api/_size.scss +37 -0
- data/stylesheets/sugar/vendors/sassdash/api/_slice.scss +60 -0
- data/stylesheets/sugar/vendors/sassdash/api/_some.scss +110 -0
- data/stylesheets/sugar/vendors/sassdash/api/_sort.scss +335 -0
- data/stylesheets/sugar/vendors/sassdash/api/_sorted-index.scss +135 -0
- data/stylesheets/sugar/vendors/sassdash/api/_splice.scss +45 -0
- data/stylesheets/sugar/vendors/sassdash/api/_split.scss +43 -0
- data/stylesheets/sugar/vendors/sassdash/api/_starts-with.scss +78 -0
- data/stylesheets/sugar/vendors/sassdash/api/_sum.scss +44 -0
- data/stylesheets/sugar/vendors/sassdash/api/_take.scss +211 -0
- data/stylesheets/sugar/vendors/sassdash/api/_times.scss +33 -0
- data/stylesheets/sugar/vendors/sassdash/api/_to-list.scss +52 -0
- data/stylesheets/sugar/vendors/sassdash/api/_to-string.scss +35 -0
- data/stylesheets/sugar/vendors/sassdash/api/_trim.scss +138 -0
- data/stylesheets/sugar/vendors/sassdash/api/_trunc.scss +92 -0
- data/stylesheets/sugar/vendors/sassdash/api/_unescape.scss +48 -0
- data/stylesheets/sugar/vendors/sassdash/api/_union.scss +19 -0
- data/stylesheets/sugar/vendors/sassdash/api/_uniq.scss +86 -0
- data/stylesheets/sugar/vendors/sassdash/api/_unique-id.scss +27 -0
- data/stylesheets/sugar/vendors/sassdash/api/_unzip.scss +77 -0
- data/stylesheets/sugar/vendors/sassdash/api/_values.scss +54 -0
- data/stylesheets/sugar/vendors/sassdash/api/_where.scss +28 -0
- data/stylesheets/sugar/vendors/sassdash/api/_without.scss +26 -0
- data/stylesheets/sugar/vendors/sassdash/api/_words.scss +50 -0
- data/stylesheets/sugar/vendors/sassdash/api/_xor.scss +35 -0
- data/stylesheets/sugar/vendors/sassdash/api/_zip.scss +80 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_char.scss +97 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_constructor.scss +1 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_escapes.scss +26 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_flags.scss +9 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_global.scss +11 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_module.scss +9 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_native.scss +80 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_number.scss +26 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_trunc.scss +2 -0
- data/stylesheets/sugar/vendors/sassdash/constants/_units.scss +10 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_aggregator.scss +47 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_call.scss +77 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_chain.scss +37 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_char.scss +115 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_coercion.scss +90 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_compounder.scss +25 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_module.scss +8 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_number.scss +165 -0
- data/stylesheets/sugar/vendors/sassdash/helpers/_scope.scss +43 -0
- data/stylesheets/sugar/vendors/sassdash/static/_local.scss +268 -0
- data/stylesheets/sugar/vendors/sassdash/static/_module.scss +2 -0
- data/stylesheets/sugar/vendors/sassdash/static/_static.scss +84 -0
- metadata +334 -0
@@ -0,0 +1,224 @@
|
|
1
|
+
@function __extremum-by-iteratee($value, $index, $collection) {
|
2
|
+
$collection: __this('collection');
|
3
|
+
$iteratee: __this('iteratee');
|
4
|
+
$is-min: __this('is-min');
|
5
|
+
$ex-value: __this('ex-value');
|
6
|
+
$computed: __this('computed');
|
7
|
+
$result: __this('result');
|
8
|
+
|
9
|
+
$current: __exec($iteratee, $value, $index, $collection);
|
10
|
+
|
11
|
+
@if (if($is-min, $current < $computed, $current > $computed))
|
12
|
+
or ($current == $ex-value and $current == $result) {
|
13
|
+
$_: __this('computed', $current);
|
14
|
+
$_: __this('result', $value);
|
15
|
+
}
|
16
|
+
|
17
|
+
@return true;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
@function __extremum-by($collection, $iteratee, $is-min: false) {
|
22
|
+
$ex-value: if($is-min, __const('POSITIVE_INFINITY'), __const('NEGATIVE_INFINITY'));
|
23
|
+
$computed: $ex-value;
|
24
|
+
$result: $computed;
|
25
|
+
|
26
|
+
$_: __scope((
|
27
|
+
'collection': $collection,
|
28
|
+
'iteratee': $iteratee,
|
29
|
+
'is-min': $is-min,
|
30
|
+
'ex-value': $ex-value,
|
31
|
+
'computed': $computed,
|
32
|
+
'result': $result
|
33
|
+
));
|
34
|
+
$iteratee: __bind('__extremum-by-iteratee');
|
35
|
+
$_: __base-each($collection, $iteratee);
|
36
|
+
$result: __this('result');
|
37
|
+
$_: __scope(false);
|
38
|
+
|
39
|
+
@return $result;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
@function __create-extremum-function($collection, $iteratee: null, $this-arg: null) {
|
44
|
+
$list-function: __this('list-function');
|
45
|
+
$is-min: __this('is-min');
|
46
|
+
|
47
|
+
@if ($this-arg and __is-iteratee-call($collection, $iteratee, $this-arg)) {
|
48
|
+
$iteratee: null;
|
49
|
+
}
|
50
|
+
|
51
|
+
$function: __get-callback();
|
52
|
+
$no-iteratee: ($iteratee == null);
|
53
|
+
|
54
|
+
@if not ($function == '__base-callback' and $no-iteratee) {
|
55
|
+
$no-iteratee: false;
|
56
|
+
$iteratee: __exec($function, $iteratee, $this-arg, 3);
|
57
|
+
}
|
58
|
+
|
59
|
+
@if ($no-iteratee) {
|
60
|
+
$is-list: __is-list($collection);
|
61
|
+
|
62
|
+
@if (not $is-list and __is-string($collection)) {
|
63
|
+
$iteratee: __char-at-callback;
|
64
|
+
} @else {
|
65
|
+
@return __exec($list-function, if($is-list, $collection, __to-iterable($collection)));
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
@return __extremum-by($collection, $iteratee, $is-min);
|
70
|
+
}
|
71
|
+
|
72
|
+
|
73
|
+
@function __create-extremum($list-function, $is-min: false) {
|
74
|
+
$_: __scope((
|
75
|
+
'list-function': $list-function,
|
76
|
+
'is-min': $is-min
|
77
|
+
));
|
78
|
+
$create-extremum-function: __bind('__create-extremum-function');
|
79
|
+
$_: __scope(false);
|
80
|
+
|
81
|
+
@return $create-extremum-function;
|
82
|
+
}
|
83
|
+
|
84
|
+
|
85
|
+
@function __max($arguments...) {
|
86
|
+
$function: __create-extremum('__list-max');
|
87
|
+
|
88
|
+
@return __exec($function, $arguments...);
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
@function __min($arguments...) {
|
93
|
+
$function: __create-extremum('__list-min', true);
|
94
|
+
|
95
|
+
@return __exec($function, $arguments...);
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
@function __list-max($list) {
|
100
|
+
@if __is-map($list) {
|
101
|
+
$list: __values($list);
|
102
|
+
}
|
103
|
+
|
104
|
+
$list: __list-each($list, '__to-comparable');
|
105
|
+
$result: __const('NEGATIVE_INFINITY');
|
106
|
+
|
107
|
+
// TODO use Hugo's comparison for strings
|
108
|
+
@each $value in $list {
|
109
|
+
@if __is-number($value) and ($value > $result) {
|
110
|
+
$result: $value;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
@return $result;
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
@function __list-min($list) {
|
119
|
+
@if (__is-map($list)) {
|
120
|
+
$list: __values($list);
|
121
|
+
}
|
122
|
+
|
123
|
+
$list: __list-each($list, '__to-comparable');
|
124
|
+
$result: __const('POSITIVE_INFINITY');
|
125
|
+
|
126
|
+
// TODO use Hugo's comparison for strings
|
127
|
+
@each $value in $list {
|
128
|
+
@if __is-number($value) and $value < $result {
|
129
|
+
$result: $value;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
@return $result;
|
134
|
+
}
|
135
|
+
|
136
|
+
|
137
|
+
/// Gets the maximum value of `$collection`. If `$collection` is empty or falsey
|
138
|
+
/// `-Infinity` is returned. If an iteratee function is provided it is invoked
|
139
|
+
/// for each value in `$collection` to generate the criterion by which the value
|
140
|
+
/// is ranked. The `$iteratee` is bound to `$this-arg` and invoked with three
|
141
|
+
/// arguments: (value, index, collection).
|
142
|
+
///
|
143
|
+
/// If a property name is provided for `$predicate` the created `_property`
|
144
|
+
/// style callback returns the property value of the given element.
|
145
|
+
///
|
146
|
+
/// If a value is also provided for `$this-arg` the created `_matches-property`
|
147
|
+
/// style callback returns `true` for elements that have a matching property
|
148
|
+
/// value, else `false`.
|
149
|
+
///
|
150
|
+
/// If a map is provided for `$predicate` the created `_matches` style
|
151
|
+
/// callback returns `true` for elements that have the properties of the given
|
152
|
+
/// map, else `false`.
|
153
|
+
///
|
154
|
+
///
|
155
|
+
/// @access public
|
156
|
+
/// @group Collection
|
157
|
+
/// @param {List|Map|string} $collection The collection to iterate over.
|
158
|
+
/// @param {Function|Map|string} $iteratee [null] - The function invoked per iteration.
|
159
|
+
/// @param {*} $this-arg [null] - The `_this` binding of `$iteratee`.
|
160
|
+
/// @returns {*} Returns the maximum value.
|
161
|
+
/// @example scss
|
162
|
+
/// $foo: _max((4, 2, 8, 6));
|
163
|
+
/// // => 8
|
164
|
+
///
|
165
|
+
/// $foo: _max(());
|
166
|
+
/// // => -Infinity
|
167
|
+
///
|
168
|
+
/// $users: (
|
169
|
+
/// ( 'user': 'barney', 'age': 36 ),
|
170
|
+
/// ( 'user': 'fred', 'age': 40 )
|
171
|
+
/// );
|
172
|
+
///
|
173
|
+
/// // using the `_property` callback shorthand
|
174
|
+
/// $foo: _max($users, 'age');
|
175
|
+
/// // => ( 'user': 'fred', 'age': 40 );
|
176
|
+
|
177
|
+
@function _max($args...) {
|
178
|
+
@return call('__max', $args...);
|
179
|
+
}
|
180
|
+
|
181
|
+
|
182
|
+
/// Gets the minimum value of `$collection`. If `$collection` is empty or falsey
|
183
|
+
/// `Infinity` is returned. If an iteratee function is provided it is invoked
|
184
|
+
/// for each value in `$collection` to generate the criterion by which the value
|
185
|
+
/// is ranked. The `$iteratee` is bound to `$this-arg` and invoked with three
|
186
|
+
/// arguments; (value, index, collection).
|
187
|
+
///
|
188
|
+
/// If a property name is provided for `$predicate` the created `_property`
|
189
|
+
/// style callback returns the property value of the given element.
|
190
|
+
///
|
191
|
+
/// If a value is also provided for `$this-arg` the created `_matches-property`
|
192
|
+
/// style callback returns `true` for elements that have a matching property
|
193
|
+
/// value, else `false`.
|
194
|
+
///
|
195
|
+
/// If a map is provided for `$predicate` the created `_matches` style
|
196
|
+
/// callback returns `true` for elements that have the properties of the given
|
197
|
+
/// map, else `false`.
|
198
|
+
///
|
199
|
+
///
|
200
|
+
/// @access public
|
201
|
+
/// @group Collection
|
202
|
+
/// @param {List|Map|string} $collection - The collection to iterate over.
|
203
|
+
/// @param {Function|Map|string} $iteratee [null] - The function invoked per iteration.
|
204
|
+
/// @param {*} $this-arg [null] - The `_this` binding of `$iteratee`.
|
205
|
+
/// @returns {*} Returns the minimum value.
|
206
|
+
/// @example scss
|
207
|
+
/// $foo: _min((4, 2, 8, 6));
|
208
|
+
/// // => 2
|
209
|
+
///
|
210
|
+
/// $foo: _min(());
|
211
|
+
/// // => Infinity
|
212
|
+
///
|
213
|
+
/// $users: (
|
214
|
+
/// ( 'user': 'barney', 'age': 36 ),
|
215
|
+
/// ( 'user': 'fred', 'age': 40 )
|
216
|
+
/// );
|
217
|
+
///
|
218
|
+
/// // using the `_property` callback shorthand
|
219
|
+
/// $foo: _min($users, 'age');
|
220
|
+
/// // => ( 'user': 'barney', 'age': 36 );
|
221
|
+
|
222
|
+
@function _min($args...) {
|
223
|
+
@return call('__min', $args...);
|
224
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
@function __base-fill($list, $value, $start: null, $end: null) {
|
2
|
+
$length: length($list);
|
3
|
+
|
4
|
+
$start: if($start == null,
|
5
|
+
1,
|
6
|
+
if(__is-number($start) and $start != 0,
|
7
|
+
$start,
|
8
|
+
if(__is-truthy($start), 2, 1)));
|
9
|
+
|
10
|
+
@if $start < 0 {
|
11
|
+
$start: if(-$start >= $length, 1, $length + $start + 1);
|
12
|
+
}
|
13
|
+
|
14
|
+
$end: if(__is-undefined($end) or $end >= $length,
|
15
|
+
$length,
|
16
|
+
if(__is-number($end), $end, if($end, 2, 1)));
|
17
|
+
|
18
|
+
@if ($end <= 0) {
|
19
|
+
$end: $end + $length;
|
20
|
+
}
|
21
|
+
|
22
|
+
$length: if($start > $end, 0, $end);
|
23
|
+
|
24
|
+
@while $start <= $length {
|
25
|
+
$list: set-nth($list, $start, $value);
|
26
|
+
|
27
|
+
$start: $start + 1;
|
28
|
+
}
|
29
|
+
|
30
|
+
@return $list;
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
@function __fill($list, $value: null, $start: 1, $end: length($list)) {
|
35
|
+
$length: if($list, length($list), 0);
|
36
|
+
|
37
|
+
@if not ($length) {
|
38
|
+
@return ();
|
39
|
+
}
|
40
|
+
|
41
|
+
@if $start
|
42
|
+
and __is-number($start)
|
43
|
+
and __is-iteratee-call($list, $value, $start) {
|
44
|
+
$start: 1;
|
45
|
+
$end: $length;
|
46
|
+
}
|
47
|
+
|
48
|
+
@return __base-fill($list, $value, $start, $end);
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
/// Fills elements of `$list` with `$value` from `$start` up to, but not
|
53
|
+
/// including, `$end`. Returns new list.
|
54
|
+
///
|
55
|
+
///
|
56
|
+
/// @access public
|
57
|
+
/// @group List
|
58
|
+
/// @param {List} $list - The list to fill.
|
59
|
+
/// @param {*} $value [null] - The value to fill `$list` with.
|
60
|
+
/// @param {number} $start [1] - The start position.
|
61
|
+
/// @param {number} $end [length($list)] - The end position.
|
62
|
+
/// @returns {List} Returns new list with filled values.
|
63
|
+
/// @example scss
|
64
|
+
/// $list: 1 2 3;
|
65
|
+
///
|
66
|
+
/// $foo: _fill($list, 'a');
|
67
|
+
/// // => 'a' 'a' 'a'
|
68
|
+
///
|
69
|
+
/// $foo: _fill($list, 'a', 2);
|
70
|
+
/// // => 1 'a' 'a'
|
71
|
+
|
72
|
+
@function _fill($args...) {
|
73
|
+
@return call('__fill', $args...);
|
74
|
+
}
|
@@ -0,0 +1,112 @@
|
|
1
|
+
@function __base-filter-iteratee($value, $index, $collection) {
|
2
|
+
$result: __this('result');
|
3
|
+
$predicate: __this('predicate');
|
4
|
+
$iteration: __exec($predicate, $value, $index, $collection);
|
5
|
+
|
6
|
+
@if __is-truthy($iteration) {
|
7
|
+
$_: __this('result', append($result, $value));
|
8
|
+
}
|
9
|
+
|
10
|
+
@return null;
|
11
|
+
}
|
12
|
+
|
13
|
+
|
14
|
+
@function __base-filter($collection, $predicate) {
|
15
|
+
$_: __scope((
|
16
|
+
'result': (),
|
17
|
+
'predicate': $predicate
|
18
|
+
));
|
19
|
+
$_: __base-each($collection, '__base-filter-iteratee');
|
20
|
+
$result: __this('result');
|
21
|
+
$_: __scope(false);
|
22
|
+
|
23
|
+
@return $result;
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
@function __list-filter($list, $predicate) {
|
28
|
+
$index: 1;
|
29
|
+
$length: length($list);
|
30
|
+
$result: ();
|
31
|
+
|
32
|
+
@while ($index <= $length) {
|
33
|
+
$value: nth($list, $index);
|
34
|
+
$iteration: __exec($predicate, $value, $index, $list);
|
35
|
+
|
36
|
+
@if (__is-truthy($iteration)) {
|
37
|
+
$result: append($result, $value);
|
38
|
+
}
|
39
|
+
|
40
|
+
$index: $index + 1;
|
41
|
+
}
|
42
|
+
|
43
|
+
@return $result;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
@function __filter($collection, $predicate: __identity, $this-arg: null) {
|
48
|
+
$function: if(__is-list($collection), '__list-filter', '__base-filter');
|
49
|
+
$predicate: __get-callback($predicate, $this-arg, 3);
|
50
|
+
|
51
|
+
@return __call($function, $this-arg, $collection, $predicate);
|
52
|
+
}
|
53
|
+
|
54
|
+
|
55
|
+
/// Iterates over elements of `$collection`, returning a list of all elements
|
56
|
+
/// `$predicate` returns truthy for. The predicate is bound to `$this-arg` and
|
57
|
+
/// invoked with three arguments; (value, index|key, collection).
|
58
|
+
///
|
59
|
+
/// If a property name is provided for `$predicate` the created `_property`
|
60
|
+
/// style callback returns the property value of the given element.
|
61
|
+
///
|
62
|
+
/// If a value is also provided for `$this-arg` the created `_matches-property`
|
63
|
+
/// style callback returns `true` for elements that have a matching property
|
64
|
+
/// value, else `false`.
|
65
|
+
///
|
66
|
+
/// If a map is provided for `$predicate` the created `_matches` style
|
67
|
+
/// callback returns `true` for elements that have the properties of the given
|
68
|
+
/// object, else `false`.
|
69
|
+
///
|
70
|
+
///
|
71
|
+
/// @access public
|
72
|
+
/// @group Collection
|
73
|
+
/// @param {List|Map|string} $collection - The collection to iterate over.
|
74
|
+
/// @param {Function|Map|string} $predicate [_identity] - The function invoked
|
75
|
+
/// per iteration.
|
76
|
+
/// @param {*} $this-arg [null] - The `_this` binding of `$predicate`.
|
77
|
+
/// @returns {List} Returns the new filtered list.
|
78
|
+
/// @example scss
|
79
|
+
/// @function is-even($value, $args...) {
|
80
|
+
/// @return $value % 2 == 0;
|
81
|
+
/// }
|
82
|
+
///
|
83
|
+
/// $foo: _filter((4, 5, 6), is-even);
|
84
|
+
/// // => (4, 6)
|
85
|
+
///
|
86
|
+
/// $users: (
|
87
|
+
/// ( 'user': 'barney', 'age': 36, 'active': true ),
|
88
|
+
/// ( 'user': 'fred', 'age': 40, 'active': false )
|
89
|
+
/// );
|
90
|
+
///
|
91
|
+
/// // using the `_matches` callback shorthand
|
92
|
+
/// $foo: _pluck(_filter($users, ( 'age': 36, 'active': true )), 'user');
|
93
|
+
/// // => ('barney',)
|
94
|
+
///
|
95
|
+
/// // using the `_matches-property` callback shorthand
|
96
|
+
/// $foo: _pluck(_filter($users, 'active', false), 'user');
|
97
|
+
/// // => ('fred',)
|
98
|
+
///
|
99
|
+
/// // using the `_property` callback shorthand
|
100
|
+
/// $foo: _pluck(_filter($users, 'active'), 'user');
|
101
|
+
/// // => ('barney',)
|
102
|
+
|
103
|
+
@function _filter($args...) {
|
104
|
+
@return call('__filter', $args...);
|
105
|
+
}
|
106
|
+
|
107
|
+
|
108
|
+
/// @alias _filter
|
109
|
+
|
110
|
+
@function _select($args...) {
|
111
|
+
@return call('__filter', $args...);
|
112
|
+
}
|