2026-03-19 22:09:44 +01:00
|
|
|
@layer components {
|
2026-03-20 00:05:03 +01:00
|
|
|
ul.app-notification-dropdown {
|
|
|
|
|
padding: 0;
|
|
|
|
|
--app-notification-text: var(--app-dropdown-color);
|
|
|
|
|
--app-notification-muted: var(--app-muted-color);
|
|
|
|
|
--app-notification-hover: var(--app-dropdown-hover-background-color);
|
|
|
|
|
--app-notification-border: var(--app-dropdown-border-color);
|
|
|
|
|
--app-notification-focus: var(--app-primary-focus);
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
/* Dropdown sizing — must out-specify the global
|
|
|
|
|
`details.dropdown > summary + ul { width: 100%; min-width: fit-content }`
|
|
|
|
|
rule in app-shell.css, otherwise the content's intrinsic width wins and
|
|
|
|
|
the dropdown overflows the viewport on mobile. */
|
|
|
|
|
.app-header details.dropdown > summary + ul.app-notification-dropdown {
|
|
|
|
|
width: min(360px, calc(100vw - var(--app-spacing) * 2));
|
|
|
|
|
max-width: min(360px, calc(100vw - var(--app-spacing) * 2));
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Below md, the bell is NOT the rightmost topbar item (bookmark / tenant /
|
|
|
|
|
account sit to the right of it). Anchoring the dropdown with `right: 0`
|
|
|
|
|
relative to the bell's <details> therefore lands its left edge off-viewport
|
|
|
|
|
on narrow screens. Switch to viewport-anchored `position: fixed` so the
|
|
|
|
|
dropdown hugs the viewport's right edge instead of the bell. */
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
.app-header details.dropdown > summary + ul.app-notification-dropdown {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: var(--app-topbar-height);
|
|
|
|
|
right: var(--app-spacing);
|
|
|
|
|
left: auto;
|
|
|
|
|
inset-inline-end: var(--app-spacing);
|
|
|
|
|
inset-inline-start: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-20 00:05:03 +01:00
|
|
|
.app-notification-dropdown__header {
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
border-bottom: 1px solid var(--app-notification-border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-dropdown__title {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--app-notification-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-dropdown__mark-all {
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--app-primary);
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-dropdown__mark-all:hover {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-dropdown__body {
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
max-height: 400px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
padding: 10px 16px;
|
|
|
|
|
border-bottom: 1px solid var(--app-notification-border);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background 0.15s;
|
|
|
|
|
color: var(--app-notification-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Keep row-link notifications visually stable despite global role-based styles. */
|
|
|
|
|
.app-notification-item--link {
|
|
|
|
|
margin: 0;
|
|
|
|
|
border: 0;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
border-bottom: 1px solid var(--app-notification-border);
|
|
|
|
|
outline: 0;
|
|
|
|
|
background: transparent;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
color: var(--app-notification-text);
|
|
|
|
|
font: inherit;
|
|
|
|
|
font-weight: inherit;
|
|
|
|
|
line-height: inherit;
|
|
|
|
|
text-align: left;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item--link:is(:hover, :active, :focus) {
|
|
|
|
|
background: var(--app-notification-hover);
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
color: var(--app-notification-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item--link:focus-visible {
|
|
|
|
|
outline: 2px solid var(--app-notification-focus);
|
|
|
|
|
outline-offset: -2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item:hover {
|
|
|
|
|
background: var(--app-notification-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item--unread {
|
|
|
|
|
border-left: 3px solid var(--app-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item__icon {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
color: var(--app-notification-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item--unread .app-notification-item__icon {
|
|
|
|
|
color: var(--app-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item__content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item__title {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--app-notification-text);
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
margin: 0 0 2px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item__body {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--app-notification-muted);
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
margin: 0 0 2px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item__time {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--app-notification-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item__actions {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.15s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item:hover .app-notification-item__actions,
|
|
|
|
|
.app-notification-item:focus-within .app-notification-item__actions {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item__action-btn {
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--app-notification-muted);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 2px;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-item__action-btn:hover {
|
|
|
|
|
color: var(--app-notification-text);
|
|
|
|
|
background: var(--app-notification-border);
|
|
|
|
|
}
|
2026-03-20 22:49:03 +01:00
|
|
|
|
|
|
|
|
.app-notification-loading,
|
|
|
|
|
.app-notification-error {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 24px 16px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--app-notification-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-error {
|
|
|
|
|
color: var(--app-danger, #c0392b);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.app-notification-loading__spinner {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
border: 2px solid var(--app-notification-border);
|
|
|
|
|
border-top-color: var(--app-primary);
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
animation: app-notification-spin 0.6s linear infinite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes app-notification-spin {
|
|
|
|
|
to { transform: rotate(360deg); }
|
|
|
|
|
}
|
2026-03-19 22:09:44 +01:00
|
|
|
}
|