diff --git a/.gitignore b/.gitignore index e83f2413b2..8f0138635b 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ public/config.json public/css/*.css public/themes/* !/public/themes/vanilla +!/public/themes/cerulean *.sublime-project *.sublime-workspace plugins/* diff --git a/public/css/nodebb.less b/public/css/nodebb.less index 2b29bad852..cb51c9496a 100644 --- a/public/css/nodebb.less +++ b/public/css/nodebb.less @@ -1 +1 @@ -@import "../themes/vanilla/vanilla.less"; \ No newline at end of file +@import "../themes/cerulean/cerulean.less"; \ No newline at end of file diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js index 399a03cc25..7203bf41d6 100644 --- a/public/src/forum/topic.js +++ b/public/src/forum/topic.js @@ -611,7 +611,7 @@ - var postAuthorImage, postAuthorInfo, pagination; + var postAuthorImage, mobileAuthorOverlay, pagination; var postcount = templates.get('postcount'); function updateHeader() { @@ -624,9 +624,9 @@ }); } - jQuery('.post-author-info').css('bottom', '0px'); - postAuthorImage = postAuthorImage || document.getElementById('post-author-image'); - postAuthorInfo = postAuthorInfo || document.getElementById('post-author-info'); + jQuery('.mobile-author-overlay').css('bottom', '0px'); + postAuthorImage = postAuthorImage || document.getElementById('mobile-author-image'); + mobileAuthorOverlay = mobileAuthorOverlay || document.getElementById('mobile-author-overlay'); pagination = pagination || document.getElementById('pagination'); pagination.parentNode.style.display = 'block'; @@ -637,7 +637,7 @@ if (scrollTop < 50 && postcount > 1) { postAuthorImage.src = (jQuery('.main-avatar img').attr('src')); - postAuthorInfo.innerHTML = 'Posted by ' + jQuery('.main-post').attr('data-username') + ', ' + jQuery('.main-post').find('.relativeTimeAgo').html(); + mobileAuthorOverlay.innerHTML = 'Posted by ' + jQuery('.main-post').attr('data-username') + ', ' + jQuery('.main-post').find('.relativeTimeAgo').html(); pagination.innerHTML = '0 out of ' + postcount; return; } @@ -662,7 +662,7 @@ if (inView) { pagination.innerHTML = this.postnumber + ' out of ' + postcount; postAuthorImage.src = (jQuery(this).find('.profile-image-block img').attr('src')); - postAuthorInfo.innerHTML = 'Posted by ' + jQuery(this).attr('data-username') + ', ' + jQuery(this).find('.relativeTimeAgo').html(); + mobileAuthorOverlay.innerHTML = 'Posted by ' + jQuery(this).attr('data-username') + ', ' + jQuery(this).find('.relativeTimeAgo').html(); } }); diff --git a/public/templates/category.tpl b/public/templates/category.tpl index 81af0c5b93..a3e39de1b6 100644 --- a/public/templates/category.tpl +++ b/public/templates/category.tpl @@ -31,12 +31,6 @@
  • -
    diff --git a/public/templates/footer.tpl b/public/templates/footer.tpl index 11cb808328..13fd820609 100644 --- a/public/templates/footer.tpl +++ b/public/templates/footer.tpl @@ -41,8 +41,8 @@
    -