summaryrefslogtreecommitdiff
path: root/assets/css/components/_utility.scss
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-01-26 17:57:45 +0800
committerEltrac <hi@guhub.cn>2025-01-26 17:57:45 +0800
commit30c72f2f2182a77a3a549a11073f214df44df42c (patch)
tree5bb4def8a356284d5b1cfc1c8a11bc0717ec0d8d /assets/css/components/_utility.scss
parent5ac1635cb8c9b00ffe6ce841f586b0073ae96ae1 (diff)
feat(theme): outbox
Diffstat (limited to 'assets/css/components/_utility.scss')
-rw-r--r--assets/css/components/_utility.scss19
1 files changed, 19 insertions, 0 deletions
diff --git a/assets/css/components/_utility.scss b/assets/css/components/_utility.scss
index 1075d2ad..f247c850 100644
--- a/assets/css/components/_utility.scss
+++ b/assets/css/components/_utility.scss
@@ -27,3 +27,22 @@ figure {
}
}
}
+
+.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;
+ }
+}