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,328 @@
|
|
1
|
+
//
|
2
|
+
// Handle nested
|
3
|
+
//
|
4
|
+
$_s_nested_properties : ();
|
5
|
+
$_s_nested_properties_depth : ();
|
6
|
+
@function _sugar-handle-nested(
|
7
|
+
$name,
|
8
|
+
$map
|
9
|
+
) {
|
10
|
+
@if map-get($_s_nested_properties, $name) {
|
11
|
+
$map : map-merge(map-get($_s_nested_properties, $name), $map);
|
12
|
+
} @else {
|
13
|
+
$_s_nested_properties : map-set($_s_nested_properties, $name, $map) !global;
|
14
|
+
}
|
15
|
+
@return $map;
|
16
|
+
}
|
17
|
+
@mixin _sugar-handle-nested(
|
18
|
+
$args...
|
19
|
+
) {
|
20
|
+
@each $arg in $args {
|
21
|
+
$name : $arg;
|
22
|
+
// up depth
|
23
|
+
$depth : map-get($_s_nested_properties_depth, $name);
|
24
|
+
@if $depth == null or $depth == 0 {
|
25
|
+
$depth : 1;
|
26
|
+
} @else {
|
27
|
+
$depth : $depth + 1;
|
28
|
+
}
|
29
|
+
|
30
|
+
$_s_nested_properties_depth : map-set($_s_nested_properties_depth, $name, $depth) !global;
|
31
|
+
}
|
32
|
+
|
33
|
+
@content;
|
34
|
+
|
35
|
+
@each $arg in $args {
|
36
|
+
$name : $arg;
|
37
|
+
$reset : false;
|
38
|
+
$depth : map-get($_s_nested_properties_depth, $name);
|
39
|
+
$depth : $depth - 1;
|
40
|
+
$_s_nested_properties_depth : map-set($_s_nested_properties_depth, $name, $depth) !global;
|
41
|
+
@if $depth <= 0 {
|
42
|
+
$reset : true;
|
43
|
+
}
|
44
|
+
@if $reset {
|
45
|
+
$_s_nested_properties : map-set($_s_nested_properties, $name, null) !global;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
}
|
51
|
+
|
52
|
+
//
|
53
|
+
// Parse properties
|
54
|
+
//
|
55
|
+
@function _sugar-parse-properties(
|
56
|
+
$properties,
|
57
|
+
$keywords,
|
58
|
+
$aliases : ()
|
59
|
+
) {
|
60
|
+
// default aliases
|
61
|
+
$aliases : map-merge($aliases, (
|
62
|
+
width : w,
|
63
|
+
height : h,
|
64
|
+
color : c,
|
65
|
+
top : t,
|
66
|
+
right : r,
|
67
|
+
bottom : b,
|
68
|
+
left : l
|
69
|
+
));
|
70
|
+
|
71
|
+
// check if is a map or a list
|
72
|
+
@if type-of($properties) == map {
|
73
|
+
$new-map : ();
|
74
|
+
|
75
|
+
// loop on each properties to
|
76
|
+
@each $prop, $value in $properties {
|
77
|
+
|
78
|
+
// check if exist
|
79
|
+
$in_keywords : map-get($keywords, $prop);
|
80
|
+
|
81
|
+
// if not in keywords, try to get the alias
|
82
|
+
@if $in_keywords == null {
|
83
|
+
|
84
|
+
$alias_found : false;
|
85
|
+
@each $alias_prop, $alias in $aliases {
|
86
|
+
@if $alias_found == false {
|
87
|
+
$al : index($alias, $prop);
|
88
|
+
@if $al or type-of($alias) == string and $prop == $alias {
|
89
|
+
$alias_found : true;
|
90
|
+
$prop : $alias_prop;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
// check again if now we have a property like this
|
95
|
+
$in_keywords : map-get($keywords, $prop);
|
96
|
+
}
|
97
|
+
|
98
|
+
// if we have found, check the type
|
99
|
+
@if $in_keywords {
|
100
|
+
|
101
|
+
// check explicit values
|
102
|
+
@if type-of($in_keywords) == list {
|
103
|
+
// check if the passed value exist in possible values
|
104
|
+
@if type-of($value) == list and index($in_keywords, length) {
|
105
|
+
$new-map : map-set($new-map, $prop, $value);
|
106
|
+
} @else if type-of($value) == number and index($in_keywords, length) {
|
107
|
+
$new-map : map-set($new-map, $prop, $value);
|
108
|
+
} @else if index($in_keywords, $value) {
|
109
|
+
$new-map : map-set($new-map, $prop, $value);
|
110
|
+
}
|
111
|
+
} @else if type-of($in_keywords) == string {
|
112
|
+
// check the type
|
113
|
+
@if s-is($value, $in_keywords) {
|
114
|
+
$new-map : map-set($new-map, $prop, $value);
|
115
|
+
}
|
116
|
+
} @else {
|
117
|
+
// we do nothing but adding the value like this
|
118
|
+
$new-map : map-set($new-map, $prop, $value);
|
119
|
+
}
|
120
|
+
|
121
|
+
} @else {
|
122
|
+
// add the value to map
|
123
|
+
@if not map-get($new-map, others) {
|
124
|
+
$new-map : map-set($new-map, others, ());
|
125
|
+
}
|
126
|
+
$new-map : map-set($new-map, others, map-merge(map-get($new-map, others), (
|
127
|
+
$prop : $value
|
128
|
+
)));
|
129
|
+
}
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
// return new map
|
134
|
+
@return $new-map;
|
135
|
+
|
136
|
+
} @else {
|
137
|
+
|
138
|
+
$map : ();
|
139
|
+
$values : ();
|
140
|
+
$current_prop : null;
|
141
|
+
$first : true;
|
142
|
+
@each $prop in $properties {
|
143
|
+
|
144
|
+
@if type-of($prop) == string and str-slice($prop,1,1) == '-' {
|
145
|
+
|
146
|
+
// remove the - at property beginning
|
147
|
+
$prop : str-slice($prop, 2);
|
148
|
+
|
149
|
+
// check if we have a property named like this in map
|
150
|
+
$in_keywords : null;
|
151
|
+
|
152
|
+
@if $keywords {
|
153
|
+
$in_keywords : map-get($keywords, $prop);
|
154
|
+
|
155
|
+
// if not in keywords, try to get the alias
|
156
|
+
@if $in_keywords == null {
|
157
|
+
|
158
|
+
$alias_found : false;
|
159
|
+
@each $alias_prop, $alias in $aliases {
|
160
|
+
@if $alias_found == false {
|
161
|
+
$al : index($alias, $prop);
|
162
|
+
@if $al or type-of($alias) == string and $prop == $alias {
|
163
|
+
$alias_found : true;
|
164
|
+
$prop : $alias_prop;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
// check again if now we have a property like this
|
169
|
+
$in_keywords : map-get($keywords, $prop);
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
// if we have a property in map
|
174
|
+
@if $in_keywords or $keywords == null {
|
175
|
+
|
176
|
+
// explicit naming
|
177
|
+
@if $current_prop {
|
178
|
+
@if length($values) == 0 {
|
179
|
+
$values : true
|
180
|
+
} @else if length($values) == 1 {
|
181
|
+
$values : nth($values, 1);
|
182
|
+
}
|
183
|
+
$map : map-set($map, $current_prop, $values);
|
184
|
+
}
|
185
|
+
$first : false;
|
186
|
+
$current_prop : $prop;
|
187
|
+
$values : ();
|
188
|
+
} @else {
|
189
|
+
// we do not have the property in keywords
|
190
|
+
// but it is still a property...
|
191
|
+
// we have to reset the current prop to null
|
192
|
+
// in order to not append values in previous
|
193
|
+
// founded property
|
194
|
+
$first : false;
|
195
|
+
$current_prop : null;
|
196
|
+
$values : ();
|
197
|
+
}
|
198
|
+
} @else {
|
199
|
+
|
200
|
+
@if $first {
|
201
|
+
// check if the type is ok
|
202
|
+
$found : false;
|
203
|
+
@each $name, $type in $keywords {
|
204
|
+
@if $found == false {
|
205
|
+
@if $type == url {
|
206
|
+
@if s-is($prop, url) {
|
207
|
+
$map : map-set($map, $name, $prop);
|
208
|
+
// remove the item from keywords
|
209
|
+
$keywords : map-remove($keywords, $name);
|
210
|
+
// stop searching
|
211
|
+
$found : true;
|
212
|
+
}
|
213
|
+
} @else if $type == number or $type == color or $type == string or $type == list or $type == map {
|
214
|
+
@if type-of($prop) == $type {
|
215
|
+
$map : map-set($map, $name, $prop);
|
216
|
+
// remove the item from keywords
|
217
|
+
$keywords : map-remove($keywords, $name);
|
218
|
+
// stop searching
|
219
|
+
$found : true;
|
220
|
+
}
|
221
|
+
} @else if $type == degree {
|
222
|
+
@if s-is($prop, degree) {
|
223
|
+
$map : map-set($map, $name, $prop);
|
224
|
+
// remove the item from keywords
|
225
|
+
$keywords : map-remove($keywords, $name);
|
226
|
+
// stop searching
|
227
|
+
$found : true;
|
228
|
+
}
|
229
|
+
} @else {
|
230
|
+
@if type-of($prop) == list and index($type, length) {
|
231
|
+
$map : map-set($map, $name, $prop);
|
232
|
+
// remove the item from keywords
|
233
|
+
$keywords : map-remove($keywords, $name);
|
234
|
+
// stop searching
|
235
|
+
$found : true;
|
236
|
+
} @else if index($type, $prop) {
|
237
|
+
$map : map-set($map, $name, $prop);
|
238
|
+
// remove the item from keywords
|
239
|
+
$keywords : map-remove($keywords, $name);
|
240
|
+
// stop searching
|
241
|
+
$found : true;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
}
|
246
|
+
} @else {
|
247
|
+
$values : append($values, $prop);
|
248
|
+
}
|
249
|
+
|
250
|
+
@if $current_prop {
|
251
|
+
@if length($values) == 0 {
|
252
|
+
$values : true
|
253
|
+
} @else if length($values) == 1 {
|
254
|
+
$values : nth($values, 1);
|
255
|
+
}
|
256
|
+
$map : map-set($map, $current_prop, $values);
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
@if $current_prop {
|
261
|
+
@if length($values) == 0 {
|
262
|
+
$values : true
|
263
|
+
} @else if length($values) == 1 {
|
264
|
+
$values : nth($values, 1);
|
265
|
+
}
|
266
|
+
$map : map-set($map, $current_prop, $values);
|
267
|
+
}
|
268
|
+
|
269
|
+
// return map
|
270
|
+
@return $map;
|
271
|
+
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
@function s-is(
|
276
|
+
$value,
|
277
|
+
$type
|
278
|
+
) {
|
279
|
+
@if $type == url {
|
280
|
+
@return str-is-url($value);
|
281
|
+
} @else if $type == px {
|
282
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == px;
|
283
|
+
} @else if $type == rem {
|
284
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == rem;
|
285
|
+
} @else if $type == em {
|
286
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == em;
|
287
|
+
} @else if $type == pt {
|
288
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == pt;
|
289
|
+
} @else if $type == percent or $type == '%' {
|
290
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == '%';
|
291
|
+
} @else if $type == vw {
|
292
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == vw;
|
293
|
+
} @else if $type == vh {
|
294
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == vh;
|
295
|
+
} @else if $type == ex {
|
296
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == ex;
|
297
|
+
} @else if $type == ch {
|
298
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == ch;
|
299
|
+
} @else if $type == cm {
|
300
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == cm;
|
301
|
+
} @else if $type == mm {
|
302
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == mm;
|
303
|
+
} @else if $type == in {
|
304
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == in;
|
305
|
+
} @else if $type == pc {
|
306
|
+
@return type-of($value) == number and not unitless($value) and unit($value) == pc;
|
307
|
+
} @else if $type == boolean or $type == bool {
|
308
|
+
@return _is-boolean($value);
|
309
|
+
} @else if $type == function {
|
310
|
+
@return _is-function($value);
|
311
|
+
} @else if $type == null {
|
312
|
+
@return _is-null($value);
|
313
|
+
} @else if $type == number {
|
314
|
+
@return type-of($value) == number;
|
315
|
+
} @else if $type == integer or $type == int {
|
316
|
+
@return round($value) == $value;
|
317
|
+
} @else if $type == string {
|
318
|
+
@return type-of($value) == string;
|
319
|
+
} @else if $type == color {
|
320
|
+
@return type-of($value) == color;
|
321
|
+
} @else if $type == list {
|
322
|
+
@return type-of($value) == list;
|
323
|
+
} @else if $type == map {
|
324
|
+
@return type-of($value) == map;
|
325
|
+
} @else if $type == degree or $type == deg {
|
326
|
+
@return unit($value) == deg;
|
327
|
+
}
|
328
|
+
}
|
@@ -0,0 +1,109 @@
|
|
1
|
+
//
|
2
|
+
// Helper classes
|
3
|
+
//
|
4
|
+
|
5
|
+
//
|
6
|
+
// Pull
|
7
|
+
//
|
8
|
+
@include s-register-class(pull-left 'helper.pull.left') {
|
9
|
+
float: left;
|
10
|
+
}
|
11
|
+
@include s-register-class(pull-right 'helper.pull.right') {
|
12
|
+
float: right;
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
//
|
17
|
+
// Clear
|
18
|
+
//
|
19
|
+
@include s-register-class(clear-left 'helper.clear.left') {
|
20
|
+
clear: left;
|
21
|
+
}
|
22
|
+
@include s-register-class(clear-right 'helper.clear.right') {
|
23
|
+
clear: right;
|
24
|
+
}
|
25
|
+
@include s-register-class(clear 'helper.clear.both') {
|
26
|
+
clear: both;
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
//
|
31
|
+
// Show / hide
|
32
|
+
//
|
33
|
+
@include s-register-class(show 'helper.display.show') {
|
34
|
+
display : block;
|
35
|
+
}
|
36
|
+
@include s-register-class(show-inline 'helper.display.show-inline') {
|
37
|
+
display: inline-block;
|
38
|
+
}
|
39
|
+
@include s-register-class(hidden 'helper.display.hidden') {
|
40
|
+
display: none;
|
41
|
+
}
|
42
|
+
@include s-register-class(visible 'helper.display.visible') {
|
43
|
+
visibility: visible;
|
44
|
+
}
|
45
|
+
@include s-register-class(invisible 'helper.display.invisible') {
|
46
|
+
visibility: hidden;
|
47
|
+
}
|
48
|
+
@include s-register-class(visually-hidden 'helper.display.visually-hidden') {
|
49
|
+
@include s-visually-hidden();
|
50
|
+
}
|
51
|
+
|
52
|
+
//
|
53
|
+
// Text
|
54
|
+
//
|
55
|
+
@include s-register-class(text-hidden 'helper.text.hidden') {
|
56
|
+
@include s-text-hidden();
|
57
|
+
}
|
58
|
+
@include s-register-class(text-truncate 'helper.text.truncate') {
|
59
|
+
@include s-text-truncate();
|
60
|
+
}
|
61
|
+
@include s-register-class(text-left 'helper.text.align.left') {
|
62
|
+
text-align: left;
|
63
|
+
}
|
64
|
+
@include s-register-class(text-right 'helper.text.align.right') {
|
65
|
+
text-align: right;
|
66
|
+
}
|
67
|
+
@include s-register-class(text-center 'helper.text.align.center') {
|
68
|
+
text-align: center;
|
69
|
+
}
|
70
|
+
@include s-register-class(text-justify 'helper.text.align.justify') {
|
71
|
+
text-align: justify;
|
72
|
+
}
|
73
|
+
@include s-register-class(text-lowercase 'helper.text.transform.lowercase') {
|
74
|
+
text-transform: lowercase;
|
75
|
+
}
|
76
|
+
@include s-register-class(text-uppercase 'helper.text.transform.uppercase') {
|
77
|
+
text-transform: uppercase;
|
78
|
+
}
|
79
|
+
@include s-register-class(text-capitalize 'helper.text.transform.capitalize') {
|
80
|
+
text-transform: capitalize;
|
81
|
+
}
|
82
|
+
|
83
|
+
//
|
84
|
+
// Blocks
|
85
|
+
//
|
86
|
+
@include s-register-class(block-center 'helper.block.center') {
|
87
|
+
display : block;
|
88
|
+
margin-left : auto;
|
89
|
+
margin-right : auto;
|
90
|
+
}
|
91
|
+
|
92
|
+
//
|
93
|
+
// Clearfix
|
94
|
+
//
|
95
|
+
@include s-register-class(clearfix 'helper.clearfix.default') {
|
96
|
+
@include s-clearfix(micro);
|
97
|
+
}
|
98
|
+
@include s-register-class(clearfix-float 'helper.clearfix.float') {
|
99
|
+
@include s-clearfix(float);
|
100
|
+
}
|
101
|
+
@include s-register-class(clearfix-micro 'helper.clearfix.micro') {
|
102
|
+
@include s-clearfix(micro);
|
103
|
+
}
|
104
|
+
@include s-register-class(clearfix-overflow 'helper.clearfix.overflow') {
|
105
|
+
@include s-clearfix(overflow);
|
106
|
+
}
|
107
|
+
@include s-register-class(clearfix-facebook 'helper.clearfix.facebook') {
|
108
|
+
@include s-clearfix(facebook);
|
109
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
//
|
2
|
+
// Helpers functions
|
3
|
+
//
|
4
|
+
|
5
|
+
|
6
|
+
//
|
7
|
+
// Size
|
8
|
+
//
|
9
|
+
@function s-size(
|
10
|
+
$size
|
11
|
+
) {
|
12
|
+
$sizes : sugar('settings.sizes');
|
13
|
+
$s : map-get($sizes, $size);
|
14
|
+
@if $s {
|
15
|
+
@if type-of($s) == map {
|
16
|
+
@return map-get($s, size);
|
17
|
+
} @else {
|
18
|
+
@if unitless($s) {
|
19
|
+
@return s-rem($s);
|
20
|
+
}
|
21
|
+
@return $s;
|
22
|
+
}
|
23
|
+
} @else {
|
24
|
+
@if unitless($size) {
|
25
|
+
@return s-rem($size);
|
26
|
+
}
|
27
|
+
@return $size;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
//
|
33
|
+
// Ratio
|
34
|
+
//
|
35
|
+
@function s-ratio(
|
36
|
+
$ratio
|
37
|
+
) {
|
38
|
+
$ratio : _sugar-parse-properties($ratio, (
|
39
|
+
width : number,
|
40
|
+
height : number
|
41
|
+
));
|
42
|
+
$width : map-get($ratio, width);
|
43
|
+
$height : map-get($ratio, height);
|
44
|
+
@if $width == null or $height == null {
|
45
|
+
@error("missing width or height in s-ratio...");
|
46
|
+
}
|
47
|
+
@return percentage(1 / $width * $height);
|
48
|
+
}
|
49
|
+
|
50
|
+
|
51
|
+
//
|
52
|
+
// Strip units
|
53
|
+
//
|
54
|
+
@function s-strip-units($number) {
|
55
|
+
@return $number / ($number * 0 + 1);
|
56
|
+
}
|