v2.5.0: add admin auto refresh toggle

This commit is contained in:
Виталий Литвинов
2026-04-25 16:38:19 +03:00
parent 98e4be8831
commit cae552ec87
4 changed files with 126 additions and 2 deletions

View File

@@ -228,6 +228,65 @@ h2 {
flex-wrap: wrap;
}
.auto-refresh-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 42px;
padding: 7px 10px;
border: 1px solid var(--line);
background: var(--panel-strong);
color: var(--text);
}
.auto-refresh-toggle:hover {
transform: translateY(-1px);
}
.auto-refresh-icon {
color: var(--blue);
font-size: 17px;
line-height: 1;
}
.auto-refresh-track {
position: relative;
display: inline-flex;
align-items: center;
width: 38px;
height: 22px;
border-radius: 999px;
background: color-mix(in srgb, var(--muted) 28%, transparent);
transition: background .16s ease;
}
.auto-refresh-track span {
position: absolute;
left: 3px;
width: 16px;
height: 16px;
border-radius: 999px;
background: var(--panel);
box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
transition: transform .16s ease;
}
.auto-refresh-toggle.active .auto-refresh-track {
background: color-mix(in srgb, var(--green) 58%, transparent);
}
.auto-refresh-toggle.active .auto-refresh-track span {
transform: translateX(16px);
}
.auto-refresh-state {
min-width: 22px;
color: var(--muted);
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
}
.language-select {
width: 78px;
min-width: 78px;