_menu.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. ul.nav-main {
  2. margin-right: $sidebar-border-width;
  3. // PRIMARY MENU ITEM
  4. // -----------------------------------------------------------------------------
  5. & > li {
  6. & > a {
  7. padding: $menu-item-padding;
  8. // PRIMARY HOVER
  9. // -----------------------------------------------------------------------------
  10. &:hover,
  11. &:focus {
  12. background-color: #21262d;
  13. }
  14. }
  15. // PRIMARY ITEM: ACTIVE
  16. // -----------------------------------------------------------------------------
  17. &.nav-active {
  18. > a {
  19. box-shadow: $menu-item-active-border-width 0 0 $menu-item-active-border-color inset;
  20. &:hover {
  21. color: $menu-item-text-color;
  22. }
  23. }
  24. & > i {
  25. color: $color-primary;
  26. }
  27. }
  28. // PRIMARY ITEM: EXPANDED
  29. // -----------------------------------------------------------------------------
  30. &.nav-expanded {
  31. & > a {
  32. background: #21262d;
  33. }
  34. }
  35. }
  36. // PRIMARY AND CHILDREN ITEMS
  37. // -----------------------------------------------------------------------------
  38. li {
  39. a {
  40. @include font-size(13);
  41. color: $menu-item-text-color;
  42. white-space: nowrap;
  43. text-overflow: ellipsis;
  44. span.label {
  45. font-weight: normal;
  46. @include font-size(10);
  47. padding: .3em .7em .4em;
  48. margin: .4em -1em 0 0;
  49. }
  50. .not-included {
  51. font-style: normal;
  52. color: darken($menu-item-text-color, 35%);
  53. display: inline-block;
  54. padding: 0 0 0 6px;
  55. }
  56. }
  57. span {
  58. vertical-align: middle;
  59. }
  60. i {
  61. @include font-size(18);
  62. width: 1.1em;
  63. margin-right: 0.5em;
  64. text-align: center;
  65. vertical-align: middle;
  66. }
  67. // SUB MENU - HAS CHILDREN
  68. // -----------------------------------------------------------------------------
  69. &.nav-parent {
  70. position: relative;
  71. & > a {
  72. cursor: pointer;
  73. &:after {
  74. font-family: 'FontAwesome';
  75. content: '\f107';
  76. @include font-size(16);
  77. color: $menu-item-arrow-color;
  78. position: absolute;
  79. right: 0;
  80. top: 0;
  81. padding: $menu-item-arrow-padding;
  82. }
  83. }
  84. // SUB MENU - HAS CHILDREN - EXPANDED
  85. // -----------------------------------------------------------------------------
  86. &.nav-expanded {
  87. & > a:after {
  88. content: '\f106';
  89. }
  90. & > ul.nav-children {
  91. display: block;
  92. }
  93. }
  94. }
  95. // SUB MENU - CHILDREN
  96. // -----------------------------------------------------------------------------
  97. .nav-children {
  98. background: $menu-item-active-background;
  99. box-shadow: 0px -3px 3px -3px rgba(0, 0, 0, 0.7) inset;
  100. display: none;
  101. padding: 10px 0;
  102. li {
  103. a {
  104. padding: $menu-children-padding;
  105. overflow: hidden;
  106. &:hover, &:focus {
  107. background: $menu-item-active-background;
  108. }
  109. &:after {
  110. padding: $menu-item-children-arrow-padding;
  111. }
  112. }
  113. // SUB MENU - CHILDREN: ACTIVE
  114. // -----------------------------------------------------------------------------
  115. &.nav-active {
  116. > a {
  117. color: $color-primary;
  118. }
  119. }
  120. }
  121. // LEVEL 1
  122. .nav-children {
  123. box-shadow: none;
  124. padding: 0;
  125. li {
  126. a {
  127. padding: $menu-children-level1-padding;
  128. }
  129. }
  130. // LEVEL 2
  131. .nav-children {
  132. li {
  133. a {
  134. padding: $menu-children-level2-padding;
  135. }
  136. }
  137. }
  138. }
  139. }
  140. }
  141. }