You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
2.7 KiB

  1. @import "var";
  2. // lined menu
  3. ul.menu {
  4. > li {
  5. list-style: none;
  6. > a {
  7. padding: .8em 1.2em;
  8. &:hover {
  9. background-color: @lineMenuHoverBgColor;
  10. color: @lineMenuHoverFontColor;
  11. }
  12. }
  13. &.current > a,
  14. &.hover > a {
  15. color: @lineMenuHoverFontColor;
  16. }
  17. }
  18. > li.head {
  19. font-weight: bold;
  20. padding: .8em 1.2em;
  21. }
  22. > li.down:hover {
  23. > ul.menu-down {
  24. display: block;
  25. }
  26. }
  27. > li.border-bottom {
  28. border-bottom: 1px solid @menuBorderColor;
  29. height: 0;
  30. margin: .5em 0;
  31. }
  32. }
  33. ul.menu-line {
  34. > li,
  35. > li > a {
  36. display: inline-block;
  37. }
  38. > li.down {
  39. position: relative;
  40. > a:after {
  41. content: "\25BE";
  42. margin-left: .4em;
  43. }
  44. > ul.menu-down {
  45. top: 2.1em;
  46. width: 150%;
  47. }
  48. }
  49. > li.hover {
  50. position: relative;
  51. > a:after {
  52. position: absolute;
  53. content: "\25B4";
  54. left: 50%;
  55. bottom: -1.1em;
  56. margin-left: -4px;
  57. }
  58. }
  59. }
  60. ul.menu-vertical,
  61. ul.menu-down {
  62. > li > a,
  63. > li.head {
  64. display: block;
  65. padding: .4em 1.2em;
  66. }
  67. > li.down {
  68. position: relative;
  69. > a:after {
  70. content: "\25B8";
  71. position: absolute;
  72. right: .6em;
  73. }
  74. }
  75. > li.hover {
  76. position: relative;
  77. > a:after {
  78. content: "\25B8";
  79. position: absolute;
  80. left: .5em;
  81. }
  82. }
  83. }
  84. ul.menu-border,
  85. ul.menu-down {
  86. border: 1px solid @menuBorderColor;
  87. > li.head {
  88. border-bottom: 1px solid @menuBorderColor;
  89. }
  90. }
  91. ul {
  92. &.menu-down {
  93. position: absolute;
  94. display: none;
  95. z-index: 99;
  96. box-shadow: 0 0 2px @menuShadowColor;
  97. background-color: @menuDownBgColor;
  98. }
  99. &.menu-down-show {
  100. position: absolute;
  101. z-index: 99;
  102. box-shadow: 0 0 2px @menuShadowColor;
  103. background-color: @menuDownBgColor;
  104. }
  105. }
  106. ul.menu-radius {
  107. border-radius: .3em;
  108. > li {
  109. &:first-child {
  110. border-top-left-radius: .3em;
  111. border-top-right-radius: .3em;
  112. > a {
  113. border-top-left-radius: .2em;
  114. border-top-right-radius: .2em;
  115. }
  116. }
  117. &:last-child {
  118. border-bottom-left-radius: .3em;
  119. border-bottom-right-radius: .3em;
  120. > a {
  121. border-bottom-left-radius: .2em;
  122. border-bottom-right-radius: .2em;
  123. }
  124. }
  125. }
  126. }
  127. .drop {
  128. position: relative;
  129. &:hover {
  130. > .drop-down {
  131. position: absolute;
  132. top: 0;
  133. left: 0;
  134. width: 200%;
  135. display: block;
  136. }
  137. }
  138. > .drop-down {
  139. display: none;
  140. border: 1px solid @dropBorderColor;
  141. box-shadow: 0 0 3px @menuShadowColor;
  142. background-color: @dropDownBgColor;
  143. }
  144. }
  145. .drop-bottom {
  146. &:after {
  147. content: "\25BE";
  148. margin-left: .4em;
  149. }
  150. }
  151. .drop-top {
  152. &:after {
  153. content: "\25B4";
  154. margin-left: .4em;
  155. }
  156. }