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
env = (function() { | |
var flags = {}, ua = navigator.userAgent, el = document.createElement('div'), video = document.createElement('video'), audio = document.createElement('audio'), root = document.documentElement, i | |
function flag(names) { | |
names = names.split(' ') | |
for (i = 0; i < names.length; i++) | |
flags[names[i]] = true | |
} | |
function classnames() { | |
var names = [], name | |
for(name in flags) if (flags.hasOwnProperty(name)) |
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
# General | |
output_style = :expanded | |
relative_assets = true | |
line_comments = false | |
project_path = File.dirname(__FILE__) + "/" | |
utils_dir = project_path + "utils/" | |
# Sass Paths | |
http_path = "/" |
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) |
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
/** | |
* Plugin function to insert spans into text: | |
* usage | |
* $(document).ready(function() { | |
* $('p.charcount').charSpanCount(); }); | |
* or $(document).ready(function() { | |
* $('p.charcount').charSpanCount({'charcount' : 15}); | |
* }); | |
*/ | |
(function($) { |
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
// Allows programmatic altering of CSS rules. Turn this class into a flyweight by enabling modification of the underlying rule property. | |
function CssRule (selector, stylesheet) { | |
var rules = stylesheet.rules, | |
len = rules.length, | |
i = 0, | |
rule = null; | |
for (i; i < len; i++) { | |
rule = rules[i]; | |
if (rule.selectorText === selector) { |
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
.fake_file_input { | |
background: url(../images/fake_file_input.png) no-repeat; | |
cursor: pointer; | |
width: 150px; | |
height: 30px; | |
overflow: hidden; | |
position: relative; | |
display: inline-block; | |
*display: inline; | |
*zoom: 1; |
NewerOlder