Full refactor

This commit is contained in:
John O'Nolan
2013-08-28 18:41:32 +02:00
committed by Hannah Wolfe
parent 5234629a60
commit 49e774889c
14 changed files with 109 additions and 77 deletions

View File

@ -45,7 +45,7 @@ body {
text-shadow: none;
}
h1, h2, h3
h1, h2, h3,
h4, h5, h6 {
text-rendering: optimizeLegibility;
line-height: 1;
@ -57,12 +57,14 @@ h1 {
font-size: 5rem;
line-height: 1.2em;
letter-spacing: -2px;
text-indent: -3px;
}
h2 {
font-size: 4rem;
line-height: 1.2em;
letter-spacing: -1px;
text-indent: -2px;
}
h3 {
@ -117,15 +119,14 @@ hr {
blockquote {
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 1.6em 0;
padding: 0 1.6em 0 1.6em;
border-left: #4a4a4a 0.6em solid;
margin: 1.6em 0 1.6em -2.2em;
padding: 0 0 0 1.6em;
border-left: #4a4a4a 0.4em solid;
}
blockquote p {
margin:0.8em 0;
font-size:1.2em;
font-weight: 300;
margin: 0.8em 0;
font-style: italic;
}
blockquote small {
@ -170,27 +171,27 @@ mark {
}
code, tt {
padding: 1px 3px;
font-family: Inconsolata, monospace, sans-serif;
font-size: 0.85em;
white-space: pre;
background: #ccc;
border: 1px solid #aaa;
border: 1px solid #E3EDF3;
background: #F7FAFB;
border-radius: 2px;
padding: 1px 3px;
}
pre {
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 1.6em 0;
background: #ccc;
border: 1px solid #aaa;
border: 1px solid #E3EDF3;
width: 100%;
padding: 10px;
font-family: Inconsolata, monospace, sans-serif;
font-size: 0.9em;
white-space: pre;
overflow: auto;
background: #F7FAFB;
border-radius: 3px;
}
@ -282,6 +283,11 @@ table.plain {
margin: 0 auto;
}
.vertical {
display: table-cell;
vertical-align: middle;
}
/* ==========================================================================
1. General
@ -299,37 +305,37 @@ table.plain {
background-size: cover;
}
#blog-icon {
position: absolute;
top: 10px;
left: 10px;
}
#blog-icon img {
height: 40px;
width: 40px;
#blog-logo img {
display: block;
max-height: 100px;
width: auto;
margin: 0 auto;
line-height: 0;
}
.vertical {
display: table-cell;
vertical-align: middle;
}
#site-head .content {
#site-head-content {
width: 80%;
max-width: 700px;
margin: 0 auto;
}
#back {
color: rgba(0,0,0,0.2);
position: fixed;
top: 8px;
left: 8px;
padding: 6px;
font-size: 16px;
}
.blog-title {
margin: 0 0 20px 0;
margin: 10px 0 10px 0;
font-size: 5rem;
letter-spacing: -1px;
}
.blog-description {
margin: 0;
font-size: 1.8rem;
line-height: 1.5em;
font-weight: 300;
@ -337,11 +343,8 @@ table.plain {
letter-spacing: 0;
}
.post-template .content {
padding-top: 120px;
}
.post-template .post {
margin-top: 0;
border-bottom: none;
}
@ -349,6 +352,10 @@ table.plain {
display: none;
}
.post-template .post-header {
padding: 60px 0;
}
.post {
position: relative;
width:80%;
@ -365,7 +372,7 @@ table.plain {
content: "";
width: 7px;
height: 7px;
border: #EBF2F6 1px solid;
border: #E7EEF2 1px solid;
position: absolute;
bottom: -5px;
left: 50%;
@ -386,18 +393,21 @@ table.plain {
}
.post-excerpt p {
margin: 0;
margin: 1.6rem 0 0 0;
font-size: 0.9em;
line-height: 1.6em;
}
.post-content {
.post-content img {
display: block;
max-width: 100%;
margin: 0 auto;
}
.post-meta {
display: inline-block;
margin: 0.8rem 0;
margin: 0 0 5px 0;
font-family: 'Open Sans', sans-serif;
font-size: 1.5rem;
color: #9EABB3;
}
@ -454,6 +464,22 @@ table.plain {
line-height: 1.5em;
}
.pagination {
position: relative;
font-family: 'Open Sans', sans-serif;
text-align: center;
}
.older-posts {
position: absolute;
right: 0;
}
.newer-posts {
position: absolute;
left: 0;
}
.subscribe {
width: 28px;
height: 28px;
@ -488,6 +514,7 @@ table.plain {
margin: 6rem 0 0 0;
padding: 6rem 0;
border-top: #EBF2F6 1px solid;
background: #F7FAFB;
}
.post-footer h4 {
@ -545,7 +572,7 @@ table.plain {
font-style: normal;
}
.icon-feed, .icon-twitter, .icon-google-plus, .icon-facebook {
.icon-feed, .icon-twitter, .icon-google-plus, .icon-facebook, .icon-back {
font-family: 'icons';
speak: none;
font-style: normal;
@ -562,7 +589,6 @@ table.plain {
}
.icon-twitter:before {
content: "\e001";
font-size: 1.1em;
}
.icon-google-plus:before {
content: "\e002";
@ -570,19 +596,15 @@ table.plain {
.icon-facebook:before {
content: "\e003";
}
.icon-home:before {
.icon-back:before {
content: "\e004";
}
.icon-ghost:before {
content: "\e005";
}
@media only screen and (max-width: 900px) {
#ghost {
top: 16px;
right: 16px;
blockquote {
margin-left: 0;
}
#site-head {
@ -591,17 +613,7 @@ table.plain {
box-sizing: border-box;
height: auto;
min-height: 240px;
padding: 25% 0;
}
#blog-icon {
left: 50%;
margin-left: -41px;
}
.home-template #blog-icon {
top: auto;
bottom: -41px;
padding: 15% 0;
}
.blog-title {
@ -623,8 +635,13 @@ table.plain {
padding-bottom: 1rem;
}
.post-template .post-header {
padding: 40px 0;
}
h1 {
font-size: 4.8rem;
text-indent: -2px;
}
h2 {
@ -644,7 +661,13 @@ table.plain {
@media only screen and (max-width: 500px) {
.inner, .pagination {
#blog-logo img {
max-height: 80px;
}
#site-head-content,
.inner,
.pagination {
width: auto;
margin-left: 16px;
margin-right: 16px;
@ -658,9 +681,8 @@ table.plain {
line-height: 1.6em;
}
#site-head .content {
margin: 0 16px;
width: auto;
#site-head {
padding: 10% 0;
}
.blog-title {
@ -690,6 +712,14 @@ table.plain {
padding-bottom: 0;
}
.post-template .post-header {
padding: 30px 0;
}
.post-meta {
font-size: 1.3rem;
}
.post-footer {
padding: 4rem 0;
text-align: center;