Add administration submenu and refine controls and toast states

This commit is contained in:
SantaSpeen committed 2026-12-01 13:36:10 +03:00
1 parent cd821abb51
commit aece8e59cd
125 files changed
+898 -57

No files matched your search

+267 -10
View File
@@ -974,25 +974,88 @@ dialog > p {
background: var(--color-accent);
color: var(--color-on-accent);
}
#toast {
:is(#toast, .anidev-toast) {
--toast-tone: var(--color-accent);
position: fixed;
inset: auto;
margin: 0;
border: 0;
bottom: 25px;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
background: var(--color-text);
color: var(--color-bg);
padding: 12px 20px;
width: min(420px, calc(100% - 32px));
max-width: calc(100% - 32px);
background: var(--color-surface);
color: var(--color-text);
border: 1px solid
color-mix(in srgb, var(--toast-tone) 30%, var(--color-border));
border-left: 3px solid var(--toast-tone);
border-radius: var(--radius-control);
font-size: 14px;
box-shadow: 0 8px 32px #0003;
padding: 14px;
font-size: 13px;
z-index: 100;
display: none;
max-width: calc(100% - 32px);
}
#toast:popover-open {
display: block;
:is(#toast, .anidev-toast)[data-type="success"] {
--toast-tone: var(--color-success);
}
:is(#toast, .anidev-toast)[data-type="warning"] {
--toast-tone: var(--color-warning);
}
:is(#toast, .anidev-toast)[data-type="error"] {
--toast-tone: var(--color-danger);
}
:is(#toast, .anidev-toast):popover-open {
display: flex;
align-items: flex-start;
gap: 12px;
animation: toast-enter 180ms ease-out;
}
.toast-symbol {
display: grid;
place-items: center;
flex-shrink: 0;
width: 30px;
height: 30px;
border-radius: 50%;
background: color-mix(in srgb, var(--toast-tone) 12%, var(--color-surface));
color: var(--toast-tone);
}
.toast-content {
display: grid;
gap: 4px;
flex: 1;
min-width: 0;
}
.toast-title {
font-size: 14px;
line-height: 20px;
}
.toast-message {
line-height: 1.5;
overflow-wrap: anywhere;
}
:is(#toast, .anidev-toast) .toast-dismiss {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 28px;
min-height: 28px;
padding: 6px;
border: 0;
background: transparent;
color: var(--color-muted);
}
@keyframes toast-enter {
from {
opacity: 0;
translate: 0 6px;
}
to {
opacity: 1;
translate: 0 0;
}
}
.skip {
position: fixed;
@@ -2585,3 +2648,197 @@ body[data-concept="dock"] .nav-links button {
background-color 120ms ease-out,
color 120ms ease-out;
}
#content:focus {
outline: none;
}
.sample-control-row {
display: grid;
grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
gap: 12px;
align-items: stretch;
max-width: 440px;
margin-top: 18px;
}
.sample-control-row > :is(input, select) {
width: 100%;
min-width: 0;
height: calc(var(--size-control) + 8px);
}
input[readonly] {
cursor: default;
background: color-mix(in srgb, var(--color-muted) 6%, var(--color-surface));
}
.choice-pill,
.form-row .choice-pill {
display: inline-flex;
align-items: center;
justify-content: flex-start;
gap: 8px;
flex: 0 1 auto;
min-height: 40px;
padding: 8px 12px;
border: 1px solid var(--color-border);
border-radius: 999px;
background: var(--color-surface);
font-size: 14px;
line-height: 20px;
cursor: pointer;
}
.choice-pill > :is(input[type="checkbox"], input[type="radio"]) {
display: block;
width: 18px;
height: 18px;
margin: 0;
flex-shrink: 0;
}
.choice-pill > span {
line-height: 20px;
}
.choice-pill:hover {
background: var(--color-row-hover);
}
.choice-pill:has(input:checked) {
background: var(--color-row-active);
border-color: var(--color-accent);
color: var(--color-accent);
}
.choice-pill:has(input:focus-visible) {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
.choice-pill > input:focus-visible {
outline: none;
}
.choice-pill:has(input:disabled) {
opacity: 0.5;
cursor: not-allowed;
}
body[data-concept="dock"] .navigation {
--nav-icon-track: 50px;
}
body[data-concept="dock"] .navigation > .dock-brand,
body[data-concept="dock"] .dock-account-area {
flex-shrink: 0;
}
body[data-concept="dock"] .navigation > .nav-links {
min-height: 0;
flex: 1 1 auto;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
}
body[data-concept="dock"]:not(.dock-open) .navigation > .nav-links {
scrollbar-width: none;
}
body[data-concept="dock"] .nav-links > button,
.nav-group {
flex-shrink: 0;
}
.nav-group {
min-width: 0;
}
.nav-group-label {
position: relative;
display: block;
padding-right: 24px;
}
.nav-chevron {
position: absolute;
right: 8px;
top: 50%;
width: 16px;
height: 16px;
translate: 0 -50%;
transition: transform 160ms ease;
}
.nav-group.is-expanded .nav-chevron {
transform: rotate(180deg);
}
.nav-submenu-container {
display: grid;
grid-template-rows: 0fr;
opacity: 0;
transition:
grid-template-rows 180ms ease,
opacity 140ms ease;
}
.nav-group.is-expanded .nav-submenu-container {
grid-template-rows: 1fr;
opacity: 1;
}
.nav-submenu-clip {
min-height: 0;
overflow: hidden;
}
.nav-submenu-list {
margin: 4px 0 4px 25px;
padding: 0 0 0 14px;
border-left: 1px solid var(--color-border);
display: grid;
gap: 4px;
}
body[data-concept="dock"] .nav-submenu-list button {
grid-template-columns: 24px minmax(0, 1fr);
gap: 10px;
padding: 8px 8px 8px 0;
min-height: 40px;
font-size: 13px;
}
body[data-concept="dock"] .nav-submenu-list .nav-icon {
width: 18px;
height: 18px;
}
body[data-concept="dock"] .nav-group-toggle[data-active="true"] {
background: var(--color-row-active);
color: var(--color-accent);
}
body[data-concept="dock"]
.nav-links
.nav-group-toggle[data-active="true"]:is(:hover, :focus-visible) {
background: var(--color-row-active);
color: var(--color-accent);
}
@media (max-width: 600px) {
.sample-control-row {
grid-template-columns: 1fr;
}
.choice-pill,
.form-row .choice-pill {
min-height: 44px;
}
body[data-concept="dock"] .nav-submenu-list button {
min-height: 44px;
}
}
.selection-specimen fieldset {
margin: 0;
min-width: 0;
}
.selection-specimen legend {
padding: 0;
}
body[data-concept="dock"] .navigation .wordmark > span {
text-align: left;
}
body[data-concept="dock"].dock-open
.nav-links
.nav-group-toggle[data-active="true"] {
background: transparent;
color: var(--color-accent);
}
body[data-concept="dock"].dock-open
.nav-links
.nav-group-toggle[data-active="true"]:is(:hover, :focus-visible) {
background: var(--color-row-hover);
color: var(--color-text);
}
:is(#toast, .anidev-toast) .toast-dismiss:hover:not(:disabled) {
background: var(--color-row-hover);
color: var(--color-text);
}
.choice-pill:has(input:disabled) > input {
cursor: not-allowed;
}