Add CSS variable to control tag height (#1495)

This commit is contained in:
toasted-nutbread 2021-03-06 15:08:21 -05:00 committed by GitHub
parent 01f74510f0
commit aa6a547da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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-width: calc(1em * var(--entry-current-indicator-width-no-units) / var(--font-size-no-units));
--entry-current-indicator-transition-duration: 0.125s; --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-no-units: 11;
--tag-font-size: calc(1em * var(--tag-font-size-no-units) / var(--font-size-no-units)); --tag-font-size: calc(1em * var(--tag-font-size-no-units) / var(--font-size-no-units));
--tag-border-size-no-units: 1; --tag-border-size-no-units: 1;
@ -716,6 +718,7 @@ button.action-button[data-icon=source-term]::before {
border: none; border: none;
border-right: none; border-right: none;
font-size: 1em; 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; margin: calc(1em / var(--font-size-no-units)) 0.375em calc(1em / var(--font-size-no-units)) 0;
} }
.tag-label { .tag-label {