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.

143 lines
3.6 KiB

  1. /*******************************
  2. Button
  3. *******************************/
  4. /*-------------------
  5. Element
  6. --------------------*/
  7. @borderRadius: @circularRadius;
  8. @textTransform: uppercase;
  9. @backgroundColor: #FFFFFF;
  10. @backgroundImage: none;
  11. @fontWeight: bold;
  12. @textColor: rgba(0, 0, 0, 0.6);
  13. @boxShadow:
  14. 0px 0px 0px 2px rgba(0, 0, 0, 0.2) inset
  15. ;
  16. /* Padding */
  17. @verticalPadding: 1.25em;
  18. @horizontalPadding: 3em;
  19. /* Icon */
  20. @iconOpacity: 0.8;
  21. @iconDistance: 0.4em;
  22. @iconTransition: opacity @transitionDuration @transitionEasing;
  23. @iconMargin: 0em @iconDistance 0em -(@iconDistance / 2);
  24. @iconVerticalAlign: top;
  25. /* Loader */
  26. @loaderPath: "@{imagePath}/loader-mini.gif";
  27. @hugeLoaderPath: "@{imagePath}/loader-small.gif";
  28. @massiveLoaderPath: "@{imagePath}/loader-medium.gif";
  29. /*-------------------
  30. Group
  31. --------------------*/
  32. @verticalBoxShadow: 0px 0px 0px 1px @borderColor inset;
  33. /*-------------------
  34. States
  35. --------------------*/
  36. @hoverBackgroundColor: #FAFAFA;
  37. @hoverBackgroundImage: none;
  38. @hoverBoxShadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.3) inset;
  39. @downBackgroundColor: #F0F0F0;
  40. @downBackgroundImage: none;
  41. @downBoxShadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.35) inset !important;
  42. @activeBackgroundColor: #DDDDDD;
  43. @activeBackgroundImage: none;
  44. @activeBoxShadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.3) inset !important;
  45. @loadingBackgroundColor: #FFFFFF;
  46. /*-------------------
  47. Types
  48. --------------------*/
  49. /* Labeled Icon */
  50. @labeledIconWidth: 1em + (@verticalPadding * 2);
  51. @labeledIconBackgroundColor: transparent;
  52. @labeledIconPadding: (@horizontalPadding + 1em);
  53. @labeledIconBorder: rgba(0, 0, 0, 0.05);
  54. @labeledIconColor: '';
  55. @labeledIconLeftShadow: none;
  56. @labeledIconRightShadow: none;
  57. /* Basic */
  58. @basicBoxShadow: 0px 0px 0px 1px @borderColor;
  59. @iconOffset: 0.05em;
  60. @basicLoadingColor: #FFFFFF;
  61. @basicHoverBackground: #FAFAFA;
  62. @basicHoverBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15);
  63. @basicDownBackground: rgba(0, 0, 0, 0.02);
  64. @basicDownBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2);
  65. @basicActiveBackground: @transparentBlack;
  66. @basicActiveColor: @selectedTextColor;
  67. /* Basic Inverted */
  68. @basicInvertedBackground: transparent;
  69. @basicInvertedHoverBackground: transparent;
  70. @basicInvertedDownBackground: @transparentWhite;
  71. @basicInvertedActiveBackground: @transparentWhite;
  72. @basicInvertedBoxShadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.5);
  73. @basicInvertedHoverBoxShadow: 0px 0px 0px 2px @selectedWhiteBorderColor;
  74. @basicInvertedDownBoxShadow: 0px 0px 0px 2px @selectedWhiteBorderColor;
  75. @basicInvertedActiveBoxShadow: 0px 0px 0px 2px @selectedWhiteBorderColor;
  76. @basicInvertedColor: @darkWhite;
  77. @basicInvertedHoverColor: @darkWhiteHover;
  78. @basicInvertedDownColor: @darkWhiteActive;
  79. @basicInvertedActiveColor: @invertedTextColor;
  80. /* Basic Group */
  81. @basicGroupBorder: 1px solid @borderColor;
  82. @basicGroupBoxShadow: 0px 0px 0px 1px @borderColor;
  83. /*-------------------
  84. Variations
  85. --------------------*/
  86. /* Colors */
  87. @coloredBackgroundImage: linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.1));
  88. @coloredBoxShadow: @shadowBoxShadow;
  89. /* Compact */
  90. @compactVerticalPadding: (@verticalPadding * 0.75);
  91. @compactHorizontalPadding: (@horizontalPadding * 0.75);
  92. /* Attached */
  93. @attachedOffset: -1px;
  94. @attachedBoxShadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
  95. @attachedHorizontalPadding: 0.75em;
  96. /* Floated */
  97. @floatedMargin: 0.25em;
  98. /* Animated */
  99. @animationDuration: 0.3s;
  100. @animationEasing: ease;
  101. @fadeScaleHigh: 1.5;
  102. @fadeScaleLow: 0.75;
  103. /* Sizing */
  104. @mini: 0.7rem;
  105. @tiny: 0.8rem;
  106. @small: 0.875rem;
  107. @medium: 1rem;
  108. @large: 1.125rem;
  109. @big: 1.25rem;
  110. @huge: 1.375rem;
  111. @massive: 1.5rem;