From 6ae074b724f930171854dc163b18fad04c453b44 Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Mon, 21 Jul 2014 18:20:36 +0200 Subject: [PATCH] Introduce new post loop partial + new multi-author post meta --- assets/css/screen.css | 48 +++++++++++++++++++++++++++++++++++-------- author.hbs | 29 ++++---------------------- index.hbs | 28 ++++--------------------- partials/loop.hbs | 25 ++++++++++++++++++++++ tag.hbs | 31 +++++----------------------- 5 files changed, 78 insertions(+), 83 deletions(-) create mode 100644 partials/loop.hbs diff --git a/assets/css/screen.css b/assets/css/screen.css index 20d69e2..7769171 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -217,7 +217,6 @@ h1 { h2 { font-size: 4.4rem; letter-spacing: -1px; - text-indent: -2px; } h3 { @@ -245,11 +244,6 @@ a:hover { color: #111; } -h1 a, h2 a, h3 a, -h4 a, h5 a, h6 a { - color: #50585D; -} - .post-template .post-title { margin-bottom: 3.4rem; } @@ -672,6 +666,10 @@ margin on the iframe, cause it breaks stuff. */ box-shadow: #FFF 0 0 0 5px; } +body:not(.post-template) .post-title { + font-size: 4rem; +} + .post-title a { text-decoration: none; } @@ -685,13 +683,22 @@ margin on the iframe, cause it breaks stuff. */ } .post-meta { - display: inline-block; - margin: 0 0 5px 0; + display: block; + margin: 2rem 0 0.6rem 0; font-family: "Open Sans", sans-serif; font-size: 1.5rem; + line-height: 2.2rem; color: #9EABB3; } +.author-thumb { + width: 24px; + height: 24px; + float: left; + margin-right: 9px; + border-radius: 100%; +} + .post-meta a { color: #9EABB3; text-decoration: none; @@ -707,6 +714,15 @@ margin on the iframe, cause it breaks stuff. */ min-height: 77px; } +.post-date { + display: inline-block; + margin-left: 8px; + padding-left: 12px; + border-left: #d5dbde 1px solid; + text-transform: uppercase; + font-size: 1.3rem; +} + .user-image { position: absolute; top: 0; @@ -1240,6 +1256,10 @@ margin on the iframe, cause it breaks stuff. */ font-size: 2rem; } + body:not(.post-template) .post-title { + font-size: 3.6rem; + } + } @@ -1290,6 +1310,10 @@ margin on the iframe, cause it breaks stuff. */ font-size: 0.8em } + body:not(.post-template) .post-title { + font-size: 3.2rem; + } + .post-template .post { padding-bottom: 1rem; } @@ -1441,6 +1465,10 @@ margin on the iframe, cause it breaks stuff. */ line-height: 1.55em; } + .post-date { + display: none; + } + .post-template .post-title { margin-bottom: 2rem; } @@ -1493,6 +1521,10 @@ margin on the iframe, cause it breaks stuff. */ font-size: 1.7rem; } + body:not(.post-template) .post-title { + font-size: 2.6rem; + } + .post-template .post { padding-bottom: 0; margin-bottom: 0; diff --git a/author.hbs b/author.hbs index a8a6d52..bfe417b 100644 --- a/author.hbs +++ b/author.hbs @@ -1,9 +1,7 @@ {{!< default}} +{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }} -{{! The comment above "< default" means - insert everything in this file into - the {body} of the default.hbs template, which contains our header/footer. }} - -{{! The big featured header on the homepage, with the site logo and description }} +{{! The big featured header }}