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,43 @@
|
|
1
|
+
$__current-scope__: null !global;
|
2
|
+
$__undefined__: '__undefined-#{unique-id()}__' !global;
|
3
|
+
|
4
|
+
@function Scope($parent: $__current-scope__) {
|
5
|
+
$scope-id: unquote('@#{unique-id()}');
|
6
|
+
$scope-parent: $parent;
|
7
|
+
|
8
|
+
@return (
|
9
|
+
'_id': $scope-id,
|
10
|
+
'_parent': $scope-parent,
|
11
|
+
);
|
12
|
+
}
|
13
|
+
|
14
|
+
@function __scope($map: ()) {
|
15
|
+
@if $map == false {
|
16
|
+
$scope: _static-get($__current-scope__);
|
17
|
+
$__current-scope__: __get($scope, '_parent') !global;
|
18
|
+
|
19
|
+
@return true;
|
20
|
+
}
|
21
|
+
|
22
|
+
$scope: __new(Scope);
|
23
|
+
$scope-id: __get($scope, '_id');
|
24
|
+
$__current-scope__: $scope-id !global;
|
25
|
+
|
26
|
+
@if __is-map($map) {
|
27
|
+
$scope: map-merge($scope, $map);
|
28
|
+
}
|
29
|
+
|
30
|
+
@return _static-set($__current-scope__, $scope);
|
31
|
+
}
|
32
|
+
|
33
|
+
@function __this($key: $__undefined__, $value: $__undefined__) {
|
34
|
+
@if __is-undefined($key) and __is-undefined($value) {
|
35
|
+
@return _static-get($__current-scope__);
|
36
|
+
}
|
37
|
+
|
38
|
+
@if __is-undefined($value) {
|
39
|
+
@return _static-get($__current-scope__ $key);
|
40
|
+
}
|
41
|
+
|
42
|
+
@return _static-set($__current-scope__ $key, $value);
|
43
|
+
}
|
@@ -0,0 +1,268 @@
|
|
1
|
+
@function __pop($list) {
|
2
|
+
$length: length($list);
|
3
|
+
$index: 2;
|
4
|
+
$popped-list: ();
|
5
|
+
|
6
|
+
@while $index <= $length {
|
7
|
+
$popped-list: append($popped-list, nth($list, $index));
|
8
|
+
$index: $index + 1;
|
9
|
+
}
|
10
|
+
|
11
|
+
@return $popped-list;
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
@function __list-get($list, $index) {
|
16
|
+
$index: __parse-float($index);
|
17
|
+
|
18
|
+
@if type-of($index) != 'number'
|
19
|
+
or $index < 1 {
|
20
|
+
@return $__undefined__;
|
21
|
+
}
|
22
|
+
|
23
|
+
@if $index > length($list) {
|
24
|
+
@return $__undefined__;
|
25
|
+
}
|
26
|
+
|
27
|
+
@return nth($list, $index);
|
28
|
+
}
|
29
|
+
|
30
|
+
|
31
|
+
@function __string-get($string, $index, $default: null) {
|
32
|
+
$index: __parse-float($index);
|
33
|
+
|
34
|
+
@if type-of($index) != 'number' {
|
35
|
+
@error '[__string-get] $index #{inspect($index)} for $string #{inspect($string)} is not a number.';
|
36
|
+
@return $default;
|
37
|
+
}
|
38
|
+
|
39
|
+
@if $index > str-length($string) {
|
40
|
+
@return $default;
|
41
|
+
}
|
42
|
+
|
43
|
+
@return str-slice($string, $index, $index);
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
@function __to-keys($keys, $map) {
|
49
|
+
@if type-of($keys) == 'string' {
|
50
|
+
@if not (type-of($map) == 'map' and map-has-key($map, $keys)) {
|
51
|
+
$keys: __string-split($keys, '.');
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
@return $keys;
|
56
|
+
}
|
57
|
+
|
58
|
+
|
59
|
+
@function __get($map, $keys, $default: null) {
|
60
|
+
$value-type: type-of($map);
|
61
|
+
|
62
|
+
$keys: __to-keys($keys, $map);
|
63
|
+
|
64
|
+
@if $value-type == 'string' {
|
65
|
+
@return __string-get($map, nth($keys, 1), $default);
|
66
|
+
}
|
67
|
+
|
68
|
+
@if $value-type != 'list' and $value-type != 'map' {
|
69
|
+
@return $default;
|
70
|
+
}
|
71
|
+
|
72
|
+
@if $value-type == 'list' {
|
73
|
+
$index: nth($keys, 1);
|
74
|
+
|
75
|
+
$map: __list-get($map, $index);
|
76
|
+
} @else if $value-type == 'map' {
|
77
|
+
$key: nth($keys, 1);
|
78
|
+
|
79
|
+
@if map-has-key($map, $key) {
|
80
|
+
$map: map-get($map, nth($keys, 1));
|
81
|
+
} @else {
|
82
|
+
@return $default;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
$keys: __pop($keys);
|
87
|
+
|
88
|
+
@if __is-falsey($map) and length($keys) > 0 {
|
89
|
+
@return $default;
|
90
|
+
}
|
91
|
+
|
92
|
+
@if length($keys) == 0 {
|
93
|
+
@return if(__is-undefined($map), $default, $map);
|
94
|
+
}
|
95
|
+
|
96
|
+
@return __get($map, $keys, $default);
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
@function __set-list($list, $index, $value) {
|
101
|
+
$length: length($list);
|
102
|
+
|
103
|
+
@if type-of($index) != 'number' {
|
104
|
+
@error '[__set-list] $index #{$index} for list #{inspect($list)} is not a number.';
|
105
|
+
@return null;
|
106
|
+
}
|
107
|
+
|
108
|
+
@if $index <= $length {
|
109
|
+
@return set-nth($list, $index, $value);
|
110
|
+
}
|
111
|
+
|
112
|
+
@while $index > $length + 1 {
|
113
|
+
$list: append($list, null);
|
114
|
+
|
115
|
+
$index: $index - 1;
|
116
|
+
}
|
117
|
+
|
118
|
+
$list: append($list, $value);
|
119
|
+
|
120
|
+
@return $list;
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
@function __set($map, $keys, $value) {
|
125
|
+
$property: nth($keys, 1);
|
126
|
+
$keys: __pop(__to-keys($keys, $map));
|
127
|
+
$child-map: null;
|
128
|
+
|
129
|
+
@if type-of($map) == 'list' and length($map) > 0 {
|
130
|
+
@if $property > length($map) {
|
131
|
+
$child-map: ();
|
132
|
+
} @else {
|
133
|
+
$child-map: nth($map, $property);
|
134
|
+
}
|
135
|
+
} @else if map-has-key($map, $property) {
|
136
|
+
$child-map: map-get($map, $property);
|
137
|
+
} @else {
|
138
|
+
$child-map: ();
|
139
|
+
}
|
140
|
+
|
141
|
+
@if length($keys) == 0 {
|
142
|
+
@if type-of($map) == 'list' and length($map) > 0 {
|
143
|
+
@return __set-list($map, $property, $value);
|
144
|
+
}
|
145
|
+
|
146
|
+
@return map-merge($map, (
|
147
|
+
$property: $value,
|
148
|
+
));
|
149
|
+
}
|
150
|
+
|
151
|
+
@if type-of($map) == 'list' and length($map) > 0 {
|
152
|
+
@return __set-list($map, $property, __set($child-map, $keys, $value));
|
153
|
+
}
|
154
|
+
|
155
|
+
@return map-merge($map, (
|
156
|
+
$property: __set($child-map, $keys, $value),
|
157
|
+
));
|
158
|
+
}
|
159
|
+
|
160
|
+
|
161
|
+
@function __push($map, $properties, $value) {
|
162
|
+
$list: append(__get($map, $properties), $value);
|
163
|
+
|
164
|
+
@return __set($map, $properties, $list);
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
@function __new($type, $params: (), $extends: false, $defaults: ()) {
|
169
|
+
$instance-meta: (
|
170
|
+
'_type': $type,
|
171
|
+
'_extends': $extends
|
172
|
+
);
|
173
|
+
|
174
|
+
$instance: ();
|
175
|
+
|
176
|
+
@if $defaults {
|
177
|
+
$instance: map-merge($instance, $defaults);
|
178
|
+
}
|
179
|
+
|
180
|
+
@if $extends {
|
181
|
+
$instance: map-merge($instance, __new($extends, $params));
|
182
|
+
}
|
183
|
+
|
184
|
+
$instance: map-merge($instance, call($type, $params...));
|
185
|
+
$instance: map-merge($instance, $instance-meta);
|
186
|
+
|
187
|
+
@return $instance;
|
188
|
+
}
|
189
|
+
|
190
|
+
@function __instance-of($value, $constructor) {
|
191
|
+
@if not type-of($value) == 'map' {
|
192
|
+
@return type-of($value) == $constructor;
|
193
|
+
}
|
194
|
+
|
195
|
+
@return __get($value, '_type') == $constructor;
|
196
|
+
}
|
197
|
+
|
198
|
+
|
199
|
+
/// Gets the value of a source `$value` from the specified key, or list
|
200
|
+
/// of keys for deep map retrieval, or `null` if any of the keys are
|
201
|
+
/// undefined.
|
202
|
+
///
|
203
|
+
/// If `$value` is list-like, indexes are used as keys.
|
204
|
+
///
|
205
|
+
///
|
206
|
+
/// @access public
|
207
|
+
/// @group Utility
|
208
|
+
/// @param {Map|List|String|Arglist} $value - Source value.
|
209
|
+
/// @param {*|List} $keys - Single key or list of keys for value retrieval
|
210
|
+
/// @returns {*} Returns the retrieved value.
|
211
|
+
/// @example scss
|
212
|
+
/// $palette: (
|
213
|
+
/// 'primary': (
|
214
|
+
/// 'default': red,
|
215
|
+
/// 'dark': darken(red, 10%)
|
216
|
+
/// )
|
217
|
+
/// );
|
218
|
+
///
|
219
|
+
/// $color-primary: _get($palette, 'primary' 'default');
|
220
|
+
/// // => red
|
221
|
+
///
|
222
|
+
/// $color-dark: _get($palette, 'primary.dark');
|
223
|
+
/// // => #CC0000
|
224
|
+
|
225
|
+
@function _get($args...) {
|
226
|
+
@return call('__get', $args...);
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
/// Sets the value of a source `$value` at the specified key, or list
|
231
|
+
/// of keys for deep map setting.
|
232
|
+
///
|
233
|
+
/// If `$value` is list-like, indexes are used as keys.
|
234
|
+
///
|
235
|
+
///
|
236
|
+
/// @access public
|
237
|
+
/// @group Utility
|
238
|
+
/// @param {Map|List|String|Arglist} $value - Source value.
|
239
|
+
/// @param {*|List} $keys - Single key or list of keys for value setting
|
240
|
+
/// @returns {*} Returns a new `$value` with the set value.
|
241
|
+
/// @example scss
|
242
|
+
/// $palette: (
|
243
|
+
/// 'primary': (
|
244
|
+
/// 'default': red,
|
245
|
+
/// 'dark': darken(red, 10%)
|
246
|
+
/// )
|
247
|
+
/// );
|
248
|
+
///
|
249
|
+
/// $palette: _set($palette, 'primary' 'default', blue);
|
250
|
+
/// // => (
|
251
|
+
/// // 'primary': (
|
252
|
+
/// // 'default': blue,
|
253
|
+
/// // 'dark': darken(red, 10%)
|
254
|
+
/// // )
|
255
|
+
/// // );
|
256
|
+
|
257
|
+
@function _set($args...) {
|
258
|
+
@return call('__set', $args...);
|
259
|
+
}
|
260
|
+
|
261
|
+
|
262
|
+
@function _new($args...) {
|
263
|
+
@return call('__new', $args...);
|
264
|
+
}
|
265
|
+
|
266
|
+
@function _instance-of($args...) {
|
267
|
+
@return call('__instance-of', $args...);
|
268
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
$__static__: () !global;
|
2
|
+
|
3
|
+
///
|
4
|
+
/// Gets the specified static variable. Uses `_get()` syntax.
|
5
|
+
///
|
6
|
+
/// @access public
|
7
|
+
/// @group Utility
|
8
|
+
/// @param {string|list} $keys Single key or list of keys for static value retrieval.
|
9
|
+
/// @returns {*} Returns the retrieved static value.
|
10
|
+
/// @see {function} _get
|
11
|
+
/// @example scss
|
12
|
+
/// @include _static-set('global-padding', 1rem);
|
13
|
+
///
|
14
|
+
/// .foo {
|
15
|
+
/// padding: _static-get('global-padding');
|
16
|
+
/// // => 1rem
|
17
|
+
/// }
|
18
|
+
|
19
|
+
@function _static-get($keys) {
|
20
|
+
@return __get($__static__, $keys);
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
///
|
25
|
+
/// Sets the specified static variable. Uses `_set()` syntax.
|
26
|
+
///
|
27
|
+
/// @access public
|
28
|
+
/// @group Utility
|
29
|
+
/// @param {string|list} $keys Single key or list of keys for static value setting.
|
30
|
+
/// @returns {*} Returns the updated static value.
|
31
|
+
/// @see {function} _set
|
32
|
+
/// @example scss
|
33
|
+
/// $global-padding: _static-set('global-padding', 1rem);
|
34
|
+
///
|
35
|
+
/// .foo {
|
36
|
+
/// padding: _static-get('global-padding');
|
37
|
+
/// // => 1rem
|
38
|
+
/// }
|
39
|
+
|
40
|
+
@function _static-set($keys, $value) {
|
41
|
+
$__static__: __set($__static__, $keys, $value) !global;
|
42
|
+
|
43
|
+
@return __get($__static__, $keys);
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
///
|
48
|
+
/// Sets the specified static variable. Uses `_set()` syntax.
|
49
|
+
///
|
50
|
+
/// @access public
|
51
|
+
/// @group Utility
|
52
|
+
/// @param {string|list} $keys Single key or list of keys for static value setting.
|
53
|
+
/// @see {function} _static-set
|
54
|
+
/// @example scss
|
55
|
+
/// @include _static-set('global-padding', 1rem);
|
56
|
+
///
|
57
|
+
/// .foo {
|
58
|
+
/// padding: _static-get('global-padding');
|
59
|
+
/// // => 1rem
|
60
|
+
/// }
|
61
|
+
|
62
|
+
@mixin _static-set($args...) {
|
63
|
+
$__static__: _static-set($args...) !global;
|
64
|
+
}
|
65
|
+
|
66
|
+
|
67
|
+
@function _static-push($keys, $value) {
|
68
|
+
$__static__: __push($__static__, $keys, $value) !global;
|
69
|
+
|
70
|
+
@return $__static__;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
@function _static($keys: $__undefined__, $value: $__undefined__) {
|
75
|
+
@if __is-undefined($keys) and __is-undefined($value) {
|
76
|
+
@return $__static__;
|
77
|
+
}
|
78
|
+
|
79
|
+
@if __is-undefined($value) {
|
80
|
+
@return _static-get($keys);
|
81
|
+
}
|
82
|
+
|
83
|
+
@return _static-set($keys, $value);
|
84
|
+
}
|