Sha256: a9aefa788c63860cc78391034d2d78399f091690e9775266f8427e7a412db8b0
Contents?: true
Size: 1.56 KB
Versions: 31
Compression:
Stored size: 1.56 KB
Contents
@function compact($var-1, $var-2: false, $var-3: false, $var-4: false, $var-5: false, $var-6: false, $var-7: false, $var-8: false, $var-9: false, $var-10: false) { $full: $var-1; $vars: $var-2, $var-3, $var-4, $var-5, $var-6, $var-7, $var-8, $var-9, $var-10; @each $var in $vars { @if $var { $full: $full, $var; } } @return $full; } // readd some outdated bourbon functionality (still needed some times) @mixin magic_prefixer ($property, $value) { -webkit-#{$property}: $value; -moz-#{$property}: $value; -ms-#{$property}: $value; -o-#{$property}: $value; #{$property}: $value; } // was outdated since bourbon 3.0 @mixin box-shadow ( $shadow-1, $shadow-2: false, $shadow-3: false, $shadow-4: false, $shadow-5: false, $shadow-6: false, $shadow-7: false, $shadow-8: false, $shadow-9: false) { $full: compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9); @include magic_prefixer(box-shadow, $full); } @mixin border-radius ($radius) { @include magic_prefixer(border-radius, $radius); } @mixin corner_border_radius($radius,$corner) { @include magic_prefixer(border-#{$corner}-radius, $radius); } @mixin spezial_radius($borders...) { @include magic_prefixer(border-radius, $borders); } @mixin elipse( $first, $second ) { @include spezial_radius( #{ $first }px / #{ $second }px ); } @mixin elipsis( $first, $second ) { @include spezial_radius( #{percentage($first)} / #{percentage($second)} ); }
Version data entries
31 entries across 31 versions & 1 rubygems