This file contains hidden or 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
/* Works in IE7+ */ | |
ul li:first-child + li + li { | |
}/* Targets the 3rd list item */ |
This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
html { | |
background: rgb(1,65,244); | |
background: linear-gradient(81deg, #f27, yellow); | |
min-height:100%; | |
} | |
p { | |
font-size:42px; |
This file contains hidden or 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
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); | |
if (input.val() == '' || input.val() == input.attr('placeholder')) { | |
input.addClass('placeholder'); |
This file contains hidden or 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
// reset scaling on iPads on orientation change. author: @axolx | |
if (navigator.userAgent.match(/iPad/i)) { | |
$(window).bind('orientationchange', function(event) { | |
if (window.orientation == 90 || window.orientation == -90 || window.orientation == 270) { | |
$('meta[name="viewport"]').attr('content', 'height=device-width,width=device-height,initial-scale=1.0,maximum-scale=1.0'); | |
$(window).resize(); | |
} else { | |
$('meta[name="viewport"]').attr('content', 'height=device-height,width=device-width,initial-scale=0.8,maximum-scale=0.8'); | |
$(window).resize(); | |
} |
This file contains hidden or 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
// reset scaling on iPhones on orientation change. author: @axolx | |
if (navigator.userAgent.match(/iPhone/i)) { | |
$(window).bind('orientationchange', function(event) { | |
$('meta[name="viewport"]').attr('content', 'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0'); | |
$(window).resize(); | |
}).trigger('orientationchange'); | |
} |
This file contains hidden or 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
/** | |
* Awesome CSS Triangle | |
*/ | |
.triangle { | |
width: 0; | |
height: 0; | |
border-width: 10px 10px 10px 19px; | |
border-style: solid; | |
border-color: transparent transparent transparent blue; |
This file contains hidden or 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
tell application "System Events" | |
key down command | |
keystroke tab | |
key up command | |
end tell |
This file contains hidden or 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
tell application "System Events" | |
key down command | |
keystroke tab | |
key up command | |
end tell |
This file contains hidden or 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
.form-type-checkbox { | |
padding-left: 18px; | |
padding-right: 2px; | |
position: relative; | |
>input { | |
position: absolute; | |
left: 0; | |
top: 4px; | |
top: 0\9; | |
This file contains hidden or 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
<input type="checkbox"><br /> | |
<input type="checkbox" checked="true"> | |
<hr /> | |
<input type="radio" name="radio"><br /> | |
<input type="radio" name="radio" checked="true> |
OlderNewer