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
#post { | |
width: 700px; | |
} | |
#post p { | |
margin-bottom: 10px; | |
} | |
#post p span { | |
display: block; | |
width: 340px; | |
float: left; |
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
@import url("http://propublica.github.com/stateface/reference/stateface.css"); | |
@font-face { | |
font-family: 'StateFaceRegular'; | |
src: url('http://propublica.github.com/stateface/font/webfont/stateface-regular-webfont.eot'); | |
src: url('http://propublica.github.com/stateface/font/webfont/stateface-regular-webfont.eot?#iefix') format('embedded-opentype'), | |
url('http://propublica.github.com/stateface/font/webfont/stateface-regular-webfont.woff') format('woff'), | |
url('http://propublica.github.com/stateface/font/webfont/stateface-regular-webfont.ttf') format('truetype'), | |
url('http://propublica.github.com/stateface/font/webfont/stateface-regular-webfont.svg#StateFaceRegular') format('svg'); | |
font-weight: normal; | |
font-style: normal; |
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 charset="utf-8" /> | |
<title>Title</title> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> |
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
$('section.content img').each(function() { | |
var me = $(this); | |
var src = me.attr('src'); | |
me.wrap('<figure class="image-wrapper ' + me.attr('title') + '" />') | |
.after('<figcaption>' + $(this).attr('alt') + '</figcaption>') | |
.attr('src', './content/' + src); | |
}); |
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 parallax; | |
parallax = function() { | |
var scrolled; | |
scrolled = $(window).scrollTop(); | |
return $(".parallax").css("background-position", "center " + (scrolled * 0.2) + "px"); | |
}; | |
$(window).scroll(function(e) { | |
return parallax(); |
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
$("#header").css({ | |
height: $(window).height() + "px" | |
}); |
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 flexbox() { | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
} | |
@mixin flex($values) { | |
-webkit-box-flex: $values; |
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
$ nodenv versions | |
$ nodenv local v0.10 |
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 calculateWidth($cols, $margin) { | |
@return ((100% - (($cols - 1)*$margin)) / $cols) | |
} | |
@mixin one-whole { | |
width: 100%; | |
} | |
@mixin one-half { | |
$margin: 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
.element { | |
background: linear-gradient(140deg, #37bad3, #f51397, #fcee21); | |
background-size: 600% 600%; | |
animation: BackgroundGradientAnimation 15s ease infinite; | |
} | |
@keyframes BackgroundGradientAnimation { | |
0%{background-position:0% 2%} | |
50%{background-position:100% 99%} | |
100%{background-position:0% 2%} |
OlderNewer