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
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, | |
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, | |
q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, | |
ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, audio, canvas, command, datalist, details, dialog, embed, figure, footer, | |
header, hgroup, keygen, mark, meter, nav, output, progress, rp, rt, ruby, section, source, | |
time, video { | |
background: transparent; | |
border: 0; | |
font-size: 100%; |
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
/* Hide without display: none; */ | |
.internal, .hide { | |
display: block; | |
height: 1px; | |
left: -999em; | |
position: absolute; | |
text-indent: -999em; | |
top: -999em; | |
visibility: hidden; | |
width: 1px; |
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
# #Nanoc validation task | |
# | |
# To use this validation task you need the w3c_validators gem | |
# gem install w3c_validators | |
# and run rake validate on your project root | |
# | |
require 'yaml' | |
require 'w3c_validators' | |
include W3CValidators |
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
# #WCAG Basic wadus | |
# | |
# Using http://achecker.ca/checker/index.php | |
require 'raakt' | |
desc "WCAG basic wadus" | |
task :wcag_validate do | |
# perform a setup of all our variables | |
setup |
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
/* Gives "hasLayout" property to an element (only for IE) */ | |
#example .selector { | |
display: inline-block; | |
zoom: 1; | |
} |
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
#selector .example { | |
/* CSS3 Standard */ | |
border-radius: 4px; | |
border-top-left-radius: 4px; | |
border-top-right-radius: 4px; | |
border-bottom-right-radius: 4px; | |
border-bottom-left-radius: 4px; | |
/* Mozilla*/ | |
-moz-border-radius: 4px; |
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
host, port = ENV['http_proxy'].gsub("http://","").split(/:/) if ENV['http_proxy'] |
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
jQuery('.something').each(function() { | |
jQuery('.element', this); // Finds '.element' inside current '.something' iteration | |
}); |
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
// 800x600 | |
javascript:self.resizeTo(800,600);self.moveTo((screen.availWidth-800)/2,(screen.availHeight-600)/2); | |
// 1024x768 | |
javascript:self.resizeTo(1024,768);self.moveTo((screen.availWidth-1024)/2,(screen.availWidth-768)/2); | |
// 1280x800 | |
javascript:self.resizeTo(1280,800);self.moveTo((screen.availWidth-1280)/2,(screen.availWidth-800)/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
// remember to change every instance of "pluginName" | |
// to the name of your plugin! | |
;(function($) { | |
// here it goes! | |
$.fn.pluginName = function(method) { | |
// plugin's default options | |
var defaults = { | |
OlderNewer