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
$disable-magic-sprite-selectors: true; | |
$icons-inline: true; | |
$icons-sprite-base-class: "%icons-sprite"; | |
$icons-layout: smart; | |
$icons: sprite-map("icons/*.png"); | |
@import "icons/*.png"; | |
@each $img in sprite-names($icons) { | |
%icon-#{$img} { | |
@extend %icons-sprite; |
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
// Pass in a starting view and match comparison | |
function findView ( startView, searchFn ) { | |
var resultView, | |
viewSearch = function ( curView ) { | |
curView.getView( function ( nestedView ) { | |
if ( searchFn( nestedView ) ) { | |
resultView = nestedView; | |
} | |
else { | |
viewSearch( nestedView ); |
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
# http://stackoverflow.com/questions/10314907/getting-a-list-of-files-in-sass-compass | |
require File.join(File.dirname(__FILE__), 'listfiles.rb') |
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
# we have a separate build process that strips comments & minifies, so I use production mode here to generate the styleguide | |
project_path = File.dirname(__FILE__) + "/" | |
utils_dir = "utilities/" | |
utils_path = project_path + utils_dir | |
output_style = (compiletype == :production) ? :expanded : :nested | |
# callback - on_stylesheet_saved | |
on_stylesheet_saved do |filename| | |
if File.exists?(filename) | |
if (compiletype == :production) |
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
@echo off | |
setlocal enabledelayedexpansion | |
REM | |
REM PngOutBatch | |
REM | |
REM Nic Jansma - [email protected] | |
REM | |
REM Runs a PNG through PngOut multiple times at different block sizes. Shows the | |
REM file-size savings during and at the 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
compiletype = environment | |
project_path = File.dirname(__FILE__) + "/" | |
utils_dir = "utilities/" | |
utils_path = project_path + utils_dir | |
# callback - on_sprite_saved | |
# http://compass-style.org/help/tutorials/configuration-reference/ | |
on_sprite_saved do |filename| | |
if File.exists?(filename) | |
if (compiletype == :production) |
NewerOlder