mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-11-23 17:42:09 +00:00
71f7bb2dfd
Global search (Ctrl+K, or "/" when no field has focus) searches pages, devices and people from one dialog. Pages come from a server-built index filtered by panel access and RBAC, so it never lists a page the role cannot open; devices and people load only when the session may read them. Long sidebar sections keep their daily pages and fold the rest into a section-level "More" row with a count, remembered per browser. The menu filter exists in the beta sidebar too, matches inside those rows and opens them. Width, collapsed groups, "More" rows and scroll position are restored before the first paint, so the menu never jumps. The rest of the console keeps its markup and takes the same rhythm: one content column, ruled sections instead of floating cards, stat numbers in one ruled row, page tabs as a ruled row, hairline tables. Chat and Remote stay full-bleed workspaces. Settings search now names another topic when the typed words match one. The shell scroll chain is fixed: the beta declared min-height only while body.app-page clips overflow, so a long list (Devices) could not scroll and the floating horizontal bar sat at the bottom of the list instead of the screen. The content column is the single scrollport again, as in UX 3.5. nav.more / nav.fewer / search.* / settings.ui.search_topic exist in all 26 locales; the icon subset gains more_horiz; tokens.css gains --radius-full. Based-on: @rathlinus UX redesign (Refs #493, #495) Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
1229 lines
26 KiB
CSS
1229 lines
26 KiB
CSS
/*
|
|
* Console shell: top bar, sidebar navigation, content column, mobile
|
|
* bottom bar. Loaded on every page that uses layouts/main.ejs.
|
|
* Below 1100px the sidebar becomes a drawer (ux35-shell.js).
|
|
*/
|
|
|
|
.ux35-shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
height: 100dvh;
|
|
/* The content column is the scroll box (below). The shell itself must not
|
|
scroll: body.app-page already clips overflow, so a min-height-only shell
|
|
would grow past the viewport with nothing left to scroll — a long list
|
|
such as Devices then cannot be scrolled at all. */
|
|
overflow: hidden;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--font);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading);
|
|
}
|
|
|
|
/* Embedded windows size to their content instead of the viewport. */
|
|
.ux35-shell.embed-mode {
|
|
height: auto;
|
|
min-height: 100vh;
|
|
overflow: visible;
|
|
}
|
|
|
|
.emergency-banner {
|
|
padding: var(--space-2) var(--space-4);
|
|
background: var(--danger);
|
|
color: var(--on-accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ── Top bar ── */
|
|
|
|
.ux35-topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: var(--layer-topbar);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
height: var(--topbar-h);
|
|
padding: 0 var(--space-3);
|
|
border-bottom: 1px solid var(--rule);
|
|
background: var(--bg);
|
|
}
|
|
|
|
/* The top bar's icon buttons are the icon button component (components.css),
|
|
at the default control height like the bar's other controls (Help, search) */
|
|
.ux35-topbar {
|
|
--icon-btn-size: var(--control-h);
|
|
}
|
|
|
|
.ux35-topbar-btn {
|
|
position: relative;
|
|
}
|
|
|
|
.ux35-topbar-menu-btn {
|
|
display: none;
|
|
}
|
|
|
|
.ux35-topbar-logo {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
min-height: var(--control-h);
|
|
padding-inline-end: var(--space-3);
|
|
color: var(--text);
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ux35-topbar-logo:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
/* With the sidebar docked, the logo sits in its own section on top of the
|
|
sidebar: same width and background, so they read as one column, and the
|
|
breadcrumb starts on the content's edge */
|
|
@media (min-width: 1100px) {
|
|
.ux35-topbar {
|
|
padding-inline-start: 0;
|
|
}
|
|
|
|
.ux35-topbar-logo {
|
|
flex: none;
|
|
align-self: stretch;
|
|
box-sizing: border-box;
|
|
width: var(--ux35-sidebar-width, var(--sidebar-w));
|
|
margin-inline-end: calc(var(--page-pad) - var(--space-2));
|
|
padding-inline: var(--space-4);
|
|
overflow: hidden;
|
|
border-inline-end: 1px solid var(--rule);
|
|
background: var(--bg-subtle);
|
|
}
|
|
|
|
.ux35-topbar .ux35-topbar-breadcrumb {
|
|
padding-inline-start: 0;
|
|
border-inline-start: 0;
|
|
}
|
|
|
|
/* The logo almost fills its section: the section's width, at most 30 px
|
|
high (the logo is 815.9 x 132.92), smaller with a narrower sidebar */
|
|
.ux35-topbar-logo .brand-logo-full {
|
|
width: min(100%, calc(30px * 815.9 / 132.92));
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
.ux35-topbar-logo img,
|
|
.ux35-topbar-logo .sidebar-logo-svg svg {
|
|
width: auto;
|
|
height: 22px;
|
|
display: block;
|
|
}
|
|
|
|
.ux35-topbar-logo .brand-text-accent {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* BetterDesk logo (partials/brand-logo.ejs): 22px high, the mark alone on phones */
|
|
.ux35-topbar-logo .brand-logo {
|
|
display: block;
|
|
flex: none;
|
|
}
|
|
|
|
.ux35-topbar-logo .brand-logo-compact {
|
|
display: none;
|
|
}
|
|
|
|
.ux35-topbar-breadcrumb {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
min-width: 0;
|
|
padding-inline-start: var(--space-3);
|
|
border-inline-start: 1px solid var(--rule);
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ux35-topbar-breadcrumb a {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.ux35-topbar-breadcrumb .current {
|
|
color: var(--text);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ux35-topbar-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.ux35-topbar-actions,
|
|
.ux35-topbar-action-list {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
/* Help: the one top bar control with a word, since it opens a panel, not a setting */
|
|
.ux35-topbar-text-btn {
|
|
min-height: var(--control-h);
|
|
padding: 0 var(--space-3);
|
|
border: 0;
|
|
border-radius: var(--radius);
|
|
background: transparent;
|
|
color: var(--text);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ux35-topbar-text-btn:hover {
|
|
background: var(--hover);
|
|
}
|
|
|
|
.ux35-topbar-actions-menu-btn {
|
|
display: none;
|
|
}
|
|
|
|
/* Notification mark: a dot, the count is for screen readers */
|
|
.notif-badge {
|
|
position: absolute;
|
|
top: 6px;
|
|
inset-inline-end: 6px;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--danger);
|
|
overflow: hidden;
|
|
color: transparent;
|
|
font-size: 0;
|
|
}
|
|
|
|
/* Top bar menus */
|
|
.lang-selector,
|
|
.notif-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.lang-dropdown,
|
|
.notif-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + var(--space-1));
|
|
inset-inline-end: 0;
|
|
z-index: var(--layer-menu);
|
|
min-width: 200px;
|
|
max-height: min(70vh, 480px);
|
|
overflow-y: auto;
|
|
padding: var(--space-1) 0;
|
|
border: 1px solid var(--rule);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-float);
|
|
box-shadow: var(--shadow-float);
|
|
color: var(--text);
|
|
}
|
|
|
|
.lang-dropdown {
|
|
display: none;
|
|
}
|
|
|
|
.lang-dropdown.open {
|
|
display: block;
|
|
}
|
|
|
|
.lang-option.active {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Notifications menu: header, rows (one per request), footer links.
|
|
The rows scroll; header and footer stay. */
|
|
.notif-dropdown {
|
|
width: min(400px, calc(100vw - 2 * var(--space-4)));
|
|
max-height: min(calc(100vh - var(--topbar-h) - var(--space-5)), 560px);
|
|
padding: 0;
|
|
overflow: hidden;
|
|
animation: none;
|
|
}
|
|
|
|
.notif-dropdown:not([hidden]) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.notif-header,
|
|
.notif-footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--space-1) var(--space-3);
|
|
padding: var(--space-1) var(--space-3);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.notif-header {
|
|
justify-content: space-between;
|
|
min-height: var(--control-h);
|
|
border-bottom: 1px solid var(--rule);
|
|
}
|
|
|
|
.notif-title {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.notif-footer {
|
|
border-top: 1px solid var(--rule);
|
|
}
|
|
|
|
.notif-mark-all,
|
|
.notif-retry,
|
|
.notif-see-all {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: var(--control-h);
|
|
padding: 0 var(--space-1);
|
|
border: 0;
|
|
border-radius: var(--radius);
|
|
background: transparent;
|
|
color: var(--accent);
|
|
font: inherit;
|
|
font-size: var(--text-sm);
|
|
font-weight: 400;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.notif-mark-all:hover,
|
|
.notif-retry:hover,
|
|
.notif-see-all:hover {
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
.notif-mark-all:focus-visible,
|
|
.notif-retry:focus-visible,
|
|
.notif-see-all:focus-visible {
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.notif-list {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
max-height: none;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
.notif-state {
|
|
margin: 0;
|
|
padding: var(--space-4) var(--space-3);
|
|
color: var(--text-muted);
|
|
text-align: start;
|
|
}
|
|
|
|
.notif-state.is-error {
|
|
color: var(--text);
|
|
}
|
|
|
|
.notif-rows {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.notif-rows > li + li {
|
|
border-top: 1px solid var(--rule);
|
|
}
|
|
|
|
/* One row: OS mark (or the kind's icon) | what happened, device, details | age.
|
|
Unread rows carry an accent rule on the start side, a light accent
|
|
background and a semibold first line. */
|
|
.notif-row {
|
|
display: grid;
|
|
grid-template-columns: 20px minmax(0, 1fr) auto;
|
|
grid-template-areas:
|
|
"mark kind time"
|
|
"mark device device"
|
|
"mark detail detail";
|
|
column-gap: var(--space-3);
|
|
row-gap: 2px;
|
|
min-height: var(--row-h);
|
|
padding: var(--space-2) var(--space-3);
|
|
padding-inline-start: calc(var(--space-3) - 3px);
|
|
border-inline-start: 3px solid transparent;
|
|
color: var(--text);
|
|
font-size: var(--text-sm);
|
|
line-height: 1.4;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.notif-row:hover {
|
|
background: var(--hover);
|
|
color: var(--text);
|
|
}
|
|
|
|
.notif-row:focus-visible {
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.notif-row.is-unread {
|
|
border-inline-start-color: var(--accent);
|
|
background: color-mix(in srgb, var(--accent) 8%, transparent);
|
|
}
|
|
|
|
.notif-row.is-unread:hover {
|
|
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
|
}
|
|
|
|
.notif-row-mark {
|
|
grid-area: mark;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.notif-row-mark .os-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
vertical-align: 0;
|
|
}
|
|
|
|
.notif-row-mark .material-icons {
|
|
display: inline-block;
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.notif-row-kind {
|
|
grid-area: kind;
|
|
min-width: 0;
|
|
color: var(--text);
|
|
}
|
|
|
|
.notif-row.is-unread .notif-row-kind {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.notif-row-device {
|
|
grid-area: device;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.notif-row-id {
|
|
color: var(--text-muted);
|
|
font-family: var(--mono);
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.notif-row-detail {
|
|
grid-area: detail;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--text-muted);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.notif-row-time {
|
|
grid-area: time;
|
|
color: var(--text-muted);
|
|
font-size: var(--text-xs);
|
|
white-space: nowrap;
|
|
text-align: end;
|
|
align-self: baseline;
|
|
}
|
|
|
|
/* Phones: the bell sits in the folded actions menu; the notifications open
|
|
under the top bar across the screen with a 16 px gutter. */
|
|
@media (max-width: 767px) {
|
|
.notif-dropdown {
|
|
position: fixed;
|
|
top: calc(var(--topbar-h) + var(--space-1));
|
|
inset-inline: var(--space-4);
|
|
width: auto;
|
|
max-height: calc(100vh - var(--topbar-h) - 72px - var(--space-5));
|
|
max-height: calc(100dvh - var(--topbar-h) - 72px - env(safe-area-inset-bottom, 0px) - var(--space-5));
|
|
}
|
|
}
|
|
|
|
/* ── Body: sidebar + content ── */
|
|
|
|
.ux35-body {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.ux35-sidebar {
|
|
/* Not sticky: the shell does not scroll, so the sidebar simply fills its
|
|
column. (Sticky here would offset it by the top bar's height, because the
|
|
stick constraint starts at the body's top edge.) */
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: var(--ux35-sidebar-width, var(--sidebar-w));
|
|
height: 100%;
|
|
border-inline-end: 1px solid var(--rule);
|
|
background: var(--bg-subtle);
|
|
}
|
|
|
|
.ux35-sidebar-resize {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
inset-inline-end: -3px;
|
|
z-index: 2;
|
|
width: 6px;
|
|
cursor: col-resize;
|
|
}
|
|
|
|
.ux35-sidebar-resize:hover,
|
|
.ux35-sidebar-resize.active {
|
|
background: var(--border);
|
|
}
|
|
|
|
.ux35-sidebar-resize:focus-visible {
|
|
background: var(--focus);
|
|
outline: 2px solid var(--focus);
|
|
outline-offset: 0;
|
|
}
|
|
|
|
.ux35-is-resizing,
|
|
.ux35-is-resizing * {
|
|
cursor: col-resize;
|
|
user-select: none;
|
|
}
|
|
|
|
.ux35-sidebar-nav {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--space-3) var(--space-2);
|
|
}
|
|
|
|
.ux35-sidebar-section + .ux35-sidebar-section {
|
|
margin-top: var(--space-1);
|
|
}
|
|
|
|
.ux35-sidebar-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
min-height: var(--control-h);
|
|
padding: 0 var(--space-2);
|
|
border: 0;
|
|
border-radius: var(--radius);
|
|
background: transparent;
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-weight: 600;
|
|
text-align: start;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ux35-sidebar-heading:hover {
|
|
background: var(--hover);
|
|
}
|
|
|
|
.nav-section-icon {
|
|
font-size: 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.ux35-sidebar-section.is-current .nav-section-icon {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-section-label {
|
|
flex: 1;
|
|
}
|
|
|
|
.ux35-section-chevron {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.nav-list {
|
|
margin: 0 0 var(--space-2);
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.ux35-sidebar-section.is-collapsed .nav-list {
|
|
display: none;
|
|
}
|
|
|
|
.ux35-sidebar-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
min-height: 34px;
|
|
padding: var(--space-1) var(--space-2);
|
|
/* lines up with the section label, after its icon */
|
|
padding-inline-start: calc(var(--space-2) + 20px + 10px - 2px);
|
|
border-inline-start: 2px solid transparent;
|
|
border-radius: 0 var(--radius) var(--radius) 0;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
}
|
|
|
|
[dir="rtl"] .ux35-sidebar-item {
|
|
border-radius: var(--radius) 0 0 var(--radius);
|
|
}
|
|
|
|
.ux35-sidebar-item:hover {
|
|
background: var(--hover);
|
|
color: var(--text);
|
|
}
|
|
|
|
.ux35-sidebar-item.active {
|
|
border-inline-start-color: var(--accent);
|
|
background: var(--bg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ux35-sidebar-item.is-sub {
|
|
padding-inline-start: calc(var(--space-2) + 20px + 10px - 2px + var(--space-4));
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.nav-label {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-note,
|
|
.nav-count {
|
|
margin-inline-start: auto;
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
font-weight: 400;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* Small heading that splits a long section (Settings) into groups */
|
|
.nav-group {
|
|
padding: var(--space-3) var(--space-2) var(--space-1);
|
|
padding-inline-start: calc(var(--space-2) + 20px + 10px);
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.nav-list > .nav-group:first-child {
|
|
padding-top: var(--space-1);
|
|
}
|
|
|
|
/* ── Menu filter and the section's "More" row ── */
|
|
|
|
.ux36-sidebar-filter {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
padding: 0 var(--space-2) var(--space-2);
|
|
background: var(--bg-subtle);
|
|
}
|
|
|
|
.ux36-sidebar-filter .form-input {
|
|
width: 100%;
|
|
min-height: var(--control-h-sm);
|
|
padding-inline: var(--control-pad-x-sm);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.ux35-sidebar-item.nav-more-toggle {
|
|
width: 100%;
|
|
border: 0;
|
|
border-inline-start: 2px solid transparent;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ux35-sidebar-item.nav-more-toggle:hover {
|
|
background: var(--hover);
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-more-toggle .nav-more-chevron {
|
|
font-size: 18px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.nav-more-list[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
/* Filtered-out rows disappear instead of leaving gaps */
|
|
.ux36-sidebar-nav .ux35-sidebar-item.is-filter-hidden,
|
|
.ux36-sidebar-nav .ux36-nav-section.is-filter-empty {
|
|
display: none;
|
|
}
|
|
|
|
.ux35-sidebar-footer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
padding: var(--space-3) var(--space-4);
|
|
border-top: 1px solid var(--rule);
|
|
}
|
|
|
|
.ux35-sidebar-user {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 0 var(--space-2);
|
|
}
|
|
|
|
.ux35-sidebar-user-name {
|
|
font-weight: 600;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ux35-sidebar-user-role,
|
|
.ux35-sidebar-attribution {
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.ux35-sidebar-attribution {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
/* ── Account menu (views/partials/user-menu.ejs) ──
|
|
In the sidebar footer while the sidebar is docked; below 1100 px the top
|
|
bar account button opens the same menu. */
|
|
.user-menu-anchor.is-sidebar {
|
|
display: block;
|
|
}
|
|
|
|
.user-menu-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
width: calc(100% + 2 * var(--space-2));
|
|
min-height: var(--control-h);
|
|
margin-inline: calc(-1 * var(--space-2));
|
|
padding: var(--space-1) var(--space-2);
|
|
border: 0;
|
|
border-radius: var(--radius);
|
|
background: transparent;
|
|
color: var(--text);
|
|
font: inherit;
|
|
text-align: start;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-menu-btn:hover,
|
|
.user-menu-btn[aria-expanded="true"] {
|
|
background: var(--hover);
|
|
}
|
|
|
|
.user-menu-btn-text {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.user-menu-name {
|
|
overflow: hidden;
|
|
font-weight: 600;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-menu-role {
|
|
overflow: hidden;
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-menu-chevron {
|
|
flex-shrink: 0;
|
|
color: var(--text-muted);
|
|
font-size: 18px;
|
|
}
|
|
|
|
.menu-anchor > .user-menu {
|
|
width: max-content;
|
|
min-width: 220px;
|
|
max-width: min(320px, calc(100vw - 2 * var(--space-3)));
|
|
}
|
|
|
|
.user-menu-person {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: var(--space-2) var(--space-3);
|
|
border-bottom: 1px solid var(--rule);
|
|
margin-bottom: var(--space-1);
|
|
}
|
|
|
|
.user-menu-anchor.is-topbar {
|
|
position: relative;
|
|
}
|
|
|
|
/* My status: the dot on the avatar is ringed in the surface it sits on */
|
|
.user-menu-btn { --presence-ring: var(--bg-subtle); }
|
|
.user-menu-btn:hover,
|
|
.user-menu-btn[aria-expanded="true"] { --presence-ring: var(--hover); }
|
|
.user-menu { --presence-ring: var(--bg-float); }
|
|
.ux35-user-btn { --presence-ring: var(--bg); }
|
|
|
|
/* Status items: the dot where menu icons go, a check at the end for the chosen one */
|
|
.user-menu .menu-item[data-presence] .presence {
|
|
margin-inline: 4px;
|
|
}
|
|
|
|
.user-menu .user-menu-check {
|
|
margin-inline-start: auto;
|
|
color: var(--accent);
|
|
font-size: 18px;
|
|
}
|
|
|
|
@media (min-width: 1100px) {
|
|
.user-menu-anchor.is-topbar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ux35-sidebar-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 55;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
opacity: 0;
|
|
transition: opacity var(--motion);
|
|
}
|
|
|
|
.ux35-sidebar-overlay.visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
.ux35-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
/* The page column scrolls inside the shell, never the document: the top bar
|
|
and the sidebar stay put, and a long table keeps its own scroll box. */
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ux35-content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
overscroll-behavior: contain;
|
|
scrollbar-gutter: stable;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding: var(--page-pad);
|
|
padding-bottom: var(--space-7);
|
|
}
|
|
|
|
/* ── Drawer below 1100px ── */
|
|
|
|
@media (max-width: 1099px) {
|
|
.ux35-topbar-menu-btn {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.ux35-sidebar {
|
|
position: fixed;
|
|
top: 0;
|
|
bottom: 0;
|
|
inset-inline-start: 0;
|
|
z-index: 60;
|
|
width: min(300px, 86vw);
|
|
height: auto;
|
|
transform: translateX(-100%);
|
|
visibility: hidden;
|
|
transition: transform var(--motion), visibility 0s linear var(--motion);
|
|
}
|
|
|
|
[dir="rtl"] .ux35-sidebar {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.ux35-drawer-open .ux35-sidebar {
|
|
transform: none;
|
|
visibility: visible;
|
|
transition: transform var(--motion);
|
|
}
|
|
}
|
|
|
|
/* The resize handle is a pointer affordance only; keyboard users resize with
|
|
the arrow keys once it is focused, so it is hidden on coarse pointers. */
|
|
@media (pointer: coarse) {
|
|
.ux35-sidebar-resize {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.ux35-topbar {
|
|
padding: 0 var(--space-2);
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.ux35-topbar-logo .brand-name,
|
|
.ux35-topbar-logo .brand-logo-full {
|
|
display: none;
|
|
}
|
|
|
|
.ux35-topbar-logo .brand-logo-compact {
|
|
display: block;
|
|
}
|
|
|
|
.ux35-topbar-breadcrumb {
|
|
padding-inline-start: var(--space-2);
|
|
}
|
|
|
|
.ux35-topbar-breadcrumb > :not(.current) {
|
|
display: none;
|
|
}
|
|
|
|
.ux35-topbar-actions-menu-btn {
|
|
display: inline-flex;
|
|
}
|
|
|
|
/* Extra top bar actions fold into a menu */
|
|
.ux35-topbar-action-list {
|
|
position: absolute;
|
|
top: calc(var(--topbar-h) - var(--space-1));
|
|
inset-inline-end: var(--space-2);
|
|
z-index: var(--layer-menu);
|
|
display: none;
|
|
padding: var(--space-1);
|
|
border: 1px solid var(--rule);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-float);
|
|
box-shadow: var(--shadow-float);
|
|
}
|
|
|
|
.ux35-topbar-action-list.is-open {
|
|
display: flex;
|
|
}
|
|
|
|
.ux35-content {
|
|
padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
}
|
|
|
|
/* ── Mobile bottom bar ── */
|
|
|
|
.mobile-bottom-nav {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-more-drawer {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.mobile-bottom-nav {
|
|
position: fixed;
|
|
inset-inline: 0;
|
|
bottom: 0;
|
|
z-index: 40;
|
|
display: flex;
|
|
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
border-top: 1px solid var(--rule);
|
|
background: var(--bg);
|
|
}
|
|
|
|
.mobile-bottom-nav-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
min-height: 56px;
|
|
padding: var(--space-1) 0;
|
|
border: 0;
|
|
border-top: 2px solid transparent;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font: inherit;
|
|
font-size: var(--text-xs);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mobile-bottom-nav-item.active {
|
|
border-top-color: var(--accent);
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mobile-bottom-nav-item .material-icons {
|
|
font-size: 22px;
|
|
}
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
.ux35-sidebar-item {
|
|
min-height: 44px;
|
|
}
|
|
|
|
.ux35-sidebar-heading {
|
|
min-height: 44px;
|
|
}
|
|
}
|
|
|
|
/* ── Embedded pages (desktop mode windows) ── */
|
|
|
|
.embed-mode .ux35-content {
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
/* The content column is the shell's scroll box, as in UX 3.5. main.css makes
|
|
.main-content a fixed-height scroll box under a fixed navbar; the shell
|
|
replaces that, but the scrolling itself must stay here — body.app-page clips
|
|
overflow, so a document-level scroll would never happen. */
|
|
.ux35-content.main-content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
width: auto;
|
|
height: auto;
|
|
margin-top: 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
.bd-help-panel-close {
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
}
|
|
}
|
|
|
|
/* Closed help panel takes no space: docked on wide screens, its content
|
|
height would otherwise stretch every page */
|
|
.bd-help-panel:not(.is-open) {
|
|
display: none;
|
|
}
|
|
|
|
/* ── Global search (public/js/ui-search.js) ── */
|
|
|
|
.ux35-search-trigger {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
width: min(320px, 28vw);
|
|
min-height: var(--control-h-sm);
|
|
margin-inline-end: var(--space-3);
|
|
padding: 0 var(--space-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg);
|
|
color: var(--text-muted);
|
|
font: inherit;
|
|
text-align: start;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ux35-search-trigger:hover {
|
|
border-color: var(--text-muted);
|
|
}
|
|
|
|
.ux35-search-label {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ux35-search-kbd {
|
|
padding: 0 var(--space-1);
|
|
border: 1px solid var(--rule);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-muted);
|
|
font-family: var(--font);
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
@media (max-width: 767px), (pointer: coarse) {
|
|
.ux35-search-kbd {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.ux35-search-trigger {
|
|
justify-content: center;
|
|
width: var(--control-h);
|
|
min-height: var(--control-h);
|
|
margin-inline-end: 0;
|
|
padding: 0;
|
|
border-color: transparent;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Visually hidden but still the button's name */
|
|
.ux35-search-label {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.search-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: var(--layer-search);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
padding: 10vh var(--space-4) var(--space-4);
|
|
background: rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
.search-overlay[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.search-dialog {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: min(640px, 100%);
|
|
max-height: 70vh;
|
|
border: 1px solid var(--rule);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-float);
|
|
box-shadow: var(--shadow-float);
|
|
color: var(--text);
|
|
}
|
|
|
|
.search-field {
|
|
padding: var(--space-3);
|
|
border-bottom: 1px solid var(--rule);
|
|
}
|
|
|
|
.search-field .form-input {
|
|
min-height: 44px;
|
|
font-size: var(--text-md);
|
|
}
|
|
|
|
.search-results {
|
|
flex: 1;
|
|
min-height: 0;
|
|
margin: 0;
|
|
padding: var(--space-1) 0;
|
|
overflow-y: auto;
|
|
list-style: none;
|
|
}
|
|
|
|
.search-group {
|
|
padding: var(--space-2) var(--space-3) var(--space-1);
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.search-result {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
min-height: var(--row-h);
|
|
padding: var(--space-1) var(--space-3);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search-result .material-icons {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.search-result[aria-selected="true"] {
|
|
background: var(--accent-tint);
|
|
}
|
|
|
|
.search-result-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
.search-result-title {
|
|
font-weight: 600;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.search-result-sub {
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.search-status,
|
|
.search-keys {
|
|
margin: 0;
|
|
padding: var(--space-2) var(--space-3);
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.search-status {
|
|
border-top: 1px solid var(--rule);
|
|
}
|
|
|
|
.search-keys {
|
|
padding-top: 0;
|
|
}
|
|
|
|
@media (pointer: coarse) {
|
|
.search-keys {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* ── "More" row in a sidebar section ── */
|
|
|
|
.nav-more-toggle {
|
|
width: 100%;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font: inherit;
|
|
text-align: start;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.nav-more-toggle .nav-note {
|
|
margin-inline-start: auto;
|
|
}
|
|
|
|
.nav-more-chevron {
|
|
font-size: 18px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.nav-more-list {
|
|
margin: 0;
|
|
}
|
|
|
|
.search-field.search-wrapper > .material-icons {
|
|
inset-inline-start: calc(var(--space-3) + var(--space-2));
|
|
}
|