mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT Show node badges in tree sidebar view on hover (fixes #7410)
This commit is contained in:
parent
e50936fe9f
commit
bda7272761
@ -19,6 +19,7 @@
|
||||
.cms-content-tools #cms-content-treeview .cms-tree-expand-trigger { display: inline-block; margin: 0 0 2px 0; position: absolute; top: 8px; right: 4px; }
|
||||
.cms-content-tools #cms-content-treeview .cms-tree-expand-trigger span.ui-button-text { padding-right: 8px; }
|
||||
.cms-content-tools #cms-content-treeview .cms-tree .badge, .cms-content-tools #cms-content-treeview .cms-tree a > .jstree-icon { display: none; }
|
||||
.cms-content-tools #cms-content-treeview .cms-tree a:hover > .text > .badge { display: inline-block; }
|
||||
|
||||
/** ------------------------------------------------------------------ URLSegment field ----------------------------------------------------------------- */
|
||||
.field.urlsegment.disabled { color: #444; padding-left: 0px; margin-left: 0px; background: none; border-color: transparent; }
|
||||
|
@ -53,7 +53,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.cms-content-tools { // Hide certain elements when shown in "sidebar mode"
|
||||
// Hide certain elements when shown in "sidebar mode"
|
||||
.cms-content-tools {
|
||||
#cms-content-treeview {
|
||||
.cms-content-toolbar {
|
||||
border-bottom:none;
|
||||
@ -79,10 +80,16 @@
|
||||
}
|
||||
|
||||
.cms-tree {
|
||||
// Hide badges and drag icons to save space
|
||||
.badge,
|
||||
a > .jstree-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Show badge on hovered node
|
||||
a:hover > .text > .badge {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user