From 9f610128310baf46242adda718965c923f2c41ff Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 6 Mar 2021 15:08:21 -0500 Subject: Add CSS variable to control tag height (#1495) --- ext/css/display.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/css/display.css b/ext/css/display.css index 61198979..a7acd440 100644 --- a/ext/css/display.css +++ b/ext/css/display.css @@ -78,6 +78,8 @@ --entry-current-indicator-width: calc(1em * var(--entry-current-indicator-width-no-units) / var(--font-size-no-units)); --entry-current-indicator-transition-duration: 0.125s; + --tag-height-no-units: 20; + --tag-height: calc(1em * var(--tag-height-no-units) / var(--font-size-no-units)); --tag-font-size-no-units: 11; --tag-font-size: calc(1em * var(--tag-font-size-no-units) / var(--font-size-no-units)); --tag-border-size-no-units: 1; @@ -716,6 +718,7 @@ button.action-button[data-icon=source-term]::before { border: none; border-right: none; font-size: 1em; + height: var(--tag-height); margin: calc(1em / var(--font-size-no-units)) 0.375em calc(1em / var(--font-size-no-units)) 0; } .tag-label { -- cgit v1.2.3