mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-20 02:56:03 +00:00
v2.5.0: add key disable switches and pro UI polish
This commit is contained in:
@@ -140,6 +140,10 @@ h2 {
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.brand strong {
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.brand span {
|
||||
display: block;
|
||||
color: var(--sidebar-muted);
|
||||
@@ -153,6 +157,9 @@ h2 {
|
||||
|
||||
.nav-item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
justify-content: flex-start;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
@@ -160,6 +167,18 @@ h2 {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.nav-icon {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
flex: 0 0 28px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, .07);
|
||||
color: var(--sidebar-text);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.nav-item:hover,
|
||||
.nav-item.active {
|
||||
background: rgba(255, 255, 255, .08);
|
||||
@@ -251,6 +270,79 @@ h2 {
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.visual-overview {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
|
||||
gap: 20px;
|
||||
min-height: 170px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(135deg, color-mix(in srgb, var(--green) 14%, transparent), transparent 42%),
|
||||
linear-gradient(120deg, var(--panel), var(--panel-soft));
|
||||
box-shadow: var(--shadow);
|
||||
padding: 22px;
|
||||
}
|
||||
|
||||
.visual-overview h2 {
|
||||
margin-top: 4px;
|
||||
font-size: clamp(24px, 3vw, 34px);
|
||||
}
|
||||
|
||||
.visual-overview p:not(.eyebrow) {
|
||||
max-width: 620px;
|
||||
margin-top: 8px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.signal-map {
|
||||
position: relative;
|
||||
min-height: 128px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
|
||||
linear-gradient(0deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
|
||||
background-size: 28px 28px;
|
||||
}
|
||||
|
||||
.signal-map::before,
|
||||
.signal-map::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 50% 38px auto 38px;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, var(--green), var(--blue), var(--violet));
|
||||
}
|
||||
|
||||
.signal-map::after {
|
||||
inset: 30px auto 30px 50%;
|
||||
width: 2px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.node {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-width: 82px;
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
|
||||
}
|
||||
|
||||
.node-site { left: 24px; top: 18px; }
|
||||
.node-proxy { right: 24px; top: 50%; transform: translateY(-50%); }
|
||||
.node-admin { left: 50%; bottom: 18px; transform: translateX(-50%); }
|
||||
|
||||
.eyebrow {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
@@ -549,6 +641,10 @@ tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.disabled-row {
|
||||
opacity: .72;
|
||||
}
|
||||
|
||||
td code {
|
||||
display: inline-block;
|
||||
max-width: 320px;
|
||||
@@ -567,6 +663,65 @@ td small {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.status-control {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.state-on { color: var(--green); }
|
||||
.state-off { color: var(--amber); }
|
||||
|
||||
.switch {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
width: 46px;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.switch input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
.switch span {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
background: var(--panel-strong);
|
||||
transition: background .16s ease, border-color .16s ease;
|
||||
}
|
||||
|
||||
.switch span::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
left: 2px;
|
||||
top: 2px;
|
||||
border-radius: 50%;
|
||||
background: var(--panel);
|
||||
box-shadow: 0 3px 9px rgba(15, 23, 42, .22);
|
||||
transition: transform .16s ease;
|
||||
}
|
||||
|
||||
.switch input:checked + span {
|
||||
border-color: color-mix(in srgb, var(--green) 70%, var(--line));
|
||||
background: color-mix(in srgb, var(--green) 64%, var(--panel));
|
||||
}
|
||||
|
||||
.switch input:checked + span::before {
|
||||
transform: translateX(20px);
|
||||
}
|
||||
|
||||
.switch input:disabled + span {
|
||||
opacity: .55;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.empty-cell {
|
||||
color: var(--muted);
|
||||
text-align: center;
|
||||
@@ -643,6 +798,64 @@ td small {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.promo-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 30;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 18px;
|
||||
background: rgba(5, 8, 16, .48);
|
||||
}
|
||||
|
||||
.promo-modal[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.promo-card {
|
||||
position: relative;
|
||||
width: min(620px, 100%);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel);
|
||||
box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
|
||||
padding: 22px;
|
||||
}
|
||||
|
||||
.promo-card .icon-btn {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
right: 14px;
|
||||
}
|
||||
|
||||
.promo-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.promo-grid a {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-height: 98px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--panel-soft);
|
||||
color: var(--text);
|
||||
padding: 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.promo-grid a:hover {
|
||||
border-color: var(--green);
|
||||
}
|
||||
|
||||
.promo-grid span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
.service-grid {
|
||||
grid-template-columns: repeat(3, minmax(150px, 1fr));
|
||||
@@ -681,6 +894,11 @@ td small {
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.visual-overview,
|
||||
.promo-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
align-items: flex-start;
|
||||
padding: 16px;
|
||||
|
||||
Reference in New Issue
Block a user