20 lines
1.4 KiB
SCSS
20 lines
1.4 KiB
SCSS
|
|
@use '../../../styles/variables' as *;
|
||
|
|
|
||
|
|
.card { background: var(--surface); border: 1px solid var(--border); border-radius: $radius-lg; padding: $s-5; box-shadow: var(--shadow-sm); }
|
||
|
|
.head { display: flex; align-items: center; justify-content: space-between; gap: $s-3; margin-bottom: $s-2; }
|
||
|
|
.title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
|
||
|
|
.controls { display: flex; align-items: center; gap: $s-3; }
|
||
|
|
.yoy { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
|
||
|
|
.up { color: var(--success); background: var(--success-bg); }
|
||
|
|
.down { color: var(--danger); background: var(--danger-bg); }
|
||
|
|
.toggle {
|
||
|
|
display: inline-flex; border: 1px solid var(--border); border-radius: $radius; overflow: hidden;
|
||
|
|
button { height: 26px; padding: 0 10px; border: none; background: var(--surface); color: var(--text-muted); font-size: 11px; font-weight: 600; cursor: pointer;
|
||
|
|
&.on { background: var(--primary); color: #fff; } }
|
||
|
|
}
|
||
|
|
.legend { display: flex; gap: $s-4; flex-wrap: wrap; margin-bottom: $s-2; }
|
||
|
|
.leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); b { color: var(--text); font-variant-numeric: tabular-nums; } }
|
||
|
|
.sw { width: 12px; height: 8px; border-radius: 2px; }
|
||
|
|
.svg { width: 100%; height: auto; display: block; }
|
||
|
|
.axis { font-size: 9px; fill: var(--text-dim); font-family: var(--mono); }
|