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.

321 lines
6.9 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*******************************
  2. Menu
  3. *******************************/
  4. /*-------------------
  5. Globals Used
  6. --------------------*/
  7. // @textColor
  8. // @borderColor
  9. // @invertedUnselectedTextColor
  10. /*-------------------
  11. Collection
  12. --------------------*/
  13. @margin: 1rem 0rem;
  14. @verticalPadding: 0.83em;
  15. @horizontalPadding: 0.95em;
  16. @background: #FFFFFF;
  17. @itemBackground: none;
  18. @fontWeight: normal;
  19. @boxShadow:
  20. 0px 0px 0px 1px rgba(0, 0, 0, 0.1),
  21. @subtleShadow
  22. ;
  23. @borderSize: 0em;
  24. @transition:
  25. opacity 0.2s ease,
  26. background 0.2s ease,
  27. box-shadow 0.2s ease
  28. ;
  29. @borderRadius: 0.1875rem;
  30. @dividerSize: 1px;
  31. @dividerBackground: linear-gradient(
  32. rgba(0, 0, 0, 0.05) 0%,
  33. rgba(0, 0, 0, 0.1) 50%,
  34. rgba(0, 0, 0, 0.05) 100%)
  35. ;
  36. @headerBackground: rgba(0, 0, 0, 0.04);
  37. @headerWeight: bold;
  38. @textLineHeight: 1.3;
  39. @transition:
  40. opacity 0.2s ease,
  41. background 0.2s ease,
  42. box-shadow 0.2s ease
  43. ;
  44. @menuTextColor: @textColor;
  45. /* Sub Menu */
  46. @subMenuMargin: 0.5em;
  47. @subMenuFontSize: 0.875rem;
  48. @subMenuTextColor: rgba(0, 0, 0, 0.5);
  49. @subMenuHorizontalPadding: 0.5rem;
  50. @subMenuVerticalPadding: 1.5rem;
  51. /*--------------
  52. Elements
  53. ---------------*/
  54. /* Icon */
  55. @iconFloat: none;
  56. @iconMargin: 0em 0.25em 0em 0em;
  57. @iconOpacity: 0.75;
  58. @dropdownIconFloat: right;
  59. @dropdownIconDistance: 1em;
  60. @verticalIconFloat: right;
  61. @verticalIconMargin: 0em 0em 0em 0.5em;
  62. /* Header */
  63. @headerBackground: rgba(0, 0, 0, 0.04);
  64. @headerWeight: bold;
  65. @headerTextTransform: normal;
  66. /*--------------
  67. Couplings
  68. ---------------*/
  69. /* Button */
  70. @buttonOffset: -0.05em;
  71. @buttonVerticalPadding: 0.55em;
  72. @buttonSize: 0.875em;
  73. @actionButtonHorizontalPadding: 0.8em;
  74. /* Input */
  75. @inputSize: 1em;
  76. @inputVerticalMargin: -0.6em;
  77. @inputOffset: 0em;
  78. @inputVerticalPadding: 0.4em;
  79. @smallInputOffset: 0em;
  80. @smallInputVerticalPadding: 0.4em;
  81. @largeInputOffset: -0.125em;
  82. @largeInputVerticalPadding: 0.6em;
  83. /* Label */
  84. @labelOffset: -0.15em;
  85. @labelBackground: rgba(0, 0, 0, 0.35);
  86. @labelTextColor: #FFFFFF;
  87. @labelTextMargin: 0.5em;
  88. @labelVerticalPadding: 0.3em;
  89. @labelHorizontalPadding: 0.8em;
  90. @labelAndIconFloat: none;
  91. @labelAndIconMargin: 0em 0.5em 0em 0em;
  92. /* Dropdown */
  93. @dropdownBackground: #FFFFFF;
  94. @dropdownMenuOffset: 0px;
  95. @dropdownPointingDistance: 0px;
  96. @dropdownTextColor: @textColor;
  97. @dropdownTextColorHover: @darkTextColor;
  98. @dropdownIconMargin: 0em 0em 0em 1em;
  99. @dropdownBoxShadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.08);
  100. @dropdownVerticalBoxShadow: 0 1px 3px 0px rgba(0, 0, 0, 0.08);
  101. /* Pointing Arrow */
  102. @arrowSize: 0.6em;
  103. @arrowOffset: -(@arrowSize / 2);
  104. @arrowBorder: 1px solid rgba(0, 0, 0, 0.1);
  105. @arrowHoverColor: #FAFAFA;
  106. @arrowActiveColor: #F6F6F6;
  107. @arrowVerticalHoverColor: #FAFAFA;
  108. @arrowVerticalActiveColor: #FCFCFC;
  109. /*--------------
  110. States
  111. ---------------*/
  112. @hoverBackground: @subtleTransparentBlack;
  113. @hoverColor: @textColor;
  114. @pressedBackground: @subtleTransparentBlack;
  115. @pressedColor: @pressedTextColor;
  116. @activeBackground: @subtleTransparentBlack;
  117. @activeColor: @darkTextColor;
  118. @activeBorderSize: 2px;
  119. @activeFontWeight: normal;
  120. @activeIconOpacity: 1;
  121. @activeHoverBackground: @hoverBackground;
  122. @subMenuActiveBackground: transparent;
  123. @loadingBackgroundColor: rgba(255, 255, 255, 0.8);
  124. @loadingImage: "@{imagePath}/loader-large.gif";
  125. @loadingPosition: 50% 50%;
  126. /*--------------
  127. Types
  128. ---------------*/
  129. /* Vertical */
  130. @verticalBackground: #FFFFFF;
  131. @verticalItemBackground: none;
  132. @verticalDividerBackground: linear-gradient(to right,
  133. rgba(0, 0, 0, 0.03) 0%,
  134. rgba(0, 0, 0, 0.1) 1.5em,
  135. rgba(0, 0, 0, 0.03) 100%)
  136. ;
  137. /* Secondary */
  138. @secondaryBackground: none;
  139. @secondaryItemBackground: none;
  140. @secondaryTransition: color 0.2s ease;
  141. @secondaryBorderRadius: 0.3125em;
  142. @secondaryMargin: 0.25em;
  143. @secondaryVerticalMargin: 0.3em;
  144. @secondaryVerticalPadding: 0.5em;
  145. @secondaryHorizontalPadding: 1em;
  146. @secondaryLinkOpacity: 0.8;
  147. @secondaryHeaderBackground: none transparent;
  148. @secondaryHeaderBorder: 0.1em solid rgba(0, 0, 0, 0.1);
  149. @secondaryActiveBackground: @transparentBlack;
  150. @secondaryInvertedActiveBackground: @transparentWhite;
  151. /* Pointing */
  152. @secondaryPointingBorderWidth: 3px;
  153. @secondaryPointingVerticalPadding: 0.6em;
  154. @secondaryPointingHorizontalPadding: 0.95em;
  155. @secondaryPointingBorderColor: rgba(0, 0, 0, 0.2);
  156. @secondaryPointingHoverTextColor: @textColor;
  157. @secondaryPointingActiveBorderColor: rgba(0, 0, 0, 0.4);
  158. @secondaryPointingActiveTextColor: @selectedTextColor;
  159. @secondaryPointingHeaderColor: @darkTextColor;
  160. /* Tiered */
  161. @tieredActiveItemBackground: #FCFCFC;
  162. @tieredActiveMenuBackground: #FCFCFC;
  163. @tieredSubMenuTextTransform: normal;
  164. @tieredSubMenuFontWeight: normal;
  165. @tieredSubMenuColor: @lightTextColor;
  166. @tieredSubMenuHoverBackground: none transparent;
  167. @tieredSubMenuHoverColor: @hoveredTextColor;
  168. @tieredSubMenuActiveBackground: none transparent;
  169. @tieredSubMenuActiveColor: @selectedTextColor;
  170. @tieredInvertedSubMenuBackground: rgba(0, 0, 0, 0.2);
  171. /* Tabular */
  172. @tabularBorderColor: #DCDDDE;
  173. @tabularBackgroundColor: #FFFFFF;
  174. @tabularBorderWidth: 1px;
  175. @tabularHorizontalPadding: 1.4em;
  176. @tabularMenuTextColor: @menuTextColor;
  177. @tabularActiveColor: @selectedTextColor;
  178. @tabularMenuActiveBackground: #FFFFFF;
  179. @tabularActiveWeight: bold;
  180. @tabularBorderRadius: 5px;
  181. /* Pagination */
  182. @paginationMinWidth: 3em;
  183. @paginationActiveBackground: rgba(0, 0, 0, 0.03);
  184. /* Labeled Icon */
  185. @labeledIconSize: 1.5em;
  186. @labeledIconMinWidth: 6em;
  187. @labeledIconTextMargin: 0.3em;
  188. /* Text */
  189. @textMenuTransition: opacity 0.2s ease;
  190. /*--------------
  191. Variations
  192. ---------------*/
  193. /* Inverted */
  194. @invertedBackground: @black;
  195. @invertedBoxShadow: none;
  196. @invertedHeaderBackground: rgba(0, 0, 0, 0.3);
  197. /* Inverted Sub Menu */
  198. @invertedSubMenuBackground: transparent;
  199. @invertedSubMenuColor: @invertedUnselectedTextColor;
  200. /* Inverted Hover */
  201. @invertedHoverBackground: rgba(255, 255, 255, 0.1);
  202. @invertedHoverColor: @white;
  203. @invertedSubMenuHoverBackground: transparent;
  204. @invertedSubMenuHoverColor: @white;
  205. /* Pressed */
  206. @invertedMenuPressedBackground: rgba(255, 255, 255, 0.15);
  207. @invertedMenuPressedColor: @white;
  208. /* Inverted Active */
  209. @invertedActiveBackground: rgba(255, 255, 255, 0.2);
  210. @invertedActiveColor: @white;
  211. @invertedSubMenuActiveBackground: transparent;
  212. @invertedSubMenuActiveColor: @white;
  213. /* Inverted Secondary */
  214. @secondaryInvertedColor: @invertedLightTextColor;
  215. @secondaryInvertedHoverColor: @invertedSelectedTextColor;
  216. /* Inverted Menu Divider */
  217. @invertedDividerBackground: linear-gradient(
  218. rgba(255, 255, 255, 0.03) 0%,
  219. rgba(255, 255, 255, 0.1) 50%,
  220. rgba(255, 255, 255, 0.03) 100%)
  221. ;
  222. @invertedVerticalDividerBackground: linear-gradient(to right,
  223. rgba(255, 255, 255, 0.03) 0%,
  224. rgba(255, 255, 255, 0.1) 50%,
  225. rgba(255, 255, 255, 0.03) 100%)
  226. ;
  227. /* Fixed */
  228. @fixedGridMargin: 2.75rem;
  229. /* Attached */
  230. @attachedBoxShadow: 0px 0px 0px 1px #DDDDDD;
  231. /* Sizes */
  232. @small: 0.875rem;
  233. @smallSubMenu: 0.875rem;
  234. @smallWidth: 13rem;
  235. @medium: 1rem;
  236. @mediumWidth: 15rem;
  237. @large: 1.125rem;
  238. @largeSubMenu: 0.875rem;
  239. @largeDropdown: 1rem;
  240. @largeWidth: 18rem;