156 lines
12 KiB
CSS
156 lines
12 KiB
CSS
/* Library: folder tree and tiles. Colors come from the theme variables, so light and dark follow. */
|
|
.library { --tree-width: 264px; display: grid; grid-template-columns: var(--tree-width) minmax(0, 1fr); min-height: 100%; }
|
|
.library__tree { position: relative; border-right: 1px solid var(--border); background: var(--surface2); overflow: auto; padding: 12px 6px 24px 8px; }
|
|
.library__main { min-width: 0; }
|
|
.library__toggle { display: none; margin: 10px 16px 0; }
|
|
.library-page .page-head { align-items: flex-start; }
|
|
.library-tree { display: grid; gap: 2px; align-content: start; }
|
|
.library-tree__heading { margin: 14px 8px 4px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text2); }
|
|
.library-tree__heading:first-child { margin-top: 2px; }
|
|
.library-tree__root, .library-tree__link {
|
|
display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 8px; border-radius: 8px;
|
|
color: var(--text1); text-decoration: none; font-size: 14px; font-weight: 600; min-width: 0;
|
|
}
|
|
.library-tree__link { font-weight: 500; font-size: 13px; flex: 1; }
|
|
.library-tree__root:hover, .library-tree__link:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
|
|
.library-tree__root.is-current, .library-tree__link.is-current { background: var(--accent-light); color: var(--accent-dark); }
|
|
.library-tree__link.is-over { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-light); }
|
|
.library-tree__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.library-tree__count { margin-left: auto; color: var(--text2); font-size: 12px; font-weight: 600; }
|
|
.library-tree__list { list-style: none; margin: 0; padding: 0 0 0 10px; display: grid; gap: 1px; }
|
|
.library-tree__list .library-tree__list { border-left: 1px solid var(--border); margin-left: 10px; }
|
|
.library-tree__row { display: flex; align-items: center; min-width: 0; }
|
|
.library-tree__toggle { width: 24px; min-width: 24px; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--text2); font-size: 12px; }
|
|
.library-tree__toggle.is-empty { visibility: hidden; }
|
|
.library-tree__icon { flex: none; }
|
|
.library-tree__section { display: grid; gap: 1px; }
|
|
|
|
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
a.button {
|
|
display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px;
|
|
font-size: 14px; font-weight: 600; text-decoration: none; background: var(--accent); color: #fff;
|
|
}
|
|
a.button.quiet { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); }
|
|
.view-toggle { display: inline-flex; gap: 0; }
|
|
.view-toggle button { border-radius: 0; min-height: 40px; padding: 8px 14px; }
|
|
.view-toggle button:first-child { border-radius: 10px 0 0 10px; }
|
|
.view-toggle button:last-child { border-radius: 0 10px 10px 0; }
|
|
.crumbs { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
|
|
.crumbs a { color: var(--accent-dark); }
|
|
.library-section { margin: 18px 0 4px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text2); }
|
|
.library-empty { padding: 18px 0; }
|
|
.toast { margin: 8px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-light); color: var(--accent-dark); font-weight: 600; font-size: 14px; }
|
|
.tabs { display: flex; gap: 8px; margin: 6px 0 10px; }
|
|
|
|
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; margin: 10px 0 22px; }
|
|
.folder-tile {
|
|
--tile-accent: var(--kind-case);
|
|
display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border);
|
|
border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: border-color 0.15s, box-shadow 0.15s;
|
|
}
|
|
.folder-tile:hover { border-color: var(--tile-accent); box-shadow: var(--shadow); }
|
|
.folder-tile.is-over { border-color: var(--tile-accent); background: color-mix(in srgb, var(--tile-accent) 12%, var(--surface)); box-shadow: 0 0 0 2px var(--tile-accent); }
|
|
.folder-tile--subcase { --tile-accent: color-mix(in srgb, var(--kind-case) 72%, var(--text2)); }
|
|
.folder-tile--matter, .folder-tile--submatter { --tile-accent: var(--kind-matter); }
|
|
.folder-tile--room { --tile-accent: var(--kind-room); }
|
|
.folder-tile__main { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 10px; color: inherit; text-decoration: none; min-width: 0; flex: 1; }
|
|
.folder-tile__icon { flex: none; width: 48px; height: 48px; }
|
|
.folder-tile__text { display: grid; gap: 2px; min-width: 0; }
|
|
.folder-tile__kind { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tile-accent); }
|
|
.folder-tile__title { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
|
|
.folder-tile__meta { font-size: 13px; color: var(--text2); }
|
|
.folder-tile__foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 12px 12px; }
|
|
.folder-tile__enter { margin-left: auto; min-height: 30px; padding: 3px 10px; border-radius: 999px; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); font-weight: 600; }
|
|
.tile-icon__back { fill: color-mix(in srgb, var(--tile-accent) 50%, var(--surface)); }
|
|
.tile-icon__front { fill: var(--tile-accent); }
|
|
.tile-icon__lines { fill: none; stroke: var(--surface); stroke-width: 2.4; stroke-linecap: round; }
|
|
|
|
.popover { position: relative; display: inline-block; }
|
|
.popover__button { min-height: 30px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
|
|
.chip-popover .popover__button { background: color-mix(in srgb, var(--kind-room) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--kind-room) 45%, var(--border)); color: var(--text1); }
|
|
.popover__panel {
|
|
position: absolute; z-index: 40; top: calc(100% + 4px); min-width: 210px; max-width: 280px; padding: 6px; display: grid; gap: 2px;
|
|
background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; box-shadow: var(--shadow);
|
|
}
|
|
.popover__panel--left { left: 0; }
|
|
.popover__panel button { justify-content: flex-start; min-height: 36px; text-align: left; font-weight: 500; background: transparent; color: var(--text1); border-radius: 8px; padding: 6px 10px; }
|
|
.popover__panel button:hover { background: var(--accent-light); }
|
|
.popover__note { padding: 6px 10px; font-size: 12px; color: var(--text2); }
|
|
|
|
.tile-list { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 2px; }
|
|
.tile-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--border); }
|
|
.tile-list a { text-decoration: none; color: var(--text1); }
|
|
.tile-list__marks { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
.mark { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--kind-room) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--kind-room) 40%, var(--border)); }
|
|
.pick-group { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px 10px; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
|
|
.pick-group legend { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text2); padding: 0 6px; }
|
|
.check { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
|
|
.check input { width: 20px; min-height: 20px; height: 20px; flex: none; }
|
|
|
|
@media (max-width: 900px) {
|
|
.library { display: block; }
|
|
.library__toggle { display: inline-flex; }
|
|
.library__tree { display: none; }
|
|
.library__tree.is-open { display: block; border-right: 0; border-bottom: 1px solid var(--border); margin-top: 8px; }
|
|
.tile-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
|
|
.folder-tile__main { flex-direction: column; gap: 6px; }
|
|
.tile-list li { grid-template-columns: 1fr; gap: 2px; }
|
|
}
|
|
|
|
.mini-icon { vertical-align: -3px; flex: none; }
|
|
.mini-icon--case { color: var(--kind-case); }
|
|
.mini-icon--matter { color: var(--kind-matter); }
|
|
.mini-icon--room { color: var(--kind-room); }
|
|
.library-tree__toggle { font-size: 14px; }
|
|
.mark, .chip-popover .popover__button { display: inline-flex; align-items: center; gap: 5px; }
|
|
|
|
/* Navigation tree below the entries */
|
|
.library-tree__link.is-ancestor { font-weight: 700; }
|
|
.library-tree__add .library-tree__link, .library-tree__add button { color: var(--accent-dark); font-weight: 600; }
|
|
.library-tree__hint .library-tree__link { color: var(--text2); font-style: italic; }
|
|
.library-tree__moves { display: inline-flex; gap: 0; flex: none; }
|
|
.library-tree__moves button { min-height: 26px; width: 24px; padding: 0; font-size: 13px; background: transparent; color: var(--text2); border-radius: 6px; }
|
|
.library-tree__moves button:hover:not(:disabled) { background: var(--accent-light); color: var(--accent-dark); }
|
|
.library-tree button.library-tree__link { background: transparent; border: 0; justify-content: flex-start; text-align: left; width: 100%; }
|
|
.library__main .workspace { min-height: 0; }
|
|
.library__main > .page, .library__main > .workspace { max-width: none; }
|
|
.library-tree__list { min-width: 0; }
|
|
.library-tree__section > .library-tree__row > .library-tree__root { flex: 1; }
|
|
.mini-icon--plus { color: var(--accent-dark); }
|
|
|
|
/* Compact rows and less indentation, so deep structures fit */
|
|
.library-tree__root, .library-tree__link { min-height: 28px; padding: 3px 6px; gap: 6px; }
|
|
.library-tree__list { padding: 0 0 0 4px; gap: 0; }
|
|
.library-tree__list .library-tree__list { margin-left: 8px; padding-left: 3px; }
|
|
.library-tree__toggle { width: 20px; min-width: 20px; min-height: 26px; }
|
|
.library-tree__heading { margin: 10px 6px 2px; }
|
|
.library-tree__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* Handle on the right edge of the tree */
|
|
.library__resizer { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 5; touch-action: none; }
|
|
.library__resizer:hover, .library__resizer:focus-visible { background: color-mix(in srgb, var(--accent) 35%, transparent); outline: none; }
|
|
body.is-resizing { cursor: col-resize; user-select: none; }
|
|
body.is-resizing .library__resizer { background: color-mix(in srgb, var(--accent) 50%, transparent); }
|
|
@media (max-width: 900px) { .library__resizer { display: none; } }
|
|
|
|
.inline-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
|
|
|
|
.document-pages { width: 100%; }
|
|
.document-pages canvas { display: block; width: 100%; margin: 0 0 8px; background: #fff; }
|
|
|
|
/* Pages with a reader (case, matter) fill the height exactly; the lists inside scroll, not the frame. */
|
|
.app-main:has(.workspace) > .library { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr); }
|
|
.app-main:has(.workspace) .library__main { min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
|
|
.app-main:has(.workspace) .library__main > .workspace { flex: 1; min-height: 0; }
|
|
.app-main:has(.workspace) .library__tree { min-height: 0; }
|
|
@media (max-width: 900px) {
|
|
.app-main:has(.workspace) > .library { display: flex; flex-direction: column; }
|
|
.app-main:has(.workspace) .library__toggle { flex: none; margin: 4px 12px; }
|
|
.app-main:has(.workspace) .library__tree.is-open { flex: none; max-height: 45%; overflow: auto; }
|
|
.app-main:has(.workspace) .library__main { flex: 1; }
|
|
}
|
|
@media (max-width: 759px) { body.is-phone-reading .library__toggle { display: none; } }
|
|
|
|
.mail-frame { display: block; width: 100%; height: 60vh; min-height: 260px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
|
|
.mail-reading .segmented { display: inline-flex; gap: 6px; margin-bottom: 8px; }
|