more style tweaks

This commit is contained in:
bronku 2026-11-08 11:31:22 +01:00
parent 7c543b10f7
commit 26ec165803
2 changed files with 49 additions and 6 deletions

View file

@ -4,6 +4,11 @@
} }
#swieta { #swieta {
& h2 {
text-align: center;
}
box-sizing: border-box;
& > * { & > * {
padding: 2rem; padding: 2rem;
} }
@ -31,16 +36,47 @@
align-items: center; align-items: center;
background-color: var(--swieta-green); background-color: var(--swieta-green);
border-radius: var(--border-radius); border-radius: var(--border-radius);
& > * {
text-align: center;
}
} }
} }
& > section:has(#wyroby) {
& h2 {
margin-bottom: 2rem;
}
}
& #wyroby { & #wyroby {
& > h2 { & > h2 {
grid-column: -1 / 1; grid-column: -1 / 1;
place-self: center; place-self: center;
} }
@media (max-width: 768px) {
gap:0;
background-color: white;
border-radius: var(--border-radius);
grid-template-columns: 1fr;
& .card {
background-color: transparent;
border-radius: 0;
& > :last-child {
padding: 1rem 2rem;
}
&:not(:last-child) {
border-bottom: 1px solid var(--on-surface);
}
}
}
& .card { & .card {
& > :first-child { & > :first-child {
display:none; display:none;
@ -51,9 +87,13 @@
align-items: center; align-items: center;
& > h3 { & > h3 {
grid-row: -1 / 1; grid-row: -1 / 1;
margin: 11px 0;
}
&:has(p:not(:empty)) > span {
grid-row: 2;
} }
& > span { & > span {
grid-row: 2; grid-row: -1 / 1;
grid-column: 2; grid-column: 2;
} }
& > p{ & > p{

View file

@ -26,13 +26,16 @@ templ Swieta(products []types.Product) {
</p> </p>
</div> </div>
</header> </header>
<div id="wyroby" class="swieta"> <section>
<h2>Święteczne Słodkości</h2> <h2>Święteczne Słodkości</h2>
for _, product:= range products { <div id="wyroby" class="swieta">
@card(product) for _, product:= range products {
} @card(product)
</div> }
</div>
</section>
<section id="additional-info"> <section id="additional-info">
<h2>Informacje odnośnie zamówień świątecznych</h2>
<div class="card"> <div class="card">
<span>ODBIÓR ZAMÓWIEŃ</span> <span>ODBIÓR ZAMÓWIEŃ</span>
<h3>24 grudnia (wigilia)</h3> <h3>24 grudnia (wigilia)</h3>