summaryrefslogtreecommitdiff
path: root/ext/css/display.css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-06 15:08:21 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-07 15:54:18 -0500
commit9f610128310baf46242adda718965c923f2c41ff (patch)
tree5432889d3112ad162e5be26cd4d95f9d843b6fcf /ext/css/display.css
parent439e6308bb01425a999b89b677611ae3ea426e1a (diff)
Add CSS variable to control tag height (#1495)
Diffstat (limited to 'ext/css/display.css')
-rw-r--r--ext/css/display.css3
1 files changed, 3 insertions, 0 deletions
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 {