sudo tmutil disablelocal
- Turn off local Time Machine snapshots and trigger automatic cleanup of accumulated local snapshot data. Requires root privileges.
sudo tmutil enablelocal
- Turn on local Time Machine snapshots. Requires root privileges.
#content-wrapper | |
+container | |
#about | |
// Default (smallest screens) | |
+column(100%) | |
background-color: #ccc | |
// Respond to other screen widths |
sudo tmutil disablelocal
- Turn off local Time Machine snapshots and trigger automatic cleanup of accumulated local snapshot data. Requires root privileges.
sudo tmutil enablelocal
- Turn on local Time Machine snapshots. Requires root privileges.
// convert px to em in sass. | |
// $target-px: the value you want to convert | |
// $context: the current pixel value of 1em | |
@function calc-em($target-px, $context) { | |
@return ($target-px / $context) * 1em; | |
} |
@function convert($start, $ratio: 10px/1em) { | |
@return $start/$ratio; | |
} | |
/* image is 50px tall */ | |
convert(image-height('path/to/image.jpg')); => 5em; |
.tab { | |
.generatedcontent & { | |
&:before, &:after { | |
background-color: red; | |
} | |
.before, .after { | |
display: none; | |
} | |
} | |
} |
Disable:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Enable:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
@mixin hires-graphic($file, $type, $width, $height) | |
$file-name: $file + "." + $type | |
$retina-name: $file + "-retina." + $type | |
@media (-webkit-min-device-pixel-ratio: 2) | |
& | |
background-image: image-url($retina-name) | |
-webkit-background-size: $width $height |
.ipad-only, | |
.iphone-only, | |
.retina-only, | |
.non-retina-only, | |
.retina-iphone-only, | |
.non-retina-iphone-only | |
display: none | |
// iPad Only | |
@media only screen and (device-width: 768px) |
@mixin inset-text($color, $amount: 0.7) { | |
color: $color; | |
@if lightness($color) < 50% { @include single-text-shadow(rgba(white, $amount), 1px, 1px, 1px); } | |
@else { @include single-text-shadow(rgba(black, $amount), -1px, -1px, 1px); } | |
} |
This gist is no longer valid. Please see Compass-Rails for instructions on how to install.