/
spirzen
/
it-knowledge-base
Обзор
Документация
Войти
/
spirzen
/
it-knowledge-base
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
Mobile
src/components/ResourceMetricsDemo.module.css
109 строк
2 KB
Spirzen
New components
21 май 2026, 20:58
21 май 2026, 20:58
3e1d763
Код
Авторство
О чём код?
.shell { --rm-cpu: #e65100; --rm-mem: #1565c0; --rm-disk: #6a1b9a; --rm-net: #00838f; --rm-border: var(--demo-border, var(--ifm-color-emphasis-300)); --rm-muted: var(--demo-muted, var(--ifm-color-content-secondary)); font-size: 0.85rem; } .gauges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } @media (max-width: 600px) { .gauges { grid-template-columns: 1fr; } } .gauge { padding: 0.75rem; border: 1px solid var(--rm-border); border-radius: 10px; background: var(--ifm-background-surface-color); } .gaugeHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .gaugeTitle { font-weight: 700; font-size: 0.82rem; } .gaugeValue { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; } .ring { width: 100%; max-width: 120px; margin: 0 auto; display: block; } .barTrack { height: 8px; background: var(--ifm-color-emphasis-200); border-radius: 4px; overflow: hidden; margin-top: 0.35rem; } .barFill { height: 100%; border-radius: 4px; transition: width 0.4s ease; } .scenarios { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; } .scenarioBtn { padding: 0.35rem 0.65rem; border: 1px solid var(--rm-border); border-radius: 6px; background: var(--ifm-background-surface-color); font-size: 0.75rem; cursor: pointer; } .scenarioActive { font-weight: 700; border-width: 2px; } .table { width: 100%; font-size: 0.75rem; border-collapse: collapse; margin-top: 0.75rem; } .table th, .table td { padding: 0.35rem 0.5rem; border: 1px solid var(--rm-border); text-align: left; } .hint { font-size: 0.72rem; color: var(--rm-muted); margin-top: 0.5rem; line-height: 1.4; }