Skip to content

Instantly share code, notes, and snippets.

@mottram
Created October 2, 2010 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mottram/607810 to your computer and use it in GitHub Desktop.
Save mottram/607810 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html dir="ltr" lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Voracious</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width"/>
<style>
/* Reset */
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,dialog,figure,footer,header,hgroup,menu,nav,section,time,mark,audio,video{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}body{line-height:1;}article,aside,dialog,figure,footer,header,hgroup,nav,section{display:block;}nav ul{list-style:none;}blockquote,q{quotes:none;}blockquote:before,blockquote:after,q:before,q:after{content:none;}a{border:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}ins{background-color:#ffe;color:#000;text-decoration:none;}mark{background-color:#ff9;color:#000;font-style:italic;font-weight:700;}del{text-decoration:line-through;}abbr[title],dfn[title]{border:none;cursor:help;}table{border-collapse:collapse;border-spacing:0;}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0;}input,select{vertical-align:middle;}
/* end reset */
body {
margin:1.5em 0;
background: #fefefe;
color:#444;
font:1em/1.5em normal Helvetica,Arial,sans-serif;
}
div {
margin:0 auto;
width:800px;
}
h1,h2,h3,h4,h5,h6,p,article,nav,img,div,pre {
margin-bottom:1.5em;
}
h1,h2,h3,h4,h5,h6 {
font-weight:400;
}
a, a:active, a:link {
color:#000;
}
a:hover {
color:#444;
}
a:focus {
outline:0;
}
img {
padding:0 1em;
}
h1 a, nav a {
text-decoration:none;
}
header h1 {
font-size:1.25em;
line-height:1em;
}
header h2 {
font:0.75em/1em normal sans-serif;
margin:-1.75em 0 1.5em 0;
}
blockquote {
margin:0 0 1.5em 1.5em;
}
article {
background:#fff;
padding:1.5em;
border:1px solid #ccc;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
-moz-box-shadow: 5px 5px 5px #eee;
-webkit-box-shadow: 5px 5px 5px #eee;
box-shadow: 5px 5px 5px #eee;
}
nav {
font-size:0.75em;
text-transform:uppercase;
}
nav ul, nav li {
display:inline;
}
nav a {
background:#fff;
padding:0.5em;
margin:0 0.25em 0 0;
border:1px solid #ddd;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
-moz-box-shadow: 2px 2px 2px #eee;
-webkit-box-shadow: 2px 2px 2px #eee;
box-shadow: 2px 2px 2px #eee;
}
nav a:active {
background:#aaa;
border:1px solid #444;
}
/* Smaller type/div for thinner widths */
@media (max-width: 800px) {
body {
font-size:0.9em;
}
div {
width:700px;
}
img {
max-width:600px;
}
}
@media (max-width: 600px) {
body {
font-size:0.8em;
}
div {
width:480px;
}
img {
max-width:400px;
}
}
/* iPhone and (maybe?) other mobiles */
@media only screen and (max-device-width: 480px) {
div {
width:98%;
margin:0 auto;
font-size:0.8em;
}
img {
max-width:90%;
}
pre, code {
white-space:pre-wrap;
}
}
@media only screen and (max-device-width: 480px) and (orientation: portrait) {
div {
font-size:1.1em;
}
}
/* For those who style ampersands */
.amp {
font-family:Baskerville, Palatino, Constantina, "Palatino Linotype", "Book Antiqua", "URW Bookman L", "Bitstream Vera Serif", serif;
font-style:italic;
}
/* Uncomment this if you want to see ads, digg links etc. in Feedburner feeds */
.feedflare, img[src*="feedads"] {
display:none;
}
</style>
</head>
<body>
<div>
<nav>
$NAVLINKS$
$EDITLINK$
</nav>
$ITEM$
<article class="item $CLASS$">
<header>
<h1><a href="$entry.link$">$feed.title$: $entry.title$</a></h1>
<h2>$entry.date$</h2>
</header>
$entry.summary$
</article>
$/ITEM$
</div>
</body>
</html>
<!-- version 0.1 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment