This file contains 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
// Create a simple top to bottom linear gradient with a background-color backup | |
// The first argument, $color will be output as background-color: $color | |
// | |
// This yields a gradient that is 5% brighter on the top and 5% darker on the bottom | |
// | |
// +gradient-bg(#777) | |
// | |
// This yeilds a gradient where the bright and dark colors are shifted 10% from the original color. | |
// If you don't specify a third argument it will assign this value for the darkness too, keeping the gradient even. | |
// |
This file contains 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
var flashPlayerLocation = "/assets/jwplayer/player.swf"; | |
var flashPlayerSkin = "/assets/jwplayer/glow/glow.xml"; | |
window.addEvent('domready', function() { | |
html5toFlash(); | |
}); | |
function html5toFlash(){ | |
var videos = $$('video'); | |
if(!videos){return} |
This file contains 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
// This helps you toggle CSS3 mixins to make sure your site design doesn't depend on them. | |
// Simply import this file to turn off all css3 called with Compass mixins. | |
// Comment out the import to turn them on again. | |
=linear-gradient($no: 0, $no: 0, $no: 0, $no: 0) | |
=box-shadow($no: 0, $no: 0, $no: 0, !no: 0) | |
=text-shadow($no: 0, $no: 0, $no: 0, $no: 0) | |
=border-radius($no: 0) | |
=border-top-left-radius($no: 0) | |
=border-top-right-radius($no: 0) |
This file contains 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
=gradient-bg($color, $top: 5, $bottom: $top) | |
@if $top < 0 and $bottom < 0 | |
$color1: darken($color, abs($top)) | |
$color2: lighten($color, abs($bottom)) | |
+linear-gradient(color-stops($color1, $color2)) | |
@else | |
$color1: lighten($color, abs($top)) | |
$color2: darken($color, abs($bottom)) | |
+linear-gradient(color-stops($color1, $color2)) | |
background-color: $color |
This file contains 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
`sudo apachectl restart` doesn't work in 10.5.6 you'll get this error: | |
/usr/sbin/apachectl: line 82: ulimit: open files: cannot modify limit: Invalid argument | |
in OS X 10.5.6 Apple updated to Apache 2.2.15, which patched quite a few vulnerabilities (see http://support.apple.com/kb/HT4435) and also broke the apachectl script. | |
To get sorted, edit /usr/sbin/apachectl and replace line 82 | |
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`" |
This file contains 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
@function shadow-3d($thickness-shadow-color, $splash-shadow-color, $thickness, $angle: 0) { | |
$shadows: compact(); | |
@if unit($thickness) != px { @warn "$thickness must be passed as a pixel value, eg: 5px." }; | |
@for $i from 1 through $thickness/1px { | |
$shadows: append($shadows, 0 1px * $i 0 adjust-color($thickness-shadow-color, $lightness: -3.3% * ($i - 1))); | |
} | |
@each $values in ( | |
0 $thickness + 1px 1px 0.1, | |
0 0 $thickness + 5px 0.3, | |
0 abs($thickness - 2px) 5px 0.2, |
This file contains 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
@@ -590,7 +590,7 @@ class SpritesTest < Test::Unit::TestCase | |
it "should generate a sprite from nested folders" do | |
css = render <<-SCSS | |
- @import "nested/*.png"; | |
+ @import "nested/**/*.png"; | |
@include all-nested-sprites; | |
SCSS | |
assert_correct css, <<-CSS |
This file contains 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
require 'pathname' | |
module Jekyll | |
class CodeBlockTag < Liquid::Tag | |
def initialize(tag_name, file, tokens) | |
super | |
@file = file.strip | |
end |
This file contains 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
.has-pullquote:before { | |
/* Reset metrics. */ | |
padding: 0; | |
border: none; | |
/* Content */ | |
content: attr(data-pullquote); | |
/* Pull out to the right, modular scale based margins. */ | |
float: right; |