/
guselnikov
/
inst
Обзор
Документация
Войти
/
guselnikov
/
inst
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
admin/src/styles/workspace.module.css
720 строк
12 KB
Viktor Guselnikov
first_commit
07 июл 2026, 11:54
07 июл 2026, 11:54
098126a
Код
Авторство
О чём код?
/* ─── Page shell ─── */ .page { display: flex; flex-direction: column; gap: 28px; } .pageHeader { margin-bottom: 28px; } .pageTitle { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; } .pageSubtitle { margin: 0; font-size: 14px; color: var(--text-secondary); max-width: 60ch; line-height: 1.55; } .pageTitleRow { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; } /* ─── Pipeline nav ─── */ .pipeline { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; } .pipelineStep { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 500; color: var(--text-muted); background: var(--bg-muted); border: 1px solid var(--border); text-decoration: none; transition: background var(--transition), color var(--transition), border-color var(--transition); } .pipelineStep:hover { color: var(--text-secondary); background: var(--bg-elevated); } .pipelineStepActive { color: var(--accent); border-color: var(--border-focus); background: var(--accent-soft); } .pipelineStepActive:hover { color: var(--accent-hover); } .pipelineArrow { color: var(--text-muted); flex-shrink: 0; } /* ─── Layout ─── */ .layout { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 24px; align-items: start; } @media (max-width: 960px) { .layout { grid-template-columns: 1fr; } } .layoutSingle { display: flex; flex-direction: column; gap: 24px; max-width: 960px; } .sidebar { display: flex; flex-direction: column; gap: 20px; } .workspace { display: flex; flex-direction: column; gap: 20px; min-width: 0; } /* ─── Tabs / segmented ─── */ .tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-muted); border-radius: var(--radius-md); border: 1px solid var(--border); } .tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: none; border-radius: calc(var(--radius-md) - 3px); background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--transition), color var(--transition), box-shadow var(--transition); min-height: 40px; } .tab:hover { color: var(--text-secondary); } .tabActive { background: var(--bg-elevated); color: var(--text-primary); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.06); } .segmented { display: flex; gap: 4px; padding: 4px; background: var(--bg-muted); border-radius: var(--radius-sm); border: 1px solid var(--border); } .segment { padding: 8px 14px; border: none; border-radius: 6px; background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--transition), color var(--transition); min-height: 36px; } .segmentActive { background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-sm); } /* ─── Forms ─── */ .form { display: flex; flex-direction: column; gap: 16px; } .formRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 600px) { .formRow { grid-template-columns: 1fr; } } .fieldHint { margin: -4px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.45; } .formLabel { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-muted); text-transform: uppercase; } .fieldGroup { display: flex; flex-direction: column; gap: 8px; } .alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 13px; line-height: 1.45; } .success { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-size: 13px; } /* ─── Mode toggle (parsing scrape mode etc.) ─── */ .modeRow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .modeBtn { min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-muted); box-shadow: var(--shadow-inset); color: var(--text-secondary); font-size: 12px; font-weight: 500; cursor: pointer; text-align: left; transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition); } .modeBtn:hover { color: var(--text-primary); background: var(--bg-elevated); } .modeBtnActive { border-color: var(--border-focus); background: var(--accent-soft); color: var(--accent); box-shadow: var(--shadow-inset), 0 0 0 1px var(--border-focus); } /* ─── Empty states ─── */ .emptyHint { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; } .emptyWorkspace { min-height: 320px; display: flex; align-items: center; justify-content: center; } .emptyState { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 24px; text-align: center; color: var(--text-muted); } .emptyStateIcon { color: var(--text-faint); opacity: 0.7; } .emptyTitle { margin: 0; font-size: 18px; font-weight: 600; color: var(--text-secondary); } /* ─── List items (history, runs) ─── */ .listStack { display: flex; flex-direction: column; gap: 8px; } .listItem { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-muted); box-shadow: var(--shadow-inset); cursor: pointer; transition: background var(--transition), border-color var(--transition); } .listItem:hover { background: var(--bg-elevated); } .listItem:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; } .listItemActive { border-color: var(--border-focus); background: var(--accent-soft); } .listItemTop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; } .listItemTitle { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-primary); } .listItemMeta { margin: 0; font-size: 12px; color: var(--text-muted); } /* ─── Job / task rows (parsing, masslike) ─── */ .runList { display: flex; flex-direction: column; gap: 10px; } .runRow { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-muted); box-shadow: var(--shadow-inset); cursor: pointer; transition: border-color var(--transition), background var(--transition); } .runRow:hover { background: var(--bg-elevated); } .runRow:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; } .runRowActive { border-color: var(--border-focus); background: var(--accent-soft); } .runTop { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .runTitle { margin: 0; font-size: 15px; font-weight: 600; } .runMeta { margin: 0; font-size: 12px; color: var(--text-secondary); } .runError { margin: 0; font-size: 11px; color: var(--danger); line-height: 1.4; } .runActions { display: flex; flex-wrap: wrap; gap: 6px; } .progressTrack { height: 4px; border-radius: var(--radius-full); background: var(--bg-active); overflow: hidden; } .progressTrackLarge { height: 6px; border-radius: var(--radius-full); background: var(--bg-active); overflow: hidden; margin: 12px 0 8px; } .progressFill { height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.4s var(--ease); } /* ─── Hero panel (selected job detail) ─── */ .hero { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-surface); } .heroMain { flex: 1; min-width: 220px; } .heroTitle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 20px; font-weight: 700; } .heroTitle h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; } .heroStats { margin: 0; font-size: 13px; color: var(--text-secondary); } .heroStats strong { color: var(--text-primary); font-weight: 600; } .heroActions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .errorBanner { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 13px; line-height: 1.45; } /* ─── Tables ─── */ .tableWrap { overflow-x: auto; margin: 0 -4px; } .dataTable { width: 100%; border-collapse: collapse; font-size: 13px; } .dataTable th { padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; } .dataTable td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-secondary); } .dataTable tbody tr:hover td { background: var(--bg-hover); } .colUsername { font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); white-space: nowrap; } .colBio { max-width: 280px; line-height: 1.45; } .colLink a { color: var(--accent); text-decoration: none; } .colLink a:hover { text-decoration: underline; } /* ─── Toolbar / search ─── */ .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .toolbarSpacer { flex: 1; } .searchInput { min-height: 40px; padding: 0 12px; border: none; border-radius: var(--radius-sm); background: var(--bg-muted); box-shadow: var(--shadow-inset); color: var(--text-primary); font-size: 13px; min-width: 200px; transition: background var(--transition), box-shadow var(--transition); } .searchInput:focus { outline: none; background: var(--bg-elevated); box-shadow: var(--shadow-inset), 0 0 0 1px var(--border-focus); } /* ─── Log panel ─── */ .logPanel { max-height: 360px; overflow-y: auto; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; line-height: 1.55; color: var(--text-secondary); } .logLine { margin: 0 0 4px; word-break: break-word; } .logLineInfo { color: var(--text-secondary); } .logLineDebug { color: var(--text-muted); } .logLineWarn { color: var(--warning); } .logLineError { color: var(--danger); } /* ─── Misc panels ─── */ .operationPanel { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-inset); } .operationHint { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; } .serviceList { margin: 8px 0 0; padding-left: 18px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; } .colorPicker { display: flex; gap: 8px; flex-wrap: wrap; } .colorSwatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform var(--transition); } .colorSwatch:hover { transform: scale(1.08); } .colorSwatchActive { border-color: var(--text-primary); box-shadow: 0 0 0 2px var(--bg-surface); } .colorDot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } .pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 13px; color: var(--text-muted); }