mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2024-11-14 04:18:04 +00:00
Updating nav styles
This commit is contained in:
parent
c516c10383
commit
243192f0d9
@ -1,4 +1,4 @@
|
|||||||
==========================================================================
|
/* ==========================================================================
|
||||||
Table of Contents
|
Table of Contents
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
@ -516,10 +516,10 @@ body.nav-opened .site-wrapper {
|
|||||||
|
|
||||||
/* Navigation */
|
/* Navigation */
|
||||||
body.nav-opened .nav-cover {
|
body.nav-opened .nav-cover {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 240px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
}
|
}
|
||||||
@ -531,7 +531,7 @@ body.nav-opened .nav-cover {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
width: 240px;
|
width: 240px;
|
||||||
background: #2E2E2E;
|
background: #111;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@ -540,9 +540,9 @@ body.nav-opened .nav-cover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body.nav-closed .nav {
|
body.nav-closed .nav {
|
||||||
-webkit-transform: translate3D(100px, 0, 0);
|
-webkit-transform: translate3D(97px, 0, 0);
|
||||||
-ms-transform: translate3D(100px, 0, 0);
|
-ms-transform: translate3D(97px, 0, 0);
|
||||||
transform: translate3D(100px, 0, 0);
|
transform: translate3D(97px, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.nav-opened .nav {
|
body.nav-opened .nav {
|
||||||
@ -551,13 +551,24 @@ body.nav-opened .nav {
|
|||||||
transform: translate3D(0, 0, 0);
|
transform: translate3D(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
a.nav-close {
|
.nav-title {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 15px;
|
top: 45px;
|
||||||
right: 15px;
|
left: 30px;
|
||||||
width: 30px;
|
font-size: 16px;
|
||||||
height: 30px;
|
font-weight: 100;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-close {
|
||||||
|
position: absolute;
|
||||||
|
top: 38px;
|
||||||
|
right: 25px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-close:focus {
|
.nav-close:focus {
|
||||||
@ -569,7 +580,7 @@ a.nav-close {
|
|||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 30px;
|
width: 20px;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: rgb(150,150,150);
|
background: rgb(150,150,150);
|
||||||
top: 15px;
|
top: 15px;
|
||||||
@ -595,21 +606,51 @@ a.nav-close {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nav ul {
|
.nav ul {
|
||||||
padding: 50px 9% 5%;
|
padding: 90px 9% 5%;
|
||||||
|
list-style: none;
|
||||||
|
counter-reset: item;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav li:before {
|
||||||
|
display: block;
|
||||||
|
float: right;
|
||||||
|
padding-right: 4%;
|
||||||
|
padding-left: 5px;
|
||||||
|
text-align: right;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
vertical-align: bottom;
|
||||||
|
color: #B8B8B8;
|
||||||
|
content: counter(item, lower-roman);
|
||||||
|
counter-increment: item;
|
||||||
}
|
}
|
||||||
.nav li {
|
.nav li {
|
||||||
list-style: none;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.nav li a {
|
.nav li a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-family: "Open Sans", sans-serif;
|
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
font-size: 1.5rem;
|
font-size: 1.4rem;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0.6rem 4%;
|
padding: 0.6rem 4%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
.nav li a:after {
|
||||||
|
display: inline-block;
|
||||||
|
content: " .......................................................";
|
||||||
|
color: rgba(255,255,255,0.2);
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
.nav .nav-current:before {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.nav .nav-current a:after {
|
||||||
|
content: " ";
|
||||||
|
border-bottom: rgba(255,255,255,0.5) 1px solid;
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
.nav a:link,
|
.nav a:link,
|
||||||
.nav a:visited {
|
.nav a:visited {
|
||||||
color: #B8B8B8;
|
color: #B8B8B8;
|
||||||
@ -622,6 +663,34 @@ a.nav-close {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.subscribe-button {
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 30px;
|
||||||
|
left: 30px;
|
||||||
|
right: 30px;
|
||||||
|
height: 38px;
|
||||||
|
padding: 0 20px;
|
||||||
|
color: #111 !important;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: "Open Sans", sans-serif;
|
||||||
|
text-transform: uppercase;
|
||||||
|
text-decoration: none;
|
||||||
|
line-height: 35px;
|
||||||
|
border-radius: 3px;
|
||||||
|
background: #fff;
|
||||||
|
transition: all ease 0.3s;
|
||||||
|
}
|
||||||
|
.subscribe-button:before {
|
||||||
|
font-size: 9px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Create a bouncing scroll-down arrow on homepage with cover image */
|
/* Create a bouncing scroll-down arrow on homepage with cover image */
|
||||||
.scroll-down {
|
.scroll-down {
|
||||||
display: block;
|
display: block;
|
||||||
@ -691,32 +760,6 @@ a.nav-close {
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-button {
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
display: inline-block;
|
|
||||||
float: left;
|
|
||||||
height: 38px;
|
|
||||||
padding: 0 15px 0 10px;
|
|
||||||
border: transparent 1px solid;
|
|
||||||
color: #9EABB3;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 12px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
line-height: 35px;
|
|
||||||
border-radius: 3px;
|
|
||||||
background: rgba(0,0,0,0.1);
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
.back-button:before {
|
|
||||||
position: relative;
|
|
||||||
bottom: -2px;
|
|
||||||
font-size: 13px;
|
|
||||||
line-height: 0;
|
|
||||||
margin-right: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-button {
|
.menu-button {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
@ -724,8 +767,9 @@ a.nav-close {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: right;
|
float: right;
|
||||||
height: 38px;
|
height: 38px;
|
||||||
padding: 0 20px;
|
padding: 0 15px;
|
||||||
border: transparent 1px solid;
|
border: #bfc8cd 1px solid;
|
||||||
|
opacity: 1;
|
||||||
color: #9EABB3;
|
color: #9EABB3;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@ -734,18 +778,29 @@ a.nav-close {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background: rgba(0,0,0,0.1);
|
background: rgba(0,0,0,0.1);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.6s ease;
|
||||||
}
|
}
|
||||||
.menu-button:focus {
|
.menu-button:focus {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
.menu-button span {
|
.menu-button .burger {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.nav-opened .menu-button {
|
body.nav-opened .menu-button {
|
||||||
|
padding: 0 12px;
|
||||||
|
background: #111 !important;
|
||||||
|
border-color: #111 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
-webkit-transform: translate3D(94px, 0, 0);
|
||||||
|
-ms-transform: translate3D(94px, 0, 0);
|
||||||
|
transform: translate3D(94px, 0, 0);
|
||||||
|
transition: all 0.4s ease;
|
||||||
|
}
|
||||||
|
body.nav-opened .menu-button .word {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Special styles when overlaid on an image*/
|
/* Special styles when overlaid on an image*/
|
||||||
@ -759,7 +814,6 @@ body.nav-opened .menu-button {
|
|||||||
background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 100%);
|
background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%,rgba(0,0,0,0) 100%);
|
||||||
}
|
}
|
||||||
.no-cover .main-nav.overlay,
|
.no-cover .main-nav.overlay,
|
||||||
.no-cover .back-button,
|
|
||||||
.no-cover .menu-button {
|
.no-cover .menu-button {
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
@ -768,7 +822,6 @@ body.nav-opened .menu-button {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-nav.overlay .back-button,
|
|
||||||
.main-nav.overlay .menu-button {
|
.main-nav.overlay .menu-button {
|
||||||
border-color: rgba(255,255,255,0.6);
|
border-color: rgba(255,255,255,0.6);
|
||||||
}
|
}
|
||||||
@ -777,14 +830,12 @@ body.nav-opened .menu-button {
|
|||||||
color: #222;
|
color: #222;
|
||||||
border-color: #fff;
|
border-color: #fff;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
transition: all 0.1s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add a border to the buttons on hover */
|
/* Add a border to the buttons on hover */
|
||||||
.back-button:hover,
|
|
||||||
.menu-button:hover {
|
.menu-button:hover {
|
||||||
border-color: #bfc8cd;
|
border-color: #555;
|
||||||
color: #9EABB3;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The details of your blog. Defined in ghost/settings/ */
|
/* The details of your blog. Defined in ghost/settings/ */
|
||||||
@ -821,7 +872,6 @@ body.nav-opened .menu-button {
|
|||||||
color: rgba(0,0,0,0.5);
|
color: rgba(0,0,0,0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-cover .main-nav.overlay .back-button,
|
|
||||||
.no-cover .main-nav.overlay .menu-button {
|
.no-cover .main-nav.overlay .menu-button {
|
||||||
color: rgba(0,0,0,0.4);
|
color: rgba(0,0,0,0.4);
|
||||||
border-color: rgba(0,0,0,0.3);
|
border-color: rgba(0,0,0,0.3);
|
||||||
@ -1387,10 +1437,6 @@ body:not(.post-template) .post-title {
|
|||||||
|
|
||||||
@media only screen and (max-width: 900px) {
|
@media only screen and (max-width: 900px) {
|
||||||
|
|
||||||
.main-nav {
|
|
||||||
padding: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
@ -1527,40 +1573,33 @@ body:not(.post-template) .post-title {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main-nav {
|
.main-nav {
|
||||||
padding: 0;
|
padding: 5px;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
border-bottom: #e0e4e7 1px solid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-logo {
|
.blog-logo {
|
||||||
padding: 10px 10px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-logo img {
|
.blog-logo img {
|
||||||
height: 26px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-button,
|
|
||||||
.menu-button {
|
.menu-button {
|
||||||
height: 44px;
|
padding: 0 5px;
|
||||||
line-height: 41px;
|
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
border-color: transparent;
|
||||||
color: #2e2e2e;
|
color: #2e2e2e;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
.back-button:hover,
|
|
||||||
.menu-button:hover {
|
.menu-button:hover {
|
||||||
border-color: #ebeef0;
|
|
||||||
color: #2e2e2e;
|
color: #2e2e2e;
|
||||||
background: #ebeef0;
|
border-color: transparent;
|
||||||
|
background: none;
|
||||||
}
|
}
|
||||||
|
body.nav-opened .menu-button {
|
||||||
.back-button {
|
background: none !important;
|
||||||
padding: 0 15px 0 10px;
|
border: transparent !important;
|
||||||
}
|
|
||||||
|
|
||||||
.menu-button {
|
|
||||||
padding: 0 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-nav.overlay a:hover {
|
.main-nav.overlay a:hover {
|
||||||
@ -1572,18 +1611,26 @@ body:not(.post-template) .post-title {
|
|||||||
.no-cover .main-nav.overlay {
|
.no-cover .main-nav.overlay {
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
.no-cover .main-nav.overlay .back-button,
|
|
||||||
.no-cover .main-nav.overlay .menu-button {
|
.no-cover .main-nav.overlay .menu-button {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-nav.overlay .back-button,
|
|
||||||
.main-nav.overlay .menu-button {
|
.main-nav.overlay .menu-button {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-logo img {
|
.nav-title {
|
||||||
max-height: 80px;
|
top: 25px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-close {
|
||||||
|
position: absolute;
|
||||||
|
top: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav ul {
|
||||||
|
padding: 60px 9% 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inner,
|
.inner,
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
{{#author}}
|
{{#author}}
|
||||||
<header class="main-header author-head {{#if cover}}" style="background-image: url({{cover}}){{else}}no-cover{{/if}}">
|
<header class="main-header author-head {{#if cover}}" style="background-image: url({{cover}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav overlay clearfix">
|
<nav class="main-nav overlay clearfix">
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
{{#if ../navigation}}
|
{{#if ../navigation}}
|
||||||
<a class="menu-button" href="#"><span>☰</span>Menu</a>
|
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="{{body_class}} nav-closed">
|
<body class="{{body_class}} nav-closed">
|
||||||
|
|
||||||
|
|
||||||
{{navigation}}
|
{{navigation}}
|
||||||
|
|
||||||
<div class="site-wrapper">
|
<div class="site-wrapper">
|
||||||
@ -36,7 +35,6 @@
|
|||||||
<section class="poweredby">Proudly published with <a href="https://ghost.org">Ghost</a></section>
|
<section class="poweredby">Proudly published with <a href="https://ghost.org">Ghost</a></section>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<span class="nav-cover"></span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{! Ghost outputs important scripts and data with this tag }}
|
{{! Ghost outputs important scripts and data with this tag }}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<nav class="main-nav overlay clearfix">
|
<nav class="main-nav overlay clearfix">
|
||||||
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
{{#if navigation}}
|
{{#if navigation}}
|
||||||
<a class="menu-button" href="#"><span>☰</span>Menu</a>
|
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
<div class="vertical">
|
<div class="vertical">
|
||||||
|
7
page.hbs
7
page.hbs
@ -8,17 +8,15 @@
|
|||||||
|
|
||||||
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
{{#if ../navigation}}
|
{{#if ../navigation}}
|
||||||
<a class="menu-button" href="#"><span>☰</span>Menu</a>
|
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="content" role="main">
|
<main class="content" role="main">
|
||||||
|
|
||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
{{! Everything inside the #post tags pulls data from the post }}
|
|
||||||
|
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="post-title">{{title}}</h1>
|
<h1 class="post-title">{{title}}</h1>
|
||||||
@ -29,6 +27,5 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
{{/post}}
|
{{/post}}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<div class="nav">
|
<div class="nav">
|
||||||
|
<h3 class="nav-title">Menu</h3>
|
||||||
<a href="#" class="nav-close">
|
<a href="#" class="nav-close">
|
||||||
<span class="hidden">Close</span>
|
<span class="hidden">Close</span>
|
||||||
</a>
|
</a>
|
||||||
@ -7,4 +8,6 @@
|
|||||||
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="presentation"><a href="{{url absolute="true"}}">{{label}}</a></li>
|
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="presentation"><a href="{{url absolute="true"}}">{{label}}</a></li>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</ul>
|
</ul>
|
||||||
|
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
|
||||||
</div>
|
</div>
|
||||||
|
<span class="nav-cover"></span>
|
||||||
|
6
post.hbs
6
post.hbs
@ -8,15 +8,14 @@
|
|||||||
|
|
||||||
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
||||||
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
{{#if ../navigation}}
|
{{#if ../navigation}}
|
||||||
<a class="menu-button" href="#"><span>☰</span>Menu</a>
|
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="content" role="main">
|
<main class="content" role="main">
|
||||||
|
|
||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
|
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
@ -76,7 +75,6 @@
|
|||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{/post}}
|
{{/post}}
|
||||||
|
4
tag.hbs
4
tag.hbs
@ -4,9 +4,9 @@
|
|||||||
{{! If we have a tag cover, display that - else blog cover - else nothing }}
|
{{! If we have a tag cover, display that - else blog cover - else nothing }}
|
||||||
<header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}">
|
<header class="main-header tag-head {{#if tag.image}}" style="background-image: url({{tag.image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}">
|
||||||
<nav class="main-nav overlay clearfix">
|
<nav class="main-nav overlay clearfix">
|
||||||
<a class="back-button icon-arrow-left" href="{{@blog.url}}">Home</a>
|
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
|
||||||
{{#if navigation}}
|
{{#if navigation}}
|
||||||
<a class="menu-button" href="#"><span>☰</span>Menu</a>
|
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</nav>
|
</nav>
|
||||||
<div class="vertical">
|
<div class="vertical">
|
||||||
|
Loading…
Reference in New Issue
Block a user