Dynamische Layoutänderung anhand der Bildschirmgröße

This commit is contained in:
2024-10-05 18:04:13 +02:00
parent 7e369dc6d9
commit 0962215824
3 changed files with 47 additions and 39 deletions

View File

@ -11,9 +11,17 @@ h2 {
}
.card {
@apply bg-stone-200 mx-auto p-12 rounded-xl text-stone-800 w-96
@apply bg-stone-200 mx-auto p-12 rounded-xl text-stone-800 w-72 sm:w-96
}
.left-neg-32 {
left: -32px;
}
.right-neg-32 {
right: -32px;
}
.section {
@apply container gap-16 grid grid-cols-2 max-w-screen-xl mx-auto py-16
@apply container gap-16 grid grid-cols-1 lg:grid-cols-2 max-w-screen-xl mx-auto px-8 py-16
}