Skip to content

Instantly share code, notes, and snippets.

View levito's full-sized avatar

Veit Lehmann levito

View GitHub Profile
@levito
levito / dabblet.css
Created March 13, 2013 18:47 — forked from LeaVerou/dabblet.css
Switch-style checkboxes.
/**
* Switch-style checkboxes.
* Inspired by Espresso’s “Tools” switch
*/
input[type="checkbox"]:not(:checked),
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}
@levito
levito / supportsSelector.js
Last active December 14, 2015 04:48 — forked from Skateside/supportsSelector.js
Detects whether or not a given CSS selector is supported by the current browser
// Detects whether or not a given CSS selector is supported by the current
// browser.
//
// Takes:
// selector (String) The CSS selector to test.
// Returns:
// (Boolean) true if the selector is supported, false
// otherwise.
var supportsSelector = (function () {