This is just a personal script to help me remember all the steps required to setup a new osx machine in their correct order. I do not advise you to follow this guide if you don't know what you're doing.
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
| $font-size: 16; | |
| @function strip-unit($num) { | |
| @return $num / ($num * 0 + 1); | |
| } | |
| @mixin rem($property, $values...) { | |
| $max: length($values); | |
| $pxValues: ''; | |
| $remValues: ''; |
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
| $font-size: 16; | |
| $px-only: true; | |
| @function u($values){ | |
| $list: (); | |
| @each $value in $values { | |
| @if $value == 'auto' { |
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
| // Sprite mappers | |
| $sprite: sprite-map('sprite/standard/*.png', $layout: 'smart'); | |
| $sprite-hd: sprite-map('sprite/hd/*.png', $layout: 'smart'); | |
| // HD media query | |
| $hd: 'print, (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)'; | |
| // HD mixin sprite | |
| // Your HD files should necessarily be twice the size of the standard ones | |
| @mixin hd-sprite { |