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,141 @@
|
|
1
|
+
//
|
2
|
+
// Media queries specific
|
3
|
+
//
|
4
|
+
|
5
|
+
//
|
6
|
+
// Universal media mixin
|
7
|
+
//
|
8
|
+
$media-keywords : (
|
9
|
+
gecko : '.ua-gecko',
|
10
|
+
webkit : '.ua-webkit',
|
11
|
+
chrome : '.ua-chrome',
|
12
|
+
safari : '.ua-safari',
|
13
|
+
firefox : '.ua-firefox',
|
14
|
+
opera : '.ua-opera',
|
15
|
+
ie : '.ua-ie',
|
16
|
+
mobile : '.ua-mobile',
|
17
|
+
tablet : '.ua-tablet',
|
18
|
+
desktop : '.ua-desktop',
|
19
|
+
iphone : '.ua-mobile-iphone',
|
20
|
+
ipad : '.ua-mobile-ipad',
|
21
|
+
ios : '.ua-ios',
|
22
|
+
android : '.ua-android',
|
23
|
+
webos : '.ua-webos',
|
24
|
+
blackberry : '.ua-blackberry',
|
25
|
+
retina : '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 320dpi)',
|
26
|
+
x2 : '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 320dpi)',
|
27
|
+
x3 : '(-webkit-min-device-pixel-ratio: 3), (min-resolution: 480dpi)',
|
28
|
+
x4 : '(-webkit-min-device-pixel-ratio: 4), (min-resolution: 640dpi)'
|
29
|
+
);
|
30
|
+
@for $idx from 6 through 20 {
|
31
|
+
$media-keywords : map-set($media-keywords, 'ie#{$idx}', '.ua-ie-#{$idx}');
|
32
|
+
}
|
33
|
+
@mixin s-media(
|
34
|
+
$queries...
|
35
|
+
) {
|
36
|
+
@each $querie in $queries {
|
37
|
+
@include _s-media($querie) {
|
38
|
+
@content;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
@mixin _s-media(
|
43
|
+
$props
|
44
|
+
) {
|
45
|
+
// loop through all keywords
|
46
|
+
$refine : ();
|
47
|
+
@each $prop in $props {
|
48
|
+
@if type-of($prop) == string and str-slice($prop,1,1) == '-' {
|
49
|
+
$prop : str-slice($prop,2);
|
50
|
+
}
|
51
|
+
$sel : map-get($media-keywords, $prop);
|
52
|
+
@if $sel {
|
53
|
+
$refine : append($refine, $sel);
|
54
|
+
$props : remove-nth($props, index($props, $prop));
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
$props : _sugar-parse-properties($props, (
|
59
|
+
screen : screen handheld print aural braille embossed projection tty tv all,
|
60
|
+
min-width : number,
|
61
|
+
max-width : number,
|
62
|
+
min-height : number,
|
63
|
+
max-height : number,
|
64
|
+
orientation : landscape portrait
|
65
|
+
), (
|
66
|
+
screen : d,
|
67
|
+
min-width: min-w minw,
|
68
|
+
max-width: max-w maxw,
|
69
|
+
min-height: min-h minh,
|
70
|
+
max-height: max-h maxh,
|
71
|
+
orientation : o
|
72
|
+
));
|
73
|
+
|
74
|
+
$screen : map-get-or($props, screen);
|
75
|
+
$min-width : map-get-or($props, min-width);
|
76
|
+
$max-width : map-get-or($props, max-width);
|
77
|
+
$min-height : map-get-or($props, min-height);
|
78
|
+
$max-height : map-get-or($props, max-height);
|
79
|
+
$orientation : map-get-or($props, orientation);
|
80
|
+
|
81
|
+
$media : ();
|
82
|
+
@if $screen {
|
83
|
+
$media : append($media, $screen);
|
84
|
+
}
|
85
|
+
@if $orientation {
|
86
|
+
$media : append($media, '(orientation : #{$orientation})');
|
87
|
+
}
|
88
|
+
@if $min-width {
|
89
|
+
$media : append($media, '(min-width : #{$min-width})');
|
90
|
+
}
|
91
|
+
@if $max-width {
|
92
|
+
$media : append($media, '(max-width : #{$max-width})');
|
93
|
+
}
|
94
|
+
@if $min-height {
|
95
|
+
$media : append($media, '(min-height : #{$min-height})');
|
96
|
+
}
|
97
|
+
@if $max-height {
|
98
|
+
$media : append($media, '(max-height : #{$max-height})');
|
99
|
+
}
|
100
|
+
|
101
|
+
// append media from refine
|
102
|
+
@each $ref in $refine {
|
103
|
+
@if str-slice($ref,1,1) != '.' {
|
104
|
+
$media : append($media, $ref);
|
105
|
+
$refine : remove-nth($refine, index($refine, $ref));
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
// construct media querie
|
110
|
+
$med : '';
|
111
|
+
$idx : 1;
|
112
|
+
$med_length : length($media);
|
113
|
+
@each $m in $media {
|
114
|
+
@if $idx < $med_length {
|
115
|
+
$med : '#{$med} #{$m} and';
|
116
|
+
} @else {
|
117
|
+
$med : '#{$med} #{$m}';
|
118
|
+
}
|
119
|
+
$idx : $idx + 1;
|
120
|
+
}
|
121
|
+
|
122
|
+
@if $med_length > 0 {
|
123
|
+
@media #{$med} {
|
124
|
+
@if length($refine) {
|
125
|
+
#{_join($refine,'')} & {
|
126
|
+
@content;
|
127
|
+
}
|
128
|
+
} @else {
|
129
|
+
@content;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
} @else {
|
133
|
+
@if length($refine) {
|
134
|
+
#{_join($refine,'')} & {
|
135
|
+
@content;
|
136
|
+
}
|
137
|
+
} @else {
|
138
|
+
@content;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
//
|
2
|
+
// Reset helper
|
3
|
+
//
|
4
|
+
@mixin sugar-reset() {
|
5
|
+
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
|
6
|
+
margin: 0;
|
7
|
+
padding: 0;
|
8
|
+
border: 0;
|
9
|
+
font-size: 100%;
|
10
|
+
font: inherit;
|
11
|
+
vertical-align: baseline; }
|
12
|
+
|
13
|
+
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
14
|
+
display: block; }
|
15
|
+
|
16
|
+
body {
|
17
|
+
line-height: 1; }
|
18
|
+
|
19
|
+
ol, ul {
|
20
|
+
list-style: none; }
|
21
|
+
|
22
|
+
blockquote, q {
|
23
|
+
quotes: none; }
|
24
|
+
|
25
|
+
blockquote {
|
26
|
+
&:before, &:after {
|
27
|
+
content: '';
|
28
|
+
content: none; } }
|
29
|
+
|
30
|
+
q {
|
31
|
+
&:before, &:after {
|
32
|
+
content: '';
|
33
|
+
content: none; } }
|
34
|
+
|
35
|
+
table {
|
36
|
+
border-collapse: collapse;
|
37
|
+
border-spacing: 0; }
|
38
|
+
}
|
@@ -0,0 +1,528 @@
|
|
1
|
+
//
|
2
|
+
// Shapes helpers
|
3
|
+
//
|
4
|
+
|
5
|
+
//
|
6
|
+
// Corner
|
7
|
+
//
|
8
|
+
@mixin s-corner(
|
9
|
+
$radius
|
10
|
+
) {
|
11
|
+
@if length($radius) == 1 and type-of($radius) == number {
|
12
|
+
border-radius: $radius;
|
13
|
+
$radius : remove-nth($radius, 1);
|
14
|
+
}
|
15
|
+
|
16
|
+
// parse properties
|
17
|
+
$props : _sugar-parse-properties($radius, (
|
18
|
+
top : true,
|
19
|
+
right : true,
|
20
|
+
bottom : true,
|
21
|
+
left : true,
|
22
|
+
top-left : true,
|
23
|
+
top-right : true,
|
24
|
+
bottom-left : true,
|
25
|
+
bottom-right : true
|
26
|
+
), (
|
27
|
+
top : t,
|
28
|
+
right : r,
|
29
|
+
bottom : b,
|
30
|
+
left : l,
|
31
|
+
top-left : tl,
|
32
|
+
top-right : tr,
|
33
|
+
bottom-left : bl,
|
34
|
+
bottom-right : br
|
35
|
+
));
|
36
|
+
|
37
|
+
// handle nested
|
38
|
+
$props : _sugar-handle-nested(corner, $props);
|
39
|
+
|
40
|
+
// top
|
41
|
+
$top : map-get-or($props, top);
|
42
|
+
@if $top and type-of($top) == number or type-of($top) == list {
|
43
|
+
border-top-left-radius: $top;
|
44
|
+
border-top-right-radius: $top;
|
45
|
+
}
|
46
|
+
// right
|
47
|
+
$right : map-get-or($props, right);
|
48
|
+
@if $right and type-of($right) == number or type-of($right) == list {
|
49
|
+
border-top-right-radius: $right;
|
50
|
+
border-bottom-right-radius: $right;
|
51
|
+
}
|
52
|
+
// bottom
|
53
|
+
$bottom : map-get-or($props, bottom);
|
54
|
+
@if $bottom and type-of($bottom) == number or type-of($bottom) == list {
|
55
|
+
border-bottom-left-radius: $bottom;
|
56
|
+
border-bottom-right-radius: $bottom;
|
57
|
+
}
|
58
|
+
// left
|
59
|
+
$left : map-get-or($props, left);
|
60
|
+
@if $left and type-of($left) == number or type-of($left) == list {
|
61
|
+
border-top-left-radius: $left;
|
62
|
+
border-bottom-left-radius: $left;
|
63
|
+
}
|
64
|
+
// top left
|
65
|
+
$top-left : map-get-or($props, top-left);
|
66
|
+
@if $top-left and type-of($top-left) == number or type-of($top-left) == list {
|
67
|
+
border-top-left-radius: $top-left;
|
68
|
+
}
|
69
|
+
// top-right
|
70
|
+
$top-right : map-get-or($props, top-right);
|
71
|
+
@if $top-right and type-of($top-right) == number or type-of($top-right) == list {
|
72
|
+
border-top-right-radius: $top-right;
|
73
|
+
}
|
74
|
+
// bottom-left
|
75
|
+
$bottom-left : map-get-or($props, bottom-left);
|
76
|
+
@if $bottom-left and type-of($bottom-left) == number or type-of($bottom-left) == list {
|
77
|
+
border-bottom-left-radius: $bottom-left;
|
78
|
+
}
|
79
|
+
// bottom-right
|
80
|
+
$bottom-right : map-get-or($props, bottom-right);
|
81
|
+
@if $bottom-right and type-of($bottom-right) == number or type-of($bottom-right) == list {
|
82
|
+
border-bottom-right-radius: $bottom-right;
|
83
|
+
}
|
84
|
+
|
85
|
+
// handle nested
|
86
|
+
@include _sugar-handle-nested(corner) {
|
87
|
+
@content;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
@mixin s-border-radius($radius) {
|
91
|
+
@include s-corner($radius);
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
//
|
96
|
+
// Round
|
97
|
+
//
|
98
|
+
@mixin s-round(
|
99
|
+
$props : null,
|
100
|
+
$border : null
|
101
|
+
) {
|
102
|
+
@if $props {
|
103
|
+
$props : _sugar-parse-properties($props, (
|
104
|
+
width : number,
|
105
|
+
height : number,
|
106
|
+
color : color
|
107
|
+
));
|
108
|
+
$props : _sugar-handle-nested(round, $props);
|
109
|
+
|
110
|
+
// build
|
111
|
+
$width : map-get-or($props, width w);
|
112
|
+
$height : map-get-or($props, height h, $width);
|
113
|
+
$color : map-get-or($props, color c);
|
114
|
+
width: $width;
|
115
|
+
height: $height;
|
116
|
+
@if $color {
|
117
|
+
background-color: $color;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
@if $border {
|
121
|
+
$border : _sugar-parse-properties($border, (
|
122
|
+
width : number,
|
123
|
+
color : color,
|
124
|
+
style : solid dotted dashed double groove ridge inset outset initial inherit
|
125
|
+
), (
|
126
|
+
style : s
|
127
|
+
));
|
128
|
+
|
129
|
+
// handle nested
|
130
|
+
$border : _sugar-handle-nested(round-border, $border);
|
131
|
+
$width : map-get-or($border, width w);
|
132
|
+
$color : map-get-or($border, color c);
|
133
|
+
$style : map-get-or($border, style s, solid);
|
134
|
+
@if $width and $color {
|
135
|
+
border: $style $width $color;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
border-radius:50%;
|
139
|
+
overflow: hidden;
|
140
|
+
> img {
|
141
|
+
border-radius:50%;
|
142
|
+
overflow: hidden;
|
143
|
+
}
|
144
|
+
|
145
|
+
// handle nested
|
146
|
+
@include _sugar-handle-nested(round, round-border) {
|
147
|
+
@content;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
//
|
153
|
+
// Restangle
|
154
|
+
//
|
155
|
+
@mixin s-rect(
|
156
|
+
$size
|
157
|
+
) {
|
158
|
+
$size : _sugar-parse-properties($size, (
|
159
|
+
width : number,
|
160
|
+
height : number
|
161
|
+
));
|
162
|
+
$size : _sugar-handle-nested(size, $size);
|
163
|
+
$width : map-get($size, width);
|
164
|
+
$height : map-get($size, height);
|
165
|
+
@if type-of($width) != number or type-of($height) != number {
|
166
|
+
@error "To create a rectangle, you need to specify a width and an height";
|
167
|
+
}
|
168
|
+
width : $width;
|
169
|
+
height : $height;
|
170
|
+
@include _sugar-handle-nested(size) {
|
171
|
+
@content;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
//
|
177
|
+
// Bubble
|
178
|
+
//
|
179
|
+
@mixin s-bubble(
|
180
|
+
$base : null,
|
181
|
+
$border : null
|
182
|
+
) {
|
183
|
+
|
184
|
+
$base : _sugar-parse-properties($base, (
|
185
|
+
side : top right bottom left,
|
186
|
+
align : left center right top middle bottom,
|
187
|
+
size : number,
|
188
|
+
color : color,
|
189
|
+
arrow-offset : number
|
190
|
+
), (
|
191
|
+
arrow-offset : ao
|
192
|
+
));
|
193
|
+
$border_map : _sugar-parse-properties($border, (
|
194
|
+
width : number,
|
195
|
+
color : color
|
196
|
+
));
|
197
|
+
$base : _sugar-handle-nested(bubble, $base);
|
198
|
+
$border_map : _sugar-handle-nested(bubble-border, $border_map);
|
199
|
+
$side : map-get-or($base, side, bottom);
|
200
|
+
$align : map-get-or($base, align, center);
|
201
|
+
$color : map-get-or($base, color, red);
|
202
|
+
$size : map-get-or($base, size, 10px);
|
203
|
+
$b-width : map-get-or($border_map, width, 0);
|
204
|
+
$b-color : map-get-or($border_map, color, 'none');
|
205
|
+
$offset : map-get-or($base, arrow-offset, 0);
|
206
|
+
|
207
|
+
// create the bubble
|
208
|
+
// @include s-triangle($width $height $color $direction -transform-origin base, $border_map);
|
209
|
+
|
210
|
+
@include _arrow($side, $align, $size, $color, $b-color, $b-width);
|
211
|
+
|
212
|
+
position: relative;
|
213
|
+
background: $color;
|
214
|
+
border-style : solid;
|
215
|
+
@if $b-width {
|
216
|
+
border-width : $b-width;
|
217
|
+
}
|
218
|
+
@if $b-color {
|
219
|
+
border-color : $b-color;
|
220
|
+
}
|
221
|
+
|
222
|
+
// &:after,
|
223
|
+
// &:before {
|
224
|
+
// position: absolute;
|
225
|
+
// @if $position == top {
|
226
|
+
// top: - $height;
|
227
|
+
// left: 50%;
|
228
|
+
// margin-left: $offset - $width * .5;
|
229
|
+
// } @else if $position == top-left {
|
230
|
+
// top: - $height;
|
231
|
+
// left: 0;
|
232
|
+
// margin-left: $offset;
|
233
|
+
// } @else if $position == top-right {
|
234
|
+
// top: - $height;
|
235
|
+
// left: 100%;
|
236
|
+
// margin-left: $offset * -1;
|
237
|
+
// } @else if $position == right {
|
238
|
+
// top: 50%;
|
239
|
+
// left: 100%;
|
240
|
+
// margin-top: $offset - $width * .5;
|
241
|
+
// } @else if $position == right-top {
|
242
|
+
// top: 0;
|
243
|
+
// left: 100%;
|
244
|
+
// margin-top: $offset;
|
245
|
+
// } @else if $position == right-bottom {
|
246
|
+
// top: 100%;
|
247
|
+
// left: 100%;
|
248
|
+
// margin-top: $offset * -1 - $width;
|
249
|
+
// } @else if $position == bottom {
|
250
|
+
// top: 100%;
|
251
|
+
// left: 50%;
|
252
|
+
// margin-left: $offset - $width * .5;
|
253
|
+
// } @else if $position == bottom-left {
|
254
|
+
// top: 100%;
|
255
|
+
// left: 0;
|
256
|
+
// margin-left: $offset;
|
257
|
+
// } @else if $position == bottom-right {
|
258
|
+
// top: 100%;
|
259
|
+
// left: 100%;
|
260
|
+
// margin-left: $offset * -1 - $width;
|
261
|
+
// } @else if $position == left {
|
262
|
+
// top: 50%;
|
263
|
+
// left: - $height;
|
264
|
+
// margin-top: $offset - $width * .5;
|
265
|
+
// } @else if $position == left-top {
|
266
|
+
// top: 0;
|
267
|
+
// left: - $height;
|
268
|
+
// margin-top: $offset;
|
269
|
+
// } @else if $position == left-bottom {
|
270
|
+
// top: 100%;
|
271
|
+
// left: - $height;
|
272
|
+
// margin-top: $offset * -1 - $width;
|
273
|
+
// }
|
274
|
+
// }
|
275
|
+
|
276
|
+
@include _sugar-handle-nested(bubble, bubble-border) {
|
277
|
+
@content;
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
//
|
284
|
+
// Triangle
|
285
|
+
//
|
286
|
+
@mixin s-triangle(
|
287
|
+
$triangle,
|
288
|
+
$border : null
|
289
|
+
) {
|
290
|
+
|
291
|
+
$triangle : _sugar-parse-properties($triangle, (
|
292
|
+
width : number,
|
293
|
+
height : number,
|
294
|
+
color : color,
|
295
|
+
direction : top t right r bottom b left l top-left tl top-right tr bottom-left bl bottom-right br,
|
296
|
+
transform-origin : base center top
|
297
|
+
), (
|
298
|
+
direction : d,
|
299
|
+
transform-origin : to
|
300
|
+
));
|
301
|
+
@if type-of($border) != map {
|
302
|
+
$border : _sugar-parse-properties($border, (
|
303
|
+
width : number,
|
304
|
+
color : color
|
305
|
+
));
|
306
|
+
}
|
307
|
+
$triangle : _sugar-handle-nested(triangle, $triangle);
|
308
|
+
$border : _sugar-handle-nested(triangle-border, $border);
|
309
|
+
|
310
|
+
$direction : map-get-or($triangle, direction, top);
|
311
|
+
$width : map-get-or($triangle, width, 100px);
|
312
|
+
$height : map-get-or($triangle, height, 100px);
|
313
|
+
$color : map-get-or($triangle, color, red);
|
314
|
+
$b-width : map-get-or($border, width);
|
315
|
+
$b-color : map-get-or($border, color, darken(red,20%));
|
316
|
+
$transform-origin : map-get-or($triangle, transform-origin, center);
|
317
|
+
|
318
|
+
// swap width and height of arrow
|
319
|
+
@if $direction == right or $direction == left {
|
320
|
+
$_width : $width;
|
321
|
+
$width : $height;
|
322
|
+
$height : $_width;
|
323
|
+
}
|
324
|
+
|
325
|
+
display: inline-block;
|
326
|
+
border-style: solid;
|
327
|
+
-webkit-transform:rotate(360deg);
|
328
|
+
&:before,
|
329
|
+
&:after {
|
330
|
+
color: transparent;
|
331
|
+
content:'';
|
332
|
+
display: block;
|
333
|
+
position: absolute;
|
334
|
+
width:$width; height:$height;
|
335
|
+
border-style: solid;
|
336
|
+
top:0; left:0;
|
337
|
+
}
|
338
|
+
// top
|
339
|
+
@if $direction == top or $direction == t {
|
340
|
+
&:after {
|
341
|
+
border-width: 0 $width*.5 $height $width*.5;
|
342
|
+
border-color: transparent transparent $color transparent;
|
343
|
+
}
|
344
|
+
@if $b-width {
|
345
|
+
$angle : s-atan($height / ($width*.5));
|
346
|
+
$hyp : $height / s-sin($angle);
|
347
|
+
$centerX : (0 + $width + $width*.5) / 3;
|
348
|
+
$centerY : (0 + 0 + $height) / 3;
|
349
|
+
$ratio-width : $b-width * 2;
|
350
|
+
// @if $transform-origin == base {
|
351
|
+
// $ratio-width : $b-width;
|
352
|
+
// }
|
353
|
+
$ratio : 1 / $height * ($height + $ratio-width);
|
354
|
+
&:before {
|
355
|
+
@if $transform-origin == base {
|
356
|
+
transform-origin: $centerX $height;
|
357
|
+
} @else {
|
358
|
+
transform-origin: $centerX ($height - $centerY);
|
359
|
+
}
|
360
|
+
transform:scale($ratio);
|
361
|
+
border-width: 0 $width*.5 $height $width*.5;
|
362
|
+
border-color: transparent transparent $b-color transparent;
|
363
|
+
}
|
364
|
+
}
|
365
|
+
} @else if $direction == right or $direction == r {
|
366
|
+
&:after {
|
367
|
+
border-width: $height*.5 0 $height*.5 $width;
|
368
|
+
border-color: transparent transparent transparent $color;
|
369
|
+
}
|
370
|
+
@if $b-width {
|
371
|
+
$angle : s-atan($width / ($height*.5));
|
372
|
+
$hyp : $width / s-sin($angle);
|
373
|
+
$centerX : (0 + 0 + $width) / 3;
|
374
|
+
$centerY : (0 + $height + $height*.5) / 3;
|
375
|
+
$ratio-width : $b-width * 2;
|
376
|
+
// @if $transform-origin == base {
|
377
|
+
// $ratio-width : $b-width;
|
378
|
+
// }
|
379
|
+
$ratio : 1 / $height * ($height + $ratio-width);
|
380
|
+
&:before {
|
381
|
+
@if $transform-origin == base {
|
382
|
+
transform-origin: 0 $centerY;
|
383
|
+
} @else {
|
384
|
+
transform-origin: ($width - $centerX) $centerY;
|
385
|
+
}
|
386
|
+
transform:scale($ratio);
|
387
|
+
border-width: $height*.5 0 $height*.5 $width;
|
388
|
+
border-color: transparent transparent transparent $b-color;
|
389
|
+
}
|
390
|
+
}
|
391
|
+
} @else if $direction == bottom or $direction == b {
|
392
|
+
&:after {
|
393
|
+
border-width: $height $width*.5 0 $width*.5;
|
394
|
+
border-color: $color transparent transparent transparent;
|
395
|
+
}
|
396
|
+
@if $b-width {
|
397
|
+
$angle : s-atan($height / ($width*.5));
|
398
|
+
$hyp : $height / s-sin($angle);
|
399
|
+
$centerX : (0 + $width + $width*.5) / 3;
|
400
|
+
$centerY : (0 + 0 + $height) / 3;
|
401
|
+
$ratio-width : $b-width * 2;
|
402
|
+
// @if $transform-origin == base {
|
403
|
+
// $ratio-width : $b-width;
|
404
|
+
// }
|
405
|
+
$ratio : 1 / $height * ($height + $ratio-width);
|
406
|
+
&:before {
|
407
|
+
@if $transform-origin == base {
|
408
|
+
transform-origin: $centerX 0;
|
409
|
+
} @else {
|
410
|
+
transform-origin: $centerX $centerY;
|
411
|
+
}
|
412
|
+
transform:scale($ratio);
|
413
|
+
border-width: $height $width*.5 0 $width*.5;
|
414
|
+
border-color: $b-color transparent transparent transparent;
|
415
|
+
}
|
416
|
+
}
|
417
|
+
} @else if $direction == left or $direction == l {
|
418
|
+
&:after {
|
419
|
+
border-width: $height*.5 $width $height*.5 0;
|
420
|
+
border-color: transparent $color transparent transparent;
|
421
|
+
}
|
422
|
+
@if $b-width {
|
423
|
+
$angle : s-atan($width / ($height*.5));
|
424
|
+
$hyp : $width / s-sin($angle);
|
425
|
+
$centerX : (0 + 0 + $width) / 3;
|
426
|
+
$centerY : (0 + $height + $height*.5) / 3;
|
427
|
+
$ratio-width : $b-width * 2;
|
428
|
+
// @if $transform-origin == base {
|
429
|
+
// $ratio-width : $b-width;
|
430
|
+
// }
|
431
|
+
$ratio : 1 / $height * ($height + $ratio-width);
|
432
|
+
&:before {
|
433
|
+
@if $transform-origin == base {
|
434
|
+
transform-origin: $width $centerY;
|
435
|
+
} @else {
|
436
|
+
transform-origin: ($width - $centerX) $centerY;
|
437
|
+
}
|
438
|
+
transform:scale($ratio);
|
439
|
+
border-width: $height*.5 $width $height*.5 0;
|
440
|
+
border-color: transparent $b-color transparent transparent;
|
441
|
+
}
|
442
|
+
}
|
443
|
+
} @else if $direction == top-left or $direction == tl {
|
444
|
+
&:after {
|
445
|
+
border-width: $height $width 0 0;
|
446
|
+
border-color: $color transparent transparent transparent;
|
447
|
+
}
|
448
|
+
@if $b-width {
|
449
|
+
$centerX : (0 + $width + $width) / 3;
|
450
|
+
$centerY : (0 + 0 + $height) / 3;
|
451
|
+
$ratio-width : $b-width * 2;
|
452
|
+
// @if $transform-origin == base {
|
453
|
+
// $ratio-width : $b-width;
|
454
|
+
// }
|
455
|
+
$ratio : 1 / $height * ($height + $ratio-width);
|
456
|
+
&:before {
|
457
|
+
transform-origin: ($width - $centerX) $centerY;
|
458
|
+
transform:scale($ratio);
|
459
|
+
border-width: $height $width 0 0;
|
460
|
+
border-color: $b-color transparent transparent transparent;
|
461
|
+
}
|
462
|
+
}
|
463
|
+
} @else if $direction == top-right or $direction == tr {
|
464
|
+
&:after {
|
465
|
+
border-width: 0 $width $height 0;
|
466
|
+
border-color: transparent $color transparent transparent;
|
467
|
+
}
|
468
|
+
@if $b-width {
|
469
|
+
$centerX : (0 + $width + $width) / 3;
|
470
|
+
$centerY : (0 + 0 + $height) / 3;
|
471
|
+
$ratio-width : $b-width * 2;
|
472
|
+
// @if $transform-origin == base {
|
473
|
+
// $ratio-width : $b-width;
|
474
|
+
// }
|
475
|
+
$ratio : 1 / $height * ($height + $ratio-width);
|
476
|
+
&:before {
|
477
|
+
transform-origin: $centerX $centerY;
|
478
|
+
transform:scale($ratio);
|
479
|
+
border-width: 0 $width $height 0;
|
480
|
+
border-color: transparent $b-color transparent transparent;
|
481
|
+
}
|
482
|
+
}
|
483
|
+
} @else if $direction == bottom-left or $direction == bl {
|
484
|
+
&:after {
|
485
|
+
border-width: $height 0 0 $width;
|
486
|
+
border-color: transparent transparent transparent $color;
|
487
|
+
}
|
488
|
+
@if $b-width {
|
489
|
+
$centerX : (0 + 0 + $width) / 3;
|
490
|
+
$centerY : (0 + $height + $height) / 3;
|
491
|
+
$ratio-width : $b-width * 2;
|
492
|
+
// @if $transform-origin == base {
|
493
|
+
// $ratio-width : $b-width;
|
494
|
+
// }
|
495
|
+
$ratio : 1 / $height * ($height + $ratio-width);
|
496
|
+
&:before {
|
497
|
+
transform-origin: $centerX $centerY;
|
498
|
+
transform:scale($ratio);
|
499
|
+
border-width: $height 0 0 $width;
|
500
|
+
border-color: transparent transparent transparent $b-color;
|
501
|
+
}
|
502
|
+
}
|
503
|
+
} @else if $direction == bottom-right or $direction == br {
|
504
|
+
&:after {
|
505
|
+
border-width: 0 0 $height $width;
|
506
|
+
border-color: transparent transparent $color transparent;
|
507
|
+
}
|
508
|
+
@if $b-width {
|
509
|
+
$centerX : (0 + $width + $width) / 3;
|
510
|
+
$centerY : (0 + $height + $height) / 3;
|
511
|
+
$ratio-width : $b-width * 2;
|
512
|
+
// @if $transform-origin == base {
|
513
|
+
// $ratio-width : $b-width;
|
514
|
+
// }
|
515
|
+
$ratio : 1 / $height * ($height + $ratio-width);
|
516
|
+
&:before {
|
517
|
+
transform-origin: $centerX $centerY;
|
518
|
+
transform:scale($ratio);
|
519
|
+
border-width: 0 0 $height $width;
|
520
|
+
border-color: transparent transparent $b-color transparent;
|
521
|
+
}
|
522
|
+
}
|
523
|
+
}
|
524
|
+
|
525
|
+
@include _sugar-handle-nested(triangle, triangle-border) {
|
526
|
+
@content;
|
527
|
+
}
|
528
|
+
}
|