fix: gallery and carousel wouldn't show without other statically sized elements

This commit is contained in:
ZhenShuo Leo
2025-12-15 17:26:37 +08:00
parent 1be60f89da
commit 4422c4b517
4 changed files with 25 additions and 14 deletions

View File

@@ -9,7 +9,6 @@
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
--spacing: 0.25rem;
--container-2xs: 18rem;
--container-xs: 20rem;
--container-xl: 36rem;
--container-3xl: 48rem;
@@ -2818,11 +2817,6 @@
margin-top: calc(var(--spacing) * 0);
}
}
.lg\:ml-auto {
@media (width >= 1024px) {
margin-left: auto;
}
}
.lg\:block {
@media (width >= 1024px) {
display: block;
@@ -2858,11 +2852,6 @@
width: auto;
}
}
.lg\:max-w-2xs {
@media (width >= 1024px) {
max-width: var(--container-2xs);
}
}
.lg\:max-w-7xl {
@media (width >= 1024px) {
max-width: var(--container-7xl);
@@ -3723,6 +3712,16 @@ pre {
.thumbnail-shadow {
box-shadow: 5px 5px 20px 1px rgba(0, 0, 0, 0.3);
}
@media (width < 853px) {
.width-patch {
width: 90vw;
}
}
@media (width >= 853px) {
.width-patch {
width: 65ch;
}
}
.anchor {
display: block;
position: relative;