From 26ec16580397e412ac616d92b432e24c57ddaf40 Mon Sep 17 00:00:00 2001
From: bronku
Date: Sun, 8 Nov 2026 11:31:22 +0100
Subject: [PATCH] more style tweaks
---
css/swieta.css | 42 +++++++++++++++++++++++++++++++++++++++++-
html/swieta.templ | 13 ++++++++-----
2 files changed, 49 insertions(+), 6 deletions(-)
diff --git a/css/swieta.css b/css/swieta.css
index c267d8b..1da8a9c 100644
--- a/css/swieta.css
+++ b/css/swieta.css
@@ -4,6 +4,11 @@
}
#swieta {
+ & h2 {
+ text-align: center;
+ }
+
+ box-sizing: border-box;
& > * {
padding: 2rem;
}
@@ -31,16 +36,47 @@
align-items: center;
background-color: var(--swieta-green);
border-radius: var(--border-radius);
+ & > * {
+ text-align: center;
+ }
}
}
+ & > section:has(#wyroby) {
+ & h2 {
+ margin-bottom: 2rem;
+ }
+ }
+
& #wyroby {
& > h2 {
grid-column: -1 / 1;
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 {
& > :first-child {
display:none;
@@ -51,9 +87,13 @@
align-items: center;
& > h3 {
grid-row: -1 / 1;
+ margin: 11px 0;
+ }
+ &:has(p:not(:empty)) > span {
+ grid-row: 2;
}
& > span {
- grid-row: 2;
+ grid-row: -1 / 1;
grid-column: 2;
}
& > p{
diff --git a/html/swieta.templ b/html/swieta.templ
index a07107d..7fec6cc 100644
--- a/html/swieta.templ
+++ b/html/swieta.templ
@@ -26,13 +26,16 @@ templ Swieta(products []types.Product) {
-
+
Święteczne Słodkości
- for _, product:= range products {
- @card(product)
- }
-
+
+ for _, product:= range products {
+ @card(product)
+ }
+
+
+ Informacje odnośnie zamówień świątecznych
ODBIÓR ZAMÓWIEŃ
24 grudnia (wigilia)