Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. .ms-core-listMenu-verticalBox UL.root > LI > .menu-item {
  2. /*Style each menu item*/} .ms-core-listMenu-verticalBox > ul.root > li.static > ul.static > li.static > a:hover {
  3. /*Style on hove sub items*/} .ms-core-listMenu-verticalBox > ul.root > li.selected > a {
  4. /*Style selected top level item*/} .ms-core-listMenu-verticalBox > ul.root > li > a:hover {
  5. /*Style top level mouse hover*/} .ms-core-listMenu-verticalBox > ul.root > li.static > ul.static > li > a {
  6. /*Style sub level mouse hove*/} .ms-core-listMenu-verticalBox > ul.root > li.static > ul.static > li > a.selected {
  7. /*Style selected sub item*/} .ms-core-listMenu-verticalBox a.selected {
  8. /*Style Selected Item*/} .ms-core-listMenu-verticalBox UL.root UL {
  9. /*Style Outer Box*/}
  10.  
  11. function AppendMenuFontAwesomeIcons() {
  12. var elements = document.querySelectorAll('ul[id^=zz][id$=_RootAspMenu] li span.menu-item-text');
  13.  
  14. for (var i = 0; i < elements.length; i++) {
  15. // Here you can make a switch case statement or something to define the displayed icon
  16. elements[i].innerHTML = '<i class="fa fa-fw fa-star"></i> ' + elements[i].innerHTML;
  17. }
  18. }
  19.  
  20. _spBodyOnLoadFunctionNames.push('AppendMenuFontAwesomeIcons');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement