summaryrefslogtreecommitdiff
path: root/assets/css/utils
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-29 11:38:24 +0800
committerEltrac <hi@guhub.cn>2025-04-29 11:38:24 +0800
commitb23be75978c87d48bbc7b2029f1d7bc9e50b3b4c (patch)
treea35057a136b40784f0b03aff3054ebd7d567a0e9 /assets/css/utils
parent3b90fca2e4ce5f7aa083f7b959380e75f516b148 (diff)
feat: better card section page
- show 2 cards on one row - show card statistics - use wider container for the page Former-commit-id: 5f25a26c7e77335e90c2b954784fa98aed3ec864
Diffstat (limited to 'assets/css/utils')
-rw-r--r--assets/css/utils/_utility.scss27
1 files changed, 18 insertions, 9 deletions
diff --git a/assets/css/utils/_utility.scss b/assets/css/utils/_utility.scss
index a54268b3..9b857fdb 100644
--- a/assets/css/utils/_utility.scss
+++ b/assets/css/utils/_utility.scss
@@ -29,22 +29,31 @@ figure {
}
.outbox {
- display: flex;
- justify-content: center;
+ display: flex;
+ justify-content: center;
+ width: 100%;
- // Default width
- width: 100%;
+ @media screen and (min-width: 768px) {
+ width: calc(var(--page-width) + 10rem);
+ margin: 0 -5rem;
+ }
- // Properly interpolate calc() in media queries
+ @media screen and (min-width: 1200px) {
+ width: calc(var(--page-width) + 20rem);
+ margin: 0 -10rem;
+ }
+
+ &.small {
@media screen and (min-width: 768px) {
- width: calc(var(--page-width) + 5rem * 2);
- margin: 0 -5rem;
+ width: calc(var(--page-width) + 4rem);
+ margin: 0 -2rem;
}
@media screen and (min-width: 1200px) {
- width: calc(var(--page-width) + 10rem * 2);
- margin: 0 -10rem;
+ width: calc(var(--page-width) + 10rem);
+ margin: 0 -5rem;
}
+ }
}
.font-mono {