463 lines
7.5 KiB
CSS
463 lines
7.5 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--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);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
color: var(--ink);
|
|
background: var(--bg);
|
|
}
|
|
|
|
.app {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
padding: 20px 24px 16px;
|
|
gap: 14px;
|
|
}
|
|
|
|
.status-toast {
|
|
position: absolute;
|
|
right: 24px;
|
|
bottom: 18px;
|
|
z-index: 9;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
max-width: min(420px, calc(100vw - 48px));
|
|
padding: 8px 14px;
|
|
border: 1px solid var(--panel-edge);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
overflow-wrap: anywhere;
|
|
box-shadow: var(--dialog-shadow);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.panel-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
}
|
|
|
|
.panel-title h2 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.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);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
background: var(--surface);
|
|
min-height: 180px;
|
|
}
|
|
|
|
.table-header,
|
|
.table-row {
|
|
display: grid;
|
|
grid-template-columns: 1.2fr 2fr 0.6fr 0.6fr 0.5fr;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.table-header {
|
|
background: var(--bg-main);
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.table-body {
|
|
overflow: auto;
|
|
}
|
|
|
|
.table-row {
|
|
border-top: 1px solid var(--bg-main);
|
|
color: var(--ink);
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.table-row > div {
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.table-row:hover {
|
|
background: var(--bg-main);
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
button {
|
|
border: 1px solid var(--accent);
|
|
border-radius: var(--control-radius);
|
|
padding: 8px 14px;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
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;
|
|
}
|
|
|
|
button:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
button.primary {
|
|
background: var(--accent);
|
|
color: white;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
button.primary:hover {
|
|
background: var(--accent-strong);
|
|
border-color: var(--accent-strong);
|
|
}
|
|
|
|
button.ghost {
|
|
background: transparent;
|
|
color: var(--accent);
|
|
border-color: var(--field-border);
|
|
}
|
|
|
|
button.ghost:hover {
|
|
background: var(--bg-main);
|
|
color: var(--accent-strong);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
button.danger {
|
|
background: var(--panel);
|
|
color: var(--danger);
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
button.danger:hover {
|
|
background: var(--danger);
|
|
color: white;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
textarea,
|
|
input,
|
|
select {
|
|
border-radius: var(--control-radius);
|
|
border: 1px solid var(--field-border);
|
|
padding: 10px 12px;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
background: var(--surface);
|
|
color: var(--ink);
|
|
}
|
|
|
|
textarea::placeholder,
|
|
input::placeholder {
|
|
color: var(--subtle);
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 120px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
outline: 2px solid rgba(159, 18, 57, 0.2);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
select {
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.notes-area {
|
|
flex: 1;
|
|
min-height: 180px;
|
|
}
|
|
|
|
.rephrase-panel {
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
padding: 8px;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
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;
|
|
border-radius: var(--control-radius);
|
|
border: 1px solid var(--line);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.rephrase-item:hover,
|
|
.rephrase-item.active {
|
|
background: var(--bg-main);
|
|
border-color: var(--field-border);
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.image-prompt {
|
|
min-height: 110px;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.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;
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 6px;
|
|
box-shadow: var(--dialog-shadow);
|
|
}
|
|
|
|
.settings-header {
|
|
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);
|
|
}
|
|
|
|
.website-window {
|
|
width: min(460px, 92vw);
|
|
}
|
|
|
|
.website-form {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.form-error {
|
|
color: var(--danger);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.settings-grid {
|
|
display: grid;
|
|
grid-template-columns: 130px minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 12px 14px;
|
|
}
|
|
|
|
.settings-grid label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.settings-grid input,
|
|
.settings-grid select {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
@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;
|
|
}
|
|
|
|
.settings-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|