/
spirzen
/
it-knowledge-base
Обзор
Документация
Войти
/
spirzen
/
it-knowledge-base
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
Mobile
src/components/BIOSemulator.module.css
362 строки
6 KB
Spirzen
Components Rework
19 май 2026, 19:17
19 май 2026, 19:17
d8d92a3
Код
Авторство
О чём код?
.shell { width: 100%; max-width: min(920px, 98%); margin: 0 auto; font-family: var(--ifm-font-family-monospace); } .monitor { background: linear-gradient(145deg, #3a3a3a 0%, #1f1f1f 100%); padding: clamp(12px, 3vw, 20px); border-radius: 14px; border: 2px solid #4a4a4a; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); } .bezelTop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.65rem; padding: 0 0.25rem; font-size: 0.72rem; color: #9ca3af; letter-spacing: 0.06em; text-transform: uppercase; } .powerLed { width: 8px; height: 8px; border-radius: 50%; background: #444; box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5); transition: background 0.3s ease, box-shadow 0.3s ease; } .powerLedOn { background: #22c55e; box-shadow: 0 0 8px #22c55e; } .screen { position: relative; min-height: clamp(280px, 48vh, 420px); padding: clamp(12px, 2.5vw, 20px); background: #000; color: #e8e8e8; border: 2px solid #333; border-radius: 4px; overflow: hidden; font-size: clamp(12px, 2.4vw, 15px); line-height: 1.45; display: flex; flex-direction: column; } .screen::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: repeating-linear-gradient( 0deg, rgba(0, 0, 0, 0.12) 0, rgba(0, 0, 0, 0.12) 1px, transparent 1px, transparent 3px ); opacity: 0.35; } .screenOff { display: flex; align-items: center; justify-content: center; color: #555; font-size: 0.9em; text-align: center; flex: 1; } .postLine { margin-bottom: 2px; white-space: pre-wrap; word-break: break-word; } .postOk { color: #4ade80; } .postWarn { color: #f87171; } .postHint { color: #fde047; } .memoryBar { width: 100%; max-width: 280px; height: 6px; margin: 4px 0 8px; background: #222; border: 1px solid #333; } .memoryFill { height: 100%; background: linear-gradient(90deg, #15803d, #4ade80); transition: width 0.05s linear; } .bootTitle { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.35); margin-bottom: 0.75rem; padding-bottom: 0.35rem; font-weight: 700; } .bootItem { padding: 0.2rem 0.65rem; cursor: pointer; border: 1px solid transparent; } .bootItemActive { background: #fff; color: #0000aa; } .bootHint { margin-top: 1.25rem; font-size: 0.85em; opacity: 0.75; font-style: italic; } .biosHeader { background: #0000aa; color: #fff; padding: 0.35rem 0.5rem; text-align: center; font-weight: 700; } .tabs { display: flex; flex-wrap: wrap; gap: 1rem; background: #0000aa; padding: 0.35rem 0.65rem; color: #fff; font-weight: 600; } .tab { cursor: pointer; opacity: 0.75; } .tabActive { color: #fde047; opacity: 1; } .biosTable { flex: 1; overflow-y: auto; padding: 0.5rem 0; } .biosTable table { width: 100%; border-collapse: collapse; } .biosTable td { padding: 0.25rem 0.65rem; } .rowSelected { background: #fff; color: #0000aa; } .biosFooter { background: #0000aa; color: #fff; padding: 0.35rem; text-align: center; font-size: 0.85em; margin-top: auto; } .popup { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 170, 0.96); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; } .popupTitle { color: #fff; font-size: 1.05em; margin-bottom: 1rem; text-align: center; } .popupList { width: min(100%, 420px); display: flex; flex-direction: column; gap: 0.35rem; } .popupItem { color: #fff; padding: 0.35rem 0.65rem; cursor: pointer; border: 1px solid transparent; } .popupItemSelected { background: #fff; color: #000; } .popupFooter { position: absolute; bottom: 0.65rem; font-size: 0.75em; color: #aaa; } .winLogo { color: #00a4ef; font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 700; margin-bottom: 1rem; } .winLoader { width: 100%; max-width: 320px; height: 4px; background: #333; margin-top: 1.25rem; } .winProgress { height: 100%; background: #00a4ef; transition: width 0.15s ease; } .desktop { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: #fff; text-align: center; } .desktopIcon { font-size: 2.5rem; } .toast { position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%); z-index: 6; padding: 0.35rem 0.75rem; background: rgba(0, 0, 0, 0.85); border: 1px solid #4ade80; color: #4ade80; font-size: 0.8em; border-radius: 4px; max-width: 90%; text-align: center; } .controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 0.5rem; margin-top: 0.85rem; padding: 0.75rem; background: #1a1a1a; border-radius: 8px; border: 1px solid #333; } .key { background: linear-gradient(180deg, #444 0%, #2a2a2a 100%); color: #ddd; border: 1px solid #555; border-radius: 4px; padding: 0.45rem 0.35rem; cursor: pointer; font-weight: 700; font-family: inherit; font-size: 0.78rem; box-shadow: 0 3px 0 #111; transition: transform 0.08s ease; } .key:active { transform: translateY(3px); box-shadow: none; } .keyPower { background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%); color: #fff; grid-column: span 2; border: 1px solid #555; border-radius: 4px; padding: 0.45rem 0.35rem; cursor: pointer; font-weight: 700; font-family: inherit; font-size: 0.78rem; box-shadow: 0 3px 0 #111; } .hintBar { margin-top: 0.65rem; font-size: 0.75rem; color: var(--demo-muted, var(--ifm-color-content-secondary)); text-align: center; } .chips { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; margin-top: 0.5rem; } .chip { padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid var(--demo-border, var(--ifm-color-emphasis-300)); font-size: 0.72rem; color: var(--ifm-color-content-secondary); }