Remove remaining mentions of fabs
This commit is contained in:
+1
-6
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
closeBtn = document.createElement('button');
|
closeBtn = document.createElement('button');
|
||||||
closeBtn.type = 'button';
|
closeBtn.type = 'button';
|
||||||
closeBtn.className = 'btn btn-fab overlay-close';
|
closeBtn.className = 'btn overlay-close';
|
||||||
closeBtn.title = 'Close';
|
closeBtn.title = 'Close';
|
||||||
closeBtn.setAttribute('aria-label', 'Close');
|
closeBtn.setAttribute('aria-label', 'Close');
|
||||||
closeBtn.textContent = '×';
|
closeBtn.textContent = '×';
|
||||||
@@ -35,11 +35,6 @@
|
|||||||
|
|
||||||
bodyEl = document.createElement('div');
|
bodyEl = document.createElement('div');
|
||||||
bodyEl.className = 'overlay-body';
|
bodyEl.className = 'overlay-body';
|
||||||
// Any navigation or anchor activation inside a rail dismisses the
|
|
||||||
// overlay: tree/calendar links navigate away, TOC links scroll the
|
|
||||||
// page underneath — either way the user should see the result, and
|
|
||||||
// closing synchronously (before navigation) avoids a bfcache snapshot
|
|
||||||
// that would restore the overlay open on back-nav.
|
|
||||||
bodyEl.addEventListener('click', function (e) {
|
bodyEl.addEventListener('click', function (e) {
|
||||||
if (e.target.closest('a')) close();
|
if (e.target.closest('a')) close();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
{{define "headerActions"}}{{if .CanEdit}}
|
{{define "headerActions"}}{{if .CanEdit}}
|
||||||
<button class="btn btn-block" onclick="newPage()" title="New page (N)">NEW</button>
|
<button class="btn btn-block" onclick="newPage()" title="New page (N)">NEW</button>
|
||||||
<a class="btn btn-block" href="?edit" title="Edit page (E)">EDIT</a>
|
|
||||||
<button class="btn btn-block" data-companion-reveal hidden title="Reveal in file manager">REVEAL</button>
|
<button class="btn btn-block" data-companion-reveal hidden title="Reveal in file manager">REVEAL</button>
|
||||||
{{if not .IsRoot}}
|
{{if not .IsRoot}}
|
||||||
<button class="btn btn-block" onclick="movePage()" title="Move page (M)">MOVE</button>
|
<button class="btn btn-block" onclick="movePage()" title="Move page (M)">MOVE</button>
|
||||||
<button class="btn btn-block danger" onclick="deletePage()" title="Delete page">DELETE</button>
|
<button class="btn btn-block danger" onclick="deletePage()" title="Delete page">DELETE</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
<a class="btn btn-block" href="?edit" title="Edit page (E)">EDIT</a>
|
||||||
{{end}}{{end}}
|
{{end}}{{end}}
|
||||||
|
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
|
|||||||
+9
-28
@@ -217,23 +217,9 @@ footer {
|
|||||||
padding: 0.3rem var(--space-3);
|
padding: 0.3rem var(--space-3);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.btn-fab {
|
|
||||||
background: var(--bg-panel);
|
|
||||||
border: var(--border);
|
|
||||||
width: 3rem;
|
|
||||||
height: 3rem;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
line-height: 1;
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
.btn-fab::before, .btn-fab::after { content: none; }
|
|
||||||
.btn-fab:hover { background: var(--bg-panel-hover); color: var(--primary-hover); }
|
|
||||||
.btn[hidden] {display: none;}
|
.btn[hidden] {display: none;}
|
||||||
.danger { color: var(--danger); }
|
.danger { color: var(--danger); }
|
||||||
.danger:hover { color: var(--danger-hover); }
|
.danger:hover { color: var(--danger-hover); }
|
||||||
/* Selected segmented-toggle button (view-settings modal). */
|
|
||||||
.btn.is-active { color: var(--primary-hover); }
|
.btn.is-active { color: var(--primary-hover); }
|
||||||
|
|
||||||
/* === Form controls ===
|
/* === Form controls ===
|
||||||
@@ -685,7 +671,13 @@ aside.sidebar:empty { display: none; }
|
|||||||
border-bottom: var(--border-dashed);
|
border-bottom: var(--border-dashed);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.overlay-close { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
|
.overlay-close {
|
||||||
|
width: 2.5rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
.overlay-close::before, .overlay-close::after { content: none; }
|
||||||
|
.overlay-close:hover { background: var(--bg-panel-hover); color: var(--primary-hover); }
|
||||||
.overlay-body {
|
.overlay-body {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -749,12 +741,7 @@ aside.sidebar:empty { display: none; }
|
|||||||
}
|
}
|
||||||
.tree-row.is-active > .tree-name { color: var(--primary-hover); }
|
.tree-row.is-active > .tree-name { color: var(--primary-hover); }
|
||||||
|
|
||||||
/* === Tree sidebar (persistent left navigation rail) ===
|
/* Tree sidebar (persistent navigation) */
|
||||||
Reuses the .tree-row / .tree-children / .tree-name / .tree-chevron modules.
|
|
||||||
Desktop: a full-height flex column in the app-shell (composes with .col)
|
|
||||||
holding the tree's own scroll region. Mobile: not laid out inline — its
|
|
||||||
content is surfaced through the Overlay via the stacked FABs (see
|
|
||||||
responsive). */
|
|
||||||
.tree-sidebar {
|
.tree-sidebar {
|
||||||
width: var(--tree-width);
|
width: var(--tree-width);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
@@ -845,13 +832,7 @@ aside.sidebar:empty { display: none; }
|
|||||||
|
|
||||||
/* === Responsive === */
|
/* === Responsive === */
|
||||||
@media (max-width: 1100px) {
|
@media (max-width: 1100px) {
|
||||||
/* Rails are not laid out inline on mobile — their content is surfaced
|
|
||||||
through the Overlay via the stacked FABs. The <aside> elements stay in
|
|
||||||
the DOM (their JS renders into them and the Overlay moves them in/out);
|
|
||||||
we only pull them out of the shell flow here. */
|
|
||||||
.tree-sidebar, .sidebar { display: none; }
|
.tree-sidebar, .sidebar { display: none; }
|
||||||
/* Compact three-column header: logo left, search stretches the middle,
|
|
||||||
actions right. */
|
|
||||||
header { grid-template-columns: auto 1fr auto; }
|
header { grid-template-columns: auto 1fr auto; }
|
||||||
.search-form { width: 100%; max-width: none; justify-self: stretch; }
|
.search-form { width: 100%; max-width: none; justify-self: stretch; }
|
||||||
}
|
}
|
||||||
@@ -859,7 +840,7 @@ aside.sidebar:empty { display: none; }
|
|||||||
/* Show the actions menu items directly in the bar in desktop size */
|
/* Show the actions menu items directly in the bar in desktop size */
|
||||||
@media (min-width: 1101px) {
|
@media (min-width: 1101px) {
|
||||||
.actions-toggle, .actions-special {display: none;}
|
.actions-toggle, .actions-special {display: none;}
|
||||||
.actions, .actions-menu, .actions.menu.is-open {display: contents;}
|
.actions, .actions-menu, .actions.dropdown-menu.is-open {display: contents;}
|
||||||
.actions-menu .btn-block { width: auto; padding: 0;}
|
.actions-menu .btn-block { width: auto; padding: 0;}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -190,7 +190,7 @@
|
|||||||
item.title = "Folders";
|
item.title = "Folders";
|
||||||
item.textContent = "FOLDERS";
|
item.textContent = "FOLDERS";
|
||||||
item.addEventListener("click", function () {
|
item.addEventListener("click", function () {
|
||||||
if (typeof openOverlay === "function") openOverlay(aside);
|
if (typeof openOverlay === "function") openOverlay(container);
|
||||||
});
|
});
|
||||||
specials.appendChild(item);
|
specials.appendChild(item);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user