Skip to content

Commit 0fcadd1

Browse files
yepzdkclaude
andcommitted
Use Bootstrap container widths instead of hardcoded px values
Addresses PR review feedback: - $timeline-max-width: uses lg container (960px) - Description max-width: uses sm container (540px) - Legend max-width: uses sm container (540px) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9a8a9a1 commit 0fcadd1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

web/themes/custom/hoeringsportal/assets/css/module/_timeline.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
// SCSS Variables & Mixins
1414
// =============================================================================
1515

16-
// Layout variables
17-
$timeline-max-width: 900px;
16+
// Layout variables - using Bootstrap container widths for consistency
17+
$timeline-max-width: map-get($container-max-widths, lg); // 960px
1818
$timeline-card-gap: $spacer * 2; // 32px
1919
$timeline-line-width: 2px;
2020
$timeline-dot-size: 12px;
@@ -182,7 +182,7 @@ $timeline-accents: (
182182
font-size: $font-size-base;
183183
line-height: $line-height-base;
184184
color: var(--text-secondary);
185-
max-width: 600px;
185+
max-width: map-get($container-max-widths, sm); // 540px - text container
186186
}
187187

188188
// =============================================================================
@@ -914,7 +914,7 @@ $carousel-padding-horizontal: ($spacer * 2.25); // 36px
914914
// Legend
915915
// =============================================================================
916916
.project-timeline-legend {
917-
max-width: 500px;
917+
max-width: map-get($container-max-widths, sm); // 540px - text container
918918
margin: $timeline-card-gap auto 0;
919919
padding: ($spacer * 1.25) $timeline-card-padding;
920920
background: var(--card-bg);

0 commit comments

Comments
 (0)