Thoth / web /src /styles.css
mfirat007's picture
Upload 70 files
23e3fb3 verified
Raw History Blame Contribute Delete
22.8 kB
:root {
--bg: #f4f6f7;
--surface: #ffffff;
--surface-2: #eef1f3;
--border: #dde2e6;
--text: #1b2328;
--muted: #5d6b75;
--faint: #9aa5ad;
--accent: #0f766e;
--accent-hover: #0b5f59;
--accent-text: #0f766e;
--accent-soft: #e0f2ef;
--danger: #c0392b;
--danger-soft: #fdecea;
--warning: #b7791f;
--success: #1e8e5a;
--editor-bg: #ffffff;
--active-line: #f1f5f6;
--selection: #cfe8e4;
--selection-match: #e6efd0;
--syn-command: #0b6fa8;
--syn-env: #8a4bb5;
--syn-math: #b0552b;
--syn-comment: #8a959c;
--syn-bracket: #6b7780;
--pdf-bg: #e3e7ea;
--shadow: 0 8px 30px rgba(20, 30, 40, 0.16);
--mono: 'Cascadia Code', 'JetBrains Mono', Consolas, 'SF Mono', Menlo, monospace;
--sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
color-scheme: light;
}
:root[data-theme='dark'] {
--bg: #12171a;
--surface: #1a2125;
--surface-2: #232c31;
--border: #2f3a40;
--text: #e4e9ec;
--muted: #9aa7af;
--faint: #66737b;
--accent: #0f8177;
--accent-hover: #129387;
--accent-text: #5fd4c6;
--accent-soft: #15332f;
--danger: #e5705f;
--danger-soft: #3a1f1c;
--warning: #e0a94a;
--success: #57c78f;
--editor-bg: #161c1f;
--active-line: #1d2529;
--selection: #1f4a45;
--selection-match: #34402a;
--syn-command: #6cb8e6;
--syn-env: #c59be8;
--syn-math: #e8a27a;
--syn-comment: #6f7c84;
--syn-bracket: #93a0a8;
--pdf-bg: #0d1113;
--shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
color-scheme: dark;
}
* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.55; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.center-screen { height: 100%; display: grid; place-items: center; color: var(--muted); }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.pad { padding: 14px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.link { color: var(--accent-text); background: none; border: 0; padding: 0; font-weight: 600; }
.link:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
/* ---- Düğmeler ve form öğeleri ---- */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px;
border: 1px solid var(--border); border-radius: 7px; background: var(--surface); font-weight: 550; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--danger); filter: brightness(0.92); }
.btn-ghost { border-color: transparent; background: none; }
.btn-active { background: var(--accent-soft); border-color: var(--accent-text); color: var(--accent-text); }
.btn-block { width: 100%; height: 40px; margin-top: 18px; }
.btn-small { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 6px; }
.icon-btn {
display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted);
}
.icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn.on { background: var(--accent-soft); color: var(--accent-text); }
.chip-btn {
display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px;
background: var(--surface); font-size: 12px; color: var(--muted); white-space: nowrap;
}
.chip-btn:hover:not(:disabled) { color: var(--text); border-color: var(--faint); }
.chip-btn.primary { color: var(--accent-text); border-color: var(--accent-text); }
.chip-btn.primary:hover { background: var(--accent-soft); }
.input {
width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface);
}
textarea.input { height: auto; padding: 8px 11px; resize: vertical; }
.input-small { height: 30px; font-size: 13px; }
.input:focus { outline: 2px solid var(--accent-text); outline-offset: -1px; }
.field-label { display: block; margin: 14px 0 5px; font-weight: 600; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.check input { accent-color: var(--accent); }
.search {
display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px;
background: var(--surface); color: var(--muted);
}
.search input { border: 0; outline: 0; background: none; width: 100%; min-width: 0; }
.search:focus-within { outline: 2px solid var(--accent-text); outline-offset: -1px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-owner { background: var(--accent-soft); color: var(--accent-text); }
/* ---- Pencere ve bildirimler ---- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 20, 0.5); }
.modal { width: min(460px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.modal-wide { width: min(760px, 100%); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 20px; }
.modal-header h2 { font-size: 17px; }
.modal-body { padding: 4px 20px 20px; overflow: auto; }
.modal-text { color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { max-width: min(560px, 92vw); padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.toast-error { background: var(--danger); color: #fff; }
/* ---- Giriş sayfası ---- */
.auth { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { padding: clamp(28px, 6vw, 72px); background: linear-gradient(155deg, #0b4f4a, #0f766e 55%, #14908a); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.auth-hero .brand { font-size: 24px; margin-bottom: 36px; }
.auth-hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; max-width: 14em; }
.auth-lead { margin: 16px 0 34px; font-size: 16px; opacity: 0.9; max-width: 34em; }
.feature-list { display: grid; gap: 18px; max-width: 34em; }
.feature-list li { display: flex; gap: 13px; }
.feature-list p { opacity: 0.85; font-size: 13.5px; margin-top: 2px; }
.feature-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: rgba(255, 255, 255, 0.16); }
.auth-panel { display: grid; place-items: center; padding: 28px; background: var(--surface); }
.auth-form { width: min(360px, 100%); }
.auth-form h2 { font-size: 24px; margin-bottom: 8px; letter-spacing: -0.01em; }
.form-error { margin-top: 12px; padding: 9px 12px; border-radius: 7px; background: var(--danger-soft); color: var(--danger); }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); }
@media (max-width: 800px) {
.auth { grid-template-columns: 1fr; }
.feature-list { display: none; }
.auth-hero { padding: 28px 24px; }
.auth-hero .brand, .auth-lead { margin-bottom: 12px; }
}
/* ---- Proje listesi ---- */
.dash { min-height: 100%; }
.dash-header { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 clamp(16px, 4vw, 40px); background: var(--surface); border-bottom: 1px solid var(--border); }
.dash-user { display: flex; align-items: center; gap: 8px; }
.user-name { color: var(--muted); }
.dash-main { max-width: 1040px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px); }
.dash-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.dash-toolbar h1 { font-size: 24px; letter-spacing: -0.01em; margin-right: auto; }
.dash-toolbar .search { width: 220px; }
.empty { padding: 56px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; }
.empty p { color: var(--muted); margin: 8px 0 20px; }
.project-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.project-table th { text-align: left; padding: 10px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--surface-2); }
.project-table td { padding: 11px 16px; border-top: 1px solid var(--border); }
.project-table tr:hover td { background: var(--active-line); }
.project-link { font-weight: 600; }
.project-link:hover { color: var(--accent-text); }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions .icon-btn { vertical-align: middle; }
@media (max-width: 640px) {
.project-table th:nth-child(2), .project-table td:nth-child(2), .project-table th:nth-child(3), .project-table td:nth-child(3) { display: none; }
.user-name { display: none; }
}
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.template-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-align: left; border: 1.5px solid var(--border); border-radius: 9px; background: var(--surface); }
.template-card span { color: var(--muted); font-size: 12.5px; }
.template-card:hover { border-color: var(--faint); }
.template-card.selected { border-color: var(--accent-text); background: var(--accent-soft); }
.template-group-label { margin-top: 16px; }
/* ---- Editör sayfası ---- */
.editor-page { height: 100%; display: flex; flex-direction: column; }
.topbar { flex: none; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.project-title { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; padding: 4px 6px; border-radius: 6px; font-weight: 650; font-size: 15px; }
.project-title:hover { background: var(--surface-2); }
.save-state { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.save-state.dirty { color: var(--warning); }
.save-state.error { color: var(--danger); }
.workspace { flex: 1; min-height: 0; display: flex; }
.sidebar { flex: none; display: flex; background: var(--surface); border-right: 1px solid var(--border); min-height: 0; }
.side-tabs { flex: none; width: 58px; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; background: var(--surface-2); }
.side-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 0; border-left: 2px solid transparent; background: none; color: var(--muted); font-size: 10px; line-height: 1.15; }
.side-tabs button:hover { color: var(--text); }
.side-tabs button.active { color: var(--accent-text); border-left-color: var(--accent-text); background: var(--surface); }
.side-content { width: 232px; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--border); }
.editor-pane { flex: 1.25; min-width: 240px; display: flex; flex-direction: column; min-height: 0; background: var(--editor-bg); }
.pane-toolbar { flex: none; display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.pane-title { flex: 0 1 auto; min-width: 48px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-sep { width: 1px; height: 18px; margin: 0 5px; background: var(--border); }
.code-editor { flex: 1; min-height: 0; overflow: hidden; }
.code-editor .cm-editor { height: 100%; }
.binary-preview { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.binary-preview img { margin: auto; max-width: 90%; max-height: 80%; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.problems { flex: none; border-top: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.problems.open { height: 38%; min-height: 150px; }
.problems-bar { flex: none; display: flex; align-items: center; gap: 14px; width: 100%; height: 32px; padding: 0 12px; border: 0; background: none; font-size: 12.5px; color: var(--muted); }
.problem-count { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.problem-count.error { color: var(--danger); }
.problem-count.warning { color: var(--warning); }
.problem-count.ok { color: var(--success); }
.problems-body { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--border); }
.problems-actions { display: flex; gap: 8px; padding: 8px 12px; }
.problem-list li { display: flex; gap: 8px; padding: 7px 12px; cursor: pointer; border-top: 1px solid var(--border); }
.problem-list li:hover { background: var(--active-line); }
.problem-list li > svg { flex: none; margin-top: 3px; }
.problem-list li.error > svg { color: var(--danger); }
.problem-list li.warning > svg { color: var(--warning); }
.problem-message { font-family: var(--mono); font-size: 12.5px; word-break: break-word; }
.problem-location { margin-left: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.problem-hint { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.compile-log { margin: 0; padding: 4px 12px 12px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.splitter { flex: none; width: 5px; cursor: col-resize; background: var(--border); touch-action: none; }
.splitter:hover { background: var(--accent-text); }
.preview-pane { flex: 1; min-width: 0; display: flex; }
/* ---- PDF ---- */
.pdf-pane { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--pdf-bg); }
.pdf-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; padding: 16px 0; }
.pdf-highlight {
position: absolute; pointer-events: none; border-radius: 3px;
background: rgba(250, 204, 21, 0.35); outline: 2px solid rgba(234, 179, 8, 0.9);
animation: pdf-highlight 2.4s ease-out forwards;
}
@keyframes pdf-highlight { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.pdf-page { margin: 0 auto 14px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22); }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-empty { position: absolute; inset: 38px 0 0; display: grid; place-items: center; padding: 28px; text-align: center; color: var(--muted); }
.pdf-busy { position: absolute; top: 48px; right: 14px; padding: 4px 11px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; opacity: 0.85; }
.zoom-label { min-width: 46px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 12px; }
.zoom-label:hover:not(:disabled) { background: var(--surface-2); }
/* ---- Dosya ağacı ---- */
.file-tree { flex: 1; min-height: 0; overflow: auto; padding-bottom: 12px; }
.file-tree.drag-over { outline: 2px dashed var(--accent-text); outline-offset: -4px; }
.tree-toolbar { display: flex; gap: 6px; padding: 10px; }
.tree-row { display: flex; align-items: center; gap: 6px; height: 29px; padding-right: 6px; cursor: pointer; color: var(--text); }
.tree-row > svg { flex: none; color: var(--muted); }
.tree-row:hover { background: var(--surface-2); }
.tree-row.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.tree-row.active > svg { color: var(--accent-text); }
.tree-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.main-star { color: var(--warning); fill: var(--warning); }
.tree-actions { display: none; gap: 1px; }
.tree-row:hover .tree-actions, .tree-row:focus-within .tree-actions { display: flex; }
.tree-actions button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 5px; background: none; color: var(--muted); }
.tree-actions button:hover { background: var(--border); color: var(--text); }
.tree-hint { padding: 14px 12px 0; color: var(--faint); font-size: 12px; }
/* ---- Kenar panelleri ---- */
.side-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.side-form { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-bottom: 1px solid var(--border); }
.side-form-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-scroll { flex: 1; min-height: 0; overflow: auto; }
.citation, .comment, .version { padding: 11px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.citation h4 { font-size: 13px; line-height: 1.35; }
.citation p { font-size: 12px; margin-top: 3px; }
.citation-actions, .comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.comment header, .comment-reply header { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.comment header .muted, .comment-reply header .muted { font-size: 11.5px; }
.comment p { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.comment.resolved { opacity: 0.6; }
.comment-anchor { display: block; width: 100%; margin-top: 5px; padding: 4px 8px; border: 0; border-left: 3px solid var(--warning); border-radius: 0 5px 5px 0; background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-anchor:hover { color: var(--text); }
.comment-reply { margin: 8px 0 0 10px; padding-left: 10px; border-left: 2px solid var(--border); }
.comment-reply .icon-btn { width: 20px; height: 20px; margin-left: auto; }
.reply-form { display: flex; gap: 6px; margin-top: 8px; }
.version { display: flex; flex-direction: column; }
.version .badge { margin-left: 6px; }
.version p { font-size: 12px; }
.version-content { margin: 12px 0 0; padding: 12px; max-height: 55vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font: 12.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }
.share-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.share-form select { width: auto; }
.member-list { margin-top: 14px; }
.member-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.member-role { display: inline-flex; align-items: center; gap: 6px; }
/* ---- Asistan ---- */
.ai-panel { flex: none; width: 350px; display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--border); }
.ai-messages { flex: 1; min-height: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ai-welcome { margin: auto; max-width: 280px; text-align: center; color: var(--muted); }
.ai-welcome svg { color: var(--accent-text); margin-bottom: 8px; }
.ai-message { max-width: 100%; font-size: 13.5px; line-height: 1.55; word-break: break-word; }
.ai-message.user { align-self: flex-end; max-width: 88%; padding: 8px 12px; border-radius: 12px 12px 3px 12px; background: var(--accent-soft); white-space: pre-wrap; }
.ai-message.assistant > * + * { margin-top: 8px; }
.ai-message.assistant ul, .ai-message.assistant ol { padding-left: 20px; list-style: revert; }
.ai-message.assistant h1, .ai-message.assistant h2, .ai-message.assistant h3 { font-size: 14px; }
.ai-message.assistant a { color: var(--accent-text); text-decoration: underline; }
.thinking { color: var(--muted); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.inline-code, .ai-setup code { padding: 1px 5px; border-radius: 4px; background: var(--surface-2); font: 12.5px var(--mono); }
.code-block, .edit-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.code-block-header, .edit-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px 5px 10px; background: var(--surface-2); font-size: 11.5px; color: var(--muted); }
.code-block-actions { display: flex; gap: 6px; }
.code-block pre, .edit-card pre, .ai-setup pre { margin: 0; padding: 9px 10px; overflow-x: auto; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; }
.ai-setup pre { margin: 10px 0; border-radius: 8px; background: var(--surface-2); }
.ai-setup h3 { margin-bottom: 8px; }
.diff-old { background: var(--danger-soft); color: var(--danger); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.diff-new { background: color-mix(in srgb, var(--success) 14%, transparent); }
.edit-status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.edit-status.ok { color: var(--success); }
.edit-status.bad { padding: 6px 10px; color: var(--danger); }
.quick-actions { flex: none; display: flex; gap: 6px; padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none; }
.ai-input { flex: none; margin: 8px 10px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ai-input:focus-within { border-color: var(--accent-text); }
.ai-input textarea { display: block; width: 100%; padding: 9px 11px 4px; border: 0; outline: 0; background: none; resize: none; }
.ai-input-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px; }
.provider-select, .provider-label { max-width: 170px; border: 0; background: none; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
.side-content { width: 200px; }
.ai-panel { width: 300px; }
.topbar .check { display: none; }
}