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.

223 lines
5.5 KiB

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