After every change you make to the Apache or PHP config files you will need to restart the Apache web server.
By default PHP is disabled on OSX, so we'll need to turn that on.
mate /etc/apache2/httpd.conf
#! /bin/bash | |
open $1 -a /Applications/iA\ Writer.app |
$(document).ready(function() { | |
// Create, show, and hide grid toggle | |
$('body').append('<div id="grid"></div>'); | |
$('body').append('<a href="#" class="toggle-grid"><span class="show">Show Grid</span><span class="hide">Hide Grid</span></a>'); | |
$('a.toggle-grid').toggle(function() { | |
$('#grid').slideDown('fast'); | |
$('.toggle-grid .hide').show(); | |
$('.toggle-grid .show').hide(); | |
}, function() { |
.two-columns { | |
overflow: hidden; | |
*zoom: 1; | |
position: relative; | |
} | |
.two-columns .column-one, .two-columns .column-two { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; |
@mixin hires-graphic($file, $type, $width, $height) { | |
$file_name: $file + '.' + $type; | |
$retina_name: $file + '_2x.' + $type; | |
@media (-webkit-min-device-pixel-ratio: 2) { | |
& { | |
background-image: url('../images/' + $retina_name); | |
-webkit-background-size: $width $height; | |
} | |
} |
This gist is no longer valid. Please see Compass-Rails for instructions on how to install.
@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); } | |
} |
.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 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 |
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