From 2b9d431ff099cd433a6053fc3e6c527433bdee1f Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 7 Apr 2025 15:44:30 +0800 Subject: refactor: separate css utilities and apply button style to more link --- assets/css/components/_utility.scss | 52 ------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 assets/css/components/_utility.scss (limited to 'assets/css/components/_utility.scss') diff --git a/assets/css/components/_utility.scss b/assets/css/components/_utility.scss deleted file mode 100644 index a9907339..00000000 --- a/assets/css/components/_utility.scss +++ /dev/null @@ -1,52 +0,0 @@ -.dark { - .invert-if-dark { - filter: invert(1) - } -} - -@media (prefers-color-scheme: dark) { - .invert-if-dark { - filter: invert(1) - } -} - -figure { - &.small { - width: 300px; - } - &.card { - width: fit-content; - img { - height: 18rem; - } - } - &.center { - margin: 0 auto; - figcaption { - text-align: center - } - } -} - -.outbox { - display: flex; - justify-content: center; - - // Default width - width: var(--page-width); - - // Properly interpolate calc() in media queries - @media screen and (min-width: 768px) { - width: calc(var(--page-width) + 5rem * 2); - margin: 0 -5rem; - } - - @media screen and (min-width: 1200px) { - width: calc(var(--page-width) + 10rem * 2); - margin: 0 -10rem; - } -} - -.font-mono { - font-family: var(--mono-font-family); -} -- cgit v1.2.3