Created
January 31, 2013 12:53
-
-
Save jtanguy/4682650 to your computer and use it in GitHub Desktop.
Time display for blog post
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
/** | |
* Time display for blog post | |
*/ | |
@import url(http://fonts.googleapis.com/css?family=Syncopate); | |
.date { | |
font-family: "Syncopate", sans-serif; | |
text-align: center; | |
vertical-align: 50%; | |
border: 1px solid black; | |
width: 5em; | |
height: 5em; | |
display: inline-block; | |
} | |
.date span{ | |
display: block; | |
} | |
.date .m { | |
font-size: 1.2em; | |
text-transform: uppercase; | |
} | |
.date .d { | |
font-size: 2em; | |
} | |
.date .y { | |
font-size: 1.1em; | |
} | |
body { | |
background-color: #eee; | |
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
<!-- content to be placed inside <body>…</body> --> | |
<time class="date"> | |
<span class="m">Dec</span> | |
<span class="d">5</span> | |
<span class="y">2012</span> | |
</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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment