From 65c23b50d958154523557363152a512b90b6f6d1 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 7 Jul 2024 23:25:07 -0500 Subject: [PATCH] refactor: box-sizing --- app/react-components/slot.module.css | 4 ++-- app/root.css | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/react-components/slot.module.css b/app/react-components/slot.module.css index d2268e4..9574e76 100644 --- a/app/react-components/slot.module.css +++ b/app/react-components/slot.module.css @@ -21,10 +21,10 @@ background-position: center; background-repeat: no-repeat; background-size: 75%; - height: calc(100% - var(--space) * 2); + height: 100%; padding: var(--space); position: relative; - width: calc(100% - var(--space) * 2); + width: 100%; } .qty { diff --git a/app/root.css b/app/root.css index 9f4cad3..bed897c 100644 --- a/app/root.css +++ b/app/root.css @@ -6,6 +6,7 @@ html, body { margin: 0; width: 100%; * { + box-sizing: border-box; line-height: 1; } }