diff --git a/less/topic.less b/less/topic.less index 50e7c86..e30f8a7 100644 --- a/less/topic.less +++ b/less/topic.less @@ -9,9 +9,14 @@ .topic-title { word-wrap: break-word; - font-size: 28px; + font-size: 24px; color:inherit; - line-height: 36px; + line-height: 32px; + @media (max-width: @screen-sm-max) { + font-size: 18px; + line-height: 24px; + margin-top: 0px; + } } > span { @@ -31,10 +36,22 @@ text-transform: initial; } } + [component="topic/browsing-users"] { + margin-bottom: -15px; + } + .topic-header { + position: sticky; + top: @navbar-height; + background-color: @body-bg; + z-index: @zindex-navbar; + } + .topic-info { border-bottom: 1px solid @post-border-color; margin-bottom: 10px; - padding-bottom: 10px; + > * { + padding-bottom: 10px; + } } .category-item { .icon { @@ -220,7 +237,7 @@ .stats { font-size: 12px; margin: 0px 5px 0px 5px; - float: left; + display: inline-block; } .title { diff --git a/public/persona.js b/public/persona.js index d174bc4..46a3aba 100644 --- a/public/persona.js +++ b/public/persona.js @@ -42,6 +42,16 @@ $(document).ready(function () { showOnBottom: false, }); } + navbarEl.on('show.autoHidingNavbar', function() { + if (ajaxify.data.template.topic) { + $('.topic .topic-header').css({top: '' }); + } + }); + navbarEl.on('hide.autoHidingNavbar', function() { + if (ajaxify.data.template.topic) { + $('.topic .topic-header').css('top', '0px'); + } + }); } function setupNProgress() { diff --git a/templates/partials/post_bar.tpl b/templates/partials/post_bar.tpl index 1abefc2..335c843 100644 --- a/templates/partials/post_bar.tpl +++ b/templates/partials/post_bar.tpl @@ -1,27 +1,20 @@ -