From 29aa3f0c307c9031d22f731f84c6ce2cb74d22ca Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 29 Mar 2025 09:05:46 -0700 Subject: [PATCH] fix(modal.css): scope animated transform to modal controls that have svgs --- package-lock.json | 4 ++-- package.json | 2 +- src/assets/styles/components/modal.css | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 82715a0..cea87e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "1.1.4", + "version": "1.1.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "1.1.4", + "version": "1.1.5", "license": "MIT", "dependencies": { "minisearch": "^7.1.2", diff --git a/package.json b/package.json index f857578..5d528e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "1.1.4", + "version": "1.1.5", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "engines": { diff --git a/src/assets/styles/components/modal.css b/src/assets/styles/components/modal.css index 5e82cbb..a45a5bb 100644 --- a/src/assets/styles/components/modal.css +++ b/src/assets/styles/components/modal.css @@ -50,7 +50,10 @@ dialog { &:is(:hover, :focus, :active) { color: var(--link-color-hover); - transform: var(--transform-icon-tilt); + + &:has(svg) { + transform: var(--transform-icon-tilt); + } } }