Files
concept-maker/src/styles.css

441 lines
7.3 KiB
CSS
Raw Normal View History

2026-02-04 06:48:10 +01:00
:root {
color-scheme: light;
2026-05-07 19:20:14 +02:00
--bg-main: #ffe4e6;
--bg-sidebar: #fff1f2;
--accent: #9f1239;
--accent-strong: #7c0e2e;
--border: #fff;
--line: #fecdd3;
--field-border: #fda4af;
--ink: #7f1d1d;
--muted: #9f1239;
--subtle: #be5d75;
--danger: #e11d48;
--surface: #fff;
--shadow: 0 1px 3px rgba(159, 18, 57, 0.08);
--dialog-shadow: 0 16px 40px rgba(159, 18, 57, 0.18);
--radius: 5px;
--control-radius: 4px;
--bg: var(--bg-main);
--panel: var(--bg-sidebar);
--panel-edge: var(--border);
2026-02-04 06:48:10 +01:00
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
}
body {
margin: 0;
2026-05-07 19:20:14 +02:00
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
2026-02-04 06:48:10 +01:00
color: var(--ink);
2026-05-07 19:20:14 +02:00
background: var(--bg);
2026-02-04 06:48:10 +01:00
}
.app {
position: relative;
2026-02-04 06:48:10 +01:00
display: flex;
flex-direction: column;
height: 100%;
padding: 20px 24px 16px;
gap: 14px;
}
.status-toast {
position: absolute;
right: 24px;
bottom: 18px;
z-index: 9;
2026-02-04 06:48:10 +01:00
display: inline-flex;
align-items: center;
gap: 8px;
max-width: min(420px, calc(100vw - 48px));
2026-02-04 06:48:10 +01:00
padding: 8px 14px;
2026-05-07 19:20:14 +02:00
border: 1px solid var(--panel-edge);
border-radius: var(--radius);
background: var(--panel);
color: var(--accent);
2026-02-04 06:48:10 +01:00
font-weight: 600;
font-size: 13px;
2026-05-07 19:20:14 +02:00
overflow-wrap: anywhere;
box-shadow: var(--dialog-shadow);
pointer-events: none;
2026-02-04 06:48:10 +01:00
}
.panes {
flex: 1;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
min-height: 0;
}
.column {
display: flex;
flex-direction: column;
gap: 14px;
min-height: 0;
}
.panel {
background: var(--panel);
border: 1px solid var(--panel-edge);
border-radius: var(--radius);
padding: 14px 16px 16px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 12px;
min-height: 0;
}
.notes-panel {
flex: 1 1 67%;
}
.files-panel {
flex: 0 1 33%;
max-height: 33%;
overflow: hidden;
}
.files-panel .table {
flex: 1;
min-height: 0;
}
.files-panel .table-body {
min-height: 0;
}
2026-02-04 06:48:10 +01:00
.panel-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.panel-title h2 {
margin: 0;
font-size: 20px;
font-weight: 600;
2026-05-07 19:20:14 +02:00
line-height: 1.2;
color: var(--accent);
2026-02-04 06:48:10 +01:00
}
.panel-title span {
font-size: 12px;
color: var(--muted);
}
.table {
display: grid;
grid-template-rows: auto 1fr;
gap: 6px;
border: 1px solid var(--panel-edge);
2026-05-07 19:20:14 +02:00
border-radius: var(--radius);
2026-02-04 06:48:10 +01:00
overflow: hidden;
2026-05-07 19:20:14 +02:00
background: var(--surface);
2026-02-04 06:48:10 +01:00
min-height: 180px;
}
.table-header,
.table-row {
display: grid;
grid-template-columns: 1.2fr 2fr 0.6fr 0.6fr 0.5fr;
2026-02-04 06:48:10 +01:00
align-items: center;
padding: 10px 12px;
gap: 8px;
font-size: 13px;
}
.table-header {
2026-05-07 19:20:14 +02:00
background: var(--bg-main);
color: var(--accent);
2026-02-04 06:48:10 +01:00
font-weight: 600;
text-transform: uppercase;
2026-05-07 19:20:14 +02:00
letter-spacing: 0;
2026-02-04 06:48:10 +01:00
font-size: 11px;
}
.table-body {
overflow: auto;
}
.table-row {
2026-05-07 19:20:14 +02:00
border-top: 1px solid var(--bg-main);
color: var(--ink);
2026-02-04 06:48:10 +01:00
transition: background 0.15s ease;
}
2026-05-07 19:20:14 +02:00
.table-row > div {
min-width: 0;
overflow-wrap: anywhere;
}
2026-02-04 06:48:10 +01:00
.table-row:hover {
2026-05-07 19:20:14 +02:00
background: var(--bg-main);
2026-02-04 06:48:10 +01:00
}
button.remove-row-button {
width: 24px;
height: 24px;
min-width: 24px;
padding: 0;
border-radius: var(--control-radius);
font-size: 12px;
font-weight: 700;
line-height: 1;
2026-02-04 06:48:10 +01:00
}
.controls {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
button {
2026-05-07 19:20:14 +02:00
border: 1px solid var(--accent);
border-radius: var(--control-radius);
2026-02-04 06:48:10 +01:00
padding: 8px 14px;
font-family: inherit;
2026-05-07 19:20:14 +02:00
font-size: 14px;
2026-02-04 06:48:10 +01:00
font-weight: 600;
cursor: pointer;
2026-05-07 19:20:14 +02:00
background: var(--panel);
color: var(--accent);
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
-webkit-user-select: none;
user-select: none;
2026-02-04 06:48:10 +01:00
}
button:hover {
2026-05-07 19:20:14 +02:00
background: var(--accent);
color: white;
2026-02-04 06:48:10 +01:00
}
button.primary {
background: var(--accent);
color: white;
2026-05-07 19:20:14 +02:00
border-color: var(--accent);
2026-02-04 06:48:10 +01:00
}
2026-05-07 19:20:14 +02:00
button.primary:hover {
background: var(--accent-strong);
border-color: var(--accent-strong);
2026-02-04 06:48:10 +01:00
}
button.ghost {
background: transparent;
2026-05-07 19:20:14 +02:00
color: var(--accent);
border-color: var(--field-border);
}
button.ghost:hover {
background: var(--bg-main);
2026-02-04 06:48:10 +01:00
color: var(--accent-strong);
2026-05-07 19:20:14 +02:00
border-color: var(--accent);
2026-02-04 06:48:10 +01:00
}
button.danger {
2026-05-07 19:20:14 +02:00
background: var(--panel);
2026-02-04 06:48:10 +01:00
color: var(--danger);
2026-05-07 19:20:14 +02:00
border-color: var(--danger);
}
button.danger:hover {
background: var(--danger);
color: white;
2026-02-04 06:48:10 +01:00
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
2026-05-07 19:20:14 +02:00
pointer-events: none;
2026-02-04 06:48:10 +01:00
}
textarea,
input,
select {
2026-05-07 19:20:14 +02:00
border-radius: var(--control-radius);
border: 1px solid var(--field-border);
2026-02-04 06:48:10 +01:00
padding: 10px 12px;
font-family: inherit;
2026-05-07 19:20:14 +02:00
font-size: 14px;
background: var(--surface);
2026-02-04 06:48:10 +01:00
color: var(--ink);
}
2026-05-07 19:20:14 +02:00
textarea::placeholder,
input::placeholder {
color: var(--subtle);
}
2026-02-04 06:48:10 +01:00
textarea {
resize: vertical;
min-height: 120px;
2026-05-07 19:20:14 +02:00
line-height: 1.45;
2026-02-04 06:48:10 +01:00
}
input:focus,
textarea:focus,
select:focus {
2026-05-07 19:20:14 +02:00
outline: 2px solid rgba(159, 18, 57, 0.2);
border-color: var(--accent);
}
select {
accent-color: var(--accent);
2026-02-04 06:48:10 +01:00
}
.notes-area {
flex: 1;
min-height: 180px;
}
.rephrase-panel {
2026-05-07 19:20:14 +02:00
border: 1px solid var(--line);
border-radius: var(--radius);
2026-02-04 06:48:10 +01:00
padding: 8px;
2026-05-07 19:20:14 +02:00
background: rgba(255, 255, 255, 0.7);
2026-02-04 06:48:10 +01:00
display: flex;
flex-direction: column;
gap: 6px;
max-height: 160px;
overflow: hidden;
}
.rephrase-list {
overflow: auto;
display: flex;
flex-direction: column;
gap: 6px;
}
.rephrase-item {
padding: 8px 10px;
2026-05-07 19:20:14 +02:00
border-radius: var(--control-radius);
border: 1px solid var(--line);
2026-02-04 06:48:10 +01:00
font-size: 12px;
cursor: pointer;
2026-05-07 19:20:14 +02:00
background: var(--surface);
2026-02-04 06:48:10 +01:00
}
2026-05-07 19:20:14 +02:00
.rephrase-item:hover,
2026-02-04 06:48:10 +01:00
.rephrase-item.active {
2026-05-07 19:20:14 +02:00
background: var(--bg-main);
border-color: var(--field-border);
2026-02-04 06:48:10 +01:00
}
.concept-meta {
display: grid;
gap: 8px;
}
.concept-editor {
flex: 1;
min-height: 240px;
}
.markdown-preview {
flex: 1;
min-height: 314px;
padding: 16px 18px;
overflow: auto;
border: 1px solid var(--field-border);
border-radius: var(--control-radius);
background: var(--surface);
box-shadow: inset 0 1px 2px rgba(159, 18, 57, 0.04);
}
.markdown-preview:focus {
outline: 2px solid rgba(159, 18, 57, 0.2);
border-color: var(--accent);
}
.markdown-preview__empty {
color: var(--subtle);
}
2026-02-04 06:48:10 +01:00
.image-prompt {
min-height: 110px;
2026-05-07 19:20:14 +02:00
background: var(--surface);
2026-02-04 06:48:10 +01:00
}
.modal-backdrop {
position: fixed;
inset: 0;
display: grid;
place-items: center;
background: rgba(69, 10, 10, 0.28);
z-index: 10;
}
.settings-window {
width: min(560px, 92vw);
padding: 20px;
2026-05-07 19:20:14 +02:00
background: var(--panel);
border: 1px solid var(--line);
border-radius: 6px;
box-shadow: var(--dialog-shadow);
2026-02-04 06:48:10 +01:00
}
.settings-header {
2026-02-04 06:48:10 +01:00
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 18px;
}
.settings-header h3 {
margin: 0;
font-size: 18px;
color: var(--accent);
}
.settings-grid {
display: grid;
grid-template-columns: 130px minmax(0, 1fr);
align-items: center;
gap: 12px 14px;
2026-02-04 06:48:10 +01:00
}
.settings-grid label {
2026-02-04 06:48:10 +01:00
font-size: 12px;
2026-05-07 19:20:14 +02:00
font-weight: 600;
2026-02-04 06:48:10 +01:00
color: var(--muted);
}
.settings-grid input,
.settings-grid select {
width: 100%;
min-width: 0;
2026-02-04 06:48:10 +01:00
}
@media (max-width: 1100px) {
.panes {
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
.table-header,
.table-row {
grid-template-columns: 1.2fr 1.8fr 0.6fr 0.6fr 0.5fr;
2026-02-04 06:48:10 +01:00
}
.settings-grid {
grid-template-columns: 1fr;
}
2026-02-04 06:48:10 +01:00
}