From 4e2a8a0ce0e2f47d519d442200ea8fd40f4a8299 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 28 Dec 2018 12:56:56 -0500 Subject: [PATCH] Fix vertical centering of hostnames in dynamic filtering pane Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/358 Additionally, use `display: none;` to unburden the browser renderer from taking into account the `sup` element since most of the time it is unused. --- src/css/popup.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/css/popup.css b/src/css/popup.css index e72f934a7..6a1c5f7fa 100644 --- a/src/css/popup.css +++ b/src/css/popup.css @@ -282,11 +282,18 @@ body[dir="rtl"] #tooltip { text-overflow: ellipsis; width: calc(100% - 4em); } -#firewallContainer > div.isDomain > span.isIDN:first-of-type > sup::before { +#firewallContainer > div > span:first-of-type > sup { color: #666; - content: '\0416\2002'; + display: none; font-size: 80%; font-weight: normal; + line-height: 1; + } +#firewallContainer > div.isDomain > span.isIDN:first-of-type > sup { + display: inline-block; + } +#firewallContainer > div.isDomain > span.isIDN:first-of-type > sup::before { + content: '\0416\2002'; } #firewallContainer > div > span:nth-of-type(2) { display: none;