2342 lines
47 KiB
CSS
2342 lines
47 KiB
CSS
/* 展示端:极简博客式的页面——顶栏、居中的内容列、大号标题、细分隔线 */
|
||
.topbar {
|
||
position: sticky;
|
||
top: 0;
|
||
/* 要比悬停中的卡片(z-index: 30,见下面)高:卡片滚到顶部栏下面时,鼠标悬停上去不能盖住顶部栏 */
|
||
z-index: 40;
|
||
background: color-mix(in srgb, var(--app-bg), transparent 8%);
|
||
backdrop-filter: blur(8px);
|
||
border-bottom: 1px solid var(--app-outline-soft);
|
||
}
|
||
|
||
.topbar .inner {
|
||
/* 不再限宽居中:站点名和头像贴着左边,导航、状态和主题按钮整体靠右 */
|
||
padding: 0 24px;
|
||
height: 60px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 24px;
|
||
}
|
||
|
||
.brand {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.01em;
|
||
color: var(--app-ink);
|
||
}
|
||
|
||
.brand-logo {
|
||
width: 36px;
|
||
height: 36px;
|
||
object-fit: contain;
|
||
/* 头像是透明底的立绘,给一点投影让它在背景图上更清楚 */
|
||
filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--app-shadow) 35%, transparent));
|
||
}
|
||
|
||
.brand:hover {
|
||
text-decoration: none;
|
||
}
|
||
|
||
.topnav {
|
||
display: flex;
|
||
gap: 4px;
|
||
margin-left: auto;
|
||
}
|
||
|
||
.topnav a {
|
||
padding: 6px 14px;
|
||
border-radius: var(--r-pill);
|
||
color: var(--app-ink-muted);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.topnav a:hover {
|
||
text-decoration: none;
|
||
background: var(--app-card-inset);
|
||
}
|
||
|
||
.topnav a.active {
|
||
background: var(--app-accent-container);
|
||
color: var(--app-on-accent-container);
|
||
}
|
||
|
||
/* 内容贴着屏幕左边排列(不居中),右边留给背景图 */
|
||
.page {
|
||
max-width: 1200px;
|
||
margin: 0;
|
||
padding: 40px 24px 80px;
|
||
}
|
||
|
||
/* 线路页是数据工作区:宽屏充分利用空间,图表和辅助文字保持清晰对比。 */
|
||
.line-page {
|
||
--line-secondary: color-mix(in srgb, var(--app-ink) 58%, var(--app-ink-muted));
|
||
width: min(100%, 1640px);
|
||
max-width: 1640px;
|
||
padding-top: 24px;
|
||
padding-bottom: 56px;
|
||
/* 正文背景上的全局柔光会让标题、节点状态和说明显得发虚;数据页文字保持锐利。 */
|
||
text-shadow: none;
|
||
}
|
||
|
||
.line-page .hero h1 {
|
||
font-size: 32px;
|
||
}
|
||
|
||
.line-page .line-title-row {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 8px 16px;
|
||
}
|
||
|
||
.line-page .line-title-row h1 {
|
||
margin: 0;
|
||
font-size: clamp(24px, 2vw, 32px);
|
||
}
|
||
|
||
.line-page .line-version-switch {
|
||
gap: 6px;
|
||
}
|
||
|
||
.line-page .line-route-meta {
|
||
gap: 6px 12px;
|
||
margin-top: 6px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.line-page .line-route-status {
|
||
color: var(--app-ink);
|
||
font-weight: 650;
|
||
}
|
||
|
||
.line-page .line-range-picker {
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.line-page .faint,
|
||
.line-page .chart-hint,
|
||
.line-page .chart-section h2,
|
||
.line-page .stat .k {
|
||
color: var(--line-secondary);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.line-page .line-peer-name {
|
||
color: var(--line-secondary);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.line-page .line-section-label {
|
||
color: var(--app-ink);
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-page .line-toolbar {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 8px 16px;
|
||
padding: 8px 12px;
|
||
border-radius: var(--r-card);
|
||
background: color-mix(in srgb, var(--app-card) 78%, transparent);
|
||
}
|
||
|
||
.line-page .line-toolbar-group {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.line-page .line-smoothing {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.line-page .line-header-surface,
|
||
.line-page .line-metric-surface {
|
||
background: var(--glass-bg);
|
||
backdrop-filter: var(--glass-filter);
|
||
box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-drop);
|
||
}
|
||
|
||
.line-page .line-header-surface {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
padding: 18px 20px 16px;
|
||
border-radius: var(--r-group-outer);
|
||
}
|
||
|
||
.line-page .line-metric-surface {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14px;
|
||
padding: 18px;
|
||
border-radius: var(--r-group-outer);
|
||
}
|
||
|
||
.line-page .line-metric-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
flex-wrap: wrap;
|
||
gap: 10px 20px;
|
||
}
|
||
|
||
.line-page .line-metric-heading {
|
||
display: flex;
|
||
align-items: baseline;
|
||
flex-wrap: wrap;
|
||
gap: 4px 12px;
|
||
}
|
||
|
||
.line-page .line-metric-heading h2 {
|
||
color: var(--app-ink);
|
||
font-size: 19px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.line-page .line-metric-heading > span {
|
||
color: var(--line-secondary);
|
||
font-size: 12px;
|
||
}
|
||
|
||
.line-page .range-toolbar {
|
||
align-items: center;
|
||
gap: 8px 14px;
|
||
}
|
||
|
||
.line-page .range-toolbar-right {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
flex-wrap: wrap;
|
||
gap: 8px 14px;
|
||
margin-left: auto;
|
||
}
|
||
|
||
.line-page .line-data-notes {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 4px 14px;
|
||
color: var(--line-secondary);
|
||
font-size: 11px;
|
||
font-weight: 450;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.line-page .crumbs,
|
||
.line-page .minimap .tick,
|
||
.line-page .minimap .readout,
|
||
.line-page .chart-legend,
|
||
.line-page .stat .v small {
|
||
color: var(--line-secondary);
|
||
}
|
||
|
||
.line-page .minimap .tick {
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.line-page .chart-section h2,
|
||
.line-page .chart-card h3 {
|
||
font-weight: 700;
|
||
}
|
||
|
||
.line-page .chart-card {
|
||
min-width: 0;
|
||
gap: 2px;
|
||
padding: 12px 14px;
|
||
background: color-mix(in srgb, var(--glass-line) 4%, transparent);
|
||
box-shadow: none;
|
||
backdrop-filter: none;
|
||
}
|
||
|
||
.line-page .chart-card h3 {
|
||
font-size: 14px;
|
||
color: var(--app-ink);
|
||
}
|
||
|
||
.line-page .quic-chart-grid {
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 14px;
|
||
}
|
||
|
||
.line-page .line-quic-summary {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||
gap: 12px;
|
||
}
|
||
|
||
.line-page .line-combo-card {
|
||
display: flex;
|
||
min-width: 0;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
gap: 5px;
|
||
min-height: 84px;
|
||
padding: 10px 14px;
|
||
border-radius: var(--r-control);
|
||
background: color-mix(in srgb, var(--glass-line) 4%, transparent);
|
||
}
|
||
|
||
.line-page .line-combo-card h3 {
|
||
color: var(--line-secondary);
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.line-page .line-combo-primary {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
color: var(--line-secondary);
|
||
font-size: 13px;
|
||
}
|
||
|
||
.line-page .line-combo-primary strong {
|
||
color: var(--app-ink);
|
||
font-size: 24px;
|
||
font-weight: 700;
|
||
line-height: 1.1;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.line-page .combo-tone-ok {
|
||
color: var(--app-ok) !important;
|
||
}
|
||
|
||
.line-page .combo-tone-warn {
|
||
color: var(--app-warn) !important;
|
||
}
|
||
|
||
.line-page .combo-tone-bad {
|
||
color: var(--app-bad) !important;
|
||
}
|
||
|
||
.line-page .line-combo-secondary,
|
||
.line-page .line-jitter-pair {
|
||
display: flex;
|
||
align-items: baseline;
|
||
flex-wrap: wrap;
|
||
gap: 4px 10px;
|
||
color: var(--line-secondary);
|
||
font-size: 12px;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.line-page .line-combo-secondary b,
|
||
.line-page .line-jitter-pair b {
|
||
color: var(--app-ink);
|
||
font-weight: 650;
|
||
}
|
||
|
||
.line-page .combo-divider {
|
||
opacity: 0.55;
|
||
}
|
||
|
||
.line-page .line-combo-badge {
|
||
align-self: flex-start;
|
||
padding: 2px 7px;
|
||
border-radius: var(--r-pill);
|
||
background: var(--app-card-inset);
|
||
color: var(--line-secondary);
|
||
font-size: 10px;
|
||
line-height: 1.4;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.line-page .line-jitter-pair {
|
||
gap: 8px 20px;
|
||
font-size: 16px;
|
||
}
|
||
|
||
.line-page .line-session-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 8px 18px;
|
||
padding: 10px 4px 2px;
|
||
border-top: 1px solid var(--glass-head-line);
|
||
background: transparent;
|
||
color: var(--line-secondary);
|
||
font-size: 12px;
|
||
}
|
||
|
||
.line-page .line-session-title {
|
||
color: var(--app-ink);
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-page .line-session-items {
|
||
display: flex;
|
||
flex: 1;
|
||
flex-wrap: wrap;
|
||
gap: 5px 18px;
|
||
}
|
||
|
||
.line-page .line-session-items b {
|
||
color: var(--app-ink);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.line-page .line-session-bar small {
|
||
flex-basis: 100%;
|
||
color: var(--line-secondary);
|
||
font-size: 11px;
|
||
}
|
||
|
||
.line-page .tiles {
|
||
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
|
||
gap: 14px;
|
||
}
|
||
|
||
.line-page .tiles > .stat {
|
||
box-shadow: 0 8px 24px -20px var(--app-shadow);
|
||
}
|
||
|
||
.line-page .line-metric-subhead {
|
||
grid-column: 1 / -1;
|
||
margin-top: 4px;
|
||
padding-top: 8px;
|
||
border-top: 1px solid var(--app-outline-soft);
|
||
color: var(--app-ink);
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.line-page .line-wide-note {
|
||
grid-column: 1 / -1;
|
||
}
|
||
|
||
.line-page .stack {
|
||
gap: 10px;
|
||
}
|
||
|
||
.line-page .chart-section {
|
||
gap: 6px;
|
||
}
|
||
|
||
.line-page .chart-section h2 {
|
||
margin-top: 4px;
|
||
}
|
||
|
||
.line-page .minimap {
|
||
margin-top: 6px;
|
||
}
|
||
|
||
.line-page .minimap .track {
|
||
height: 42px;
|
||
margin-bottom: 22px;
|
||
background: repeating-linear-gradient(
|
||
135deg,
|
||
color-mix(in srgb, var(--glass-bg) 94%, var(--glass-shade) 6%) 0 8px,
|
||
color-mix(in srgb, var(--glass-bg) 86%, var(--glass-shade) 14%) 8px 11px
|
||
);
|
||
}
|
||
|
||
.line-page .minimap .ticks {
|
||
height: 20px;
|
||
}
|
||
|
||
.line-page .minimap .tick {
|
||
height: 20px;
|
||
padding-top: 8px;
|
||
font-size: 11px;
|
||
letter-spacing: 0.01em;
|
||
}
|
||
|
||
.line-page .minimap .tick.date {
|
||
font-size: 11px;
|
||
font-weight: 650;
|
||
}
|
||
|
||
.line-page .minimap .readout {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 6px;
|
||
margin-top: 3px;
|
||
font-size: 11px;
|
||
line-height: 1.5;
|
||
letter-spacing: 0.01em;
|
||
}
|
||
|
||
.line-page .minimap .readout > span {
|
||
margin-left: 2px;
|
||
}
|
||
|
||
.line-page .minimap .sel {
|
||
border-block: 1px solid var(--pick);
|
||
border-inline: 0;
|
||
border-radius: 8px;
|
||
background: color-mix(in srgb, var(--pick) 12%, transparent);
|
||
}
|
||
|
||
.line-page .minimap .sel .h {
|
||
top: 8px;
|
||
bottom: 8px;
|
||
width: 4px;
|
||
border-radius: 2px;
|
||
}
|
||
|
||
.line-page .minimap .sel .h::before {
|
||
position: absolute;
|
||
inset: -8px -4px;
|
||
content: '';
|
||
}
|
||
|
||
.line-page .minimap .sel .h.l {
|
||
left: -2px;
|
||
}
|
||
|
||
.line-page .minimap .sel .h.r {
|
||
right: -2px;
|
||
}
|
||
|
||
.line-page .minimap svg rect.has {
|
||
fill: var(--app-card);
|
||
}
|
||
|
||
.line-page .range-picker > .row:last-child {
|
||
margin-top: 4px !important;
|
||
}
|
||
|
||
@media (max-width: 760px) {
|
||
.line-page {
|
||
padding: 20px 14px 48px;
|
||
}
|
||
|
||
.line-page .line-header-surface {
|
||
padding: 14px;
|
||
border-radius: var(--r-card);
|
||
}
|
||
|
||
.line-page .line-metric-surface {
|
||
gap: 12px;
|
||
padding: 12px;
|
||
border-radius: var(--r-card);
|
||
}
|
||
|
||
.line-page .line-metric-header {
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.line-page .range-toolbar > .group {
|
||
max-width: 100%;
|
||
min-width: 0;
|
||
flex-wrap: nowrap;
|
||
overflow-x: auto;
|
||
}
|
||
|
||
.line-page .range-toolbar > .group > button,
|
||
.line-page .range-toolbar-right .group > button {
|
||
flex: none;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-page .range-toolbar-right {
|
||
width: 100%;
|
||
flex-wrap: nowrap;
|
||
justify-content: flex-start;
|
||
overflow-x: auto;
|
||
}
|
||
|
||
.line-page .minimap .tick {
|
||
width: max-content;
|
||
min-width: 0;
|
||
padding-right: 1px;
|
||
padding-left: 1px;
|
||
font-size: 9px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-page .minimap .tick:not(.date):not(:nth-child(6n + 1)) {
|
||
display: none;
|
||
}
|
||
|
||
.line-page .hero h1 {
|
||
font-size: 28px;
|
||
}
|
||
|
||
.line-page .line-title-row {
|
||
align-items: flex-start;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.line-page .line-smoothing {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.line-page .line-quic-summary {
|
||
grid-template-columns: minmax(0, 1fr);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 900px) {
|
||
.line-page .quic-chart-grid {
|
||
grid-template-columns: minmax(0, 1fr);
|
||
}
|
||
}
|
||
|
||
.hero h1 {
|
||
font-size: 40px;
|
||
font-weight: 800;
|
||
letter-spacing: -0.02em;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.hero .sub {
|
||
margin-top: 8px;
|
||
color: var(--app-ink-muted);
|
||
}
|
||
|
||
.section-label {
|
||
font-family: var(--font-mono);
|
||
font-size: 11px;
|
||
letter-spacing: 0.12em;
|
||
text-transform: uppercase;
|
||
color: var(--app-accent);
|
||
font-weight: 700;
|
||
}
|
||
|
||
.section-head {
|
||
display: flex;
|
||
align-items: flex-end;
|
||
gap: 16px;
|
||
margin: 40px 0 16px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.section-head h2 {
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.toolbar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-top: 24px;
|
||
}
|
||
|
||
.line-row td:first-child {
|
||
min-width: 200px;
|
||
}
|
||
|
||
.line-name {
|
||
font-weight: 600;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.line-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
margin-top: 4px;
|
||
}
|
||
|
||
.scores {
|
||
display: flex;
|
||
gap: 6px;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.score-chip {
|
||
display: inline-flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
min-width: 52px;
|
||
padding: 4px 10px;
|
||
border-radius: var(--r-control);
|
||
background: var(--app-card-inset);
|
||
line-height: 1.25;
|
||
}
|
||
|
||
.score-chip b {
|
||
font-size: 15px;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.score-chip small {
|
||
font-size: 10px;
|
||
color: var(--app-ink-muted);
|
||
}
|
||
|
||
.score-chip.ok {
|
||
background: var(--app-ok-container);
|
||
color: var(--app-ok);
|
||
}
|
||
|
||
.score-chip.warn {
|
||
background: var(--app-warn-container);
|
||
color: var(--app-warn);
|
||
}
|
||
|
||
.score-chip.bad {
|
||
background: var(--app-bad-container);
|
||
color: var(--app-bad);
|
||
}
|
||
|
||
.chart-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.chart-card h3 {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.crumbs {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
color: var(--app-ink-muted);
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.event-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.event-list > div {
|
||
display: flex;
|
||
gap: 16px;
|
||
padding: 8px 0;
|
||
border-bottom: 1px solid var(--app-outline-soft);
|
||
}
|
||
|
||
.event-list > div:last-child {
|
||
border-bottom: 0;
|
||
}
|
||
|
||
.pick-list {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
|
||
.pick {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 6px 14px;
|
||
border-radius: var(--r-pill);
|
||
background: var(--app-card-inset);
|
||
cursor: pointer;
|
||
user-select: none;
|
||
}
|
||
|
||
.pick.on {
|
||
background: var(--app-accent-container);
|
||
color: var(--app-on-accent-container);
|
||
}
|
||
|
||
.pick input {
|
||
display: none;
|
||
}
|
||
|
||
@media (max-width: 700px) {
|
||
.hero h1 {
|
||
font-size: 30px;
|
||
}
|
||
|
||
.table .hide-sm {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* ── Agent 卡片 ── */
|
||
.cards {
|
||
margin-top: 24px;
|
||
display: grid;
|
||
gap: 16px;
|
||
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
||
}
|
||
|
||
.agent-card {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
padding: 20px;
|
||
}
|
||
|
||
.agent-card.offline {
|
||
opacity: 0.62;
|
||
}
|
||
|
||
.agent-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.agent-name {
|
||
font-size: 17px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.agent-head .chip {
|
||
margin-left: auto;
|
||
}
|
||
|
||
.agent-head .chip + .faint {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.lines {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.line-link {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
padding: 6px 10px;
|
||
border-radius: var(--r-control);
|
||
background: var(--app-card-inset);
|
||
color: var(--app-ink);
|
||
}
|
||
|
||
.line-link > .muted {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-link > .scores {
|
||
flex-wrap: wrap;
|
||
margin-left: auto;
|
||
}
|
||
|
||
.line-link:hover {
|
||
text-decoration: none;
|
||
background: var(--app-card-hover);
|
||
}
|
||
|
||
.scores.compact {
|
||
gap: 3px;
|
||
}
|
||
|
||
.scores.compact .score-chip {
|
||
min-width: 0;
|
||
padding: 1px 6px;
|
||
flex-direction: row;
|
||
gap: 4px;
|
||
align-items: baseline;
|
||
}
|
||
|
||
.scores.compact .score-chip b {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.scores.compact .score-chip small {
|
||
display: none;
|
||
}
|
||
|
||
.host {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding-top: 12px;
|
||
border-top: 1px solid var(--app-outline-soft);
|
||
}
|
||
|
||
.host.stale .meter i {
|
||
background: var(--app-idle);
|
||
}
|
||
|
||
.meter-row {
|
||
display: grid;
|
||
grid-template-columns: 40px minmax(0, 1fr) 44px;
|
||
align-items: center;
|
||
column-gap: 10px;
|
||
}
|
||
|
||
.meter-row .meter-detail {
|
||
grid-column: 2 / 4;
|
||
font-size: 11px;
|
||
margin-top: -2px;
|
||
}
|
||
|
||
.meter-label {
|
||
color: var(--app-ink-muted);
|
||
font-size: 12px;
|
||
}
|
||
|
||
.meter {
|
||
height: 8px;
|
||
border-radius: var(--r-pill);
|
||
background: var(--app-card-inset);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.meter i {
|
||
display: block;
|
||
height: 100%;
|
||
border-radius: var(--r-pill);
|
||
background: var(--app-accent);
|
||
transition: width 0.4s;
|
||
}
|
||
|
||
.meter i.warn {
|
||
background: var(--app-warn);
|
||
}
|
||
|
||
.meter i.bad {
|
||
background: var(--app-bad);
|
||
}
|
||
|
||
.meter-value {
|
||
text-align: right;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.host-grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr;
|
||
gap: 4px;
|
||
margin-top: 4px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.host-grid .stat {
|
||
flex-direction: row;
|
||
gap: 12px;
|
||
align-items: baseline;
|
||
}
|
||
|
||
.host-grid .stat .k {
|
||
min-width: 56px;
|
||
}
|
||
|
||
.live-dot {
|
||
display: inline-block;
|
||
width: 8px;
|
||
height: 8px;
|
||
margin-left: 10px;
|
||
border-radius: 50%;
|
||
background: var(--app-idle);
|
||
}
|
||
|
||
.live-dot.on {
|
||
background: var(--app-ok);
|
||
}
|
||
|
||
.range-picker {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.day-pick {
|
||
position: relative;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
height: 36px;
|
||
padding: 0 16px;
|
||
border: 0;
|
||
border-radius: var(--r-control);
|
||
background: var(--app-card-inset);
|
||
color: var(--app-ink);
|
||
font: inherit;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.day-pick:hover {
|
||
background: var(--app-card-hover);
|
||
}
|
||
|
||
.day-pick input {
|
||
position: absolute;
|
||
left: 0;
|
||
bottom: 0;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
border: 0;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* ── 对比:每个 Probe 的最佳线路 + 矩阵 ── */
|
||
.winners {
|
||
margin-top: 24px;
|
||
display: grid;
|
||
gap: 12px;
|
||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||
}
|
||
|
||
.winner {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
padding: 14px 18px;
|
||
}
|
||
|
||
.winner-name {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 17px;
|
||
font-weight: 700;
|
||
color: var(--app-ok);
|
||
}
|
||
|
||
.matrix td.r {
|
||
padding-top: 6px;
|
||
padding-bottom: 6px;
|
||
}
|
||
|
||
.cell {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 4px 8px;
|
||
border: 0;
|
||
border-radius: var(--r-control);
|
||
background: transparent;
|
||
color: var(--app-ink);
|
||
cursor: pointer;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.cell:hover {
|
||
background: var(--app-card-hover);
|
||
}
|
||
|
||
.cell.on {
|
||
background: var(--app-accent-container);
|
||
}
|
||
|
||
.cell svg {
|
||
color: var(--app-ok);
|
||
}
|
||
|
||
/* ── 线路详情:指标平铺成一格一格 ── */
|
||
.tiles {
|
||
display: grid;
|
||
gap: 12px;
|
||
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
|
||
}
|
||
|
||
.tiles > .stat,
|
||
.tiles > .tile {
|
||
padding: 14px 16px;
|
||
border-radius: var(--r-card);
|
||
background: var(--app-card);
|
||
}
|
||
|
||
.tiles > .tile {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
grid-column: 1 / -1;
|
||
}
|
||
|
||
.tiles > .tile .k {
|
||
font-size: 12px;
|
||
color: var(--app-ink-faint);
|
||
}
|
||
|
||
.tiles .stat .v {
|
||
font-size: 22px;
|
||
}
|
||
|
||
.tiles > .tile .scores {
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
/* ── 一天的缩略图和可拖动的选区 ── */
|
||
.minimap {
|
||
--pick: var(--chart-1);
|
||
margin-top: 12px;
|
||
}
|
||
|
||
.minimap .track {
|
||
position: relative;
|
||
height: 60px;
|
||
margin-bottom: 18px;
|
||
border-radius: var(--r-control);
|
||
/* 没有数据的地方:灰色斜纹 */
|
||
background: repeating-linear-gradient(135deg, var(--app-card-inset) 0 5px, var(--app-card-hover) 5px 10px);
|
||
cursor: crosshair;
|
||
touch-action: none;
|
||
user-select: none;
|
||
}
|
||
|
||
.minimap svg {
|
||
position: absolute;
|
||
inset: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
border-radius: var(--r-control);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.minimap svg path {
|
||
fill: var(--app-bad);
|
||
opacity: 0.55;
|
||
}
|
||
|
||
.minimap svg rect.has {
|
||
fill: var(--app-card);
|
||
}
|
||
|
||
.minimap .sel {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
border: 2px solid var(--pick);
|
||
border-radius: var(--r-control);
|
||
background: color-mix(in srgb, var(--pick) 16%, transparent);
|
||
cursor: grab;
|
||
}
|
||
|
||
.minimap .sel .h {
|
||
position: absolute;
|
||
top: 12px;
|
||
bottom: 12px;
|
||
width: 6px;
|
||
border-radius: 3px;
|
||
background: var(--pick);
|
||
cursor: ew-resize;
|
||
}
|
||
|
||
.minimap .sel .h.l {
|
||
left: -4px;
|
||
}
|
||
|
||
.minimap .sel .h.r {
|
||
right: -4px;
|
||
}
|
||
|
||
.minimap .ticks {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 100%;
|
||
height: 18px;
|
||
}
|
||
|
||
.minimap .tick {
|
||
position: absolute;
|
||
top: 0;
|
||
min-width: 16px;
|
||
height: 18px;
|
||
padding: 7px 2px 0;
|
||
border: 0;
|
||
border-radius: 4px;
|
||
background: transparent;
|
||
color: var(--app-ink-faint);
|
||
font: inherit;
|
||
font-size: 11px;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
transform: translateX(-50%);
|
||
}
|
||
|
||
/* 刻度线:每小时一根,标了钟点的更长 */
|
||
.minimap .tick::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 0;
|
||
width: 1px;
|
||
height: 4px;
|
||
background: var(--app-ink-faint);
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.minimap .tick.minor::before {
|
||
height: 3px;
|
||
opacity: 0.35;
|
||
}
|
||
|
||
.minimap .tick:not(.minor)::before {
|
||
height: 6px;
|
||
}
|
||
|
||
.minimap .tick:hover:not(:disabled) {
|
||
background: var(--app-card-hover);
|
||
color: var(--app-ink);
|
||
}
|
||
|
||
.minimap .tick:disabled {
|
||
cursor: default;
|
||
}
|
||
|
||
.minimap .tick.date {
|
||
font-weight: 600;
|
||
color: var(--app-ink-muted);
|
||
}
|
||
|
||
.minimap .guide {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 1px;
|
||
background: var(--app-ink-muted);
|
||
opacity: 0.7;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.minimap .guide-label {
|
||
position: absolute;
|
||
top: 4px;
|
||
padding: 2px 6px;
|
||
border-radius: 6px;
|
||
background: var(--app-ink);
|
||
color: var(--app-card);
|
||
font-size: 11px;
|
||
white-space: nowrap;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.minimap .readout {
|
||
font-size: 12px;
|
||
color: var(--app-ink-muted);
|
||
}
|
||
|
||
.day-pick {
|
||
user-select: none;
|
||
}
|
||
|
||
.minimap .midnight {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 1px;
|
||
background: var(--app-ink-faint);
|
||
opacity: 0.6;
|
||
pointer-events: none;
|
||
}
|
||
|
||
|
||
/* ── 线路详情的图表:按 QUIC、TCP、评分分组,宽图占满一行 ── */
|
||
.chart-section {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.chart-section h2 {
|
||
margin: 8px 4px 0;
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: var(--app-ink-muted);
|
||
}
|
||
|
||
.chart-section .chart-card.wide {
|
||
grid-column: 1 / -1;
|
||
}
|
||
|
||
.minimap .loading-bar {
|
||
z-index: 2;
|
||
border-radius: var(--r-control) var(--r-control) 0 0;
|
||
}
|
||
|
||
/* 点下去会动的端点:它到目标位置之间染色(扩大 = 强调色,收缩 = 灰色),端点本身也变色 */
|
||
.minimap .sweep {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
pointer-events: none;
|
||
z-index: 1;
|
||
}
|
||
|
||
.minimap .sweep.grow {
|
||
background: color-mix(in srgb, var(--chart-2) 32%, transparent);
|
||
}
|
||
|
||
.minimap .sweep.cut {
|
||
background: color-mix(in srgb, var(--app-ink) 18%, transparent);
|
||
}
|
||
|
||
.minimap .sel .h {
|
||
transition: background-color 0.12s ease;
|
||
}
|
||
|
||
.minimap .sel .h.will.grow {
|
||
background: var(--chart-2);
|
||
}
|
||
|
||
.minimap .sel .h.will.cut {
|
||
background: var(--app-ink-muted);
|
||
}
|
||
|
||
/* 顶栏里的连接状态:紧凑的一条,放在导航和主题切换之间 */
|
||
.topbar .src-status {
|
||
width: auto;
|
||
max-width: 220px;
|
||
border-radius: var(--r-pill, 999px);
|
||
padding: 6px 12px;
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.topbar .src-status .st {
|
||
display: none;
|
||
}
|
||
|
||
.topbar .src-status {
|
||
max-width: 120px;
|
||
}
|
||
}
|
||
|
||
|
||
.line-top {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.lines-caption {
|
||
padding: 0 4px 2px;
|
||
font-size: 12px;
|
||
color: var(--app-ink-faint);
|
||
}
|
||
|
||
/* ── 总览卡片里的 QUIC Datagram:按方向显示丢包小格 ── */
|
||
.line-name {
|
||
font-weight: 600;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.line-top .faint {
|
||
font-size: 11px;
|
||
}
|
||
|
||
.host-link {
|
||
color: inherit;
|
||
text-decoration: none;
|
||
cursor: pointer;
|
||
transition: transform 160ms ease, box-shadow 160ms ease;
|
||
}
|
||
|
||
.host-link:hover,
|
||
.host-link:focus-visible {
|
||
color: inherit;
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--glass-shade) 75%, transparent);
|
||
}
|
||
|
||
.host-link:focus-visible {
|
||
outline: none;
|
||
}
|
||
|
||
.line-mini-stack {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.line-mini-quic-head {
|
||
display: flex;
|
||
min-width: 0;
|
||
align-items: center;
|
||
gap: 8px;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.line-mini-quic-head > span,
|
||
.line-mini-direction-row > span:first-child,
|
||
.line-mini-tcp-row > span:first-child {
|
||
color: var(--app-ink-muted);
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.line-mini-quic-head > strong,
|
||
.line-mini-tcp-row > strong {
|
||
color: var(--app-ink);
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-mini-quic-head > small {
|
||
margin-left: auto;
|
||
color: var(--app-ink-faint);
|
||
font-size: 9px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-mini-direction-row {
|
||
display: grid;
|
||
grid-template-columns: 34px minmax(0, 1fr) 66px;
|
||
align-items: center;
|
||
gap: 5px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.line-mini-direction-row > span:first-child,
|
||
.line-mini-tcp-row > span:first-child {
|
||
font-weight: 500;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-mini-tcp-row {
|
||
display: grid;
|
||
grid-template-columns: 34px 46px minmax(0, 1fr) max-content;
|
||
align-items: center;
|
||
gap: 5px;
|
||
min-width: 0;
|
||
margin-top: 2px;
|
||
padding-top: 5px;
|
||
border-top: 1px solid var(--app-outline-soft);
|
||
}
|
||
|
||
.line-mini-tcp-row > strong {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.line-mini-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 1px 5px;
|
||
border-radius: var(--r-pill);
|
||
background: var(--app-card-inset);
|
||
color: var(--app-ink-muted);
|
||
font-size: 9px;
|
||
line-height: 1.4;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-mini-badge.ok {
|
||
background: var(--app-ok-container);
|
||
color: var(--app-ok);
|
||
}
|
||
|
||
.line-mini-badge.warn {
|
||
background: var(--app-warn-container);
|
||
color: var(--app-warn);
|
||
}
|
||
|
||
.line-mini-badge.bad {
|
||
background: var(--app-bad-container);
|
||
color: var(--app-bad);
|
||
}
|
||
|
||
.bars {
|
||
display: flex;
|
||
min-width: 0;
|
||
gap: 1.5px;
|
||
height: 8px;
|
||
}
|
||
|
||
.bar {
|
||
flex: 1;
|
||
min-width: 0;
|
||
border-radius: 2px;
|
||
background: var(--app-idle);
|
||
opacity: 0.35;
|
||
}
|
||
|
||
.bar.ok {
|
||
background: var(--app-ok);
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.bar.warn {
|
||
background: var(--app-warn);
|
||
opacity: 1;
|
||
}
|
||
|
||
.bar.bad {
|
||
background: var(--app-bad);
|
||
opacity: 1;
|
||
}
|
||
|
||
/* QUIC 和 TCP 两段之间留一点空 */
|
||
.strips {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
|
||
/* 悬停的那一格:小格描边、走势图上一条竖线和一个点,再弹一个小提示 */
|
||
.bar.on {
|
||
outline: 2px solid var(--app-ink);
|
||
outline-offset: 1px;
|
||
}
|
||
|
||
.strips {
|
||
position: relative;
|
||
}
|
||
|
||
/* 提示弹在卡片右侧:平时收在卡片边上(透明、偏左),悬停时滑出来,移开时缩回去 */
|
||
.pop {
|
||
position: absolute;
|
||
top: -4px;
|
||
left: calc(100% + 40px);
|
||
z-index: 20;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
width: 168px;
|
||
padding: 10px 12px;
|
||
border-radius: 12px;
|
||
background: var(--app-ink);
|
||
color: var(--app-card);
|
||
font-size: 12px;
|
||
line-height: 1.4;
|
||
white-space: nowrap;
|
||
pointer-events: none;
|
||
opacity: 0;
|
||
transform: translateX(-14px) scale(0.96);
|
||
transform-origin: left center;
|
||
transition:
|
||
opacity 0.16s ease,
|
||
transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
|
||
box-shadow: 0 6px 20px color-mix(in srgb, var(--app-shadow), transparent 68%);
|
||
}
|
||
|
||
.pop.open {
|
||
opacity: 1;
|
||
transform: none;
|
||
}
|
||
|
||
/* 指向卡片的小三角 */
|
||
.pop::before {
|
||
content: '';
|
||
position: absolute;
|
||
top: 18px;
|
||
left: -5px;
|
||
width: 10px;
|
||
height: 10px;
|
||
background: var(--app-ink);
|
||
transform: rotate(45deg);
|
||
border-radius: 2px;
|
||
}
|
||
|
||
.pop-time {
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
opacity: 0.8;
|
||
}
|
||
|
||
.pop-group {
|
||
display: grid;
|
||
grid-template-columns: 1fr;
|
||
gap: 1px;
|
||
}
|
||
|
||
.pop-name {
|
||
font-size: 10px;
|
||
letter-spacing: 0.08em;
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.pop em {
|
||
font-style: normal;
|
||
font-weight: 700;
|
||
margin-left: 4px;
|
||
}
|
||
|
||
.pop em.warn {
|
||
color: var(--app-warn-container);
|
||
}
|
||
|
||
.pop em.bad {
|
||
color: var(--app-bad-container);
|
||
}
|
||
|
||
/* 右边放不下(窄屏、卡片贴着右边)时,提示改成盖在卡片上方 */
|
||
@media (max-width: 900px) {
|
||
.pop {
|
||
left: auto;
|
||
right: 0;
|
||
top: -8px;
|
||
transform: translateY(8px) scale(0.96);
|
||
transform-origin: right bottom;
|
||
}
|
||
|
||
.pop::before {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.site-foot {
|
||
max-width: 900px;
|
||
margin: 48px auto 24px;
|
||
padding: 0 16px;
|
||
font-size: 11px;
|
||
text-align: center;
|
||
color: var(--app-ink-faint);
|
||
}
|
||
|
||
.site-foot a {
|
||
color: inherit;
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/* Agent 卡片:国旗开头,名字下面是「运营商 / 系统」两行(左边名字右边内容,和下面的流量、网速一个风格) */
|
||
/* 亚克力:整张卡片半透明 + 背景模糊,细亮边,大一点的投影;标题栏是稍深的一条,底下垫放大模糊的国旗 */
|
||
/* 背景图固定在最底下:图本身已经是预先模糊过的(web/display/scripts/prepare-bg.py),所以移动它只是搬一块贴图,不用每次让浏览器重新模糊;
|
||
上面盖一层页面底色,亮色盖得浅一点,暗色盖得深。背景层会随鼠标移动(见 parallax.ts,直接改它的 transform),向外多留一圈边距免得露边。 */
|
||
.bg-layer {
|
||
position: fixed;
|
||
inset: -130px;
|
||
z-index: -1;
|
||
background-image:
|
||
linear-gradient(color-mix(in srgb, var(--glass-veil) var(--bg-veil), transparent), color-mix(in srgb, var(--glass-veil) var(--bg-veil), transparent)),
|
||
var(--bg-image, url('./assets/bg.jpg'));
|
||
background-size: cover;
|
||
background-position: center;
|
||
pointer-events: none;
|
||
/* 在预先模糊的基础上再模糊多少,右下角「外观」里调;默认 none */
|
||
filter: var(--bg-filter, none);
|
||
}
|
||
|
||
:root {
|
||
/* 盖在背景图上的遮罩的浓度:默认亮色 50%、暗色 62%;右下角「外观」里按倍数调(--bg-veil-scale,0 是不盖) */
|
||
--bg-veil: min(100%, calc(50% * var(--bg-veil-scale, 1)));
|
||
}
|
||
|
||
:root[data-theme="dark"] {
|
||
--bg-veil: min(100%, calc(62% * var(--bg-veil-scale, 1)));
|
||
}
|
||
|
||
/* 用哪张图由「外观」里的选择决定(backgrounds.ts,JS 把它写进 --bg-image);这里的回退只管 JS 还没跑的第一帧:暗色先用暗色那张 */
|
||
:root[data-theme="dark"] .bg-layer {
|
||
background-image:
|
||
linear-gradient(color-mix(in srgb, var(--glass-veil) var(--bg-veil), transparent), color-mix(in srgb, var(--glass-veil) var(--bg-veil), transparent)),
|
||
var(--bg-image, url('./assets/bg-dark.jpg'));
|
||
}
|
||
|
||
/* 关了背景晃动:背景不会再移动,就不用向外多留一圈边距了,按窗口的原始比例铺满(不会被放大裁掉四周) */
|
||
:root[data-sway='off'] .bg-layer {
|
||
inset: 0;
|
||
}
|
||
|
||
/* ── 亚克力(毛玻璃)规范:所有玻璃面(卡片、线路面板、顶部栏、时间轴)只用下面这组变量;颜色来自 tokens.css 的 --glass-*,换风格改那里 ──
|
||
--glass-bg 玻璃底色(半透明) --glass-filter 背景模糊和饱和度
|
||
--glass-ring 1px 的细描边 --glass-top 上沿的一条高光(玻璃边缘的反光)
|
||
--glass-drop 投影(带一点底色的近黑,不用纯黑;暗色用一大一小两层,贴着一层细的、散开一层虚的)
|
||
--glass-head 卡片标题栏的叠层 --glass-head-line 标题栏和身体之间的分隔线
|
||
--glass-bar-* 顶部栏专用(更薄、更透) */
|
||
:root {
|
||
--glass-bg: color-mix(in srgb, var(--glass-tint) 76%, transparent);
|
||
--glass-filter: blur(28px) saturate(1.6);
|
||
--glass-ring: color-mix(in srgb, var(--glass-line) 9%, transparent);
|
||
--glass-top: color-mix(in srgb, var(--glass-light) 70%, transparent);
|
||
--glass-drop: 0 14px 32px -12px color-mix(in srgb, var(--glass-shade) 45%, transparent);
|
||
--glass-head: color-mix(in srgb, var(--glass-line) 5%, transparent);
|
||
--glass-head-line: color-mix(in srgb, var(--glass-line) 8%, transparent);
|
||
--glass-bar-bg: color-mix(in srgb, var(--glass-tint) 62%, transparent);
|
||
--glass-bar-filter: blur(20px) saturate(1.5);
|
||
--glass-bar-line: color-mix(in srgb, var(--glass-line) 7%, transparent);
|
||
--glass-bar-drop: 0 4px 14px -8px color-mix(in srgb, var(--glass-shade) 28%, transparent);
|
||
}
|
||
|
||
/* 暗色:玻璃更透一点(58%),模糊和饱和度比亮色低(背景图本来就暗,饱和度太高会发艳);
|
||
边缘靠 10% 的白色细描边和 12% 的白色上沿高光撑出来;投影更深、分两层 */
|
||
:root[data-theme="dark"] {
|
||
/* 玻璃上的小控件(分段按钮、标签、进度条底、时间轴的格子):用半透明的白色叠层,不再是不透明的暖灰,免得在冷色玻璃上发褐 */
|
||
--app-card-inset: color-mix(in srgb, var(--glass-line) 7%, transparent);
|
||
--app-card-hover: color-mix(in srgb, var(--glass-line) 11%, transparent);
|
||
--glass-bg: color-mix(in srgb, var(--glass-tint) 58%, transparent);
|
||
--glass-filter: blur(24px) saturate(1.35);
|
||
--glass-ring: color-mix(in srgb, var(--glass-line) 10%, transparent);
|
||
--glass-top: color-mix(in srgb, var(--glass-light) 12%, transparent);
|
||
--glass-drop:
|
||
0 18px 40px -14px color-mix(in srgb, var(--glass-shade) 60%, transparent),
|
||
0 2px 6px -2px color-mix(in srgb, var(--glass-shade) 40%, transparent);
|
||
--glass-head: color-mix(in srgb, var(--glass-line) 4.5%, transparent);
|
||
--glass-head-line: color-mix(in srgb, var(--glass-line) 7%, transparent);
|
||
--glass-bar-bg: color-mix(in srgb, var(--glass-tint) 52%, transparent);
|
||
--glass-bar-filter: blur(20px) saturate(1.3);
|
||
--glass-bar-line: color-mix(in srgb, var(--glass-line) 8%, transparent);
|
||
--glass-bar-drop: 0 6px 20px -10px color-mix(in srgb, var(--glass-shade) 55%, transparent);
|
||
}
|
||
|
||
.agent-card {
|
||
background: var(--glass-bg);
|
||
backdrop-filter: var(--glass-filter);
|
||
box-shadow:
|
||
inset 0 0 0 1px var(--glass-ring),
|
||
inset 0 1px 0 var(--glass-top),
|
||
var(--glass-drop);
|
||
}
|
||
|
||
.agent-head {
|
||
position: relative;
|
||
isolation: isolate;
|
||
margin: -20px -20px 0;
|
||
padding: 16px 20px;
|
||
border-radius: var(--r-card) var(--r-card) 0 0;
|
||
background: var(--glass-head);
|
||
border-bottom: 1px solid var(--glass-head-line);
|
||
}
|
||
|
||
.agent-head .flag {
|
||
flex: none;
|
||
width: 24px;
|
||
height: 18px;
|
||
border-radius: 3px;
|
||
object-fit: cover;
|
||
box-shadow: 0 0 0 1px var(--app-outline-soft);
|
||
}
|
||
|
||
.agent-head .flag.ph {
|
||
display: inline-block;
|
||
background: var(--app-card-inset);
|
||
}
|
||
|
||
.facts {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.fact {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
}
|
||
|
||
.fact .k {
|
||
color: var(--app-ink-faint);
|
||
}
|
||
|
||
.fact .v {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
color: var(--app-ink);
|
||
}
|
||
|
||
.fact .v .isp {
|
||
flex: none;
|
||
width: 16px;
|
||
height: 16px;
|
||
object-fit: contain;
|
||
}
|
||
|
||
.fact .v .isp rect {
|
||
fill: var(--app-ink-faint);
|
||
}
|
||
|
||
.fact .v .isp text {
|
||
fill: var(--isp-ink);
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.fact .v .isp-broadnet rect {
|
||
fill: var(--isp-broadnet);
|
||
}
|
||
|
||
/* 线路行:国旗在 Probe 名字前面,运营商图标在后面 */
|
||
.line-name {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.line-name .flag {
|
||
flex: none;
|
||
width: 18px;
|
||
height: 13.5px;
|
||
border-radius: 2px;
|
||
object-fit: cover;
|
||
box-shadow: 0 0 0 1px var(--app-outline-soft);
|
||
}
|
||
|
||
.line-top .isp {
|
||
flex: none;
|
||
width: 16px;
|
||
height: 16px;
|
||
object-fit: contain;
|
||
}
|
||
|
||
.line-top .isp rect {
|
||
fill: var(--app-ink-faint);
|
||
}
|
||
|
||
.line-top .isp text {
|
||
fill: var(--isp-ink);
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.line-top .isp-broadnet rect {
|
||
fill: var(--isp-broadnet);
|
||
}
|
||
|
||
/* 亚克力卡片里的线路块:不用实色,只叠一层淡淡的墨色和细描边,透出卡片本身 */
|
||
.agent-card .line-link {
|
||
background: color-mix(in srgb, var(--app-ink) 4%, transparent);
|
||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--app-ink) 7%, transparent);
|
||
}
|
||
|
||
.agent-card .line-link:hover {
|
||
background: color-mix(in srgb, var(--app-ink) 7%, transparent);
|
||
}
|
||
|
||
|
||
/* 线路详情、对比等页面的卡片和指标块:同样的亚克力,一层压一层 */
|
||
.card:not(.agent-card),
|
||
.tiles > .stat,
|
||
.tiles > .tile {
|
||
background: var(--glass-bg);
|
||
backdrop-filter: var(--glass-filter);
|
||
box-shadow:
|
||
inset 0 0 0 1px var(--glass-ring),
|
||
inset 0 1px 0 var(--glass-top),
|
||
var(--glass-drop);
|
||
}
|
||
|
||
/* 小的指标块浮得低一点:阴影收小 */
|
||
.tiles > .stat {
|
||
box-shadow:
|
||
inset 0 0 0 1px color-mix(in srgb, var(--app-ink) 8%, transparent),
|
||
inset 0 1px 0 color-mix(in srgb, var(--app-card) 70%, transparent),
|
||
0 6px 14px -8px color-mix(in srgb, var(--app-shadow) 40%, transparent);
|
||
}
|
||
|
||
.topbar {
|
||
background: var(--glass-bar-bg);
|
||
backdrop-filter: var(--glass-bar-filter);
|
||
border-bottom-color: var(--glass-bar-line);
|
||
box-shadow: var(--glass-bar-drop);
|
||
}
|
||
|
||
/* 时间轴:同样的亚克力。有数据的段是半透明的亮底,没数据的段是淡淡的斜纹,整条有细描边和投影 */
|
||
.minimap .track {
|
||
background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--app-card) 55%, var(--app-idle)) 0 5px, color-mix(in srgb, var(--app-card) 70%, var(--app-idle)) 5px 10px);
|
||
backdrop-filter: var(--glass-bar-filter);
|
||
box-shadow:
|
||
inset 0 0 0 1px var(--glass-ring),
|
||
var(--glass-drop);
|
||
}
|
||
|
||
.minimap svg rect.has {
|
||
fill: color-mix(in srgb, var(--app-card) 80%, transparent);
|
||
}
|
||
|
||
/* 直接落在背景图上的字(页面标题、分组名、说明):加一圈和页面底色一样的柔光,免得被图案吃掉 */
|
||
body {
|
||
text-shadow: 0 0 8px color-mix(in srgb, var(--app-bg) 90%, transparent), 0 0 2px color-mix(in srgb, var(--app-bg) 70%, transparent);
|
||
}
|
||
|
||
.card,
|
||
.pop,
|
||
.tiles > .stat,
|
||
.tiles > .tile,
|
||
.topbar,
|
||
button,
|
||
input {
|
||
text-shadow: none;
|
||
}
|
||
|
||
/* 时间轴整条做成圆角:轨道、里面的图、选区用同一个半径 */
|
||
.minimap .track,
|
||
.minimap svg,
|
||
.minimap .sel {
|
||
border-radius: 18px;
|
||
}
|
||
|
||
/* 版本、tag:等宽的小字 */
|
||
.fact .v.mono-tag {
|
||
font-family: var(--font-mono);
|
||
font-size: 11px;
|
||
}
|
||
|
||
.build-info {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
gap: 4px 16px;
|
||
margin-top: 4px;
|
||
font-family: var(--font-mono);
|
||
font-size: 11px;
|
||
}
|
||
|
||
/* 总览卡片里的线路标题:名字太长就省略号,右边只放一个短标签,不换行 */
|
||
.line-top {
|
||
min-width: 0;
|
||
}
|
||
|
||
.line-top .line-name {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.line-top .line-name .arrow {
|
||
flex: none;
|
||
}
|
||
|
||
.line-top .line-name .name {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.line-top .line-name .flag,
|
||
.line-top .line-name .isp {
|
||
flex: none;
|
||
}
|
||
|
||
.line-top .line-range,
|
||
.line-top .chip {
|
||
flex: none;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* 悬浮提示弹在卡片右边,会盖到下一张卡片上:每张卡片都有自己的层叠上下文(毛玻璃),所以提示打开的那张要整张抬到兄弟卡片之上。
|
||
只在提示真的打开时才抬,不要鼠标一碰到卡片就抬:z-index 一变,带 backdrop-filter 的整张卡片要重新分层,那一帧底部会闪黑 */
|
||
.agent-card:has(.pop.open) {
|
||
z-index: 30;
|
||
}
|
||
|
||
/* ── 总览:节点卡片下面单独的「线路」面板 ── */
|
||
.agent-name + .kind-tag {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.lines-panel {
|
||
margin-top: 24px;
|
||
}
|
||
|
||
.cards + .lines-panel {
|
||
margin-top: 16px;
|
||
}
|
||
|
||
.lines-panel .lines-toolbar {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.lines-panel .agent-head .faint {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.line-grid {
|
||
display: grid;
|
||
gap: 10px;
|
||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||
}
|
||
|
||
.line-card {
|
||
padding: 10px 12px;
|
||
}
|
||
|
||
.line-card .line-name {
|
||
flex-wrap: wrap;
|
||
row-gap: 2px;
|
||
}
|
||
|
||
.line-card .line-name .arrow {
|
||
color: var(--app-ink-faint);
|
||
}
|
||
|
||
/* 线路面板:按三网分组 */
|
||
.carrier-group + .carrier-group {
|
||
margin-top: 18px;
|
||
}
|
||
|
||
.carrier-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 10px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.carrier-head .carrier-sum {
|
||
display: flex;
|
||
gap: 6px;
|
||
align-items: baseline;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.carrier-head .isp {
|
||
width: 20px;
|
||
height: 20px;
|
||
flex: none;
|
||
}
|
||
|
||
/* 天气(雪、雨):铺满窗口,和背景图同一层(在背景图后面画、所有内容的下面),不接收鼠标;所以卡片的毛玻璃会把它一起模糊,不会挡住任何组件 */
|
||
.weather-layer {
|
||
position: fixed;
|
||
inset: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
z-index: -1;
|
||
pointer-events: none;
|
||
/* 不要用 mix-blend-mode(滤色等):画布在带 backdrop-filter 的卡片后面每帧都在变,再叠一层混合,Chrome 给卡片取背景的时候会整块重新分层,卡片底部就闪黑;边缘的羽化用颜色和透明度做,已经是浅色半透明的,效果和滤色差不多 */
|
||
}
|
||
|
||
@media (max-width: 640px), ((pointer: coarse) and (max-width: 900px)) {
|
||
.weather-layer {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* ── 右下角的「外观」:玻璃小按钮,点开是带分类的设置面板(亚克力同一套变量);手机上不画雪也不能晃背景,这个也不显示 ── */
|
||
.appearance {
|
||
position: fixed;
|
||
right: 16px;
|
||
bottom: 16px;
|
||
z-index: 35;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-end;
|
||
gap: 10px;
|
||
}
|
||
|
||
.appearance-fab {
|
||
display: grid;
|
||
place-items: center;
|
||
width: 40px;
|
||
height: 40px;
|
||
padding: 0;
|
||
border: 0;
|
||
border-radius: 50%;
|
||
color: var(--app-ink-muted);
|
||
background: var(--glass-bg);
|
||
backdrop-filter: var(--glass-filter);
|
||
box-shadow:
|
||
inset 0 0 0 1px var(--glass-ring),
|
||
inset 0 1px 0 var(--glass-top),
|
||
var(--glass-drop);
|
||
cursor: pointer;
|
||
transition: color 0.15s;
|
||
}
|
||
|
||
.appearance-fab svg {
|
||
transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
|
||
}
|
||
|
||
.appearance-fab:hover,
|
||
.appearance-fab[aria-expanded='true'] {
|
||
color: var(--app-ink);
|
||
}
|
||
|
||
.appearance-fab[aria-expanded='true'] svg {
|
||
transform: rotate(60deg);
|
||
}
|
||
|
||
/* 面板:从按钮的位置(右下角)展开 / 收起;一直在 DOM 里,用 data-open 切换,这样收起的时候也有动画 */
|
||
.appearance-panel {
|
||
width: 300px;
|
||
padding: 14px 16px 16px;
|
||
border-radius: var(--r-card);
|
||
background: var(--glass-bg);
|
||
backdrop-filter: var(--glass-filter);
|
||
box-shadow:
|
||
inset 0 0 0 1px var(--glass-ring),
|
||
inset 0 1px 0 var(--glass-top),
|
||
var(--glass-drop);
|
||
color: var(--app-ink);
|
||
font-size: 13px;
|
||
transform-origin: bottom right;
|
||
transition:
|
||
opacity 0.22s ease,
|
||
transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15),
|
||
visibility 0s linear 0.28s;
|
||
}
|
||
|
||
.appearance-panel[data-open='false'] {
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
transform: translateY(10px) scale(0.92);
|
||
pointer-events: none;
|
||
}
|
||
|
||
.appearance-panel[data-open='true'] {
|
||
opacity: 1;
|
||
visibility: visible;
|
||
transform: none;
|
||
transition-delay: 0s;
|
||
}
|
||
|
||
.appearance-tabs {
|
||
position: relative;
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
margin-bottom: 12px;
|
||
padding: 3px;
|
||
border-radius: var(--r-pill);
|
||
background: color-mix(in srgb, var(--app-ink) 8%, transparent);
|
||
}
|
||
|
||
/* 选中的那一格的底:随选中的分类滑过去 */
|
||
.appearance-tabs::before {
|
||
content: '';
|
||
position: absolute;
|
||
top: 3px;
|
||
bottom: 3px;
|
||
left: 3px;
|
||
width: calc(50% - 3px);
|
||
border-radius: var(--r-pill);
|
||
background: var(--app-card);
|
||
box-shadow: 0 1px 3px color-mix(in srgb, var(--glass-shade) 25%, transparent);
|
||
transform: translateX(var(--tab-offset, 0));
|
||
transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.3, 1.1);
|
||
}
|
||
|
||
.appearance-tabs[data-tab='background']::before {
|
||
--tab-offset: 100%;
|
||
}
|
||
|
||
.appearance-tabs button {
|
||
position: relative;
|
||
padding: 5px 0;
|
||
border: 0;
|
||
border-radius: var(--r-pill);
|
||
color: var(--app-ink-muted);
|
||
background: none;
|
||
cursor: pointer;
|
||
transition: color 0.2s;
|
||
}
|
||
|
||
.appearance-tabs button[aria-selected='true'] {
|
||
color: var(--app-ink);
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* 切换分类时内容淡入、轻轻上浮;每一行再错开一点 */
|
||
.appearance-body {
|
||
display: grid;
|
||
gap: 9px;
|
||
}
|
||
|
||
.appearance-body > * {
|
||
animation: appearance-in 0.32s ease both;
|
||
}
|
||
|
||
.appearance-body > :nth-child(2) { animation-delay: 0.03s; }
|
||
.appearance-body > :nth-child(3) { animation-delay: 0.06s; }
|
||
.appearance-body > :nth-child(4) { animation-delay: 0.09s; }
|
||
.appearance-body > :nth-child(5) { animation-delay: 0.12s; }
|
||
.appearance-body > :nth-child(6) { animation-delay: 0.15s; }
|
||
.appearance-body > :nth-child(7) { animation-delay: 0.18s; }
|
||
.appearance-body > :nth-child(8) { animation-delay: 0.21s; }
|
||
.appearance-body > :nth-child(9) { animation-delay: 0.24s; }
|
||
|
||
@keyframes appearance-in {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(6px);
|
||
}
|
||
}
|
||
|
||
.appearance-body[data-off='true'] .appearance-row:not(.appearance-master) {
|
||
opacity: 0.45;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.appearance-row {
|
||
display: grid;
|
||
grid-template-columns: 52px 1fr 44px;
|
||
align-items: center;
|
||
gap: 8px;
|
||
transition: opacity 0.2s;
|
||
}
|
||
|
||
.appearance-row-switch {
|
||
grid-template-columns: 1fr auto;
|
||
}
|
||
|
||
.appearance-row output {
|
||
text-align: right;
|
||
color: var(--app-ink-muted);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.appearance-row input[type='range'] {
|
||
width: 100%;
|
||
accent-color: var(--app-primary);
|
||
}
|
||
|
||
.appearance-switch {
|
||
position: relative;
|
||
display: inline-block;
|
||
width: 34px;
|
||
height: 20px;
|
||
}
|
||
|
||
.appearance-switch input {
|
||
position: absolute;
|
||
inset: 0;
|
||
margin: 0;
|
||
opacity: 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.appearance-switch span {
|
||
position: absolute;
|
||
inset: 0;
|
||
border-radius: 10px;
|
||
background: color-mix(in srgb, var(--app-ink) 22%, transparent);
|
||
pointer-events: none;
|
||
transition: background 0.2s;
|
||
}
|
||
|
||
.appearance-switch span::after {
|
||
content: '';
|
||
position: absolute;
|
||
top: 2px;
|
||
left: 2px;
|
||
width: 16px;
|
||
height: 16px;
|
||
border-radius: 50%;
|
||
background: var(--app-card);
|
||
transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
|
||
}
|
||
|
||
.appearance-switch input:checked + span {
|
||
background: var(--app-primary);
|
||
}
|
||
|
||
.appearance-switch input:checked + span::after {
|
||
transform: translateX(14px);
|
||
}
|
||
|
||
.appearance-row-segment {
|
||
grid-template-columns: 52px 1fr;
|
||
}
|
||
|
||
/* 三选一:连在一起的三个按钮,选中的那个是实心的 */
|
||
.appearance-segment {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
padding: 2px;
|
||
border-radius: var(--r-pill);
|
||
background: color-mix(in srgb, var(--app-ink) 8%, transparent);
|
||
}
|
||
|
||
.appearance-segment button {
|
||
padding: 3px 0;
|
||
border: 0;
|
||
border-radius: var(--r-pill);
|
||
color: var(--app-ink-muted);
|
||
background: none;
|
||
cursor: pointer;
|
||
transition:
|
||
background 0.2s,
|
||
color 0.2s;
|
||
}
|
||
|
||
.appearance-segment button[aria-pressed='true'] {
|
||
color: var(--app-ink);
|
||
font-weight: 600;
|
||
background: var(--app-card);
|
||
box-shadow: 0 1px 3px color-mix(in srgb, var(--glass-shade) 25%, transparent);
|
||
}
|
||
|
||
.appearance-reset {
|
||
margin-top: 12px;
|
||
width: 100%;
|
||
padding: 6px 0;
|
||
border: 0;
|
||
border-radius: var(--r-pill);
|
||
color: var(--app-ink-muted);
|
||
background: color-mix(in srgb, var(--app-ink) 8%, transparent);
|
||
cursor: pointer;
|
||
transition: opacity 0.2s;
|
||
}
|
||
|
||
.appearance-reset:disabled {
|
||
opacity: 0.4;
|
||
cursor: default;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.appearance-panel,
|
||
.appearance-tabs::before,
|
||
.appearance-body > *,
|
||
.appearance-fab svg,
|
||
.appearance-switch span::after {
|
||
animation: none;
|
||
transition: none;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 640px), ((pointer: coarse) and (max-width: 900px)) {
|
||
.appearance {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
/* 照片的选择:按组分行,每组一个小标题,下面是缩略图,选中的描一圈 */
|
||
.appearance-group-title {
|
||
margin-bottom: 4px;
|
||
color: var(--app-ink-faint);
|
||
font-size: 11px;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
.appearance-choices {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 8px;
|
||
}
|
||
|
||
.appearance-choice {
|
||
display: grid;
|
||
gap: 4px;
|
||
padding: 0;
|
||
border: 0;
|
||
color: var(--app-ink-muted);
|
||
background: none;
|
||
cursor: pointer;
|
||
text-align: center;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.appearance-choice img {
|
||
width: 100%;
|
||
aspect-ratio: 16 / 9;
|
||
object-fit: cover;
|
||
border-radius: var(--r-control);
|
||
box-shadow: inset 0 0 0 1px var(--glass-ring);
|
||
transition:
|
||
box-shadow 0.2s,
|
||
transform 0.2s;
|
||
}
|
||
|
||
.appearance-choice:hover img {
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.appearance-choice[aria-pressed='true'] {
|
||
color: var(--app-ink);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.appearance-choice[aria-pressed='true'] img {
|
||
box-shadow:
|
||
0 0 0 2px var(--app-primary),
|
||
0 0 0 4px color-mix(in srgb, var(--app-primary) 25%, transparent);
|
||
}
|