Files
web_app/styles.css
2026-02-23 09:08:15 +03:00

556 lines
8.5 KiB
CSS

:root {
--bg: #071326;
--panel: #0e1d35;
--panel-2: #102443;
--line: #28456f;
--text: #dce9ff;
--muted: #97b2d8;
--accent: #4fa0ff;
--ok: #49c47c;
--warn: #e5b94d;
--bad: #ff7a7a;
--left: 15%;
--center: 65%;
--right: 20%;
--splitter: 8px;
--outer-gap: 10px;
--title-row-h: 34px;
--control-row-h: 42px;
--top-control-btn-h: 34px;
--top-control-font-size: 15px;
}
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
overflow: hidden;
}
body {
margin: 0;
font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
color: var(--text);
background: radial-gradient(circle at top left, #11315f 0%, #091930 30%, var(--bg) 100%);
}
.layout {
display: grid;
grid-template-columns:
calc((100% - (2 * var(--outer-gap)) - (2 * var(--splitter))) * (var(--left) / 100%))
var(--splitter)
calc((100% - (2 * var(--outer-gap)) - (2 * var(--splitter))) * (var(--center) / 100%))
var(--splitter)
calc((100% - (2 * var(--outer-gap)) - (2 * var(--splitter))) * (var(--right) / 100%));
height: 100vh;
min-height: 100vh;
overflow: hidden;
padding: 0 var(--outer-gap);
box-sizing: border-box;
}
.panel {
padding: 10px;
display: flex;
flex-direction: column;
height: 100%;
min-width: 0;
min-height: 0;
overflow: hidden;
background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
}
#tree-panel,
#editor-panel,
#right-panel {
min-height: 0;
}
.panel h2 {
margin: 0;
font-size: 15px;
color: var(--muted);
}
.row-header {
display: flex;
align-items: center;
min-height: var(--title-row-h);
height: var(--title-row-h);
margin-bottom: 8px;
}
.row-controls {
display: flex;
align-items: center;
min-height: var(--control-row-h);
height: var(--control-row-h);
gap: 8px;
flex-wrap: nowrap;
margin-bottom: 8px;
}
.row-header h2 {
line-height: 1;
}
.right-controls {
justify-content: flex-end;
}
.scroll {
overflow: auto;
}
#tree-root {
flex: 1;
min-height: 200px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 6px;
background: #0b1830;
}
.badge {
padding: 4px 8px;
border-radius: 999px;
background: #1b3156;
border: 1px solid var(--line);
color: var(--muted);
}
button,
textarea {
background: #12284b;
color: var(--text);
border: 1px solid var(--line);
border-radius: 6px;
}
button {
padding: 6px 10px;
cursor: pointer;
}
button:hover {
border-color: var(--accent);
}
button:disabled {
opacity: 0.55;
cursor: not-allowed;
}
textarea {
width: 100%;
padding: 8px;
}
.hidden {
display: none !important;
}
.picker-label {
display: inline-flex;
align-items: center;
justify-content: center;
height: var(--top-control-btn-h);
padding: 0 14px;
border: 1px solid var(--line);
border-radius: 6px;
background: #12284b;
color: var(--text);
cursor: pointer;
font-size: var(--top-control-font-size);
line-height: 1;
white-space: nowrap;
}
.picker-label:hover {
border-color: var(--accent);
}
.picker-input {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.splitter {
background: linear-gradient(180deg, #1b3c69 0%, #274f86 40%, #1b3c69 100%);
cursor: col-resize;
}
.splitter:hover {
filter: brightness(1.2);
}
.tabs-row {
margin-bottom: 8px;
}
.tabs {
flex: 1;
display: flex;
align-items: center;
gap: 6px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
min-width: 0;
scrollbar-gutter: stable both-edges;
scrollbar-width: thin;
scrollbar-color: #2f5f99 transparent;
}
.tabs::-webkit-scrollbar {
height: 2px;
}
.tabs::-webkit-scrollbar-track {
background: transparent;
}
.tabs::-webkit-scrollbar-thumb {
background: #2f5f99;
border-radius: 999px;
}
.new-tab-btn {
flex-shrink: 0;
height: var(--top-control-btn-h);
padding: 0 14px;
font-size: var(--top-control-font-size);
line-height: 1;
}
.tab-item {
display: inline-flex;
align-items: center;
flex: 0 0 auto;
height: 30px;
border: 1px solid var(--line);
border-radius: 6px;
overflow: hidden;
background: #12284b;
}
.tab-main {
display: inline-block;
flex: 0 0 auto;
border: none;
border-right: 1px solid var(--line);
border-radius: 0;
background: transparent;
color: var(--muted);
padding: 4px 8px;
white-space: nowrap;
min-width: max-content;
max-width: 32ch;
overflow: hidden;
text-overflow: ellipsis;
}
.tab-close {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 24px;
border: none;
border-radius: 0;
width: 24px;
min-width: 24px;
height: 24px;
padding: 0;
background: transparent;
color: var(--text);
font-weight: 700;
font-size: 14px;
line-height: 1;
}
.row-controls > button {
height: var(--top-control-btn-h);
padding: 0 14px;
font-size: var(--top-control-font-size);
line-height: 1;
white-space: nowrap;
}
.tab-close:hover,
.tab-main:hover {
background: #183563;
}
.tab-item.active {
border-color: var(--accent);
}
.tab-item.active .tab-main {
color: var(--text);
}
.tab-item.dirty {
border-color: var(--warn);
}
.tab-item.dirty .tab-main {
color: #ffd88b;
}
.editor-workspace {
position: relative;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.md-toggle {
position: absolute;
top: 8px;
right: 8px;
z-index: 2;
width: 30px;
height: 30px;
padding: 0;
border-radius: 999px;
font-size: 15px;
line-height: 1;
background: #163057;
}
.md-toggle.active {
border-color: var(--accent);
}
.file-editor {
background: #0b1830;
border: 1px solid var(--line);
border-radius: 6px;
padding: 10px;
margin: 0;
color: var(--text);
resize: none;
width: 100%;
font-family: "IBM Plex Mono", "Consolas", monospace;
font-size: 14px;
line-height: 1.35;
}
.file-editor:read-only {
color: var(--muted);
}
.file-editor.large {
flex: 1;
}
.md-preview {
background: #0b1830;
border: 1px solid var(--line);
border-radius: 6px;
padding: 12px;
overflow: auto;
}
.md-preview.large {
flex: 1;
}
.md-preview h1,
.md-preview h2,
.md-preview h3,
.md-preview h4,
.md-preview h5,
.md-preview h6 {
margin: 10px 0 6px;
color: #f1f6ff;
}
.md-preview p {
margin: 6px 0;
}
.md-preview code {
background: #163057;
padding: 1px 4px;
border-radius: 4px;
}
.md-preview pre {
background: #081427;
border: 1px solid var(--line);
border-radius: 6px;
padding: 10px;
overflow: auto;
}
.md-preview ul {
margin: 6px 0;
padding-left: 18px;
}
.md-preview a {
color: #81b9ff;
}
.editor-footer {
margin-top: 8px;
border: 1px solid var(--line);
border-radius: 6px;
background: #0b1830;
padding: 8px;
display: flex;
height: 56px;
min-height: 56px;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.editor-info {
color: var(--muted);
font-size: 12px;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.editor-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.chat-wrap,
.review-wrap {
display: flex;
flex-direction: column;
min-height: 0;
}
.chat-wrap {
flex: 1;
}
.review-wrap {
flex: 1;
margin-top: 8px;
}
.chat-log,
.diff-view {
border: 1px solid var(--line);
border-radius: 6px;
padding: 8px;
background: #0b1830;
}
.chat-log {
flex: 1;
min-height: 0;
overflow: auto;
}
.chat-entry {
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px dotted var(--line);
white-space: pre-wrap;
}
.chat-form {
margin-top: 8px;
display: grid;
grid-template-rows: 1fr auto;
gap: 8px;
flex: 0 0 20%;
min-height: 120px;
}
#chat-input {
min-height: 0;
height: 100%;
resize: none;
overflow: auto;
}
.change-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 8px 0;
}
.change-btn {
border: 1px solid var(--line);
background: #12284b;
color: var(--muted);
padding: 4px 8px;
border-radius: 6px;
cursor: pointer;
}
.change-btn.active {
border-color: var(--accent);
color: var(--text);
}
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.diff-view {
overflow: auto;
min-height: 120px;
}
.diff-line {
display: grid;
grid-template-columns: auto 1fr;
gap: 8px;
font-family: "IBM Plex Mono", "Consolas", monospace;
font-size: 12px;
padding: 2px 8px;
}
.diff-line.add {
background: #113224;
}
.diff-line.remove {
background: #3a2027;
}
.tree-item {
padding: 2px 4px;
cursor: pointer;
}
.tree-item:hover {
background: #133056;
}
@media (max-width: 1100px) {
.layout {
grid-template-columns: 1fr;
}
.splitter {
display: none;
}
}