This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| @mixin keyframes($animationName) { | |
| @-webkit-keyframes #{$animationName} { | |
| $browser: '-webkit-'; @content; | |
| } | |
| @-moz-keyframes #{$animationName} { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| $skill: 12px, 23px, 42px, 234px, 440px; | |
| @mixin skill-func($val) { | |
| & { width : $val; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| $skill: (supernarrow:12px, narrow:23px, normal:42px, wide:234px, superwide:440px); | |
| @mixin skill-func($val) { | |
| & { width : $val; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="anim"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| [class*="shift"] { | |
| $sft-o: 10px; | |
| @mixin shift_stp($val) { | |
| &[class*="_sml"]{ #{$val}: $sft-o; } | |
| &[class*="_mid"]{ #{$val}: $sft-o * 2; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .shift_m_sml | |
| test | |
| .shift_m_mid | |
| test | |
| .shift_m_big | |
| test | |
| .shift_p_sml | |
| test | |
| .shift_p_mid | |
| test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| @function zerofill($i) { | |
| @return #{str-slice("0000",0,4 - str-length(#{$i}))}$i; | |
| } | |
| @for $i from 1 through 100 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| $layer-count: 123; | |
| @function rep($n, $s: "0") { $out: $s; @while str-length($out) < $n { $out: $out + $s; } @return $out; } | |
| @function zerofill($i, $n) { $l: str-length(#{$i}); @return #{if($n > $l, rep($n - $l), "")}$i; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| // function for calculating power ($b - base, $n - power) (Sass v3.3 has already an integrated pow() function for this): | |
| // thisone is made for power >= 0 | |
| @function pwr($b, $n) { | |
| $f: if($n <= 0, 1, $b); | |
| @while $n > 1 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ---- | |
| // Sass (v3.3.0.rc.1) | |
| // Compass (v0.13.alpha.10) | |
| // ---- | |
| @function setUnit($val){ | |
| @return if(unitless($val), $val * 1px, $val); | |
| } | |
| @mixin setSpace($setSpace: padding, $setSpaceValues: 0 0 0 0){ |