design
This commit is contained in:
+185
-57
@@ -1,15 +1,56 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f4f5f7;
|
||||
/* Neutrals */
|
||||
--bg: #f6f7f9;
|
||||
--surface: #ffffff;
|
||||
--surface-subtle: #f8f9fb;
|
||||
--fg: #1b1f24;
|
||||
--muted: #5f6673;
|
||||
--border: #d0d5dd;
|
||||
--accent: #2b5cff;
|
||||
--accent-soft: rgba(43, 92, 255, 0.12);
|
||||
--danger: #d92c20;
|
||||
--success: #12805a;
|
||||
--surface-subtle: #fbfbfd;
|
||||
--fg: #1e2127;
|
||||
--muted: #646a75;
|
||||
--border: #dde1e6;
|
||||
--shadow-faint: rgba(0, 0, 0, 0.06);
|
||||
--shadow-soft: rgba(0, 0, 0, 0.12);
|
||||
--shadow-medium: rgba(0, 0, 0, 0.18);
|
||||
--overlay-backdrop: rgba(30, 33, 39, 0.45);
|
||||
--overlay-shadow: rgba(30, 33, 39, 0.18);
|
||||
|
||||
/* Accent (primary action, selection, focus) */
|
||||
--accent: #3f6ad8;
|
||||
--accent-hover: #365cb9;
|
||||
--on-accent: #ffffff;
|
||||
|
||||
/* Soft tints & outlines (for chips, row hovers, subtle fills) */
|
||||
--accent-soft: rgba(63, 106, 216, 0.12);
|
||||
--accent-elevated: rgba(63, 106, 216, 0.16);
|
||||
--accent-elevated-strong: rgba(63, 106, 216, 0.22);
|
||||
--accent-outline: rgba(63, 106, 216, 0.45);
|
||||
--accent-outline-strong: rgba(63, 106, 216, 0.9);
|
||||
--accent-focus: rgba(63, 106, 216, 0.85);
|
||||
|
||||
/* States specific to explorer UX */
|
||||
--row-hover-bg: rgba(63, 106, 216, 0.06);
|
||||
--row-active-bg: rgba(63, 106, 216, 0.12);
|
||||
--sidebar-hover-bg: rgba(63, 106, 216, 0.08);
|
||||
--sidebar-active-bg: rgba(63, 106, 216, 0.16);
|
||||
--selection-ring: #9bb6ff;
|
||||
|
||||
/* Semantic colors */
|
||||
--success: #2e7d6b;
|
||||
--success-subtle: rgba(46, 125, 107, 0.12);
|
||||
--warning: #b98a2e;
|
||||
--warning-subtle: rgba(185, 138, 46, 0.12);
|
||||
--danger: #cc5a52;
|
||||
--danger-border: rgba(204, 90, 82, 0.45);
|
||||
--danger-soft: rgba(204, 90, 82, 0.12);
|
||||
--danger-subtle: rgba(204, 90, 82, 0.08);
|
||||
|
||||
/* File-type accents (used for icons/labels) */
|
||||
--file-folder: #e6a23c; /* folders */
|
||||
--file-doc: #3f6ad8; /* docs */
|
||||
--file-code: #5b9b5f; /* code */
|
||||
--file-image: #9a6bd1; /* images */
|
||||
--file-audio: #db6f9a; /* audio */
|
||||
--file-archive: #9c7a59; /* zips */
|
||||
|
||||
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
font-size: 15px;
|
||||
}
|
||||
@@ -37,7 +78,7 @@ button {
|
||||
border: 1px solid transparent;
|
||||
padding: 0.35rem 0.85rem;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
transition: background 0.15s ease, border-color 0.15s ease;
|
||||
@@ -49,7 +90,7 @@ button[disabled] {
|
||||
}
|
||||
|
||||
button:hover:not([disabled]) {
|
||||
background: #2047d9;
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
|
||||
a.button-link {
|
||||
@@ -61,7 +102,7 @@ a.button-link {
|
||||
border: 1px solid transparent;
|
||||
padding: 0.35rem 0.85rem;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
transition: background 0.15s ease, border-color 0.15s ease;
|
||||
@@ -73,7 +114,7 @@ a.button-link[aria-disabled='true'] {
|
||||
}
|
||||
|
||||
a.button-link:hover:not([aria-disabled='true']) {
|
||||
background: #2047d9;
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
|
||||
button.secondary {
|
||||
@@ -89,12 +130,12 @@ button.secondary:hover:not([disabled]) {
|
||||
button.danger {
|
||||
background: transparent;
|
||||
color: var(--danger);
|
||||
border-color: rgba(217, 44, 32, 0.45);
|
||||
border-color: var(--danger-border);
|
||||
}
|
||||
|
||||
button.danger:hover:not([disabled]) {
|
||||
border-color: var(--danger);
|
||||
background: rgba(217, 44, 32, 0.08);
|
||||
background: var(--danger-subtle);
|
||||
}
|
||||
|
||||
button.icon-button {
|
||||
@@ -150,6 +191,11 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
fill: none;
|
||||
}
|
||||
|
||||
.icon--fill path {
|
||||
stroke: none;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
@@ -327,7 +373,7 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
}
|
||||
|
||||
.tags-table tr.editing {
|
||||
background: rgba(43, 92, 255, 0.08);
|
||||
background: var(--sidebar-hover-bg);
|
||||
}
|
||||
|
||||
.tags-table__label {
|
||||
@@ -342,7 +388,7 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border-radius: 2px;
|
||||
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: inset 0 0 0 1px var(--shadow-faint);
|
||||
}
|
||||
|
||||
.tags-panel__error {
|
||||
@@ -501,22 +547,31 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
cursor: pointer;
|
||||
color: var(--fg);
|
||||
transition: background 0.12s ease, color 0.12s ease;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.folder-row span.name {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
flex: 1;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.folder-row span.name .folder-icon {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
flex-shrink: 0;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.folder-row:hover {
|
||||
background: var(--surface-subtle);
|
||||
background: var(--sidebar-hover-bg);
|
||||
}
|
||||
|
||||
.folder-row.active {
|
||||
background: rgba(43, 92, 255, 0.12);
|
||||
background: var(--sidebar-active-bg);
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
@@ -563,6 +618,10 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.folder-children.folder-children--level1 {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.sidebar-section {
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
@@ -570,6 +629,21 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
gap: 0.28rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.sidebar-section:first-of-type,
|
||||
.sidebar-section--folders {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.sidebar-section--folders {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sidebar-section__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -587,28 +661,47 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.sidebar-link {
|
||||
.sidebar-item {
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 0.3rem 0.3rem;
|
||||
padding: 0.16rem 0.26rem;
|
||||
text-align: left;
|
||||
font-size: 0.82rem;
|
||||
color: var(--fg);
|
||||
border-radius: 3px;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
transition: background 0.12s ease, color 0.12s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.38rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sidebar-link:hover {
|
||||
background: var(--surface-subtle);
|
||||
.sidebar-item:hover {
|
||||
background: var(--sidebar-hover-bg);
|
||||
}
|
||||
|
||||
.sidebar-link.active {
|
||||
background: rgba(43, 92, 255, 0.12);
|
||||
.sidebar-item.active {
|
||||
background: var(--sidebar-active-bg);
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sidebar-item:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.sidebar-item__icon {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
flex-shrink: 0;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.sidebar-item.active .sidebar-item__icon {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
.folder-row.is-drop-target {
|
||||
outline: 2px dashed var(--accent);
|
||||
outline-offset: 2px;
|
||||
@@ -685,7 +778,7 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
height: 48px;
|
||||
object-fit: cover;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
|
||||
box-shadow: 0 1px 3px var(--shadow-medium);
|
||||
}
|
||||
|
||||
.thumb-placeholder {
|
||||
@@ -739,8 +832,8 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
}
|
||||
|
||||
.documents-panel tbody tr.folder.focused {
|
||||
box-shadow: inset 2px 0 0 rgba(43, 92, 255, 0.45);
|
||||
background: rgba(43, 92, 255, 0.08);
|
||||
box-shadow: inset 2px 0 0 var(--accent-outline);
|
||||
background: var(--sidebar-hover-bg);
|
||||
}
|
||||
|
||||
.documents-panel tbody tr.document {
|
||||
@@ -748,8 +841,8 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
}
|
||||
|
||||
.documents-panel tbody tr.document.selected {
|
||||
background: rgba(43, 92, 255, 0.12);
|
||||
box-shadow: inset 2px 0 0 rgba(43, 92, 255, 0.9);
|
||||
background: var(--accent-soft);
|
||||
box-shadow: inset 2px 0 0 var(--accent-outline-strong);
|
||||
}
|
||||
|
||||
.documents-panel tbody tr.document,
|
||||
@@ -760,7 +853,7 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
}
|
||||
|
||||
.documents-panel tbody tr.document.focused:not(.selected) {
|
||||
box-shadow: inset 2px 0 0 rgba(43, 92, 255, 0.45);
|
||||
box-shadow: inset 2px 0 0 var(--accent-outline);
|
||||
}
|
||||
|
||||
.doc-name {
|
||||
@@ -980,7 +1073,7 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: transform 120ms ease;
|
||||
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
|
||||
filter: drop-shadow(0 2px 6px var(--shadow-soft));
|
||||
transform-origin: center;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
@@ -1018,10 +1111,10 @@ button.icon-button.ghost:hover:not([disabled]) {
|
||||
|
||||
.preview-stack__image:hover,
|
||||
.preview-stack__image:focus-visible {
|
||||
outline-color: rgba(24, 119, 242, 0.85);
|
||||
outline-color: var(--accent-focus);
|
||||
box-shadow:
|
||||
inset 0 0 0 999px rgba(24, 119, 242, 0.18),
|
||||
0 6px 18px rgba(24, 119, 242, 0.24);
|
||||
inset 0 0 0 999px var(--accent-elevated),
|
||||
0 6px 18px var(--accent-elevated-strong);
|
||||
filter: saturate(118%) brightness(1.05);
|
||||
}
|
||||
|
||||
@@ -1127,19 +1220,19 @@ form.inline {
|
||||
}
|
||||
|
||||
.status-banner.success {
|
||||
background: rgba(18, 128, 90, 0.1);
|
||||
background: var(--success-subtle);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.status-banner.error {
|
||||
background: rgba(217, 44, 32, 0.1);
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.drop-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(43, 92, 255, 0.12);
|
||||
background: var(--accent-soft);
|
||||
backdrop-filter: blur(4px);
|
||||
display: none;
|
||||
align-items: center;
|
||||
@@ -1161,6 +1254,57 @@ form.inline {
|
||||
box-shadow: none;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: var(--overlay-backdrop);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1.5rem;
|
||||
z-index: 3000;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 18px 42px var(--overlay-shadow);
|
||||
width: min(360px, 100%);
|
||||
padding: 1.6rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.modal h3 {
|
||||
margin: 0;
|
||||
font-size: 1.15rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.modal__form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
.modal__form label {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.modal__error {
|
||||
margin: -0.45rem 0 0;
|
||||
font-size: 0.85rem;
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.modal__actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
@media (max-width: 1080px) {
|
||||
.app-main {
|
||||
@@ -1187,22 +1331,6 @@ form.inline {
|
||||
min-height: auto;
|
||||
}
|
||||
}
|
||||
.sidebar .column-body {
|
||||
gap: 0.28rem;
|
||||
}
|
||||
|
||||
.new-folder-form {
|
||||
display: flex;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.folder-tree-scroller {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding-right: 0.4rem;
|
||||
margin-right: -0.4rem;
|
||||
min-height: 0;
|
||||
}
|
||||
.login-screen {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user