Matthias Mullie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/93453


Change subject: (bug 56335) Timestamp jumps to the left on hover
......................................................................

(bug 56335) Timestamp jumps to the left on hover

Bug: 56335
Change-Id: I51e9ed4015dab8948283baa1f2f50274b4e4cfc2
---
M modules/base/styles/container.less
M modules/discussion/styles/post.less
2 files changed, 10 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/53/93453/1

diff --git a/modules/base/styles/container.less 
b/modules/base/styles/container.less
index ec45ad4..2b64eb9 100644
--- a/modules/base/styles/container.less
+++ b/modules/base/styles/container.less
@@ -2,7 +2,6 @@
 
 // all UI "container" elements should have this class, which will preserve some
 // space on the right for icons.
-// @todo: more comment?
 .flow-element-container {
        position: relative;
 
@@ -11,7 +10,7 @@
 
        .flow-icon {
                // only display when hovered
-               display: none;
+               visibility: hidden;
 
                clear: both;
                float: right;
@@ -44,7 +43,7 @@
 
        &:hover {
                .flow-icon {
-                       display: block;
+                       visibility: visible;
                }
        }
 }
diff --git a/modules/discussion/styles/post.less 
b/modules/discussion/styles/post.less
index c8041ca..aecbc71 100644
--- a/modules/discussion/styles/post.less
+++ b/modules/discussion/styles/post.less
@@ -70,6 +70,14 @@
                float: right;
                padding-right: 22px;
 
+               // right next to the datestamp is the "moderation actions" 
icon, which
+               // is also floated right, but then moved to the right side via a
+               // negative right-padding. This move to the right via negative 
padding
+               // does not affect the surrounding elements, thus we're 
manually moving
+               // this one to the right (over the icon's original position) 
via a
+               // similar trick.
+               margin-right: -40px;
+
                a.flow-action-history-link {
                        color: inherit;
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/93453
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I51e9ed4015dab8948283baa1f2f50274b4e4cfc2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to