
part 2 : sidebar
By:
sunkei on
Feb 26th, 2012 | syntax:
None | size: 1.72 KB | hits: 452 | expires: Never
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<meta name="color:Background" content="#eee" />
<meta name="image:Background" content="http://static.tumblr.com/..."/>
<meta name="color:SideBG" content="#fff" />
<meta name="image:SidePic" content="http://static.tumblr.com/..."/>
<meta name="color:Description" content="#777" />
</head>
<style type="text/css">
body
{font-family:arial;
background-color:{color:Background};
background-image:url('{image:Background}');
background-position: fixed;
background-attachment:fixed;
background-repeat:repeat;}
a
{text-decoration:none;}
#sidebar
{position:fixed;
top:100px;
left:150px;
width:200px;
padding:10px;
font-family:consolas;
font-size:10px;
background-color:{color:SideBG};}
.button
{float:left;
text-transform:uppercase;
letter-spacing:2px;
background-color:#000;
color:#fff;
margin:2px 2px 2px 0px;
padding:0px 5px 0px 5px;}
#description
{width:200px;
max-height:150px;
margin-top:10px;
overflow:auto;
color:{color:Description};}
</style>
</head>
<body>
<div id="sidebar">
<img src="{image:SidePic}"/>
<div>
<a href="/"><div class="button">home</div></a>
<a href="/ask"><div class="button">ask</div></a>
<a href="/archive"><div class="button">archive</div></a>
</div>
<div id="description">{Description}</div>
</div>
</body>
</html>