Fix inconsistencies between archive header vs home header

This commit is contained in:
John O'Nolan 2014-04-15 13:27:36 +02:00
parent 213db8aa97
commit 8a2edd67b0
2 changed files with 8 additions and 29 deletions

View File

@ -741,27 +741,14 @@ margin on the iframe, cause it breaks stuff. */
6. Tag archive 6. Tag archive
========================================================================== */ ========================================================================== */
.archive-template .site-head {
height: auto;
padding-bottom: 5rem;
}
.archive-template .site-head a {
color: #fff;
}
.archive-template .blog-logo {
display: block;
margin-top: 5rem;
}
.tag-archive-header { .tag-archive-header {
padding: 20px 0; position: relative;
text-align: center;
max-width: 700px; max-width: 700px;
margin: 4rem auto; margin: 4rem auto;
border-bottom: 1px solid #EBF2F6; border-bottom: 1px solid #EBF2F6;
position: relative; padding: 20px 0;
text-align: center;
color: #222;
} }
.tag-archive-header:after { .tag-archive-header:after {
@ -781,10 +768,6 @@ margin on the iframe, cause it breaks stuff. */
box-shadow: #fff 0 0 0 5px; box-shadow: #fff 0 0 0 5px;
} }
.archive-template .blog-title {
display: inline-block;
padding: 2.5rem 0;
}
/* ========================================================================== /* ==========================================================================
7. Third Party Elements - Embeds from other services 7. Third Party Elements - Embeds from other services

12
tag.hbs
View File

@ -7,11 +7,7 @@
<header class="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}> <header class="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
<div class="vertical"> <div class="vertical">
<div class="site-head-content inner"> <div class="site-head-content inner">
<a class="blog-logo" href="{{@blog.url}}"> {{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
{{#if @blog.logo}}
<img src="{{@blog.logo}}" alt="Blog Logo" />
{{/if}}
</a>
<h1 class="blog-title">{{@blog.title}}</h1> <h1 class="blog-title">{{@blog.title}}</h1>
<h2 class="blog-description">{{@blog.description}}</h2> <h2 class="blog-description">{{@blog.description}}</h2>
</div> </div>
@ -21,9 +17,9 @@
{{! The main content area on the homepage }} {{! The main content area on the homepage }}
<main class="content" role="main"> <main class="content" role="main">
<header class="tag-archive-header"> <header class="tag-archive-header">
<h1>{{tag.name}}</h1> <h1>{{tag.name}}</h1>
</header> </header>
{{! Each post will be output using this markup }} {{! Each post will be output using this markup }}
{{#foreach posts}} {{#foreach posts}}