toosolo
Version:
基于Node.js的静态博客程序
372 lines (370 loc) • 6.76 kB
CSS
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
color: #888;
-webkit-transition:color .5s;
}
a:hover {
color:#37B8FF;
}
ul {
list-style: none;
}
@font-face {
font-family: "HUL";
src: url("../fonts/HelveticaUltraLight.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
body {
background: #F9F9F9;
color: #888;
min-width: 960px;
margin: 0 100px;
}
header {
font-family: "HUL", "microsoft yahei";
padding: 20px 20px 10px 20px;
box-shadow: 0 1px #37B8FF;
/*border-bottom: 1px solid #dddddd;*/
}
header #logo {
font-size: 48px;
text-shadow: 1px 1px #eee;
display: inline-block;
}
header #logo .subTitle{
font-size: 24px;
padding-left: 30px;
}
header nav {
float: right;
text-align: right;
display: inline-block;
}
header nav ul {
display: inline-block;
}
header nav ul li {
display: inline-block;
font-size: 30px;
height: 50px;
overflow: hidden;
}
header nav ul li a {
position: relative;
width: 100px;
line-height: 50px;
display: block;
text-align: center;
-webkit-transition: color .5s;
-webkit-transition: top .5s;
}
header nav ul li a:hover {
top: -50px;
/*text-shadow: 1px 1px 3px #ccc;*/
color: #37B8FF;
}
#sidebar {
float: left;
width: 240px;
font-size: 14px;
line-height: 1.5em;
margin:25px 10px 0 0;
/*background: #f0f0f0;*/
text-shadow:1px 1px #e9e9e9;
position:-webkit-sticky;
}
#sidebar .sideTitle{
padding: 10px 20px;
background: #ddd;
color: #37B8FF;
font-size: 18px;
}
#sidebar .sideContent{
background: #f0f0f0;
padding: 20px;
}
#sidebar p {
margin-bottom: 10px;
}
#sidebar p.avatar {
text-align: center;
}
#sidebar p.avatar img{
border:1px solid #ddd;
padding:1px;
}
#sidebar p a{
margin-right: 10px;
}
#content {
margin-left: 250px;
/*border-left: 1px solid #dddddd;*/
color: #555;
/*background: #fff;*/
padding: 0 20px;
margin-top: 25px;
}
#content .indexarticle {
margin-bottom: 30px;
padding-bottom: 30px;
border-bottom: 1px solid #dddddd;
}
#content #article {
font-size: 14px;
line-height: 2em;
letter-spacing: 0.1em;
}
#content #article p {
text-indent: 2.2em;
}
#content #article h1 {
padding-left: 20px;
border-left: 3px solid #37B8FF;
}
#content #article h1 a:link {
border: 0 none;
}
#content #article h1 .pubDate{
float: right;
font-size: 18px;
line-height: 30px;
color: #888;
}
#content #article h3 {
background: #CCC;
margin: 20px 0;
padding: 0 20px;
border-left: 2px solid #490;
}
#content #article .articlemore {
text-align: right;
}
#content #article .articlemore a:link {
display: inline-block;
padding: 5px 20px;
border: 0 none;
border-left: 2px solid #0099ff;
}
#content #article .articlemore a:link:hover {
color: #0099ff;
}
#content #article #pagination {
text-align: right;
}
#content #article #pagination a {
display: inline-block;
padding: 5px 15px;
border: 1px solid #dddddd;
}
#content #article button,
#content #article input,
#content #article select,
#content #article textarea {
font: 500 14px/1.8 'Hiragino Sans GB', sans-serif;
}
#content #article table {
border-collapse: collapse;
border-spacing: 0;
}
#content #article fieldset,
#content #article img {
border: 0;
}
#content #article blockquote {
margin: 1em 4em 1em 2em;
padding: 0.6em 1em;
background: #f1f1f1;
}
#content #article blockquote blockquote {
padding: 0 0 0 1em;
margin-left: 2em;
border-left: 0.4em solid #ddd;
}
#content #article acronym,
#content #article abbr {
border-bottom: 1px dotted;
font-variant: normal;
}
#content #article abbr {
cursor: help;
}
#content #article del {
text-decoration: line-through;
}
#content #article address,
#content #article caption,
#content #article cite,
#content #article code,
#content #article den,
#content #article em,
#content #article th,
#content #article var {
font-style: normal;
font-weight: 500;
}
#content #article ul,
#content #article ol {
list-style: none;
}
#content #article caption,
#content #article th {
text-align: left;
}
#content #article q:before,
#content #article q:after {
content: '';
}
#content #article sub,
#content #article sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: text-top\9;
}
#content #article :root sub,
#content #article :root sup {
vertical-align: baseline;
/* for ie9 and other mordern browsers */
}
#content #article sup {
top: -0.5em;
}
#content #article sub {
bottom: -0.25em;
}
#content #article a:hover {
text-decoration: underline;
}
#content #article ins,
#content #article a {
text-decoration: none;
}
#content #article a:link {
border-bottom: 1px dashed;
padding-bottom: 3px;
}
#content #article a:hover {
text-decoration: none;
color: #0099ff;
}
#content #article u,
#content #article .typo-u {
text-decoration: underline;
}
#content #article mark {
background: #fffdd1;
}
#content #article pre,
#content #article code {
font-family: "Courier New", Courier, monospace;
}
#content #article pre {
border: 1px solid #ddd;
background: #000;
padding: 10px;
margin-left: 2.2em;
}
#content #article small {
font-size: 12px;
color: #888;
}
#content #article .clearfix:before,
#content #article .clearfix:after {
content: "";
display: table;
}
#content #article .clearfix:after {
clear: both;
}
#content #article .clearfix {
zoom: 1;
}
#content #article p,
#content #article pre,
#content #article ul,
#content #article ol,
#content #article dl,
#content #article form,
#content #article hr,
#content #article table {
margin-bottom: 1em;
}
#content #article h1,
#content #article h2,
#content #article h3,
#content #article h4,
#content #article h5,
#content #article h6 {
font-weight: 500;
font-weight: 800\9;
color: #333;
}
#content #article h1,
#content #article h2,
#content #article h3,
#content #article h4,
#content #article h5,
#content #article h6 {
margin-bottom: 0.4em;
line-height: 1.5;
}
#content #article h1 {
font-size: 1.8em;
}
#content #article h2 {
font-size: 1.6em;
}
#content #article h3 {
font-size: 1.4em;
}
#content #article h4 {
font-size: 1.2em;
}
#content #article h5,
#content #article h6 {
font-size: 1em;
}
#content #article ul {
margin-left: 1.3em;
list-style: disc;
list-style-position: inside;
}
#content #article ol {
list-style: decimal;
list-style-position: inside;
margin-left: 1.9em;
}
#content #article li ul,
#content #article li ol {
margin-top: 0;
margin-bottom: 0;
margin-left: 2em;
}
#content #article li ul {
list-style: circle;
}
#content #article table th,
#content #article table td {
border: 1px solid #ddd;
padding: 5px 10px;
}
#content #article table th {
background: #fbfbfb;
}
#content #article table thead th {
background: #f1f1f1;
}
#content #article em {
font-weight: 700;
}
#foot {
font-size: 12px;
text-align: center;
/*border-top: 1px solid #dddddd;*/
padding: 50px 0 20px 0;
}