fix(modal.css): explicitly set basic font sizes to prevent inheriting from parent(s); svg property usage updates
This commit is contained in:
parent
29aa3f0c30
commit
0b5240ce2c
5 changed files with 23 additions and 7 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "coryd.dev",
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"minisearch": "^7.1.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "coryd.dev",
|
||||
"version": "1.1.5",
|
||||
"version": "1.1.6",
|
||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||
"type": "module",
|
||||
"engines": {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue