big dev changes
This commit is contained in:
@@ -319,3 +319,88 @@ dialog::backdrop { background: rgba(4,6,9,.82); }
|
||||
.public-header { padding-inline: max(20px, calc((100vw - 1180px) / 2)); }
|
||||
.public-document { width: min(1180px, calc(100% - 32px)); }
|
||||
.public-content { padding: clamp(24px, 4vw, 52px); }
|
||||
|
||||
/* Preview and attachment management */
|
||||
.preview { overscroll-behavior: contain; scrollbar-gutter: stable; }
|
||||
.markdown-body img { display: block; width: auto; max-width: 100%; height: auto; object-fit: contain; border-radius: 8px; }
|
||||
.workspace.view-preview .markdown-body img { max-height: calc(100vh - 210px); }
|
||||
.note-card-wrap { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
|
||||
.note-card-wrap .note-card { border: 0; border-radius: 0; }
|
||||
.note-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
||||
.protect-badge, .file-flag { display: inline-flex; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted); font-size: .68rem; white-space: nowrap; }
|
||||
.file-flag.detached { border-color: rgba(255,123,145,.45); color: var(--danger); }
|
||||
.note-delete-button { width: 100%; min-height: 36px; border: 0; border-top: 1px solid var(--border); background: transparent; color: var(--danger); }
|
||||
.danger-button { color: var(--danger); }
|
||||
.dialog-check { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; }
|
||||
.dialog-check input { width: auto; min-height: auto; }
|
||||
.footer-link { border: 0; background: transparent; color: var(--muted); padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
|
||||
.files-dialog { overflow: hidden; }
|
||||
.files-panel { grid-template-rows: auto minmax(0, 1fr); min-height: min(590px, calc(100vh - 28px)); max-height: calc(100vh - 28px); }
|
||||
.files-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
|
||||
.files-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
|
||||
.files-head h2, .files-head p { margin: 0; }
|
||||
.files-head p { margin-top: 5px; color: var(--muted); font-size: .8rem; }
|
||||
.files-list { display: grid; gap: 9px; overflow: auto; min-height: 80px; }
|
||||
.file-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: #0e1116; }
|
||||
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
|
||||
.file-meta { margin-top: 4px; color: var(--muted-2); font-size: .72rem; }
|
||||
.file-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
|
||||
.file-actions button { min-height: 30px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); padding: 0 8px; font-size: .72rem; }
|
||||
@media (max-width: 620px) { .file-row { grid-template-columns: 1fr; } .file-actions { justify-content: flex-start; } }
|
||||
|
||||
|
||||
/* Attachment modal layout fixes. */
|
||||
.files-panel { min-height: 0; height: min(590px, calc(100vh - 28px)); }
|
||||
.files-list { align-content: start; }
|
||||
.file-row { align-items: start; }
|
||||
.file-row-main { min-width: 0; }
|
||||
.file-actions { align-items: center; align-self: start; flex-wrap: nowrap; }
|
||||
.file-actions button { min-height: 34px; height: 34px; white-space: nowrap; }
|
||||
.file-code { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
|
||||
.file-code[hidden] { display: none; }
|
||||
.file-code textarea { width: 100%; min-height: 76px; max-height: 150px; resize: vertical; box-sizing: border-box; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
|
||||
.file-code button { align-self: stretch; min-width: 74px; }
|
||||
.file-delete { color: var(--danger) !important; border-color: color-mix(in srgb, var(--danger) 45%, var(--border)) !important; }
|
||||
@media (max-width: 760px) {
|
||||
.file-actions { flex-wrap: wrap; justify-content: flex-start; }
|
||||
.file-code { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
|
||||
/* Workspace notes: resilient cards and optional table view. */
|
||||
|
||||
.notes-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
|
||||
.notes-toolbar__label { color: var(--muted); font-size: .82rem; font-weight: 600; }
|
||||
.workspace-actions { display: flex; align-items: center; gap: 10px; }
|
||||
.notes-view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
|
||||
.notes-view-switch button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
|
||||
.notes-view-switch button.active { background: var(--surface-3); color: var(--text); }
|
||||
.note-card { display: block; min-width: 0; }
|
||||
.note-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
|
||||
.note-card-title h3 { min-width: 0; overflow-wrap: anywhere; word-break: break-word; line-height: 1.4; }
|
||||
.note-card p { overflow-wrap: anywhere; }
|
||||
.notes-table { display: block; padding-top: 20px; }
|
||||
.notes-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
|
||||
.notes-table table { width: 100%; min-width: 680px; border-collapse: collapse; }
|
||||
.notes-table th, .notes-table td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
|
||||
.notes-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
|
||||
.notes-table tbody tr:last-child td { border-bottom: 0; }
|
||||
.notes-table tbody tr:hover { background: var(--surface-2); }
|
||||
.note-table-link { display: block; max-width: 52ch; color: var(--text); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
|
||||
.note-table-link:hover { text-decoration: underline; }
|
||||
.note-status { color: var(--muted); font-size: .75rem; }
|
||||
.notes-table-actions { width: 1%; white-space: nowrap; text-align: right !important; }
|
||||
.note-delete-button--inline { width: auto; min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; }
|
||||
@media (max-width: 700px) {
|
||||
.workspace-top { align-items: flex-start; }
|
||||
.workspace-actions { align-items: stretch; flex-direction: column-reverse; }
|
||||
.notes-view-switch button { flex: 1; }
|
||||
}
|
||||
|
||||
/* Workspace note ownership and immediate view switching. */
|
||||
.note-card-meta { display: grid; gap: 5px; margin-top: 28px; color: var(--muted); font-size: .75rem; }
|
||||
.note-card p { margin-top: 0; }
|
||||
.note-author { color: var(--muted); overflow-wrap: anywhere; }
|
||||
.note-delete-button:disabled { cursor: not-allowed; color: var(--muted-2); opacity: .55; }
|
||||
.notes-view-switch button { cursor: pointer; }
|
||||
.notes-view-switch button.active { cursor: default; }
|
||||
|
||||
Reference in New Issue
Block a user