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.

196 lines
4.7 KiB

10 years ago
  1. /*-------------------
  2. Globals Used
  3. --------------------*/
  4. // (Color Variables)
  5. // @transitionDuration
  6. // @transitionEasing
  7. // @iconWidth
  8. // @borderColor
  9. // @textColor, @invertedTextColor
  10. /*-------------------
  11. Button
  12. --------------------*/
  13. @verticalMargin: 0em;
  14. @horizontalMargin: 0.25em;
  15. @textTransform: none;
  16. @fontWeight: bold;
  17. @textColor: rgba(0, 0, 0, 0.6);
  18. @textShadow: none;
  19. @invertedTextShadow: none;
  20. @borderRadius: 0.25em;
  21. @backgroundColor: #FAFAFA;
  22. @backgroundImage: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.09));
  23. @boxShadow:
  24. 0px 0px 0px 1px rgba(0, 0, 0, 0.1) inset,
  25. 0px -@shadowDistance 0px 0px rgba(0, 0, 0, 0.1) inset
  26. ;
  27. /* transitions */
  28. @transition:
  29. opacity @transitionDuration @transitionEasing,
  30. background-color @transitionDuration @transitionEasing,
  31. color @transitionDuration @transitionEasing,
  32. background @transitionDuration @transitionEasing,
  33. box-shadow @transitionDuration @transitionEasing
  34. ;
  35. /* Padding */
  36. @verticalPadding: 0.8em;
  37. @horizontalPadding: 1.5em;
  38. /* Shadow */
  39. @shadowDistance: 0em;
  40. @shadowOffset: (@shadowDistance / 2);
  41. /* Icon */
  42. @iconMargin: 0.6em;
  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. /*-------------------
  52. States
  53. --------------------*/
  54. @hoverBackgroundColor: '';
  55. @hoverBackgroundImage: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.13));
  56. @hoverBoxShadow: '';
  57. @iconHoverOpacity: 0.85;
  58. @focusBackgroundColor: '';
  59. @focusBackgroundImage: '';
  60. @focusBoxShadow: 0 0 1px rgba(81, 167, 232, 0.8) inset, 0 0 3px 2px rgba(81, 167, 232, 0.8);
  61. @iconFocusOpacity: 0.85;
  62. @downBackgroundColor: #F1F1F1;
  63. @downBackgroundImage: '';
  64. @downBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset !important;
  65. @activeBackgroundColor: #DDDDDD;
  66. @activeBackgroundImage: none;
  67. @activeBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05) inset !important;
  68. @loadingBackgroundColor: #FFFFFF;
  69. /*-------------------
  70. Types
  71. --------------------*/
  72. /* Or */
  73. @orWidth: 0.3em;
  74. @orHeight: 1.1em;
  75. @orVerticalOffset: -0.1em;
  76. @orHorizontalOffset: -0.9em;
  77. @orTextStyle: normal;
  78. @orTextWeight: bold;
  79. @orCircleSize: 1.8em;
  80. @orLineHeight: 1.6;
  81. @orBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  82. @orSpacerHeight: 0.5em;
  83. @orSpacerColor: @white;
  84. /* Icon */
  85. @iconButtonOpacity: 0.9;
  86. /* Labeled Icon */
  87. @labeledIconWidth: @iconWidth + (@verticalPadding * 2);
  88. @labeledIconBackgroundColor: rgba(0, 0, 0, 0.05);
  89. @labeledIconPadding: (@horizontalPadding + @labeledIconWidth);
  90. @labeledIconBorder: rgba(0, 0, 0, 0.05);
  91. @labeledIconColor: '';
  92. @labeledIconLeftShadow: -1px 0px 0px 0px @labeledIconBorder inset;
  93. @labeledIconRightShadow: 1px 0px 0px 0px @labeledIconBorder inset;
  94. /* Basic */
  95. @basicBoxShadow: 0px 0px 0px 1px @borderColor;
  96. @iconOffset: 0.05em;
  97. @basicLoadingColor: #FFFFFF;
  98. @basicHoverBackground: #FAFAFA;
  99. @basicHoverBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
  100. @basicDownBackground: rgba(0, 0, 0, 0.02);
  101. @basicDownBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2);
  102. @basicActiveBackground: @transparentBlack;
  103. @basicActiveColor: @selectedTextColor;
  104. /* Basic Inverted */
  105. @basicInvertedBackground: transparent;
  106. @basicInvertedHoverBackground: transparent;
  107. @basicInvertedDownBackground: @transparentWhite;
  108. @basicInvertedActiveBackground: @transparentWhite;
  109. @basicInvertedBoxShadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.5);
  110. @basicInvertedHoverBoxShadow: 0px 0px 0px 2px @selectedWhiteBorderColor;
  111. @basicInvertedDownBoxShadow: 0px 0px 0px 2px @selectedWhiteBorderColor;
  112. @basicInvertedActiveBoxShadow: 0px 0px 0px 2px @selectedWhiteBorderColor;
  113. @basicInvertedColor: @darkWhite;
  114. @basicInvertedHoverColor: @darkWhiteHover;
  115. @basicInvertedDownColor: @darkWhiteActive;
  116. @basicInvertedActiveColor: @invertedTextColor;
  117. /* Basic Group */
  118. @basicGroupBorder: 1px solid @borderColor;
  119. @basicGroupBoxShadow: 0px 0px 0px 1px @borderColor;
  120. /*-------------------
  121. Variations
  122. --------------------*/
  123. /* Colors */
  124. @coloredBackgroundImage: linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
  125. @coloredBoxShadow: none;
  126. /* Compact */
  127. @compactVerticalPadding: (@verticalPadding * 0.75);
  128. @compactHorizontalPadding: (@horizontalPadding * 0.75);
  129. /* Attached */
  130. @attachedOffset: -1px;
  131. @attachedBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  132. @attachedHorizontalPadding: 0.75em;
  133. /* Floated */
  134. @floatedMargin: 0.25em;
  135. /* Animated */
  136. @animationDuration: 0.3s;
  137. @animationEasing: ease;
  138. @fadeScaleHigh: 1.5;
  139. @fadeScaleLow: 0.75;
  140. /* Sizing */
  141. @mini: 0.7rem;
  142. @tiny: 0.8rem;
  143. @small: 0.875rem;
  144. @medium: 1rem;
  145. @large: 1.125rem;
  146. @big: 1.25rem;
  147. @huge: 1.375rem;
  148. @massive: 1.5rem;