/
spirzen
/
it-knowledge-base
Обзор
Документация
Войти
/
spirzen
/
it-knowledge-base
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
Mobile
src/components/SwaggerApiExplorer.module.css
212 строк
3 KB
Spirzen
Components Pack
21 май 2026, 18:53
21 май 2026, 18:53
44241e8
Код
Авторство
О чём код?
.swagger { border: 1px solid #49cc90; border-radius: 8px; overflow: hidden; background: var(--ifm-background-color); } .top { display: flex; justify-content: space-between; align-items: flex-start; padding: 1rem 1.25rem; background: linear-gradient(180deg, rgba(73, 204, 144, 0.15), transparent); } .title { margin: 0; font-size: 1.5rem; color: #3b4151; } [data-theme='dark'] .title { color: var(--ifm-heading-color); } .version { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.4rem; border-radius: 4px; background: rgba(73, 204, 144, 0.3); font-size: 0.8rem; } .desc { margin: 0.35rem 0; font-size: 0.85rem; color: var(--ifm-color-content-secondary); } .server { font-size: 0.78rem; } .badge { padding: 0.25rem 0.5rem; border-radius: 4px; background: #49cc90; color: #fff; font-size: 0.72rem; font-weight: 600; } .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.5rem 1rem; border-bottom: 1px solid var(--ifm-color-emphasis-200); } .tag { padding: 0.25rem 0.6rem; border-radius: 4px; border: 1px solid var(--ifm-color-emphasis-300); background: transparent; cursor: pointer; font-family: inherit; font-size: 0.78rem; } .tagActive { background: #61affe; color: #fff; border-color: transparent; } .split { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 280px; } @media (max-width: 768px) { .split { grid-template-columns: 1fr; } } .list { border-right: 1px solid var(--ifm-color-emphasis-200); max-height: 360px; overflow: auto; } .row { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.5rem; width: 100%; text-align: left; padding: 0.5rem 0.75rem; border: none; border-bottom: 1px solid var(--ifm-color-emphasis-100); background: transparent; cursor: pointer; font-family: inherit; align-items: center; } .rowActive { background: rgba(97, 175, 254, 0.12); } .method { display: inline-block; padding: 0.2rem 0.45rem; border-radius: 3px; color: #fff; font-size: 0.68rem; font-weight: 700; font-family: monospace; } .path { font-family: monospace; font-size: 0.78rem; grid-column: 2; } .summary { grid-column: 2; font-size: 0.72rem; color: var(--ifm-color-content-secondary); } .detail { padding: 0.75rem 1rem; overflow: auto; } .detailHead { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; } .detail h4 { margin: 0.75rem 0 0.35rem; font-size: 0.85rem; } .table { width: 100%; font-size: 0.78rem; border-collapse: collapse; } .table th, .table td { border: 1px solid var(--ifm-color-emphasis-200); padding: 0.35rem 0.5rem; text-align: left; } .bodyInput { width: 100%; font-family: monospace; font-size: 0.78rem; padding: 0.5rem; border-radius: 4px; border: 1px solid var(--ifm-color-emphasis-300); } .tryBtn { margin-top: 0.5rem; padding: 0.45rem 1rem; border: none; border-radius: 4px; background: #4990e2; color: #fff; font-weight: 600; cursor: pointer; font-family: inherit; } .response { margin-top: 0.75rem; padding: 0.5rem; background: var(--ifm-code-background); border-radius: 4px; border: 1px solid var(--ifm-color-emphasis-200); } .resHead { display: flex; gap: 0.75rem; margin-bottom: 0.35rem; font-size: 0.78rem; } .resOk { color: #49cc90; font-weight: 700; } .response pre { margin: 0; font-size: 0.72rem; white-space: pre-wrap; }