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>
This commit is contained in:
@@ -81,6 +81,18 @@
|
||||
--z-drawer: 95;
|
||||
--z-drawer-backdrop: 90;
|
||||
|
||||
/*
|
||||
* Responsive breakpoint system — canonical values, align all @media rules to these.
|
||||
* CSS custom props cannot be used inside @media queries, so these are documentation only.
|
||||
* Use them verbatim in px. Do not introduce one-off breakpoints (640, 720, 900, 968, 1100, ...).
|
||||
* --bp-xs: 400px — tiny phones (iPhone SE, Pixel 4a portrait)
|
||||
* --bp-sm: 576px — large phones / phablets
|
||||
* --bp-md: 768px — tablets portrait, sidebar/drawer switch
|
||||
* --bp-lg: 1024px — tablets landscape / small laptops, two-column details activates
|
||||
* --bp-xl: 1280px — desktops
|
||||
* --bp-2xl: 1536px — large desktops
|
||||
*/
|
||||
|
||||
/* Typography tokens defined in typography.tokens.css */
|
||||
}
|
||||
|
||||
|
||||
@@ -90,4 +90,13 @@
|
||||
font-weight: var(--font-medium);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Breadcrumb is desktop-only chrome — the hamburger drawer owns navigation
|
||||
below md. Must live in the components layer to override .app-breadcrumb's
|
||||
own display:flex (cross-layer specificity does not apply). */
|
||||
@media (max-width: 767px) {
|
||||
.app-breadcrumb {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
/* Inside the drawer, force single-column layout for any .app-details-container
|
||||
regardless of viewport width (the grid rule in app-details.css triggers on
|
||||
viewport ≥968px, which is wrong for a 720px drawer). Any page that uses the
|
||||
viewport ≥1024px, which is wrong for a 720px drawer). Any page that uses the
|
||||
standard details container gets stacked main + aside automatically. */
|
||||
.app-detail-drawer .app-details-container,
|
||||
.app-detail-drawer .app-details-container:has(> aside) {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
}
|
||||
|
||||
.app-details-container > section > form [data-tab-panel] {
|
||||
max-width: 70ch;
|
||||
max-width: min(70ch, 100%);
|
||||
}
|
||||
|
||||
.app-details-container > section > form [data-tab-panel-wide] {
|
||||
@@ -137,11 +137,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 968px) {
|
||||
/* .app-details-container > section {
|
||||
padding: calc(var(--app-spacing) * 2) calc(var(--app-spacing) * 2)
|
||||
calc(var(--app-spacing) * 2) calc(var(--app-spacing) * 0);
|
||||
} */
|
||||
@media (min-width: 1024px) {
|
||||
.app-details-container:has(> aside) {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 2fr) minmax(0, 300px);
|
||||
|
||||
106
web/css/components/app-footer.css
Normal file
106
web/css/components/app-footer.css
Normal file
@@ -0,0 +1,106 @@
|
||||
@layer components {
|
||||
/* Site footer — utility nav with copyright, legal links, language switcher.
|
||||
Shared between default shell, login, and public page layouts. Mobile-first. */
|
||||
footer.site-footer {
|
||||
border-top: 1px solid var(--app-muted-border-color);
|
||||
padding-block: var(--app-spacing);
|
||||
padding-inline: var(--app-spacing);
|
||||
color: var(--app-muted-color);
|
||||
}
|
||||
|
||||
footer.site-footer > nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: calc(var(--app-spacing) * 0.5) var(--app-spacing);
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
footer.site-footer ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: calc(var(--app-spacing) * 0.25) calc(var(--app-spacing) * 0.75);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
footer.site-footer li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Reset Pico's zero-width-space before-marker on nav li. */
|
||||
footer.site-footer li::before {
|
||||
content: none;
|
||||
}
|
||||
|
||||
footer.site-footer a {
|
||||
color: var(--app-muted-color);
|
||||
text-decoration: none;
|
||||
padding-inline: calc(var(--app-spacing) * 0.25);
|
||||
padding-block: calc(var(--app-spacing) * 0.25);
|
||||
margin: 0;
|
||||
border-radius: var(--app-border-radius);
|
||||
transition:
|
||||
color var(--app-transition),
|
||||
background-color var(--app-transition);
|
||||
}
|
||||
|
||||
footer.site-footer a:hover {
|
||||
color: var(--app-color);
|
||||
background: color-mix(in srgb, var(--app-contrast) 6%, transparent);
|
||||
}
|
||||
|
||||
footer.site-footer a:focus-visible {
|
||||
outline: 2px solid var(--app-primary);
|
||||
outline-offset: -2px;
|
||||
color: var(--app-color);
|
||||
}
|
||||
|
||||
footer.site-footer small {
|
||||
font-size: var(--text-xs);
|
||||
line-height: var(--leading-tight);
|
||||
}
|
||||
|
||||
/* Language switcher (inline <select>) — compact, sits next to the links. */
|
||||
footer.site-footer select {
|
||||
margin: 0;
|
||||
padding: calc(var(--app-spacing) * 0.2) calc(var(--app-spacing) * 0.5);
|
||||
font-size: var(--text-xs);
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
width: auto;
|
||||
background-position: right 0.5rem center;
|
||||
}
|
||||
|
||||
/* xs — stack link group and language group vertically, centered.
|
||||
Better readability than cramming both on one wrapped row. */
|
||||
@media (max-width: 576px) {
|
||||
footer.site-footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
footer.site-footer > nav {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: calc(var(--app-spacing) * 0.75);
|
||||
}
|
||||
|
||||
footer.site-footer ul {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* Desktop — more breathing room on the sides. */
|
||||
@media (min-width: 768px) {
|
||||
footer.site-footer {
|
||||
padding-block: calc(var(--app-spacing) * 1.25);
|
||||
padding-inline: calc(var(--app-spacing) * 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,98 @@
|
||||
@layer components {
|
||||
/* List page tab bar — horizontal filter tabs above data grids. */
|
||||
.app-list-tabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: var(--app-spacing);
|
||||
border-bottom: 1px solid var(--app-list-tabs-border);
|
||||
}
|
||||
/* List page tab bar — single-line horizontal scroll, matches .app-tabs pattern.
|
||||
The active tab is scrolled into view by initListTabs on mount. */
|
||||
.app-list-tabs {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scroll-behavior: smooth;
|
||||
scroll-snap-type: x proximity;
|
||||
margin-bottom: var(--app-spacing);
|
||||
border-bottom: 1px solid var(--app-list-tabs-border);
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.app-list-tabs button,
|
||||
.app-list-tabs a {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
padding: 5px 10px 5px 10px;
|
||||
color: var(--app-list-tabs-muted);
|
||||
cursor: pointer;
|
||||
font-weight: var(--font-medium);
|
||||
border-bottom: 2px solid transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
.app-list-tabs::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.app-list-tabs button:hover,
|
||||
.app-list-tabs button:focus-visible,
|
||||
.app-list-tabs a:hover,
|
||||
.app-list-tabs a:focus-visible {
|
||||
color: var(--app-color);
|
||||
}
|
||||
.app-list-tabs button,
|
||||
.app-list-tabs a {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
padding: 5px 10px 5px 10px;
|
||||
color: var(--app-list-tabs-muted);
|
||||
cursor: pointer;
|
||||
font-weight: var(--font-medium);
|
||||
border-bottom: 2px solid transparent;
|
||||
text-decoration: none;
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.app-list-tabs button.is-active,
|
||||
.app-list-tabs a.is-active {
|
||||
color: var(--app-color);
|
||||
border-color: var(--app-list-tabs-active);
|
||||
}
|
||||
.app-list-tabs button:hover,
|
||||
.app-list-tabs button:focus-visible,
|
||||
.app-list-tabs a:hover,
|
||||
.app-list-tabs a:focus-visible {
|
||||
color: var(--app-color);
|
||||
}
|
||||
|
||||
.app-list-tabs button.is-active,
|
||||
.app-list-tabs a.is-active {
|
||||
color: var(--app-color);
|
||||
border-color: var(--app-list-tabs-active);
|
||||
}
|
||||
|
||||
/* Gradient fade masks — toggled by initListTabs via has-overflow/at-start/at-end.
|
||||
Uses mask-image on the scroll container itself, no wrapper needed. */
|
||||
.app-list-tabs.has-overflow:not(.at-start):not(.at-end) {
|
||||
mask-image: linear-gradient(
|
||||
to right,
|
||||
transparent 0,
|
||||
black 24px,
|
||||
black calc(100% - 24px),
|
||||
transparent 100%
|
||||
);
|
||||
-webkit-mask-image: linear-gradient(
|
||||
to right,
|
||||
transparent 0,
|
||||
black 24px,
|
||||
black calc(100% - 24px),
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
|
||||
.app-list-tabs.has-overflow.at-start:not(.at-end) {
|
||||
mask-image: linear-gradient(
|
||||
to right,
|
||||
black 0,
|
||||
black calc(100% - 24px),
|
||||
transparent 100%
|
||||
);
|
||||
-webkit-mask-image: linear-gradient(
|
||||
to right,
|
||||
black 0,
|
||||
black calc(100% - 24px),
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
|
||||
.app-list-tabs.has-overflow:not(.at-start).at-end {
|
||||
mask-image: linear-gradient(
|
||||
to right,
|
||||
transparent 0,
|
||||
black 24px,
|
||||
black 100%
|
||||
);
|
||||
-webkit-mask-image: linear-gradient(
|
||||
to right,
|
||||
transparent 0,
|
||||
black 24px,
|
||||
black 100%
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,4 +93,33 @@
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* xs — only the "wide" controls stack full-width so they don't overflow the
|
||||
grid; compact controls (page-size, small buttons) keep their natural width. */
|
||||
@media (max-width: 576px) {
|
||||
.app-list-toolbar {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.app-list-toolbar > .multi-select,
|
||||
.app-list-toolbar > label:has(input[type="search"]),
|
||||
.app-list-toolbar > label:has(input[type="text"]),
|
||||
.app-list-toolbar > .app-field:has(input[type="search"]),
|
||||
.app-list-toolbar > .app-field:has(input[type="text"]),
|
||||
.app-list-toolbar > .app-field:has(textarea) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.app-list-toolbar > .multi-select .multi-select-header {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.app-list-toolbar
|
||||
> :is(.app-field, label):has(input[type="search"]) input,
|
||||
.app-list-toolbar
|
||||
> :is(.app-field, label):has(input[type="text"]) input,
|
||||
.app-list-toolbar > .app-field:has(textarea) textarea {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 968px) {
|
||||
@media (min-width: 1024px) {
|
||||
.app-page-action-card {
|
||||
position: sticky;
|
||||
top: calc(var(--app-spacing) * 4);
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
@import url("components/app-flash.css");
|
||||
@import url("components/app-brand.css");
|
||||
@import url("components/app-file-upload.css");
|
||||
@import url("components/app-footer.css");
|
||||
|
||||
/* Default admin experience */
|
||||
@import url("vendor-overrides/multi-select.css");
|
||||
@@ -43,6 +44,7 @@
|
||||
@import url("components/app-tile.css");
|
||||
@import url("components/app-tooltips.css");
|
||||
@import url("components/app-lookup-field.css");
|
||||
@import url("components/app-token-select.css");
|
||||
@import url("components/app-page-editor.css");
|
||||
@import url("vendor-overrides/editorjs.css");
|
||||
@import url("components/app-page-copy.css");
|
||||
|
||||
@@ -102,57 +102,34 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile drawer — the icon-bar slides in from the left alongside the sidebar,
|
||||
staying vertical like desktop so menu switching works identically.
|
||||
The two asides form one visual unit; both use the same slide transition. */
|
||||
@media (max-width: 767px) {
|
||||
aside.aside-icon-bar {
|
||||
display: none;
|
||||
display: block;
|
||||
position: fixed;
|
||||
top: var(--app-topbar-height);
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: min(280px, 85vw);
|
||||
width: 52px;
|
||||
z-index: var(--z-drawer);
|
||||
border-bottom: 1px solid var(--app-border);
|
||||
border-right: 1px solid var(--app-border);
|
||||
background: var(--app-sidebar-background-color);
|
||||
transform: translateX(-100%);
|
||||
transition: transform 300ms ease;
|
||||
}
|
||||
|
||||
.drawer-open aside.aside-icon-bar {
|
||||
display: block;
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
/* Constrain nav to the aside height (the global 100vh rule breaks under
|
||||
iOS Safari's dynamic address bar) and give the first icon breathing room
|
||||
from the topbar edge. */
|
||||
aside.aside-icon-bar nav {
|
||||
flex-direction: row;
|
||||
height: auto;
|
||||
justify-content: flex-start;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
aside.aside-icon-bar .aside-icon-footer {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
aside.aside-icon-bar ul {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
aside.aside-icon-bar li a,
|
||||
aside.aside-icon-bar li button {
|
||||
border-left: 0;
|
||||
border-top: var(--app-icon-bar-border-width) solid transparent;
|
||||
}
|
||||
|
||||
aside.aside-icon-bar li a:hover,
|
||||
aside.aside-icon-bar li a.active,
|
||||
aside.aside-icon-bar li button:hover,
|
||||
aside.aside-icon-bar li button.active {
|
||||
border-left: 0;
|
||||
border-top: var(--app-icon-bar-border-width) solid var(--app-primary);
|
||||
}
|
||||
|
||||
aside.aside-icon-bar li a:focus-visible,
|
||||
aside.aside-icon-bar li button:focus-visible {
|
||||
border-left-color: transparent;
|
||||
border-top-color: transparent;
|
||||
height: 100%;
|
||||
padding-block: calc(var(--app-spacing) * 1.25);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -315,26 +315,12 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
body > footer,
|
||||
body > main {
|
||||
padding-block: var(--app-block-spacing-vertical);
|
||||
}
|
||||
|
||||
body > footer {
|
||||
padding-inline: calc(var(--app-spacing) * 2);
|
||||
}
|
||||
/* Footer layout, spacing and colors live in components/app-footer.css. */
|
||||
|
||||
footer.site-footer {
|
||||
padding-inline: calc(var(--app-spacing) * 2);
|
||||
}
|
||||
|
||||
footer.site-footer a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
body > footer a {
|
||||
color: inherit;
|
||||
}
|
||||
header[data-align="center"],
|
||||
hgroup[data-align="center"] > h1,
|
||||
hgroup[data-align="center"] > h2,
|
||||
@@ -367,6 +353,13 @@
|
||||
|
||||
.app-main-content {
|
||||
padding-inline: calc(var(--app-spacing) * 1);
|
||||
padding-block-start: var(--app-spacing);
|
||||
}
|
||||
|
||||
/* Details pages provide their own sticky titlebar with padding — let it manage
|
||||
the gap to the topbar itself, don't double it. */
|
||||
.app-main-content:has(.app-details-container) {
|
||||
padding-block-start: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
|
||||
@@ -153,15 +153,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile drawer — sidebar sits to the right of the 52px icon-bar.
|
||||
Both slide in together (see app-aside-icon-bar.css mobile section). */
|
||||
@media (max-width: 767px) {
|
||||
.app-sidebar {
|
||||
position: fixed;
|
||||
top: var(--app-topbar-height);
|
||||
left: 0;
|
||||
left: 52px;
|
||||
bottom: 0;
|
||||
width: min(280px, 85vw);
|
||||
width: min(228px, calc(85vw - 52px));
|
||||
z-index: var(--z-drawer);
|
||||
transform: translateX(-100%);
|
||||
transform: translateX(calc(-100% - 52px));
|
||||
transition: transform 300ms ease;
|
||||
background: var(--app-sidebar-background-color);
|
||||
overflow-y: auto;
|
||||
@@ -172,11 +174,7 @@
|
||||
}
|
||||
|
||||
.app-sidebar-panels {
|
||||
padding-block-start: calc(
|
||||
var(--app-icon-bar-item-padding, 0.6875rem) * 2
|
||||
+ var(--app-icon-bar-item-size, 22px)
|
||||
+ var(--app-icon-bar-border-width, 3px)
|
||||
);
|
||||
padding-block-start: calc(var(--app-spacing) * 1.25);
|
||||
padding-block-end: calc(var(--app-spacing) + env(safe-area-inset-bottom));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,11 +116,11 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.app-topbar-left .app-breadcrumb {
|
||||
display: none;
|
||||
}
|
||||
/* Breadcrumb mobile-hide lives in components/app-breadcrumb.css — cross-layer
|
||||
overrides from the layout layer do not win against .app-breadcrumb's own
|
||||
display:flex in the components layer. */
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.app-topbar-search-trigger-text,
|
||||
.app-topbar-search-trigger-shortcut {
|
||||
display: none;
|
||||
@@ -128,9 +128,47 @@
|
||||
|
||||
.app-topbar-search-trigger {
|
||||
width: auto;
|
||||
min-width: 2.25rem;
|
||||
min-height: 2.25rem;
|
||||
padding: var(--app-topbar-item-padding);
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* Dock the search icon alongside the right-column icons:
|
||||
swap grid \u2192 flex so left flex-grows and center+right cluster on the right. */
|
||||
.app-header nav.app-topbar {
|
||||
display: flex;
|
||||
grid-template-columns: unset;
|
||||
gap: var(--app-topbar-list-gap);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.app-topbar-left {
|
||||
flex: 1 1 0%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.app-topbar-center,
|
||||
.app-topbar-right {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.app-topbar-center {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
/* xs — very narrow phones (iPhone SE 375, Pixel 4a portrait).
|
||||
Tighten topbar chrome so every item keeps its 2.25rem hit area without overflow. */
|
||||
@media (max-width: 400px) {
|
||||
.app-header {
|
||||
--app-topbar-list-gap: 2px;
|
||||
padding-inline: calc(var(--app-spacing) * 0.5);
|
||||
}
|
||||
|
||||
.app-header nav.app-topbar {
|
||||
gap: calc(var(--app-spacing) * 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
.app-topbar-menu-item-detail-sidebar {
|
||||
@@ -192,24 +230,24 @@
|
||||
.app-topbar-right > li > a:hover,
|
||||
.app-topbar-right > li > button:hover,
|
||||
.app-header details.dropdown > summary:not([role]):hover {
|
||||
background-color: color-mix(in srgb, var(--app-contrast) 8%, transparent);
|
||||
background-color: var(--app-dropdown-hover-background-color);
|
||||
color: var(--app-color);
|
||||
--app-background-color: color-mix(
|
||||
in srgb,
|
||||
var(--app-contrast) 8%,
|
||||
transparent
|
||||
);
|
||||
--app-background-color: var(--app-dropdown-hover-background-color);
|
||||
--app-color: var(--app-color);
|
||||
}
|
||||
|
||||
.app-topbar-right > li > a:active,
|
||||
.app-topbar-right > li > button:active,
|
||||
.app-header details.dropdown > summary:not([role]):active {
|
||||
background-color: color-mix(in srgb, var(--app-contrast) 12%, transparent);
|
||||
background-color: color-mix(
|
||||
in srgb,
|
||||
var(--app-dropdown-hover-background-color) 70%,
|
||||
var(--app-contrast) 30%
|
||||
);
|
||||
--app-background-color: color-mix(
|
||||
in srgb,
|
||||
var(--app-contrast) 12%,
|
||||
transparent
|
||||
var(--app-dropdown-hover-background-color) 70%,
|
||||
var(--app-contrast) 30%
|
||||
);
|
||||
}
|
||||
|
||||
@@ -372,7 +410,7 @@
|
||||
}
|
||||
|
||||
.app-topbar-hamburger:hover {
|
||||
background: color-mix(in srgb, var(--app-contrast) 8%, transparent);
|
||||
background: var(--app-dropdown-hover-background-color);
|
||||
color: var(--app-color);
|
||||
}
|
||||
|
||||
@@ -427,6 +465,11 @@
|
||||
.app-topbar-brand-name {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* With brand-name hidden, the divider bar is pointless chrome — drop it. */
|
||||
.app-topbar-brand::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.app-header details.dropdown[open] > summary::before {
|
||||
|
||||
Reference in New Issue
Block a user