/
spirzen
/
it-knowledge-base
Обзор
Документация
Войти
/
spirzen
/
it-knowledge-base
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
Mobile
src/components/DockerEmulator.module.css
450 строк
7 KB
Spirzen
Components Rework
19 май 2026, 19:17
19 май 2026, 19:17
d8d92a3
Код
Авторство
О чём код?
.shell { width: 100%; max-width: min(1100px, 100%); margin: clamp(0.5rem, 3vw, 1.25rem) auto; border-radius: 10px; overflow: hidden; font-family: var(--ifm-font-family-monospace); font-size: clamp(11px, 2.5vw, 13px); background: #0d1117; color: #c9d1d9; border: 1px solid #30363d; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); } .header { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.85rem; background: linear-gradient(180deg, #161b22 0%, #0d1117 100%); border-bottom: 1px solid #30363d; } .buttons { display: flex; gap: 0.4rem; flex-shrink: 0; } .winBtn { width: 11px; height: 11px; border-radius: 50%; border: none; padding: 0; cursor: pointer; } .winBtnRed { background: #ff5f57; } .winBtnYellow { background: #febc2e; } .winBtnGreen { background: #28c840; } .title { flex: 1; min-width: 0; font-size: 0.85em; color: #8b949e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stats { display: flex; gap: 0.5rem; flex-shrink: 0; } .stat { padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.72em; background: #21262d; border: 1px solid #30363d; color: #58a6ff; } .body { padding: 0.85rem; } .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.65rem; margin-bottom: 0.85rem; } .actionCard { padding: 0.65rem 0.75rem; border-radius: 8px; background: #161b22; border: 1px solid #30363d; border-left: 3px solid var(--accent, #58a6ff); } .actionCardPull { --accent: #3fb950; } .actionCardBuild { --accent: #58a6ff; } .actionCardRun { --accent: #d29922; } .actionCardPush { --accent: #bc8cff; } .actionTitle { margin: 0 0 0.45rem; font-size: 0.82em; font-weight: 600; color: #e6edf3; } .actionRow { display: flex; gap: 0.4rem; flex-wrap: wrap; } .input { flex: 1; min-width: 120px; padding: 0.35rem 0.5rem; border-radius: 6px; border: 1px solid #30363d; background: #0d1117; color: #e6edf3; font-family: inherit; font-size: 0.92em; } .input:focus { outline: none; border-color: #58a6ff; } .select { composes: input; width: 100%; } .btn { padding: 0.35rem 0.75rem; border: none; border-radius: 6px; font-family: inherit; font-size: 0.88em; font-weight: 600; cursor: pointer; color: #fff; background: var(--accent, #238636); transition: opacity 0.15s ease, transform 0.1s ease; } .btn:disabled { opacity: 0.45; cursor: not-allowed; } .btn:not(:disabled):active { transform: scale(0.98); } .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; } .panel { background: #161b22; border: 1px solid #30363d; border-radius: 8px; overflow: hidden; } .panelHead { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.65rem; border-bottom: 1px solid #30363d; font-weight: 600; font-size: 0.85em; } .miniBtn { padding: 0.2rem 0.5rem; font-size: 0.78em; border-radius: 4px; border: 1px solid #30363d; background: #21262d; color: #58a6ff; cursor: pointer; font-family: inherit; } .panelBody { max-height: 220px; overflow-y: auto; padding: 0.35rem; } .tableRow { display: grid; grid-template-columns: 1.4fr 1fr 0.6fr auto; gap: 0.35rem; padding: 0.4rem 0.35rem; border-bottom: 1px solid #21262d; align-items: center; font-size: 0.88em; } .tableHead { composes: tableRow; font-weight: 700; color: #8b949e; font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.03em; } .dangerBtn { padding: 0.15rem 0.45rem; font-size: 0.78em; border: none; border-radius: 4px; background: #da3633; color: #fff; cursor: pointer; font-family: inherit; } .containerCard { padding: 0.5rem 0.55rem; margin-bottom: 0.4rem; border-radius: 6px; background: #0d1117; border-left: 3px solid var(--status-color, #3fb950); } .containerCardExited { --status-color: #f85149; } .containerTop { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; } .containerName { font-weight: 600; color: #e6edf3; } .containerMeta { font-size: 0.82em; color: #8b949e; margin-top: 0.2rem; } .containerActions { display: flex; gap: 0.3rem; flex-wrap: wrap; } .statusDot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.25rem; background: var(--status-color, #3fb950); } .terminal { border: 1px solid #30363d; border-radius: 8px; overflow: hidden; } .termHead { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.65rem; background: #161b22; border-bottom: 1px solid #30363d; font-size: 0.85em; font-weight: 600; } .termBody { min-height: clamp(140px, 28vh, 200px); max-height: clamp(180px, 38vh, 280px); overflow-y: auto; padding: 0.5rem 0.65rem; } .logLine { margin-bottom: 0.2rem; word-break: break-word; animation: fadeIn 0.15s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } } .logTime { color: #6e7681; } .logCmd { color: #58a6ff; } .logError { color: #ff7b72; } .logSuccess { color: #3fb950; } .logWarn { color: #d29922; } .inputRow { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; } .prompt { color: #3fb950; flex-shrink: 0; } .termInput { flex: 1; background: transparent; border: none; color: #e6edf3; font-family: inherit; font-size: inherit; outline: none; } .cursor { width: 8px; height: 1em; background: #e6edf3; animation: blink 1s step-end infinite; } @keyframes blink { 50% { opacity: 0; } } .hints { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.45rem 0.65rem; border-top: 1px solid #30363d; background: #0d1117; } .hintBtn { padding: 0.2rem 0.5rem; font-size: 0.78em; border-radius: 4px; border: 1px solid #30363d; background: #21262d; color: #8b949e; cursor: pointer; font-family: inherit; } .hintBtn:hover { border-color: #58a6ff; color: #58a6ff; } .overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.65); } .overlayBox { padding: 1.25rem 1.5rem; border-radius: 10px; background: #161b22; border: 1px solid #30363d; text-align: center; min-width: 200px; } .spinner { width: 28px; height: 28px; margin: 0 auto 0.65rem; border: 3px solid #30363d; border-top-color: #58a6ff; border-radius: 50%; animation: spin 0.7s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (max-width: 600px) { .tableHead { display: none; } .tableRow { grid-template-columns: 1fr; gap: 0.2rem; } }