/
spirzen
/
it-knowledge-base
Обзор
Документация
Войти
/
spirzen
/
it-knowledge-base
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
Mobile
src/components/FirstProgramPlay.module.css
216 строк
4 KB
Spirzen
Major changes
22 май 2026, 03:11
22 май 2026, 03:11
99393a4
Код
Авторство
О чём код?
.root { max-width: min(960px, 100%); margin: 0 auto; } .layout { display: grid; grid-template-columns: 11rem 1fr; gap: 0; border: 1px solid var(--demo-border, var(--ifm-color-emphasis-300)); border-radius: 10px; overflow: hidden; margin-bottom: 1rem; background: var(--ifm-background-surface-color); } @media (max-width: 720px) { .layout { grid-template-columns: 1fr; } } .ideTitle { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.75rem; font-size: 0.72rem; font-weight: 600; border-bottom: 1px solid var(--demo-border, var(--ifm-color-emphasis-300)); background: var(--ifm-background-color); grid-column: 1 / -1; } .ideDot { width: 8px; height: 8px; border-radius: 50%; background: var(--ifm-color-primary); } .sidebar { border-right: 1px solid var(--demo-border, var(--ifm-color-emphasis-300)); padding: 0.5rem 0; font-size: 0.72rem; background: var(--ifm-background-color); } @media (max-width: 720px) { .sidebar { border-right: none; border-bottom: 1px solid var(--demo-border, var(--ifm-color-emphasis-300)); display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.4rem; } } .treeItem { display: block; padding: 0.2rem 0.65rem; color: var(--demo-muted, var(--ifm-color-content-secondary)); font-family: var(--ifm-font-family-monospace); } .treeItemActive { color: var(--ifm-color-primary); background: var(--demo-highlight, rgba(123, 104, 238, 0.12)); font-weight: 600; } .editorWrap { display: flex; flex-direction: column; min-width: 0; } .codeBlock { margin: 0; padding: 0.65rem 0.85rem; font-family: var(--ifm-font-family-monospace); font-size: 0.76rem; line-height: 1.55; overflow-x: auto; white-space: pre; background: var(--ifm-code-background); flex: 1; min-height: 8rem; } .codeLineActive { background: var(--demo-highlight, rgba(123, 104, 238, 0.18)); display: block; margin: 0 -0.85rem; padding: 0 0.85rem; } .console { border-top: 1px solid var(--demo-border, var(--ifm-color-emphasis-300)); max-height: 9rem; overflow-y: auto; padding: 0.5rem 0.75rem; font-family: var(--ifm-font-family-monospace); font-size: 0.72rem; line-height: 1.45; background: #1e1e1e; color: #d4d4d4; } [data-theme='light'] .console { background: #f5f5f5; color: #333; } .consoleLine { margin: 0.1rem 0; } .consoleSuccess { color: #4ec9b0; } [data-theme='light'] .consoleSuccess { color: #0d7a5f; font-weight: 600; } .consoleError { color: #f48771; } .stepTrack { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.85rem; } .stepChip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--demo-border, var(--ifm-color-emphasis-300)); background: transparent; font-size: 0.72rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; } .stepChipActive { border-color: var(--ifm-color-primary); background: var(--demo-highlight, rgba(123, 104, 238, 0.15)); font-weight: 600; } .stepChipDone { opacity: 0.85; } .controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; } .msgField { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem; font-size: 0.8rem; } .msgField input { flex: 1; min-width: 10rem; padding: 0.35rem 0.55rem; border-radius: 6px; border: 1px solid var(--demo-border, var(--ifm-color-emphasis-300)); font-family: var(--ifm-font-family-monospace); font-size: 0.78rem; } .preview { margin-bottom: 1rem; padding: 1.25rem; border-radius: 10px; border: 1px dashed var(--demo-border, var(--ifm-color-emphasis-300)); text-align: center; background: linear-gradient(145deg, rgba(97, 175, 239, 0.08), rgba(123, 104, 238, 0.08)); } .previewTitle { margin: 0 0 0.35rem; font-size: 1.35rem; font-weight: 700; } .previewUrl { margin: 0; font-size: 0.72rem; color: var(--demo-muted, var(--ifm-color-content-secondary)); font-family: var(--ifm-font-family-monospace); } .hint { margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--demo-muted, var(--ifm-color-content-secondary)); }