diff --git a/layout/_macro/post-header.swig b/layout/_macro/post-header.swig index c9235b9140..2eb70df8c7 100644 --- a/layout/_macro/post-header.swig +++ b/layout/_macro/post-header.swig @@ -7,9 +7,11 @@

{{ page.title }}

{{ page.subtitle || '' }}

- {{ __('post.posted') }} - +
+ {{ __('post.posted') }} + +
{% endmacro %} diff --git a/source/css/_common/components/header/site-home.styl b/source/css/_common/components/header/site-home.styl index 92e1159678..0835dc4e7f 100644 --- a/source/css/_common/components/header/site-home.styl +++ b/source/css/_common/components/header/site-home.styl @@ -1,10 +1,13 @@ .site-home { + position: relative; + top: -10px; display: inline-block; color: white; font-size: 18px; font-weight: bolder; margin: 5px 20px; border: none; + opacity: 0; +tablet() { font-size: 50px; diff --git a/source/css/_common/components/post/post-header.styl b/source/css/_common/components/post/post-header.styl index 53c575dbea..3e479b7ca5 100644 --- a/source/css/_common/components/post/post-header.styl +++ b/source/css/_common/components/post/post-header.styl @@ -12,9 +12,12 @@ } .post-header { + position: relative; + top: -10px; width: 960px; margin: 80px auto 0; color: white; + opacity: 0; +mobile() { width: auto; diff --git a/source/js/src/motion.js b/source/js/src/motion.js index ccc899b263..570362f26c 100644 --- a/source/js/src/motion.js +++ b/source/js/src/motion.js @@ -190,6 +190,10 @@ $(document).ready(function () { var $brand = $('.brand'); var $title = $('.site-title'); var $subtitle = $('.site-subtitle'); + + var $sitehome = $('.site-home'); + var $postheader = $('.post-header'); + var $logoLineTop = $('.logo-line-before i'); var $logoLineBottom = $('.logo-line-after i'); @@ -208,7 +212,7 @@ $(document).ready(function () { hasElement($title) && sequence.push({ e: $title, p: {opacity: 1, top: 0}, - o: { duration: 200 } + o: {duration: 200} }); hasElement($subtitle) && sequence.push({ @@ -217,6 +221,18 @@ $(document).ready(function () { o: {duration: 200} }); + hasElement($postheader) && sequence.push({ + e: $postheader, + p: {opacity: 1, top: 0}, + o: {duration: 200} + }); + + hasElement($sitehome) && sequence.push({ + e: $sitehome, + p: {opacity: 1, top: 0}, + o: {duration: 200} + }); + if (sequence.length > 0) { sequence[sequence.length - 1].o.complete = function () { integrator.next();