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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Stripe Sample Form</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script> | |
<script type="text/javascript" src="https://js.stripe.com/v1/"></script> | |
<script type="text/javascript"> |
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
var center; | |
function calculateCenter() { | |
center = map.getCenter(); | |
} | |
google.maps.event.addDomListener(map, 'idle', function() { | |
calculateCenter(); | |
}); | |
google.maps.event.addDomListener(window, 'resize', function() { | |
map.setCenter(center); | |
}); |
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
.foo { | |
background: url('../path/to/image.jpg'); | |
background-color: #e6eff2; | |
@include animate(animate-bg, 18s, 0, linear, both); | |
-webkit-animation-iteration-count: infinite; | |
animation-iteration-count: infinite; | |
} |
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
<link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/images/touch_icons/touchicon.png"> | |
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png"> | |
<!--[if IE]><link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico"><![endif]--> | |
<!-- or, set /favicon.ico for IE10 win --> | |
<meta name="msapplication-TileColor" content="#D83434"> | |
<meta name="msapplication-TileImage" content="<?php echo get_template_directory_uri(); ?>/images/touch_icons/tileicon.png"> |
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
// $bg-img-path: '../path/to/image.jpg' | |
// $bg-options: options are css background properties (ex. no-repeat center center) | |
@mixin bg-cover($bg-img-path, $bg-options) { | |
background: url($bg-img-path) $bg-options; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='#{$bg-img-path}', sizingMethod='scale'); | |
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='#{$bg-img-path}', sizingMethod='scale')"; |
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
a { | |
background-image: -webkit-gradient(linear,left top,left bottom,from(transparent),to(#ddd)); | |
background-image: -webkit-linear-gradient(top,transparent 50%,#ddd 50%); | |
background-image: linear-gradient(to bottom,transparent 50%,#ddd 50%); | |
background-image: none; | |
color: red; | |
background-repeat: repeat-x; | |
-webkit-background-size: 2px 2px; | |
background-size: 2px 2px; | |
background-position: 0 90%; |
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
function throttle( fn, time ) { | |
var t = 0; | |
return function() { | |
var args = arguments, ctx = this; | |
clearTimeout(t); | |
t = setTimeout( function() { | |
fn.apply( ctx, args ); | |
}, time ); | |
}; |
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
// Mixin | |
@mixin font-smoothing($value: on) { | |
@if $value == on { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
@else { | |
-webkit-font-smoothing: subpixel-antialiased; | |
-moz-osx-font-smoothing: auto; |
OlderNewer