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.

305 lines
6.3 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
  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: @textColor;
  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. @labeledButtonPadding: 0.6em;
  75. /* Input */
  76. @inputSize: 1em;
  77. @inputVerticalMargin: -0.6em;
  78. @inputOffset: 0em;
  79. @inputVerticalPadding: 0.4em;
  80. @inputIconOffset: -0.3em;
  81. @smallInputOffset: 0em;
  82. @smallInputVerticalPadding: 0.4em;
  83. @largeInputOffset: -0.125em;
  84. @largeInputVerticalPadding: 0.6em;
  85. /* Label */
  86. @labelOffset: -0.15em;
  87. @labelBackground: rgba(0, 0, 0, 0.35);
  88. @labelTextColor: #FFFFFF;
  89. @labelTextMargin: 0.5em;
  90. @labelVerticalPadding: 0.3em;
  91. @labelHorizontalPadding: 0.8em;
  92. @labelAndIconFloat: none;
  93. @labelAndIconMargin: 0em 0.5em 0em 0em;
  94. /* Dropdown */
  95. @dropdownBackground: #FFFFFF;
  96. @dropdownMenuOffset: 1px;
  97. @dropdownPointingDistance: 0.75em;
  98. @dropdownTextColor: @textColor;
  99. @dropdownTextColorHover: @darkTextColor;
  100. @dropdownIconMargin: 0em 0em 0em 1em;
  101. @dropdownBoxShadow: 0 1px 1px 1px @solidBorderColor;
  102. @dropdownVerticalBoxShadow: 0 0px 1px 1px @solidBorderColor;
  103. /* Pointing Arrow */
  104. @arrowSize: 0.6em;
  105. @arrowOffset: -(@arrowSize / 2);
  106. @arrowBorder: 1px solid rgba(0, 0, 0, 0.1);
  107. @arrowHoverColor: #FAFAFA;
  108. @arrowActiveColor: #FCFCFC;
  109. @arrowVerticalHoverColor: #FAFAFA;
  110. @arrowVerticalActiveColor: #FCFCFC;
  111. /*--------------
  112. States
  113. ---------------*/
  114. @hoverBackground: @subtleTransparentBlack;
  115. @hoverColor: @textColor;
  116. @downBackground: @subtleTransparentBlack;
  117. @activeBackground: @subtleTransparentBlack;
  118. @activeColor: @darkTextColor;
  119. @activeBorderSize: 2px;
  120. @activeFontWeight: normal;
  121. @activeIconOpacity: 1;
  122. @activeHoverBackground: @hoverBackground;
  123. @subMenuActiveColor: rgba(0, 0, 0, 0.03);
  124. @loadingBackgroundColor: rgba(255, 255, 255, 0.8);
  125. @loadingImage: "@{imagePath}/loader-large.gif";
  126. @loadingPosition: 50% 50%;
  127. /*--------------
  128. Types
  129. ---------------*/
  130. /* Vertical */
  131. @verticalBackground: #FFFFFF;
  132. @verticalItemBackground: none;
  133. @verticalDividerBackground: linear-gradient(to right,
  134. rgba(0, 0, 0, 0.03) 0%,
  135. rgba(0, 0, 0, 0.1) 1.5em,
  136. rgba(0, 0, 0, 0.03) 100%)
  137. ;
  138. /* Secondary */
  139. @secondaryBackground: none;
  140. @secondaryItemBackground: none;
  141. @secondaryTransition: color 0.2s ease;
  142. @secondaryBorderRadius: 0.3125em;
  143. @secondaryMargin: 0.25em;
  144. @secondaryVerticalMargin: 0.3em;
  145. @secondaryVerticalPadding: 0.5em;
  146. @secondaryHorizontalPadding: 1em;
  147. @secondaryLinkOpacity: 0.8;
  148. @secondaryHeaderBackground: none transparent;
  149. @secondaryHeaderBorder: 0.1em solid rgba(0, 0, 0, 0.1);
  150. @secondaryActiveBackground: @transparentBlack;
  151. @secondaryInvertedActiveBackground: @transparentWhite;
  152. /* Pointing */
  153. @secondaryPointingBorderWidth: 3px;
  154. @secondaryPointingVerticalPadding: 0.6em;
  155. @secondaryPointingHorizontalPadding: 0.95em;
  156. @secondaryPointingBorderColor: rgba(0, 0, 0, 0.2);
  157. @secondaryPointingHoverTextColor: @textColor;
  158. @secondaryPointingActiveBorderColor: rgba(0, 0, 0, 0.4);
  159. @secondaryPointingActiveTextColor: @selectedTextColor;
  160. @secondaryPointingHeaderColor: @selectedTextColor;
  161. /* Tiered */
  162. @tieredActiveItemBackground: #FCFCFC;
  163. @tieredActiveMenuBackground: #FCFCFC;
  164. @tieredSubMenuTextTransform: normal;
  165. @tieredSubMenuFontWeight: normal;
  166. @tieredSubMenuColor: @lightTextColor;
  167. @tieredSubMenuHoverBackground: none transparent;
  168. @tieredSubMenuHoverColor: @selectedTextColor;
  169. @tieredSubMenuActiveBackground: none transparent;
  170. @tieredSubMenuActiveColor: @selectedTextColor;
  171. @tieredInvertedSubMenuBackground: rgba(0, 0, 0, 0.2);
  172. /* Tabular */
  173. @tabularBorderColor: #DCDDDE;
  174. @tabularBackgroundColor: #FFFFFF;
  175. @tabularBorderWidth: 1px;
  176. @tabularHorizontalPadding: 1.4em;
  177. @tabularMenuTextColor: @menuTextColor;
  178. @tabularActiveColor: @selectedTextColor;
  179. @tabularMenuActiveBackground: #FFFFFF;
  180. @tabularActiveWeight: bold;
  181. @tabularBorderRadius: 5px;
  182. /* Pagination */
  183. @paginationMinWidth: 3em;
  184. @paginationActiveBackground: rgba(0, 0, 0, 0.03);
  185. /* Labeled Icon */
  186. @labeledIconSize: 1.5em;
  187. @labeledIconMinWidth: 6em;
  188. @labeledIconTextMargin: 0.3em;
  189. /* Text */
  190. @textMenuTransition: opacity 0.2s ease;
  191. /*--------------
  192. Variations
  193. ---------------*/
  194. /* Inverted */
  195. @invertedBackground: @black;
  196. @invertedBoxShadow: none;
  197. @invertedHeaderBackground: rgba(0, 0, 0, 0.3);
  198. @invertedSubMenuColor: @invertedLightTextColor;
  199. /* Inverted Secondary */
  200. @secondaryInvertedColor: @invertedLightTextColor;
  201. @secondaryInvertedHoverColor: @invertedSelectedTextColor;
  202. /* Inverted Menu Divider */
  203. @invertedDividerBackground: linear-gradient(
  204. rgba(255, 255, 255, 0.03) 0%,
  205. rgba(255, 255, 255, 0.1) 50%,
  206. rgba(255, 255, 255, 0.03) 100%)
  207. ;
  208. @invertedVerticalDividerBackground: linear-gradient(to right,
  209. rgba(255, 255, 255, 0.03) 0%,
  210. rgba(255, 255, 255, 0.1) 50%,
  211. rgba(255, 255, 255, 0.03) 100%)
  212. ;
  213. /* Fixed */
  214. @fixedGridMargin: 2.75rem;
  215. /* Attached */
  216. @attachedBoxShadow: 0px 0px 0px 1px #DDDDDD;
  217. /* Sizes */
  218. @small: 0.875rem;
  219. @smallSubMenu: 0.875rem;
  220. @smallWidth: 13rem;
  221. @medium: 1rem;
  222. @mediumWidth: 15rem;
  223. @large: 1.125rem;
  224. @largeSubMenu: 0.875rem;
  225. @largeDropdown: 1rem;
  226. @largeWidth: 18rem;