/
spirzen
/
it-knowledge-base
Обзор
Документация
Войти
/
spirzen
/
it-knowledge-base
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
Mobile
src/components/DebuggerEmulator.module.css
314 строк
5 KB
Spirzen
Components Rework
19 май 2026, 19:17
19 май 2026, 19:17
d8d92a3
Код
Авторство
О чём код?
.ide { border-radius: 10px; overflow: hidden; border: 1px solid #3e3e3e; background: #1e1e1e; font-family: var(--ifm-font-family-monospace); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); } .toolbar { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.5rem 0.65rem; background: #252526; border-bottom: 1px solid #3e3e3e; align-items: center; } .toolBtn { padding: 0.35rem 0.65rem; font-size: 0.72rem; font-weight: 500; border: none; border-radius: 5px; cursor: pointer; font-family: system-ui, sans-serif; color: #fff; transition: opacity 0.15s, transform 0.1s; } .toolBtn:disabled { opacity: 0.4; cursor: not-allowed; } .toolBtn:not(:disabled):active { transform: scale(0.97); } .toolPrimary { background: #0e639c; } .toolSecondary { background: #3e3e3e; } .toolSuccess { background: #2ea043; } .toolWarning { background: #bb8002; } .toolSep { width: 1px; height: 1.25rem; background: #3e3e3e; margin: 0 0.25rem; } .statusPill { margin-left: auto; font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: 4px; color: #ccc; background: #2d2d2d; } .statusPaused { color: #4ec9b0; } .main { display: grid; grid-template-columns: 1fr; min-height: 22rem; } @media (min-width: 768px) { .main { grid-template-columns: 1fr min(280px, 34%); } } .editor { overflow: auto; padding: 0.5rem 0; background: #1e1e1e; } .codeRow { display: flex; align-items: stretch; min-height: 1.45rem; cursor: default; } .codeRow:hover { background: rgba(255, 255, 255, 0.03); } .gutter { flex-shrink: 0; width: 2.75rem; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.35rem; gap: 0.25rem; user-select: none; } .bpDot { width: 0.65rem; height: 0.65rem; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: transparent; flex-shrink: 0; } .bpDotOn { background: #e51400; box-shadow: 0 0 6px rgba(229, 20, 0, 0.6); } .lineNum { font-size: 0.7rem; color: #858585; min-width: 1.25rem; text-align: right; } .codeContent { flex: 1; padding: 0 0.65rem 0 0.25rem; font-size: 0.75rem; line-height: 1.45; white-space: pre; color: #d4d4d4; } .codeRowCurrent .codeContent { background: #264f78; border-radius: 0 4px 4px 0; box-shadow: inset 3px 0 0 #007acc; } .codeRowCurrent .lineNum { color: #fff; font-weight: 700; } .sidebar { background: #252526; border-top: 1px solid #3e3e3e; display: flex; flex-direction: column; min-height: 12rem; } @media (min-width: 768px) { .sidebar { border-top: none; border-left: 1px solid #3e3e3e; } } .tabs { display: flex; border-bottom: 1px solid #3e3e3e; } .tab { flex: 1; padding: 0.45rem 0.35rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; background: transparent; border: none; color: #858585; cursor: pointer; border-bottom: 2px solid transparent; } .tabActive { color: #fff; border-bottom-color: #007acc; } .panelBody { flex: 1; overflow-y: auto; padding: 0.65rem 0.75rem; max-height: 14rem; } .panelEmpty { font-size: 0.72rem; color: #858585; } .varRow { font-size: 0.75rem; padding: 0.2rem 0; color: #9cdcfe; } .varName { color: #9cdcfe; } .varVal { color: #ce9178; } .stackFrame { font-size: 0.75rem; padding: 0.35rem 0.4rem; margin-bottom: 0.25rem; border-radius: 4px; border-left: 2px solid #3e3e3e; color: #d4d4d4; } .stackFrameActive { border-left-color: #4ec9b0; background: rgba(78, 201, 176, 0.1); color: #4ec9b0; font-weight: 600; } .console { border-top: 1px solid #3e3e3e; background: #1a1a1a; max-height: 9rem; overflow-y: auto; padding: 0.5rem 0.75rem; } .consoleHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; } .consoleTitle { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: #858585; } .consoleClear { font-size: 0.65rem; padding: 0.15rem 0.4rem; border: 1px solid #3e3e3e; border-radius: 3px; background: transparent; color: #858585; cursor: pointer; } .logLine { font-size: 0.7rem; line-height: 1.4; word-break: break-word; } .tip { padding: 0.5rem 0.75rem; font-size: 0.68rem; color: #b5cea8; background: #252526; border-top: 1px solid #3e3e3e; line-height: 1.45; } .tokenKw { color: #c586c0; } .tokenFn { color: #dcdcaa; } .tokenV { color: #9cdcfe; } .tokenStr { color: #ce9178; } .tokenNum { color: #b5cea8; } .tokenComment { color: #6a9955; } .tokenP { color: #d4d4d4; } .functionBadge { display: inline-block; font-size: 0.65rem; padding: 0.1rem 0.4rem; border-radius: 3px; background: #37373d; color: #ccc; margin-left: 0.35rem; }