fix(modal.css): explicitly set basic font sizes to prevent inheriting from parent(s); svg property usage updates

This commit is contained in:
Cory Dransfeldt 2025-03-29 11:13:02 -07:00
parent 29aa3f0c30
commit 0b5240ce2c
No known key found for this signature in database
5 changed files with 23 additions and 7 deletions

View file

@ -290,9 +290,7 @@ a {
}
/* headers */
h1,
h2,
h3 {
h1, h2, h3 {
font-family: var(--font-heading);
font-weight: var(--font-weight-bold);
line-height: var(--line-height-md);

View file

@ -107,7 +107,8 @@
--sizing-full: 100%;
--sizing-svg-sm: 18px;
--sizing-svg: 24px;
--sizing-svg-base: 24px;
--sizing-svg: var(--sizing-svg-base);
/* spacing */
--spacing-xs: var(--sizing-xs);

View file

@ -47,6 +47,10 @@ dialog {
transition: color var(--transition-duration-default) var(--transition-ease-in-out),
transform var(--transition-duration-default) var(--transition-ease-in-out);
svg {
--sizing-svg: var(--sizing-svg-base);
}
&:is(:hover, :focus, :active) {
color: var(--link-color-hover);
@ -63,12 +67,25 @@ dialog,
padding: var(--spacing-lg) var(--spacing-base);
overflow-y: auto;
border-radius: var(--border-radius-slight);
font-size: var(--font-size-base);
&.closing {
animation: fadeOut var(--transition-duration-default) var(--transition-ease-in-out);
}
h1 {
font-size: var(--font-size-2xl);
}
h2 {
font-size: var(--font-size-xl);
}
h3 {
font-size: var(--font-size-lg);
}
h1, h2, h3 {
margin-top: 0;
}