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.

248 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
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. Button
  3. *******************************/
  4. /*-------------------
  5. Element
  6. --------------------*/
  7. @verticalMargin: 0em;
  8. @horizontalMargin: 0.25em;
  9. @textTransform: none;
  10. @tapColor: transparent;
  11. @fontWeight: bold;
  12. @textColor: rgba(0, 0, 0, 0.6);
  13. @textShadow: none;
  14. @invertedTextShadow: none;
  15. @borderRadius: 0.25em;
  16. /* Shadow */
  17. @shadowDistance: 0em;
  18. @shadowOffset: (@shadowDistance / 2);
  19. @shadowBoxShadow: 0px -@shadowDistance 0px 0px @borderColor inset;
  20. @backgroundColor: #FAFAFA;
  21. @backgroundImage: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.09));
  22. @boxShadow:
  23. @subtleShadow,
  24. 0px 0px 0px 1px @borderColor inset,
  25. @shadowBoxShadow
  26. ;
  27. /* transitions */
  28. @transition:
  29. opacity @transitionDuration @transitionEasing,
  30. background-color @transitionDuration @transitionEasing,
  31. color @transitionDuration @transitionEasing,
  32. box-shadow @transitionDuration @transitionEasing,
  33. background @transitionDuration @transitionEasing
  34. ;
  35. /* Padding */
  36. @verticalPadding: 0.8em;
  37. @horizontalPadding: 1.5em;
  38. /* Icon */
  39. @iconOpacity: 0.8;
  40. @iconDistance: 0.4em;
  41. @iconTransition: opacity @transitionDuration @transitionEasing;
  42. @iconMargin: 0em @iconDistance 0em -(@iconDistance / 2);
  43. @rightIconMargin: 0em -(@iconDistance / 2) 0em @iconDistance;
  44. @iconVerticalAlign: baseline;
  45. /* Loader */
  46. @loaderPath: "@{imagePath}/loader-mini.gif";
  47. @hugeLoaderPath: "@{imagePath}/loader-small.gif";
  48. @massiveLoaderPath: "@{imagePath}/loader-medium.gif";
  49. /*-------------------
  50. Group
  51. --------------------*/
  52. @groupBoxShadow: @subtleShadow;
  53. @groupButtonBoxShadow:
  54. 0px 0px 0px 1px @borderColor inset,
  55. @shadowBoxShadow
  56. ;
  57. @verticalBoxShadow: 0px 0px 0px 1px @borderColor inset;
  58. @groupButtonOffset: 0px 0px 0px -1px;
  59. @verticalGroupOffset: 0px 0px -1px 0px;
  60. /*-------------------
  61. States
  62. --------------------*/
  63. /* Hovered */
  64. @hoverBackgroundColor: '';
  65. @hoverBackgroundImage: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.13));
  66. @hoverBoxShadow: '';
  67. @hoverColor: @hoveredTextColor;
  68. @iconHoverOpacity: 0.85;
  69. /* Focused */
  70. @focusBackgroundColor: '';
  71. @focusBackgroundImage: '';
  72. @focusBoxShadow:
  73. 0px 0px 1px rgba(81, 167, 232, 0.8) inset,
  74. 0px 0px 3px 2px rgba(81, 167, 232, 0.8)
  75. ;
  76. @focusColor: @hoveredTextColor;
  77. @iconFocusOpacity: 0.85;
  78. /* Pressed Down */
  79. @downBackgroundColor: #F1F1F1;
  80. @downBackgroundImage: '';
  81. @downBoxShadow:
  82. 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset,
  83. 0px 1px 4px 0px rgba(0, 0, 0, 0.1) inset !important
  84. ;
  85. @downColor: @pressedTextColor;
  86. /* Active */
  87. @activeBackgroundColor: #DADADA;
  88. @activeBackgroundImage: none;
  89. @activeColor: @selectedTextColor;
  90. @activeBoxShadow:
  91. 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset,
  92. 0px 1px 4px 0px rgba(0, 0, 0, 0.1) inset !important
  93. ;
  94. /* Active + Hovered */
  95. @activeHoverBackgroundColor: #DADADA;
  96. @activeHoverBackgroundImage: none;
  97. @activeHoverBoxShadow:
  98. 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset,
  99. 0px 1px 4px 0px rgba(0, 0, 0, 0.1) inset !important
  100. ;
  101. @activeHoverColor: @selectedTextColor;
  102. /* Loading */
  103. @loadingBackgroundColor: #FFFFFF;
  104. /*-------------------
  105. Types
  106. --------------------*/
  107. /* Or */
  108. @orWidth: 0.3em;
  109. @orHeight: 1.1em;
  110. @orVerticalOffset: -0.1em;
  111. @orHorizontalOffset: -0.9em;
  112. @orTextStyle: normal;
  113. @orTextWeight: bold;
  114. @orCircleSize: 1.8em;
  115. @orLineHeight: 1.6;
  116. @orBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  117. @orSpacerHeight: 0.5em;
  118. @orSpacerColor: transparent;
  119. /* Icon */
  120. @iconButtonOpacity: 0.9;
  121. /* Labeled Icon */
  122. @labeledIconWidth: 1em + (@verticalPadding * 2);
  123. @labeledIconBackgroundColor: rgba(0, 0, 0, 0.05);
  124. @labeledIconPadding: (@horizontalPadding + @labeledIconWidth);
  125. @labeledIconBorder: rgba(0, 0, 0, 0.05);
  126. @labeledIconColor: '';
  127. @labeledIconLeftShadow: -1px 0px 0px 0px @labeledIconBorder inset;
  128. @labeledIconRightShadow: 1px 0px 0px 0px @labeledIconBorder inset;
  129. /* Inverted */
  130. @invertedBorderSize: 2px;
  131. @invertedTextColor: @white;
  132. @invertedTextHoverColor: @hoverColor;
  133. @invertedGroupButtonOffset: 0px 0px 0px -(@invertedBorderSize);
  134. @invertedVerticalGroupButtonOffset: 0px 0px -(@invertedBorderSize) 0px;
  135. /* Basic */
  136. @basicBorderSize: 1px;
  137. @basicColoredBorderSize: 2px;
  138. @basicPadding: @verticalPadding @horizontalPadding;
  139. @basicBackground: transparent;
  140. @basicFontWeight: normal;
  141. @basicBoxShadow: 0px 0px 0px @basicBorderSize rgba(0, 0, 0, 0.1) inset;
  142. @iconOffset: 0.05em;
  143. @basicLoadingColor: #FFFFFF;
  144. @basicBorderRadius: @borderRadius;
  145. @basicTextTransform: none;
  146. /* Basic Hover */
  147. @basicHoverBackground: #FAFAFA;
  148. @basicHoverBoxShadow:
  149. 0px 0px 0px @basicBorderSize rgba(0, 0, 0, 0.1) inset,
  150. 0px 0px 0px 0px rgba(0, 0, 0, 0.1) inset
  151. ;
  152. /* Basic Down */
  153. @basicDownBackground: #F8F8F8;
  154. @basicDownBoxShadow:
  155. 0px 0px 0px @basicBorderSize rgba(0, 0, 0, 0.15) inset,
  156. 0px 1px 4px 0px rgba(0, 0, 0, 0.1) inset
  157. ;
  158. /* Basic Active */
  159. @basicActiveBackground: @transparentBlack;
  160. @basicActiveColor: @selectedTextColor;
  161. /* Basic Inverted */
  162. @basicInvertedBackground: transparent;
  163. @basicInvertedHoverBackground: transparent;
  164. @basicInvertedDownBackground: @transparentWhite;
  165. @basicInvertedActiveBackground: @transparentWhite;
  166. @basicInvertedBoxShadow: 0px 0px 0px @invertedBorderSize #999999 inset;
  167. @basicInvertedHoverBoxShadow: 0px 0px 0px @invertedBorderSize #FFFFFF inset;
  168. @basicInvertedDownBoxShadow: 0px 0px 0px @invertedBorderSize #CCCCCC inset;
  169. @basicInvertedActiveBoxShadow: 0px 0px 0px @invertedBorderSize #DADADA inset;
  170. @basicInvertedColor: @darkWhite;
  171. @basicInvertedHoverColor: @darkWhiteHover;
  172. @basicInvertedDownColor: @darkWhiteActive;
  173. @basicInvertedActiveColor: @invertedTextColor;
  174. /* Basic Group */
  175. @basicGroupBorder: 1px solid @borderColor;
  176. @basicGroupBoxShadow: 0px 0px 0px 1px @borderColor;
  177. /*-------------------
  178. Variations
  179. --------------------*/
  180. /* Colors */
  181. @coloredBackgroundImage: linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
  182. @coloredBoxShadow: @shadowBoxShadow;
  183. /* Compact */
  184. @compactVerticalPadding: (@verticalPadding * 0.75);
  185. @compactHorizontalPadding: (@horizontalPadding * 0.75);
  186. /* Attached */
  187. @attachedOffset: -1px;
  188. @attachedBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  189. @attachedHorizontalPadding: 0.75em;
  190. /* Floated */
  191. @floatedMargin: 0.25em;
  192. /* Animated */
  193. @animationDuration: 0.3s;
  194. @animationEasing: ease;
  195. @fadeScaleHigh: 1.5;
  196. @fadeScaleLow: 0.75;
  197. /* Sizing */
  198. @mini: 0.7rem;
  199. @tiny: 0.8rem;
  200. @small: 0.875rem;
  201. @medium: 1rem;
  202. @large: 1.125rem;
  203. @big: 1.25rem;
  204. @huge: 1.375rem;
  205. @massive: 1.5rem;