Files
breadcrumb-the-shire/web/css/components/app-details.css

160 lines
3.7 KiB
CSS
Raw Normal View History

@layer components {
/* Detail page layout — aside panel, card sections, sticky titlebar integration. */
.app-details-container > aside {
2026-03-14 15:58:10 +01:00
padding-top: var(--app-spacing);
}
2026-02-04 23:31:53 +01:00
2026-03-24 17:25:59 +01:00
.app-details-container > section > form [data-tab-panel] {
feat(responsive): mobile polish — topbar, drawer, footer, tabs, notification dropdown Unifies the breakpoint system and fixes cross-layer CSS bugs that kept the old mobile hide rules from ever taking effect. Breakpoints: - Document canonical xs/sm/md/lg/xl/2xl scale in variables.base.css - Replace 968px one-offs with 1024px (app-details, app-page-editor) - Make details tab-panel max-width responsive (min(70ch, 100%)) Topbar (< md): - Hide breadcrumb in components layer so cross-layer overrides actually win - Dock search icon alongside right-column icons via flex layout - Add xs (400px) tightening for hit-area preservation - Hide brand divider alongside hidden brand name - Switch hover states to theme-aware --app-dropdown-hover-background-color Mobile drawer: - Icon-bar now vertical like desktop (was horizontal top strip, effectively invisible) - Sidebar shifted 52px right so icon-bar and sidebar slide in as one 280px unit - Add breathing room above first nav item (20px top padding) List tabs: - Rewrite .app-list-tabs to horizontal scroll with hidden scrollbar, snap, and mask-image gradient fades; add initListTabs to scroll active into view - Register as runtime component in app-init.js List toolbar: - Stack wide controls (multi-select, search/text inputs) full-width below sm, keep compact controls at natural width Footer: - New dedicated app-footer.css with mobile-first stacking, border-top separator, theme-aware hover; remove redundant rules from app-shell.css Notification dropdown: - Width with min(360px, 100vw - 2rem) and min-width: 0 override global details > ul rule; switch to position: fixed below md so it hugs the viewport right edge instead of the non-rightmost bell button Content spacing: - Add padding-block-start to .app-main-content on mobile (was 0) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 23:50:59 +02:00
max-width: min(70ch, 100%);
2026-03-14 15:58:10 +01:00
}
.app-details-container > section > form [data-tab-panel-wide] {
max-width: none;
}
2026-03-14 15:58:10 +01:00
.app-details-aside-actions {
display: grid;
gap: calc(var(--app-spacing) * 0.5);
}
2026-03-14 15:58:10 +01:00
.app-details-aside-actions form {
margin: 0;
}
2026-03-14 15:58:10 +01:00
.app-details-aside-actions a[role="button"],
.app-details-aside-actions button {
width: 100%;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.user-avatar-block,
.entity-avatar-block {
--avatar-size: 96px;
--avatar-ratio: 1 / 1;
display: grid;
gap: calc(var(--app-spacing) * 0.75);
margin-bottom: calc(var(--app-spacing) * 1.25);
width: var(--avatar-size);
aspect-ratio: var(--avatar-ratio);
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.user-avatar-image,
.user-avatar-placeholder,
.entity-avatar-image,
.entity-avatar-placeholder {
width: 100%;
height: 100%;
border: 1px solid var(--app-muted-border-color);
background: var(--app-card-background-color);
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: var(--font-semibold);
2026-03-14 15:58:10 +01:00
color: var(--app-muted-color);
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.user-avatar-placeholder,
.entity-avatar-placeholder {
font-size: var(--text-2xl);
2026-03-14 15:58:10 +01:00
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.user-avatar-image {
object-fit: cover;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.entity-avatar-image {
object-fit: contain;
padding: 3px;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-round .user-avatar-image,
.avatar-round .user-avatar-placeholder,
.avatar-round .entity-avatar-image,
.avatar-round .entity-avatar-placeholder {
border-radius: 999px;
aspect-ratio: 1;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-square .user-avatar-image,
.avatar-square .user-avatar-placeholder,
.avatar-square .entity-avatar-image,
.avatar-square .entity-avatar-placeholder {
border-radius: var(--app-border-radius);
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-ratio-1-1 {
--avatar-ratio: 1 / 1;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-ratio-3-2 {
--avatar-ratio: 3 / 2;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-ratio-4-3 {
--avatar-ratio: 4 / 3;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-ratio-16-9 {
--avatar-ratio: 16 / 9;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-borderless .user-avatar-image,
.avatar-borderless .user-avatar-placeholder,
.avatar-borderless .entity-avatar-image,
.avatar-borderless .entity-avatar-placeholder {
border: none;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-size-auto {
width: auto;
aspect-ratio: auto;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.avatar-size-auto .user-avatar-image,
.avatar-size-auto .user-avatar-placeholder,
.avatar-size-auto .entity-avatar-image,
.avatar-size-auto .entity-avatar-placeholder {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.app-details-container > section > * {
padding-inline: calc(var(--app-spacing) * 2);
}
2026-02-04 23:31:53 +01:00
2026-03-14 15:58:10 +01:00
.app-details-container .app-details-titlebar {
position: sticky;
top: var(--app-topbar-height);
2026-03-14 15:58:10 +01:00
z-index: 10;
padding-block-start: calc(var(--app-spacing) * 2);
2026-03-14 15:58:10 +01:00
background: var(--app-background-color);
}
2026-02-11 19:28:12 +01:00
2026-03-14 15:58:10 +01:00
@media (max-width: 768px) {
.app-details-container > section > * {
padding-inline: calc(var(--app-spacing) * 0);
}
2026-02-11 19:28:12 +01:00
}
2026-02-04 23:31:53 +01:00
feat(responsive): mobile polish — topbar, drawer, footer, tabs, notification dropdown Unifies the breakpoint system and fixes cross-layer CSS bugs that kept the old mobile hide rules from ever taking effect. Breakpoints: - Document canonical xs/sm/md/lg/xl/2xl scale in variables.base.css - Replace 968px one-offs with 1024px (app-details, app-page-editor) - Make details tab-panel max-width responsive (min(70ch, 100%)) Topbar (< md): - Hide breadcrumb in components layer so cross-layer overrides actually win - Dock search icon alongside right-column icons via flex layout - Add xs (400px) tightening for hit-area preservation - Hide brand divider alongside hidden brand name - Switch hover states to theme-aware --app-dropdown-hover-background-color Mobile drawer: - Icon-bar now vertical like desktop (was horizontal top strip, effectively invisible) - Sidebar shifted 52px right so icon-bar and sidebar slide in as one 280px unit - Add breathing room above first nav item (20px top padding) List tabs: - Rewrite .app-list-tabs to horizontal scroll with hidden scrollbar, snap, and mask-image gradient fades; add initListTabs to scroll active into view - Register as runtime component in app-init.js List toolbar: - Stack wide controls (multi-select, search/text inputs) full-width below sm, keep compact controls at natural width Footer: - New dedicated app-footer.css with mobile-first stacking, border-top separator, theme-aware hover; remove redundant rules from app-shell.css Notification dropdown: - Width with min(360px, 100vw - 2rem) and min-width: 0 override global details > ul rule; switch to position: fixed below md so it hugs the viewport right edge instead of the non-rightmost bell button Content spacing: - Add padding-block-start to .app-main-content on mobile (was 0) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 23:50:59 +02:00
@media (min-width: 1024px) {
.app-details-container:has(> aside) {
2026-03-14 15:58:10 +01:00
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(0, 300px);
min-height: 82vh;
}
.app-details-container.is-aside-collapsed {
grid-template-columns: minmax(0, 1fr);
}
.app-details-container.is-aside-collapsed > aside {
2026-03-14 15:58:10 +01:00
display: none;
}
.app-details-container > aside {
2026-03-14 15:58:10 +01:00
border-left: 1px solid var(--app-border);
padding: calc(var(--app-spacing) * 2);
border-top: none;
min-height: 100vh;
}
2026-02-04 23:31:53 +01:00
}
}