Revision history: Prefer `outline` over `border` to give text more space
authorVolker E <volker.e@wikimedia.org>
Tue, 7 May 2019 12:11:39 +0000 (05:11 -0700)
committerVolker E <volker.e@wikimedia.org>
Tue, 7 May 2019 12:11:39 +0000 (05:11 -0700)
Using `outline` enables to provide more space to selected list items'
text while not negatively impacting distance between elements.
Only browsers that are excluded by this are IE 6-7.

Change-Id: I71391cfd18f05c0fd0ea21720d278c5a06fa00a8

resources/src/mediawiki.action/mediawiki.action.history.styles.less

index c6f5b49..f5019a7 100644 (file)
@@ -16,7 +16,8 @@
 #pagehistory li.selected {
        background-color: #f8f9fa;
        color: #222;
-       border: 1px dashed #a2a9b1;
+       border-color: #f8f9fa;
+       outline: 1px dashed #a2a9b1;
 }
 
 .mw-history-revisionactions {