Files
breadcrumb-the-shire/web/css/components/app-page-editor.css
fs cfba3f40ed 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

83 lines
1.6 KiB
CSS

@layer components {
/* Page editor — Editor.js integration styles for CMS content editing. */
.app-page-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--app-spacing);
margin-bottom: var(--app-spacing);
}
.app-page-header > div {
display: flex;
align-items: center;
gap: var(--app-spacing);
}
.app-page-header > div > * {
margin-bottom: 0;
width: auto;
}
.app-page-header button,
.app-page-header input {
margin-bottom: 0;
width: auto;
}
.app-page-header h1 {
margin: 0;
}
label.app-field > span {
display: block;
}
label.app-field > small {
display: block;
}
.page-editor-actions {
margin-top: var(--app-spacing);
display: flex;
gap: var(--app-spacing);
justify-content: flex-end;
}
.page-editor[data-edit-mode="view"] .page-editor-actions {
display: none;
}
.page-editor[data-edit-mode="view"] .ce-toolbar,
.page-editor[data-edit-mode="view"] .ce-inline-toolbar,
.page-editor[data-edit-mode="view"] .ce-popover {
display: none !important;
}
.ce-block__content,
.ce-toolbar__content {
max-width: 90% !important;
}
.ce-editorjsColumns_wrapper .ce-toolbar__content,
.ce-editorjsColumns_wrapper .ce-block__content {
max-width: 100% !important;
}
.ce-popover-item[data-item-name="columns"] svg {
width: 14px;
height: 14px;
}
.app-details-aside-section button {
margin-bottom: 0;
}
@media (min-width: 1024px) {
.app-page-action-card {
position: sticky;
top: calc(var(--app-spacing) * 4);
}
}
}