From 7069b01eebd6e421b58e7b95afd22b8db2aec290 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Wed, 12 Aug 2015 08:07:43 +0500 Subject: [PATCH] revive ~nin~'s post context #hack --- theme_nin/css/style.css | 4 ++++ theme_nin/js/theme_option.js | 5 ++--- theme_nin/sass/_postboard.sass | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/theme_nin/css/style.css b/theme_nin/css/style.css index a44696d..730a624 100644 --- a/theme_nin/css/style.css +++ b/theme_nin/css/style.css @@ -907,6 +907,10 @@ article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, margin-right: 0.4em; } +.post-context.post-retransmited-by-container { + margin: 0 0 1em; +} + /* line 158, ../sass/_postboard.sass */ .mini-screen-name { font-size: 13px; diff --git a/theme_nin/js/theme_option.js b/theme_nin/js/theme_option.js index d080831..b0678ee 100644 --- a/theme_nin/js/theme_option.js +++ b/theme_nin/js/theme_option.js @@ -8,9 +8,8 @@ $(function(){ $('.userMenu-search-profiles button').html('').attr('title',polyglot.t('Follow')); $('.mini-profile-actions span').html(''); - //$('.post-context').each(function(){ - // $(this).prependTo($(this).parent()); - //}); + $.globalEval(postToElem.toString().replace(/postContext.append\(_templatePostRtBy/, + 'postContext.addClass(\'post-retransmited-by-container\').prependTo(postContext.parent()).append(_templatePostRtBy')); $( '.userMenu-home.current a' ).on( 'click', function() { diff --git a/theme_nin/sass/_postboard.sass b/theme_nin/sass/_postboard.sass index bad16ce..336069f 100755 --- a/theme_nin/sass/_postboard.sass +++ b/theme_nin/sass/_postboard.sass @@ -144,6 +144,8 @@ line-height: 11px margin: 2px 10px 4px 60px color: lighten($dark-grey,30%) + &.post-retransmited-by-container + margin: 0 0 1em .mini-screen-name font-size: 13px