1
0
Fork 0
jekyll-diary/styles.css

219 lines
4.2 KiB
CSS

@import url(http://fonts.googleapis.com/css?family=Lato:400,700,900,400italic,700italic,900italic);
/* Reset.css */ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
/* Stuff under public domain: */
*, *:before, *:after {
box-sizing: border-box;
}
*:focus {
outline: none;
}
body {
line-height: 1.35em;
/*line-height: 1em;*/
font-size: 20px;
font-family: "Lato", "Helvetica Neue", sans-serif;
background-color: #fff;
color: #444;
margin: 0 auto;
max-width: 680px;
padding: 20px;
min-width: 240px;
-webkit-font-smoothing: antialiased;
}
a {
color: inherit;
text-decoration: inherit;
box-shadow: 0 10px 0 -8px #444;/*
box-shadow: 0 12px 0 -10px #444;*/
text-shadow:
1px 0 #fff, 0 1px #fff, -1px 0 #fff, 0 -1px #fff;/*,
1px 1px #fff, -1px 1px #fff, -1px 1px #fff, -1px -1px #fff*/
-webkit-transition: 0.5s box-shadow;
}
a:hover, a:focus {
box-shadow: 0 2px 0 0 #444;
}
.btn {
color: #444;
line-height: 1em;
color: inherit;
text-decoration: none;
display: inline-block;/*
margin: 1em;*/
border-radius: 4px;
background-color: #fff;
box-shadow: 0 0 0 0 #444 inset, 0.3em 0.2em 0 0 #bbb;
border: 0.2em solid #444;
padding: 0.8em;
text-align: center;
transition: 0.25s box-shadow, 0.25s -webkit-transform;
text-shadow: none;
}
.btn {
padding: 0.7em;
}
.btn:hover {
box-shadow: 0 4em 0 0 #444 inset, 0em 0em 0 0 #bbb;
-webkit-transform: translate(0.3em, 0.2em);
color: #fff;
}
.btn.disabled {
opacity: 0.8;
}
.btn.disabled:hover {
box-shadow: 0 0 0 0 #444 inset, 0.3em 0.2em 0 0 #bbb;
-webkit-transform: translate(0, 0);
color: #444;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 900;
line-height: 1.4em;
padding: 0.666em 0 0.444em 0;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.7em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.4em;
}
h5 {
font-size: 1.3em;
}
h6 {
font-size: 1.2em;
}
p {
padding: 8px 0;
}
small {
font-size: 0.8em;
line-height: 1.35em;
}
ol, ul {
list-style: decimal;
padding: 10px 30px;
}
ul {
list-style: disc;
}
hr {
/*height: 2px;*/
margin: 40px auto;
max-width: 180px;
border: none;
/*background-color: #444;*/
border-bottom: 2px solid #444;
}
pre, code {
font-family: "Monaco";
background-color: #eee;
border: 1px solid #ddd;
font-size: 0.8em;
line-height: 1.3em;
padding: 0 2px;
border-radius: 2px;
}
pre {
background-color: #eee;
border: 1px solid #ddd;
padding: 10px;
margin: 10px;
word-wrap: break-word;
}
pre > code {
border: none;
background-color: transparent;
}
strong {
font-weight: 700;
}
em {
font-style: italic;
}
blockquote {
padding: 30px;
font-style: italic;
}
img {
width: 100%;
border-radius: 4px;
}
table {
margin: 20px;
}
th, td {
padding: 1px 12px;
}
th {
font-weight: 700;
}
article {
padding: 1.5em 0;
}
article .content {
padding-left: 70px;
word-wrap: break-word;
}
article h1 {
padding: 0;
margin-left: -14px;
margin-bottom: -15px;
}
article h1 * {
vertical-align: top;
line-height: 1em;
padding: 4px;
display: inline-block;
}
article h1 *:nth-child(1) {
font-size: 1.5em;
margin-top: -5px;
}
article h1 *:nth-child(2) {
font-size: 0.7em;
}
article h1 *:nth-child(3) {
font-size: 0.7em;
}
article h1 *:nth-child(4) {
/*margin-top: 10px;*/
font-size: 0.25em;
box-shadow: none;
float: right;
}
article h1 *:nth-child(4):hover {
box-shadow: none;
}
header {
font-size: 0.8em;
}
header h1, header h2 {
padding: 0.3em 0em;
}
nav {
padding: 2em;
font-size: 20px;
text-align: center;
}
nav .page_number {
display: inline-block;
margin: 0.74em;
}
nav .previous {
float: left;
}
nav .next {
float: right;
}