summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-10-03 15:17:00 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-10-03 15:17:00 +0200
commit7f42e591329eda931c17826b713202ef9afd546d (patch)
tree66d29ab2a330ba358afb9348bdbdaa77df39e581 /views
parent8ad4750667880bd0768f68410f4080ebcec7de66 (diff)
Produktseite: breite Spalte im Modus „neu“
Produktartikel und Produktdetailseite nutzen die breite Spalte wie die Kasse; die Texte der Abschnitte bleiben in Inhaltsbreite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views')
-rw-r--r--views/css/wpsg-theme.css2
-rw-r--r--views/produktseite/produkt.phtml3
2 files changed, 4 insertions, 1 deletions
diff --git a/views/css/wpsg-theme.css b/views/css/wpsg-theme.css
index cdf8c1d..5966cde 100644
--- a/views/css/wpsg-theme.css
+++ b/views/css/wpsg-theme.css
@@ -370,7 +370,7 @@ html body #wpsg_revocation_dialog .inner { background-color:var(--wpsg-color-bac
.wpsg-product .wpsg-product__buy .wpsg_add_basket { flex:1 1 12em; min-height:44px; }
.wpsg-product :where(.wpsg-product__after-buy) { display:flex; flex-wrap:wrap; gap:var(--wpsg-gap); margin-top:0.75em; }
.wpsg-product :where(.wpsg-product__facts) { margin:var(--wpsg-gap) 0 0; padding:var(--wpsg-gap) 0 0; list-style:none; border-top:1px solid var(--wpsg-color-line); display:flex; flex-direction:column; gap:0.25em; opacity:var(--wpsg-muted-opacity); }
-.wpsg-product :where(.wpsg-product__section) { margin-top:calc(var(--wpsg-gap) * 2); }
+.wpsg-product :where(.wpsg-product__section) { max-width:var(--wp--style--global--content-size, 46rem); margin-top:calc(var(--wpsg-gap) * 2); }
.wpsg-product :where(.wpsg-product__section-title) { margin:0 0 0.5em; }
.wpsg_productform :where(.wpsg_product_layer) { position:absolute; left:0; top:0; width:100%; height:100%; background-color:var(--wpsg-color-surface); padding:0.75em; margin:-0.75em; box-sizing:content-box; }
.wpsg_productform :where(.wpsg_product_layer img) { position:absolute; left:50%; margin-left:-8px; top:50%; margin-top:-5px; }
diff --git a/views/produktseite/produkt.phtml b/views/produktseite/produkt.phtml
index 313bac7..a5ec0ad 100644
--- a/views/produktseite/produkt.phtml
+++ b/views/produktseite/produkt.phtml
@@ -27,6 +27,9 @@
$nTitleLevel = \wpsg\ProductPage::titleLevel($bMainProduct, (bool)$bTitleByPage);
$nSectionLevel = (($bMainProduct)?2:3);
+ // Hauptprodukt in der breiten Spalte wie die Kasse; renderProdukt() setzt alignwide am Formular (W7)
+ if ($bMainProduct) \wpsg\ProductPage::markWide();
+
?>
<div class="wpsg_produkt_wrapper wpsg-product">