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.

177 lines
4.0 KiB

  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. @labeledIconLeftShadow: -1px 0px 0px 0px @labeledIconBorder inset;
  92. @labeledIconRightShadow: 1px 0px 0px 0px @labeledIconBorder inset;
  93. /* Basic */
  94. @basicBoxShadow: 0px 0px 0px 1px @borderColor;
  95. @basicIconOffset: 0.05em;
  96. @basicLoadingColor: #FFFFFF;
  97. @basicHoverBackground: none transparent;
  98. @basicHoverBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
  99. @basicDownBackground: rgba(0, 0, 0, 0.02);
  100. @basicDownBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2);
  101. @basicActiveBackground: @transparentBlack;
  102. @basicActiveColor: @selectedTextColor;
  103. @basicGroupBorder: 1px solid @borderColor;
  104. @basicGroupBoxShadow: 0px 0px 0px 1px @borderColor;
  105. /*-------------------
  106. Variations
  107. --------------------*/
  108. /* Colors */
  109. @coloredBackgroundImage: linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
  110. @coloredBoxShadow: none;
  111. /* Compact */
  112. @compactVerticalPadding: (@verticalPadding * 0.75);
  113. @compactHorizontalPadding: (@horizontalPadding * 0.75);
  114. /* Attached */
  115. @attachedOffset: -1px;
  116. @attachedBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  117. @attachedHorizontalPadding: 0.75em;
  118. /* Floated */
  119. @floatedMargin: 0.25em;
  120. /* Animated */
  121. @animationDuration: 0.3s;
  122. @animationEasing: ease;
  123. @fadeScaleHigh: 1.5;
  124. @fadeScaleLow: 0.75;
  125. /* Sizing */
  126. @mini: 0.7rem;
  127. @tiny: 0.8rem;
  128. @small: 0.875rem;
  129. @medium: 1rem;
  130. @large: 1.125rem;
  131. @big: 1.25rem;
  132. @huge: 1.375rem;
  133. @massive: 1.5rem;