/
mihelson94
/
xsd_validator
Обзор
Документация
Войти
/
mihelson94
/
xsd_validator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
css/style.css
696 строк
13 KB
ivanov.m
Init
04 авг 2026, 11:29
04 авг 2026, 11:29
f9bc58d
Код
Авторство
О чём код?
:root { --bg: #0b1020; --panel: rgba(17, 24, 39, 0.88); --panel-strong: #111827; --surface: #151e31; --surface-soft: #1d293d; --border: #2e3b52; --text: #e5eefc; --muted: #9aa8bd; --primary: #60a5fa; --primary-strong: #2563eb; --success: #22c55e; --warning: #f59e0b; --danger: #ef4444; --shadow: 0 24px 80px rgba(0, 0, 0, 0.28); color-scheme: dark; } [data-theme="light"] { --bg: #edf2f7; --panel: rgba(255, 255, 255, 0.92); --panel-strong: #ffffff; --surface: #f8fafc; --surface-soft: #eef2f7; --border: #d6deea; --text: #172033; --muted: #667085; --primary: #2563eb; --primary-strong: #1d4ed8; --shadow: 0 20px 60px rgba(15, 23, 42, 0.12); color-scheme: light; } * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.22), transparent 34rem), radial-gradient(circle at 88% 8%, rgba(34, 197, 94, 0.14), transparent 28rem), var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; } button, input, textarea { font: inherit; } button { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); color: var(--text); cursor: pointer; padding: 0.7rem 0.9rem; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; } button:hover { border-color: var(--primary); transform: translateY(-1px); } .mini-button { padding: 0.35rem 0.55rem; border-radius: 9px; font-size: 0.78rem; } .app-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem clamp(1rem, 2vw, 2rem); } .eyebrow { margin: 0 0 0.35rem; color: var(--primary); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; } h1 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; } .subtitle { max-width: 58rem; margin: 0.65rem 0 0; color: var(--muted); } .header-actions, .result-toolbar, .file-actions { display: flex; align-items: center; gap: 0.65rem; } .primary-button { border-color: var(--primary-strong); background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: white; font-weight: 700; } .ghost-button, .link-button { background: transparent; } .link-button { padding: 0.25rem 0.45rem; color: var(--primary); } .workspace { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 1rem; padding: 0 clamp(1rem, 2vw, 2rem) 2rem; } .sidebar, .main-area, .panel, .editor-card, .results-card { min-width: 0; } .sidebar { display: grid; align-content: start; gap: 1rem; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; } .panel, .editor-card, .results-card { border: 1px solid var(--border); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(16px); } .panel { padding: 1rem; } .panel-title, .editor-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; font-weight: 800; } .file-card { display: grid; gap: 0.7rem; padding: 0.85rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); } .file-card + .file-card { margin-top: 0.75rem; } .file-ready { border-color: color-mix(in srgb, var(--success) 55%, var(--border)); } .file-dirty { border-color: color-mix(in srgb, var(--warning) 70%, var(--border)); } .file-card small, .hint, .editor-header small, .result-toolbar span { color: var(--muted); } .file-actions { align-items: stretch; } .file-actions input { width: 100%; min-width: 0; color: var(--muted); } .hint { margin: 0.85rem 0 0; font-size: 0.86rem; line-height: 1.45; } .action-grid { display: grid; gap: 0.65rem; } .action-grid.compact { grid-template-columns: repeat(3, 1fr); } .switch-row { display: flex; gap: 0.65rem; align-items: center; padding: 0.45rem 0; color: var(--muted); } .status { padding: 0.8rem; border-radius: 14px; background: var(--surface); color: var(--muted); } .status.success, .result-message.success { border-left: 4px solid var(--success); } .status.danger, .result-message.danger { border-left: 4px solid var(--danger); } .main-area { display: grid; gap: 1rem; } .editor-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 1rem; } .editor-card { overflow: hidden; } .editor-header { margin: 0; padding: 0.9rem 1rem; background: var(--panel-strong); } .accent-blue .editor-header { border-top: 3px solid var(--primary); } .accent-amber .editor-header { border-top: 3px solid var(--warning); } .accent-green .editor-header { border-top: 3px solid var(--success); } textarea { display: block; width: 100%; border: 0; outline: none; resize: vertical; background: #07111f; color: #dbeafe; font-family: Consolas, "JetBrains Mono", "Courier New", monospace; font-size: 0.92rem; line-height: 1.55; tab-size: 2; } [data-theme="light"] textarea { background: #ffffff; color: #111827; } .editor-card textarea { min-height: clamp(320px, 48vh, 620px); } .CodeMirror { position: relative; overflow: hidden; border-radius: 0; background: #07111f; color: #dbeafe; direction: ltr; font-family: Consolas, "JetBrains Mono", "Courier New", monospace; font-size: 0.92rem; line-height: 1.55; } .CodeMirror-scroll { overflow: scroll !important; margin-bottom: -50px; margin-right: -50px; padding-bottom: 50px; height: 100%; outline: none; position: relative; } .CodeMirror-sizer { position: relative; border-right: 50px solid transparent; } .CodeMirror-lines { cursor: text; min-height: 1px; padding: 1rem 0; } .CodeMirror pre { border-radius: 0; border-width: 0; background: transparent; font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; overflow: visible; padding: 0 1rem; white-space: pre; word-wrap: normal; } .CodeMirror-wrap pre { white-space: pre-wrap; word-break: normal; word-wrap: break-word; } .CodeMirror-linebackground { position: absolute; inset: 0; z-index: 0; } .CodeMirror-linewidget { position: relative; z-index: 2; overflow: auto; } .CodeMirror-gutters { border-right: 1px solid var(--border); background: rgba(15, 23, 42, 0.78); white-space: nowrap; } .CodeMirror-gutter { white-space: normal; height: 100%; display: inline-block; vertical-align: top; margin-bottom: -50px; } .CodeMirror-gutter-wrapper { position: absolute; z-index: 4; background: none !important; border: none !important; } .CodeMirror-gutter-background { position: absolute; top: 0; bottom: 0; z-index: 4; } .CodeMirror-linenumber { padding: 0 0.65rem; min-width: 1.5rem; text-align: right; color: var(--muted); white-space: nowrap; } .CodeMirror-cursor { position: absolute; pointer-events: none; border-left: 1px solid currentColor; } .CodeMirror div.CodeMirror-secondarycursor { border-left: 1px solid silver; } .CodeMirror-selected { background: rgba(96, 165, 250, 0.32); } .CodeMirror-focused .CodeMirror-selected { background: rgba(96, 165, 250, 0.42); } .CodeMirror-code { outline: none; } .CodeMirror-measure { position: absolute; width: 100%; height: 0; overflow: hidden; visibility: hidden; } .CodeMirror-measure pre { position: static; } .CodeMirror textarea { position: absolute !important; bottom: 0; left: 0; width: 1000px !important; min-height: 0 !important; height: 1em !important; outline: none !important; opacity: 0; z-index: -10; } .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { position: absolute; z-index: 6; } .CodeMirror-vscrollbar { right: 0; top: 0; overflow-x: hidden; overflow-y: scroll; } .CodeMirror-hscrollbar { bottom: 0; left: 0; overflow-y: hidden; overflow-x: scroll; } .CodeMirror-scrollbar-filler { right: 0; bottom: 0; } .CodeMirror-gutter-filler { left: 0; bottom: 0; } .CodeMirror-gutters, .CodeMirror-linenumber, .CodeMirror-lines, .CodeMirror pre { box-sizing: content-box; } .editor-card .CodeMirror { height: clamp(320px, 48vh, 620px); } .results-card { overflow: hidden; } .tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.75rem; background: var(--panel-strong); } .tab { background: transparent; white-space: nowrap; } .tab.active { border-color: var(--primary); background: var(--surface-soft); color: var(--primary); } .tab-panel { display: none; padding: 1rem; } .tab-panel.active { display: block; } .empty-state { display: grid; place-items: center; min-height: 220px; border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); text-align: center; } .result-toolbar { justify-content: space-between; margin-bottom: 0.8rem; } #resultEditor { min-height: 360px; border: 1px solid var(--border); border-radius: 16px; padding: 1rem; } #htmlPreview { width: 100%; min-height: 460px; border: 1px solid var(--border); border-radius: 16px; background: white; } .result-message, .result-list { margin-bottom: 1rem; padding: 1rem; border-radius: 16px; background: var(--surface); } .result-list h3 { margin: 0 0 0.7rem; font-size: 1rem; } .result-list ul { margin: 0; padding-left: 1.2rem; } .result-list li + li { margin-top: 0.45rem; } .result-list span { color: var(--muted); } .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; } .metric-grid div, .tag-cloud span { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 0.9rem; } .metric-grid strong { display: block; font-size: 1.45rem; } .metric-grid span { color: var(--muted); } .tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; } .toast { position: fixed; right: 1rem; bottom: 1rem; max-width: min(420px, calc(100vw - 2rem)); padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-strong); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.2s ease, transform 0.2s ease; } .toast.show { opacity: 1; transform: translateY(0); } .toast.success { border-color: var(--success); } .toast.warning { border-color: var(--warning); } .toast.danger { border-color: var(--danger); } .editor-dialog { width: min(1180px, calc(100vw - 2rem)); height: min(860px, calc(100vh - 2rem)); padding: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--panel-strong); color: var(--text); box-shadow: var(--shadow); } .editor-dialog::backdrop { background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(5px); } .dialog-shell { display: grid; grid-template-rows: auto 1fr auto; height: 100%; } .dialog-header, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--border); } .dialog-header h2 { margin: 0; } .dialog-footer { border-top: 1px solid var(--border); border-bottom: 0; color: var(--muted); font-size: 0.9rem; } .dialog-editor { min-height: 0; } .dialog-editor pre, .dialog-editor textarea { height: 100%; min-height: 100%; } @media (max-width: 1180px) { .workspace { grid-template-columns: 1fr; } .sidebar { position: static; max-height: none; grid-template-columns: repeat(2, minmax(260px, 1fr)); } } @media (max-width: 980px) { .editor-grid { grid-template-columns: 1fr; } } @media (max-width: 720px) { .app-header, .header-actions, .result-toolbar, .dialog-header, .dialog-footer { align-items: stretch; flex-direction: column; } .sidebar { grid-template-columns: 1fr; } .metric-grid, .action-grid.compact { grid-template-columns: 1fr; } }