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.

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