buttons.less 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. // Buttons styles
  2. // -------------------------
  3. .btn {
  4. background: none;
  5. background-color: @bodyBackground;
  6. .box-shadow(none);
  7. color: @grayLight;
  8. font-weight: bold;
  9. i {
  10. margin-right: 6px;
  11. }
  12. &:hover, &:active {
  13. background-color: @white;
  14. border-color: lighten(@grayLight, 5%);
  15. color: @grayDark;
  16. }
  17. &.btn-primary {
  18. background-color: @bluePale;
  19. border-color: darken(@bluePale, 5%);
  20. color: @white;
  21. text-shadow: 0px 1px 0px darken(@bluePale, 15%);
  22. &:hover, &:active {
  23. color: @white;
  24. &:enabled {
  25. background-color: saturate(@bluePale, 20%);
  26. border-color: darken(saturate(@bluePale, 20%), 5%);
  27. }
  28. }
  29. }
  30. &.btn-info {
  31. background-color: desaturate(@bluePale, 25%);
  32. border-color: darken(desaturate(@bluePale, 25%), 5%);
  33. color: @white;
  34. text-shadow: 0px 1px 0px darken(desaturate(@bluePale, 25%), 15%);
  35. &:hover, &:active {
  36. color: @white;
  37. &:enabled {
  38. background-color: desaturate(@bluePale, 10%);
  39. border-color: darken(desaturate(@bluePale, 10%), 5%);
  40. }
  41. }
  42. }
  43. &.btn-success {
  44. background-color: desaturate(@green, 15%);
  45. border-color: darken(desaturate(@green, 15%), 5%);
  46. color: @white;
  47. text-shadow: 0px 1px 0px darken(@green, 15%);
  48. &:hover, &:active {
  49. color: @white;
  50. &:enabled {
  51. background-color: @green;
  52. border-color: darken(@green, 5%);
  53. }
  54. }
  55. }
  56. &.btn-warning {
  57. background-color: desaturate(@orange, 15%);
  58. border-color: darken(desaturate(@orange, 15%), 5%);
  59. color: @white;
  60. text-shadow: 0px 1px 0px darken(@orange, 15%);
  61. &:hover, &:active {
  62. color: @white;
  63. &:enabled {
  64. background-color: @orange;
  65. border-color: darken(@orange, 5%);
  66. }
  67. }
  68. }
  69. &.btn-danger {
  70. background-color: @red;
  71. border-color: darken(@red, 5%);
  72. color: @white;
  73. text-shadow: 0px 1px 0px darken(@red, 15%);
  74. &:hover, &:active {
  75. color: @white;
  76. &:enabled {
  77. background-color: saturate(@red, 20%);
  78. border-color: darken(saturate(@red, 20%), 5%);
  79. }
  80. }
  81. }
  82. &.btn-inverse {
  83. background-color: @textColor;
  84. border-color: darken(@textColor, 5%);
  85. color: @white;
  86. text-shadow: 0px 1px 0px darken(@textColor, 15%);
  87. &:hover, &:active {
  88. background-color: lighten(@textColor, 10%);
  89. &:enabled {
  90. background-color: darken(@textColor, 5%);
  91. border-color: darken(@textColor, 10%);
  92. }
  93. }
  94. }
  95. &.btn-link {
  96. background: none;
  97. border: none;
  98. color: @grayLight;
  99. &:hover, &:active, &:focus {
  100. color: @textColor;
  101. &:enabled {
  102. text-decoration: none;
  103. }
  104. }
  105. }
  106. &.btn-icon {
  107. padding-left: 0px !important;
  108. padding-right: 0px !important;
  109. width: 32px;
  110. text-align: center;
  111. i {
  112. margin: 0px;
  113. }
  114. }
  115. }
  116. a.btn-link {
  117. &:hover, &:active, &:focus {
  118. color: @textColor;
  119. text-decoration: none;
  120. }
  121. }