Files
HMDesign/src/components/story-page.css
T
shkim4 f3557605a4
Deploy Storybook / deploy (push) Successful in 1m18s
style(storybook): widen the story page inner to 80vw from 1920px
Below 1920px the inner keeps min(100%, 1280px) minus the gutters; from 1920px it
is 80vw (1536px at 1920, 2048px at 2560), centered, with no horizontal scroll.
2026-10-22 18:28:18 +09:00

69 lines
2.6 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Storybook presentation only. Common page frame for representative Stories; all selectors stay inside .sb-page.
Inner (max 1280, gutter 16–40) and title (kicker 12 / title 28·36·700 / description, underlined) reuse Foundation / Color.
Section reuses the Center Graphic / 교량 split: heading + description, a divider, then the specimen. */
.sb-page {
--sb-page-max-width: 1280px;
--sb-page-gutter: clamp(16px, 3vw, 40px);
box-sizing: border-box;
width: 100%;
min-width: 0;
padding-block: var(--sb-page-gutter);
font-family: var(--hm-font-family-base);
color: var(--hm-sem-fg-primary);
}
.sb-page > .sb-page-inner {
box-sizing: border-box;
/* Keep the established content width: the 1280px envelope includes both gutters. */
width: calc(min(100%, var(--sb-page-max-width)) - 2 * var(--sb-page-gutter));
min-width: 0;
margin-inline: auto;
}
/* Wide screens (2026-10-22): 80% of the viewport, i.e. 1536px at 1920px, growing beyond it (vw, so a scrollbar does not
shrink it). Below 1920px the rule above applies. */
@media (min-width: 1920px) {
.sb-page > .sb-page-inner { width: 80vw; }
}
.sb-page .sb-page-header {
padding-bottom: 24px;
border-bottom: 1px solid var(--hm-sem-stroke-input-default);
font-size: var(--hm-label-font-size);
line-height: var(--hm-label-line-height);
overflow-wrap: anywhere;
}
.sb-page .sb-page-header .sb-page-kicker {
margin: 0 0 12px;
color: var(--hm-sem-fg-secondary);
font-size: var(--hm-button-font-size-sm);
font-weight: var(--hm-font-weight-bold);
}
.sb-page .sb-page-header .sb-page-title {
margin: 8px 0 12px;
font-size: var(--hm-page-header-title-font-size);
line-height: var(--hm-page-header-title-line-height);
font-weight: var(--hm-page-header-title-font-weight);
}
.sb-page .sb-page-header .sb-page-description { margin: 0 0 12px; font-weight: var(--hm-input-font-weight); }
.sb-page .sb-page-section { margin-top: 32px; scroll-margin-top: 16px; }
.sb-page .sb-page-section-header {
padding-bottom: 12px;
margin-bottom: 16px;
border-bottom: 1px solid var(--hm-sem-stroke-input-default);
overflow-wrap: anywhere;
}
.sb-page .sb-page-section-header .sb-page-section-title {
margin: 0;
font-size: var(--hm-card-title-font-size);
line-height: var(--hm-card-title-line-height);
font-weight: var(--hm-card-title-font-weight);
}
.sb-page .sb-page-section-header .sb-page-section-description {
margin: 4px 0 0;
color: var(--hm-sem-fg-secondary);
font-size: var(--hm-label-font-size);
line-height: var(--hm-label-line-height);
font-weight: var(--hm-input-font-weight);
}
.sb-page .sb-page-section-body { min-width: 0; }