purelog-theme-hyde
Version:
Hyde的主题
352 lines (305 loc) • 5.98 kB
CSS
/*
__ __
/\ \ /\ \
\ \ \___ __ __ \_\ \ __
\ \ _ `\/\ \/\ \ /'_` \ /'__`\
\ \ \ \ \ \ \_\ \/\ \_\ \/\ __/
\ \_\ \_\/`____ \ \___,_\ \____\
\/_/\/_/`/___/> \/__,_ /\/____/
/\___/
\/__/
Hyde is an elegant, open source, mobile first theme for Jekyll. It includes
lightweight styles and placeholder content to get you up and running with a
simple blog in no time.
Designed, built, and released under MIT license by @mdo.
Learn more at http://andhyde.com or https://github.com/mdo/hyde.
*/
/* Body resets
-------------------------------------------------- */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: "Open Sans", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
color: #454441;
background-color: #fff;
}
h1, h2, h3, h4, h5, h6 {
margin: 0 0 10px;
font-weight: 500;
line-height: 1.25;
text-rendering: optimizeLegibility;
}
h1 {
font-size: 40px;
}
h2 {
margin-top: 20px;
font-size: 32px;
}
h3 {
margin-top: 24px;
font-size: 24px;
}
h4, h5, h6 {
margin-top: 16px;
font-size: 16px;
}
p {
margin: 0 0 15px;
}
ul, ol {
padding: 0;
margin: 0 0 15px;
}
li {
color: #888580;
}
hr {
position: relative;
margin: 40px 0;
border: 0;
border-top: 1px solid #eee;
border-bottom: 1px solid #fff;
}
strong {
color: #222;
}
abbr {
background-color: #eee;
display: inline-block;
padding: 3px;
font-size: 13px;
font-weight: bold;
color: #555;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
text-transform: uppercase;
border-radius: 3px;
}
code, pre {
padding: 0 3px 2px;
font-family: Menlo, Monaco, "Courier New", monospace;
font-size: 14px;
border-radius: 3px;
}
code {
padding: 2px 4px;
color: #d14;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
pre {
display: block;
margin: 0 0 14px;
padding: 15px 20px;
line-height: 28px;
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
background-color: #eee;
}
pre code {
padding: 0;
color: inherit;
background-color: transparent;
border: 0;
}
.highlight {
margin-bottom: 15px;
padding: 15px;
border-radius: 5px;
}
.highlight pre {
margin-bottom: 0;
}
/* Quotes */
blockquote {
padding: 0 0 0 20px;
margin: 15px 30px 15px 0;
border-left: 5px solid #eee;
}
blockquote p {
margin-bottom: 0;
color: #7a7a7a;
text-indent: -0.4em;
}
blockquote p:before {
content: '\201C';
}
blockquote p:after {
content: '\201D';
}
img {
display: block;
margin: 0 0 15px;
border-radius: 5px;
}
/* Links
-------------------------------------------------- */
a {
font-weight: 600;
color: #222;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Scaffolding
-------------------------------------------------- */
/* Header */
.masthead {
color: #fff;
background-color: #2a2a2a;
}
.masthead-inner {
padding: 20px;
}
.masthead h1 {
margin-top: 0;
font-family: "Abril Fatface";
}
.masthead .lead {
font-size: 20px;
font-weight: 300;
margin-bottom: 0;
}
.masthead a {
color: #fff;
}
/* Footer area of masthead */
.colophon {
margin-top: 20px;
color: #7a7a7a;
}
.colophon-links {
margin: 0 0 15px;
list-style: none;
}
/* Posts
-------------------------------------------------- */
/* Wrapper for all posts on homepage */
.posts {
margin-left: 20px;
margin-right: 20px;
}
/* Single post */
.post {
margin-top: 40px;
margin-bottom: 40px;
}
.post-date {
display: block;
margin: -10px 0 10px;
color: #9a9a9a;
}
/* Pagination
-------------------------------------------------- */
.pagination {
overflow: hidden; /* clearfix */
margin-top: 40px;
font-weight: bold;
color: #ccc;
text-align: center;
border-top: 1px solid #eee;
}
.pagination a,
.pagination span {
float: left;
width: 50%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 20px;
}
.pagination a:first-child,
.pagination span:first-child {
border-right: 1px solid #eee;
}
.pagination a:hover {
text-decoration: none;
background-color: #f5f5f5;
}
/* Responsive
-------------------------------------------------- */
@media (min-width: 768px) {
.masthead-inner {
padding: 40px;
}
.posts {
margin-left: 40px;
margin-right: 40px;
}
}
@media (min-width: 990px) {
body {
font-size: 18px;
}
.masthead h1 {
font-size: 64px;
}
/* Center container in available real estate */
.container {
margin-left: 35%;
margin-right: 10%;
width: 55%;
}
/* Fix the masthead to the side for impact and awesomeness */
.masthead {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 25%;
margin-bottom: 0;
}
.masthead-inner {
position: absolute;
bottom: 0;
right: 0;
left: 0;
}
.masthead .lead {
font-size: 24px;
}
.colophon {
margin-top: 40px;
}
/* Remove mobile device padding from list of posts */
.posts {
margin-left: 0;
margin-right: 0;
}
/* Increase space between posts */
.post {
margin-top: 60px;
margin-bottom: 60px;
}
/* Make pagination stand alone */
.pagination {
margin-bottom: 60px;
border: 1px solid #eee;
}
}
/*附加*/
.poweredby {
font-size: 13px;
margin: 5px 0 0 0;
color: #555;
}
.not_found{
text-align: center;
margin-top: 10%;
}
.not_found h1{
font-size: 15em;
}