Skip to content
Browse files

ENHANCEMENT Show node badges in tree sidebar view on hover (fixes #7410)

  • Loading branch information...
1 parent e50936f commit bda727276152d9689f46b8973347a4975ca4ca5c @chillu chillu committed Jun 12, 2012
Showing with 9 additions and 1 deletion.
  1. +1 −0 css/screen.css
  2. +8 −1 scss/_CMSMain.scss
View
1 css/screen.css
@@ -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; }
View
9 scss/_CMSMain.scss
@@ -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;
+ }
}
}
}

0 comments on commit bda7272

Please sign in to comment.
Something went wrong with that request. Please try again.