mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-08-08 19:49:13 +00:00
mobile view grid changes
This commit is contained in:
@@ -12,7 +12,15 @@ spacing. Content is projected into the default slot.
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
class="grid {className}"
|
class="grid {className}"
|
||||||
style="grid-template-columns: repeat(auto-fit, minmax({min}, 1fr)); gap: {gap};"
|
style="--min: {min}; --gap: {gap}; grid-template-columns: 1fr; gap: var(--gap);"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.grid {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr)) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user