diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-07 15:44:30 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-07 15:44:30 +0800 |
| commit | 2b9d431ff099cd433a6053fc3e6c527433bdee1f (patch) | |
| tree | 98bf380befb810198900c065aafcfd6e548e5ac0 /assets/css/components/_utility.scss | |
| parent | fb7259d515305b6e4b5262d132ef06b31300c8db (diff) | |
refactor: separate css utilities and apply button style to more link
Diffstat (limited to 'assets/css/components/_utility.scss')
| -rw-r--r-- | assets/css/components/_utility.scss | 52 |
1 files changed, 0 insertions, 52 deletions
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); -} |
