From 3ef282de00035b0db766854b08aafa99cce3b4c7 Mon Sep 17 00:00:00 2001 From: Isarra Date: Fri, 30 Aug 2019 17:39:10 +0000 Subject: [PATCH] Set a relative size for the pt-uls icon and padding so it scales properly Instead of background-size:containing to the relative font size, but with fixed horizontal space for it due to the padding, set both the padding and background-size to use ems instead of px so both scale properly. Tested in modern, cologneblue, monobook, and vector with no visible issues. Resolves issue with icon being too large on timeless. Does not appear to affect minerva, as that just handles it all another way. Change-Id: Ibcea827fe15ee50c947e9c0de1e6cf053e299033 --- resources/css/ext.uls.pt.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/css/ext.uls.pt.less b/resources/css/ext.uls.pt.less index f5b1dbe6..c58dfb80 100644 --- a/resources/css/ext.uls.pt.less +++ b/resources/css/ext.uls.pt.less @@ -20,9 +20,9 @@ } #pt-uls a.uls-trigger { - padding-left: 18px; + padding-left: 1.25em; // Let the SVG image fit without cropping or stretch - background-size: contain; + background-size: 1.15em; /* Fix alignment in vector: https://phabricator.wikimedia.org/T61239 */ line-height: 1; }