mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
fix: gallery and carousel wouldn't show without other statically sized elements
This commit is contained in:
@@ -9,7 +9,6 @@
|
|||||||
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
||||||
"Courier New", monospace;
|
"Courier New", monospace;
|
||||||
--spacing: 0.25rem;
|
--spacing: 0.25rem;
|
||||||
--container-2xs: 18rem;
|
|
||||||
--container-xs: 20rem;
|
--container-xs: 20rem;
|
||||||
--container-xl: 36rem;
|
--container-xl: 36rem;
|
||||||
--container-3xl: 48rem;
|
--container-3xl: 48rem;
|
||||||
@@ -2818,11 +2817,6 @@
|
|||||||
margin-top: calc(var(--spacing) * 0);
|
margin-top: calc(var(--spacing) * 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.lg\:ml-auto {
|
|
||||||
@media (width >= 1024px) {
|
|
||||||
margin-left: auto;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.lg\:block {
|
.lg\:block {
|
||||||
@media (width >= 1024px) {
|
@media (width >= 1024px) {
|
||||||
display: block;
|
display: block;
|
||||||
@@ -2858,11 +2852,6 @@
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.lg\:max-w-2xs {
|
|
||||||
@media (width >= 1024px) {
|
|
||||||
max-width: var(--container-2xs);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.lg\:max-w-7xl {
|
.lg\:max-w-7xl {
|
||||||
@media (width >= 1024px) {
|
@media (width >= 1024px) {
|
||||||
max-width: var(--container-7xl);
|
max-width: var(--container-7xl);
|
||||||
@@ -3723,6 +3712,16 @@ pre {
|
|||||||
.thumbnail-shadow {
|
.thumbnail-shadow {
|
||||||
box-shadow: 5px 5px 20px 1px rgba(0, 0, 0, 0.3);
|
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 {
|
.anchor {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -198,6 +198,18 @@ pre {
|
|||||||
box-shadow: 5px 5px 20px 1px rgba(0, 0, 0, 0.3);
|
box-shadow: 5px 5px 20px 1px rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* placeholder for gallery/carousel */
|
||||||
|
@variant max-md {
|
||||||
|
.width-patch {
|
||||||
|
width: 90vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@variant min-md {
|
||||||
|
.width-patch {
|
||||||
|
width: 65ch;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.anchor {
|
.anchor {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
<div class="width-patch"></div>
|
||||||
<div
|
<div
|
||||||
id="{{ $id }}"
|
id="{{ $id }}"
|
||||||
class="relative"
|
class="relative"
|
||||||
@@ -49,9 +50,7 @@
|
|||||||
data-twe-carousel-item
|
data-twe-carousel-item
|
||||||
style="transition-duration: {{ $interval }}ms;"
|
style="transition-duration: {{ $interval }}ms;"
|
||||||
{{ if eq $index 0 }}data-twe-carousel-active{{ end }}>
|
{{ if eq $index 0 }}data-twe-carousel-active{{ end }}>
|
||||||
<div
|
<div class="single_hero_background" style="aspect-ratio: {{ $aspectx }} / {{ $aspecty }};">
|
||||||
class="single_hero_background"
|
|
||||||
style="aspect-ratio: {{ $aspectx }} / {{ $aspecty }};">
|
|
||||||
<img
|
<img
|
||||||
src="{{ $image.RelPermalink }}"
|
src="{{ $image.RelPermalink }}"
|
||||||
class="block absolute top-0 object-cover w-full h-full not-prose nozoom"
|
class="block absolute top-0 object-cover w-full h-full not-prose nozoom"
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
|
||||||
|
<div class="width-patch"></div>
|
||||||
<div id="{{- $id -}}" class="gallery">
|
<div id="{{- $id -}}" class="gallery">
|
||||||
{{ $content | safeHTML -}}
|
{{ $content | safeHTML -}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user