I wanted to be able to
- Readily/Better identify any level that has children that is-collapsed, while also
- Customizing any Level āBullet-iconā (using text characters).
I found @Vincent_Tang 's post āCSS Fixes Part 2 - Onenote/Evernote Style bulletingā which helped me get started.
@Kevin_Murray pointed out an interesting problem that I solved using a work-around. Iām interested if anyone has more insight/pointers.
At that post I describe the css-code challenges and limitations in trying to achieve my desired result, so I wont labor that further here. I am sharing the code here for anyone possibly interested.
What it does (2 things):
1) Method for customizing the bullet-icon-character and color of any levelās bullet.
Note1: The Last level ācustom bullet-iconā you assign in the CSS will be assigned to all following levels. I only went to 9 levels.
Note2: There are various ways of achieving assigning custom bullet-icons to levels (either explicitly or relative to the current view). I investigated only two methods, and each had its limitations and issues (detailed at the other post cited above). There is very likely a way-better approach ā¦I didnāt spend time hunting here on methods; this was a crude bootstrap effort ;^) I am very interested if you have some other methods to point out for trying.
2) Make any āHas Children and Is-Collapsedā Level display the āCircled-Bullet Iconā in Red (of course, you can make it whatever you want) ā¦AND⦠including Red on-Hover Plus-Minus Icons display.
Note: The solution will cascade indefinitely ;^)
CODE
/* ===== Override default bullets for levels 2 - 9 ===== */
.Node.is-currentRoot .Node .Node .Node .Node .Node .Node .Node .Node .Node .Node-bullet:before {
content: "\2622"; /* level9 -radiation warning */
color:crimson;
}
.Node.is-currentRoot .Node .Node .Node .Node .Node .Node .Node .Node .Node-bullet:before {
content: "\2620"; /* level8 -jolly roger */
color:slatebllue;
}
.Node.is-currentRoot .Node .Node .Node .Node .Node .Node .Node .Node-bullet:before {
content: "ā£"; /* club */
color:violet;
}
.Node.is-currentRoot .Node .Node .Node .Node .Node .Node .Node-bullet:before {
content: "¤"; /* level6- ~sun */
color:purple;
}
.Node.is-currentRoot .Node .Node .Node .Node .Node .Node-bullet:before {
content: "ā¦"; /* level5- small diamond */
color:goldenrod;
}
.Node.is-currentRoot .Node .Node .Node .Node .Node-bullet:before {
content: "ā
"; /* level4- star */
color:orange;
}
.Node.is-currentRoot .Node .Node .Node .Node-bullet:before {
content: "ā "; /* level3- small square */
color:forestgreen;
}
.Node.is-currentRoot .Node .Node .Node-bullet:before {
content: "ā"; /* level2- diamond */
color:darkblue;
}
.Node.is-currentRoot .Node .Node-bullet:before {
content: "ā "; /* level1- big square */
color:blue;
}
/* ======= expand~collapse +hover bullets ======== */
/* Static Bullet Indicating 'more' */
.Node.is-currentRoot .Node .Node-children>.Node-outer>.Node .Node .Node .Node-self.is-parent.is-collapsed>.Node-bullet:before,
.Node.is-currentRoot .Node-children>.Node-outer>.Node .Node .Node .Node-self.is-parent.is-collapsed>.Node-bullet:before,
.Node.is-currentRoot .Node-children>.Node-outer>.Node .Node .Node-self.is-parent.is-collapsed>.Node-bullet:before,
.Node.is-currentRoot .Node-children>.Node-outer>.Node .Node-self.is-parent.is-collapsed>.Node-bullet:before {
content: "ā";
color:red;
}
/* hover minus for collapse indicator */
.Node.is-currentRoot .Node .Node-children>.Node-outer>.Node .Node .Node .Node-self.is-parent.is-hovering>.Node-bullet:before,
.Node.is-currentRoot .Node-children>.Node-outer>.Node .Node .Node-self.is-parent.is-hovering>.Node-bullet:before,
.Node.is-currentRoot .Node-children>.Node-outer>.Node .Node-self.is-parent.is-hovering>.Node-bullet:before {
content: "\e93a"; /* hover-minus */
color:red;
}
/* hover plus for expand indicator */
.Node.is-currentRoot .Node .Node-children>.Node-outer>.Node .Node .Node .Node-self.is-parent.is-collapsed.is-hovering>.Node-bullet:before,
.Node.is-currentRoot .Node-children>.Node-outer>.Node .Node .Node-self.is-parent.is-collapsed.is-hovering>.Node-bullet:before,
.Node.is-currentRoot .Node-children>.Node-outer>.Node .Node-self.is-parent.is-collapsed.is-hovering>.Node-bullet:before {
content: "\e928"; /* hover-plus */
color:red;
}