Revert "Simplify CTA right public page layout"

This reverts commit 82b9a616c5.
This commit is contained in:
2026-06-24 09:21:39 +02:00
parent a9953a0f33
commit 58a92bcc4b
2 changed files with 30 additions and 16 deletions
+19 -15
View File
@@ -8,7 +8,7 @@
</head> </head>
<body class="sg-page-cards-public-page"> <body class="sg-page-cards-public-page">
<h1 class="sg-main-heading">Component: CTA Right</h1> <h1 class="sg-main-heading">Components Cards Public Page</h1>
<main aria-label="Cards Public Page"> <main aria-label="Cards Public Page">
@@ -20,23 +20,27 @@
Content Wrapper Card als Transparent Card ohne horizontale Außenabstände und mit vertikalem Abstand gemäss spacing-large. Content Wrapper Card als Transparent Card ohne horizontale Außenabstände und mit vertikalem Abstand gemäss spacing-large.
</p> </p>
<article class="sg-card sg-card--content-card sg-card--content-card-dark sg-cards-public-page__cta-right-card" data-component="content-card" aria-label="CTA Right"> <section id="component-cta-right">
<div class="sg-card-segment sg-card-segment--body sg-cards-public-page__cta-right-body"> <p class="sg-preview-label">Component: CTA Right</p>
<div class="sg-cards-public-page__cta-right-grid">
<div class="sg-cards-public-page__cta-right-copy">
<p class="sg-body">
Ein Satz Text als CTA-Hinweis.
</p>
</div>
<div class="sg-cards-public-page__cta-right-buttons" data-component="link-buttons"> <article class="sg-card sg-card--content-card sg-card--content-card-dark sg-cards-public-page__cta-right-card" data-component="content-card" aria-label="CTA Right">
<button class="sg-interaction-element sg-button sg-button--active" type="button" data-component="button" data-component-state="active"> <div class="sg-card-segment sg-card-segment--body sg-cards-public-page__cta-right-body">
Link-Button <div class="sg-cards-public-page__cta-right-grid">
</button> <div class="sg-cards-public-page__cta-right-copy">
<p class="sg-body">
Ein Satz Text als CTA-Hinweis.
</p>
</div>
<div class="sg-cards-public-page__cta-right-buttons" data-component="link-buttons">
<button class="sg-interaction-element sg-button sg-button--active" type="button" data-component="button" data-component-state="active">
Link-Button
</button>
</div>
</div> </div>
</div> </div>
</div> </article>
</article> </section>
</div> </div>
</section> </section>
+11 -1
View File
@@ -230,12 +230,23 @@
margin: 0 0 var(--spacing-large) 0; margin: 0 0 var(--spacing-large) 0;
} }
.sg-page-cards-public-page {
overflow-x: hidden;
}
.sg-page-cards .sg-preview-area > .sg-card, .sg-page-cards .sg-preview-area > .sg-card,
.sg-page-cards .sg-preview-area > .sg-transparent-card { .sg-page-cards .sg-preview-area > .sg-transparent-card {
width: 100%; width: 100%;
max-width: none; max-width: none;
} }
.sg-page-cards-public-page #component-content-wrapper-card {
width: 100%;
max-width: 100%;
box-sizing: border-box;
padding-inline: var(--spacing-small);
}
.sg-page-cards-public-page #component-content-wrapper-card > .sg-transparent-card { .sg-page-cards-public-page #component-content-wrapper-card > .sg-transparent-card {
width: 100%; width: 100%;
max-width: none; max-width: none;
@@ -245,7 +256,6 @@
.sg-page-cards-public-page .sg-cards-public-page__cta-right-card { .sg-page-cards-public-page .sg-cards-public-page__cta-right-card {
width: var(--layout-public-content-element-width); width: var(--layout-public-content-element-width);
max-width: none; max-width: none;
margin-top: var(--spacing-large);
margin-inline-start: auto; margin-inline-start: auto;
} }