Favourite pages that follow the user, and a narrow icon-only sidebar
A star beside each page in the sidebar pins it under "Favourites" at the top of the menu; the list is saved with the user (users.favorites, migration 0020), so it follows them to any browser, is offered first in the search box, and can be changed from there too. A button at the foot of the sidebar, or the [ key, narrows it to a strip of icons, where a group's pages open in a small menu beside its icon and the alert and maintenance counts stay visible; the choice is kept per browser and applies only on wide screens. Menu text on a coloured (environment) sidebar is full strength for contrast, and menu badges sit in line on a phone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
57fd4f8c52
commit
65263a64e3
17 files changed
+2736
-86
No files matched your search
@@ -72,6 +72,29 @@ html[data-env] .navbar-vertical {
|
||||
background-color: var(--hlm-env-color) !important;
|
||||
}
|
||||
|
||||
/* The menu text is Tabler's 70%-white, fine on navy but too faint on a coloured sidebar; make it full strength there. */
|
||||
html[data-env] .navbar-vertical[data-bs-theme="dark"] {
|
||||
color: rgba(255, 255, 255, 0.97);
|
||||
}
|
||||
|
||||
html[data-env] .navbar-vertical[data-bs-theme="dark"] :is(.nav-link, .dropdown-item, .nav-heading) {
|
||||
color: rgba(255, 255, 255, 0.95);
|
||||
}
|
||||
|
||||
html[data-env] .navbar-vertical[data-bs-theme="dark"] :is(.nav-link, .dropdown-item):hover,
|
||||
html[data-env] .navbar-vertical[data-bs-theme="dark"] :is(.nav-link, .dropdown-item).active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
html[data-env] .navbar-vertical[data-bs-theme="dark"] .btn-outline-secondary {
|
||||
color: rgba(255, 255, 255, 0.95);
|
||||
border-color: rgba(255, 255, 255, 0.55);
|
||||
}
|
||||
|
||||
.user-menu-who .opacity-75 {
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.env-badge {
|
||||
background-color: #fff;
|
||||
color: var(--hlm-env-color, #000);
|
||||
@@ -853,6 +876,238 @@ a.map-node:focus-visible {
|
||||
color: #0b5cad;
|
||||
}
|
||||
|
||||
/* ── Favourites: pinned pages at the top of the menu, and the star that pins them. ── */
|
||||
.nav-heading {
|
||||
padding: 0.5rem 1rem 0.15rem;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.nav-favourites {
|
||||
padding-bottom: 0.35rem;
|
||||
margin-bottom: 0.35rem;
|
||||
border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
|
||||
}
|
||||
|
||||
.nav-favourites > .navbar-nav {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.nav-row,
|
||||
.navbar-vertical .navbar-nav .nav-row {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.nav-row > .nav-link,
|
||||
.nav-row > .dropdown-item {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.nav-row .badge {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
/* On a phone Tabler draws a menu badge as a superscript on the corner of the link; here it reads better in line, as on a wide screen. */
|
||||
@media (max-width: 991.98px) {
|
||||
.navbar-vertical .nav-link .badge {
|
||||
position: static !important;
|
||||
transform: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.fav-star {
|
||||
display: inline-grid;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
width: 1.9rem;
|
||||
height: 1.9rem;
|
||||
margin-right: 0.25rem;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: 0;
|
||||
border-radius: 0.3rem;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.nav-row:hover > .fav-star,
|
||||
.nav-row:focus-within > .fav-star,
|
||||
.fav-star[aria-pressed="true"],
|
||||
.fav-star:focus-visible {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.fav-star[aria-pressed="true"] {
|
||||
color: #fbbf24;
|
||||
}
|
||||
|
||||
.fav-star:hover {
|
||||
background: color-mix(in srgb, currentColor 14%, transparent);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@media (hover: none) {
|
||||
.fav-star {
|
||||
opacity: 0.55;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── The narrow, icon-only sidebar (wide screens): a strip of icons, with a group's pages opening to the side. ── */
|
||||
.rail-mark {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rail-toggle {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 0.35rem 0.5rem;
|
||||
margin-bottom: 0.4rem;
|
||||
font-size: 0.8rem;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.rail-toggle:hover {
|
||||
background: color-mix(in srgb, currentColor 14%, transparent);
|
||||
}
|
||||
|
||||
.rail-flyout {
|
||||
position: fixed;
|
||||
z-index: 1040;
|
||||
min-width: 13rem;
|
||||
max-width: 18rem;
|
||||
padding: 0.35rem;
|
||||
overflow-y: auto;
|
||||
color: var(--tblr-body-color);
|
||||
background: var(--tblr-bg-surface);
|
||||
border: 1px solid var(--tblr-border-color);
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.rail-flyout-title {
|
||||
padding: 0.35rem 0.6rem 0.25rem;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
.rail-flyout .fav-star {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.sidebar-rail {
|
||||
--tblr-sidebar-width: 4.75rem;
|
||||
}
|
||||
|
||||
.sidebar-rail .navbar-vertical .navbar-brand {
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
justify-content: center;
|
||||
padding: 0.75rem 0.25rem;
|
||||
}
|
||||
|
||||
.sidebar-rail .rail-mark {
|
||||
display: block;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.sidebar-rail .navbar-brand .logo-frame {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-rail .navbar-brand .env-badge {
|
||||
padding: 0.1rem 0.35rem;
|
||||
margin: 0 !important;
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
|
||||
.sidebar-rail .navbar-vertical .px-3 {
|
||||
padding-right: 0.5rem !important;
|
||||
padding-left: 0.5rem !important;
|
||||
}
|
||||
|
||||
/* The words go, but stay for screen readers. */
|
||||
.sidebar-rail :is(.nav-link-title, .palette-text, .rail-toggle-text, .user-menu-who) {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sidebar-rail .nav-link {
|
||||
position: relative;
|
||||
justify-content: center;
|
||||
padding-right: 0.25rem;
|
||||
padding-left: 0.25rem;
|
||||
}
|
||||
|
||||
.sidebar-rail .nav-link-icon {
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
|
||||
.sidebar-rail .nav-link .badge {
|
||||
position: absolute;
|
||||
top: 0.1rem;
|
||||
right: 0.4rem;
|
||||
padding: 0.05rem 0.3rem;
|
||||
margin: 0 !important;
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
|
||||
.sidebar-rail .dropdown-toggle::after,
|
||||
.sidebar-rail .nav-heading,
|
||||
.sidebar-rail .navbar-nav .fav-star,
|
||||
.sidebar-rail .user-menu-toggle > svg {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-rail .nav-item.dropdown > .dropdown-menu {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.sidebar-rail .palette-trigger,
|
||||
.sidebar-rail .rail-toggle {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sidebar-rail .user-menu-toggle {
|
||||
justify-content: center;
|
||||
padding: 0.3rem;
|
||||
}
|
||||
|
||||
.sidebar-rail .user-menu-list {
|
||||
position: fixed;
|
||||
bottom: 0.75rem;
|
||||
left: 5.1rem;
|
||||
z-index: 1040;
|
||||
width: 15rem;
|
||||
color: var(--tblr-body-color);
|
||||
background: var(--tblr-bg-surface);
|
||||
border-color: var(--tblr-border-color);
|
||||
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
/* Sidebar submenus: a little tighter than Tabler's dropdown rows, so several open groups still fit on one screen. */
|
||||
.navbar-vertical .dropdown-menu .dropdown-item {
|
||||
padding-top: 0.3rem;
|
||||
|
||||
Reference in new issue
Block a user