mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-20 01:26:02 +00:00
v2.5.0: add admin auto refresh toggle
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user