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.

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