“返回上一层”按钮样式
This commit is contained in:
1 parent
9b4a0a6a16
commit
a67f190634
2 files changed
+17
No files matched your search
@@ -279,6 +279,22 @@ button[type="button"], input[type="button"] { background: var(--accent-soft); co
|
|||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
|
.minimap .tag.fold-btn {
|
||||||
|
color: var(--fg-secondary);
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 0.3rem;
|
||||||
|
text-align: center;
|
||||||
|
max-width: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: color 0.15s, background 0.15s, border-color 0.15s;
|
||||||
|
}
|
||||||
|
.minimap .tag.fold-btn:hover {
|
||||||
|
color: var(--accent-dark);
|
||||||
|
background: var(--accent-soft);
|
||||||
|
border-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
/* ===== Node Form (dnfs) ===== */
|
/* ===== Node Form (dnfs) ===== */
|
||||||
.node-form { margin-top: 1rem; }
|
.node-form { margin-top: 1rem; }
|
||||||
|
|||||||
@@ -262,6 +262,7 @@ function loadMap(children_json) {
|
|||||||
let need_return = false;
|
let need_return = false;
|
||||||
minimap.replaceChildren();
|
minimap.replaceChildren();
|
||||||
var fold_div = document.createElement("div");
|
var fold_div = document.createElement("div");
|
||||||
|
fold_div.className = "tag fold-btn";
|
||||||
if (is_expand == true) {
|
if (is_expand == true) {
|
||||||
fold_div.textContent = "v 折叠";
|
fold_div.textContent = "v 折叠";
|
||||||
minimap.appendChild(fold_div);
|
minimap.appendChild(fold_div);
|
||||||
|
|||||||
Reference in new issue
Block a user