Replace tree navigation with touch UI

This commit is contained in:
2026-10-13 06:54:51 +00:00
parent 7258714ca7
commit 9285371808
253 changed files with 510407 additions and 92659 deletions

View File

@@ -100,6 +100,63 @@ nav {
border-right: 1px solid var(--itac-border);
}
.touch-nav {
width: 280px !important;
padding: 14px !important;
display: flex;
flex-direction: column;
gap: 16px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.nav-section {
display: flex;
flex-direction: column;
gap: 8px;
}
.nav-section h2 {
margin: 0 0 2px;
padding: 0 4px;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
color: var(--itac-muted) !important;
}
.nav-item {
width: 100%;
min-height: 58px;
padding: 10px 12px !important;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 2px;
text-align: left;
border-color: transparent !important;
background: rgba(255, 255, 255, 0.72) !important;
color: var(--itac-ink) !important;
box-shadow: none;
}
.nav-item span {
font-weight: 700;
}
.nav-item small {
color: var(--itac-muted);
font-size: 12px;
}
.nav-item.active {
border-color: rgba(164, 6, 64, 0.2) !important;
background: #fff !important;
color: var(--itac-red) !important;
box-shadow: inset 4px 0 0 var(--itac-red), 0 8px 18px rgba(36, 55, 70, 0.08);
}
#container {
min-height: 0;
background: var(--itac-soft);
@@ -271,17 +328,78 @@ tbody tr:hover {
color: var(--itac-ink);
}
.jstree-default .jstree-anchor {
min-height: 34px;
line-height: 34px;
color: var(--itac-ink);
border-radius: 6px;
.touch-tree {
max-height: min(68vh, 720px);
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.jstree-default .jstree-clicked,
.jstree-default .jstree-hovered {
.touch-tree-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.touch-tree-list .touch-tree-list {
margin: 8px 0 0 12px;
padding-left: 12px;
border-left: 2px solid var(--itac-border);
}
.touch-tree-group {
border: 1px solid var(--itac-border);
border-radius: var(--itac-radius);
background: #f6f7fb;
}
.touch-tree-group summary {
min-height: 48px;
padding: 12px 14px;
color: var(--itac-slate);
font-weight: 700;
cursor: pointer;
list-style: none;
touch-action: manipulation;
}
.touch-tree-group summary::-webkit-details-marker {
display: none;
}
.touch-tree-group summary::before {
content: "+";
display: inline-flex;
width: 22px;
height: 22px;
margin-right: 8px;
align-items: center;
justify-content: center;
border-radius: 50%;
color: #fff;
background: var(--itac-blue);
}
.touch-tree-group[open] > summary::before {
content: "-";
background: var(--itac-red);
}
.touch-tree-leaf {
width: 100%;
min-height: 52px;
justify-content: flex-start;
text-align: left;
background: #fff !important;
box-shadow: inset 3px 0 0 var(--itac-red);
color: var(--itac-ink) !important;
border-color: var(--itac-border) !important;
box-shadow: none;
}
.touch-tree-leaf::after {
content: ">";
margin-left: auto;
color: var(--itac-red);
font-weight: 700;
}
@media (max-width: 820px) {
@@ -311,11 +429,38 @@ tbody tr:hover {
nav {
width: 100% !important;
max-height: 38vh;
max-height: 42vh;
border-right: 0;
border-bottom: 1px solid var(--itac-border);
}
.touch-nav {
width: 100% !important;
flex-direction: row;
gap: 12px;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x proximity;
}
.nav-section {
min-width: 190px;
scroll-snap-align: start;
}
.nav-item {
min-height: 54px;
}
.touch-tree {
max-height: 58vh;
}
.touch-tree-list .touch-tree-list {
margin-left: 6px;
padding-left: 8px;
}
#contentFrame {
min-height: 62vh;
width: 100%;