flatpickr: Use constant variable for font-size.

This is part of an effort to remove all pixel font sizes
from most stylesheets. We won't scale this with font size
because the flatpickr doesn't scale with font size.
This commit is contained in:
evykassirer
2025-03-05 11:49:28 -08:00
committed by Tim Abbott
parent 7948055e88
commit 7fa633faaf
2 changed files with 7 additions and 1 deletions

View File

@@ -513,6 +513,12 @@
--user-group-popover-horizontal-padding: 0.6666em; /* 10px at 15px/1em */
--user-group-popover-icon-text-gap: 0.3125em; /* 5px at 16px/1em */
/*
This isn't scaled with font-size because the flatpickr is a third
party component that doesn't scale with font size.
*/
--flatpickr-confirm-button-font-size: 18px;
/*
Width to be reserved for document scrollbar when scrolling is disabled.
Using `scrollbar-gutter` would be more appropriate but doesn't has wide

View File

@@ -1479,7 +1479,7 @@ div.toggle_resolve_topic_spinner .loading_indicator_spinner {
.flatpickr-confirm {
color: hsl(0deg 0% 100%);
background-color: hsl(213deg 90% 65%);
font-size: 18px;
font-size: var(--flatpickr-confirm-button-font-size);
font-weight: 600;
}