Created
January 1, 2014 05:13
-
-
Save lixiaoyan/8205294 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8" /> | |
{block:Description} | |
<meta name="description" content="{MetaDescription}" /> | |
{/block:Description} | |
<link rel="alternate" type="application/rss+xml" href="{RSS}" /> | |
<title>{Title}</title> | |
<script src="//use.edgefonts.net/cooper-black-std.js"></script> | |
<style> | |
* | |
{ | |
margin: 0; | |
padding: 0; | |
} | |
body | |
{ | |
font-size: 16px; | |
line-height: 1.6; | |
background-color: #002; | |
margin: 10px 0; | |
text-shadow: 1px 1px 3px #000; | |
} | |
.line | |
{ | |
display: block; | |
height: 1px; | |
margin: 10px 0; | |
background-color: #235; | |
box-shadow: 1px 1px 3px #000; | |
} | |
#wrap | |
{ | |
width: 760px; | |
margin: 0 auto; | |
} | |
#header | |
{ | |
position: relative; | |
width: 720px; | |
margin: 10px auto; | |
} | |
#title | |
{ | |
font-family: cooper-black-std; | |
font-size: 48px; | |
color: #fff; | |
display: inline-block; | |
text-decoration: none; | |
transition: all 1s; | |
} | |
#title:before | |
{ | |
content: "{"; | |
color: #09f; | |
} | |
#title:after | |
{ | |
content: "}"; | |
color: #09f; | |
} | |
#title:hover | |
{ | |
text-shadow: 0 0 20px #f0f; | |
} | |
#description | |
{ | |
color: #336; | |
display: inline-block; | |
margin-left: 20px; | |
} | |
#description:before | |
{ | |
content: "// "; | |
} | |
#search | |
{ | |
position: absolute; | |
right: 0; | |
top: 50%; | |
margin-top: -16px; | |
height: 32px; | |
} | |
#search input | |
{ | |
font-size: 12px; | |
line-height: 20px; | |
height: 20px; | |
width: 60px; | |
padding: 5px; | |
border: 1px solid #666; | |
border-radius: 3px; | |
display: block; | |
transition: all 0.5s; | |
} | |
#search input:focus | |
{ | |
outline: none; | |
box-shadow: 0 0 10px #f90; | |
border: 1px solid #f90; | |
width: 160px; | |
} | |
#nav | |
{ | |
width: 720px; | |
margin: 10px auto; | |
} | |
#footer | |
{ | |
width: 720px; | |
margin: 10px auto; | |
color: #666; | |
text-align: center; | |
font-family: Arial; | |
} | |
.post | |
{ | |
width: 600px; | |
margin: 45px auto; | |
border: 2px solid #ccc; | |
border-radius: 10px; | |
color: #fff; | |
background-color: rgba(204,204,204,0.2); | |
box-shadow: 3px 3px 10px #000; | |
} | |
.post .title | |
{ | |
border-bottom: 2px solid #ccc; | |
font-size: 32px; | |
font-weight: bold; | |
padding: 5px 20px; | |
} | |
.post .title:before | |
{ | |
content: "# "; | |
color: #f0f; | |
} | |
.post .content | |
{ | |
padding: 10px 20px; | |
overflow: hidden; | |
text-shadow: 1px 1px 3px rgba(0,0,0,0.5); | |
} | |
.post .content a | |
{ | |
color: #0f0; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="wrap"> | |
<div id="header"> | |
<a href="/" id="title">{Title}</a> | |
{block:Description} | |
<span id="description">{Description}</span> | |
{/block:Description} | |
<div id="search"> | |
<form action="/search" method="get"> | |
<input type="text" name="q" value="{SearchQuery}" placeholder="搜索..." /> | |
</form> | |
</div> | |
</div> | |
<div class="line"></div> | |
{block:Posts} | |
<div class="post"> | |
{block:Text} | |
{block:Title} | |
<div class="title">{Title}</div> | |
{/block:Title} | |
<div class="content">{Body}</div> | |
{/block:Text} | |
</div> | |
{/block:Posts} | |
<div class="line"></div> | |
<div id="footer">©{CopyrightYears} {Title}</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment