Skip to content

Instantly share code, notes, and snippets.

@AgataJot
AgataJot / dabblet.css
Last active August 29, 2015 14:11 — forked from LeaVerou/dabblet.css
Untitled
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}
:root input[type="checkbox"].ios-switch + div {
display: inline-block;
vertical-align: middle;
width: 3em; height: 1em;
border: 1px solid rgba(0,0,0,.3);
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@AgataJot
AgataJot / phantom.scss
Created October 20, 2012 03:22 — forked from StanAngeloff/phantom.scss
Compass Magick + PhantomJS = ♥
@import 'compass';
$theme1: red;
$theme2: maroon;
$button_width: 320px;
$button_height: 24px;
a {
background: #fff magick-sprite('button', magick-phantom($button_width, $button_height,
@AgataJot
AgataJot / gist:2372542
Created April 13, 2012 01:12 — forked from paulirish/gist:438326
10 things i learned from the jquery source
/*
.d dP"Yb 888888 88 88 88 88b 88 dP""b8 .dP"Y8
.d88 dP Yb 88 88 88 88 88Yb88 dP `" `Ybo."
88 Yb dP 88 888888 88 88 Y88 Yb "88 o.`Y8b
88 YbodP 88 88 88 88 88 Y8 YboodP 8bodP'