buttons.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. .btn {
  2. outline:0 none !important;
  3. box-shadow: none!important;
  4. padding: 10.5px 27px;
  5. > .icon-only[class*="fa-"] {
  6. margin: 0;
  7. padding: 0;
  8. }
  9. > [class*="fa-"] {
  10. margin-right: 4px;
  11. &.icon-on-right {
  12. margin-right: 0px;
  13. margin-left: 4px;
  14. }
  15. }
  16. &.btn-white {
  17. background-color: transparent;
  18. color: @white;
  19. &:hover, &:focus, &.focus, &:active, &.active {
  20. background-color:rgba(255,255,255,0.3);
  21. }
  22. }
  23. &.btn-icon {
  24. background: none!important;
  25. border: 0 none!important;
  26. color: @baseFontcolor;
  27. padding: 0.25rem;
  28. > [class*="fa-"] {
  29. margin: 0;
  30. opacity: 0.7;
  31. }
  32. &:hover, &:focus, &.active {
  33. > [class*="fa-"] {
  34. opacity: 1;
  35. }
  36. }
  37. }
  38. }
  39. .btn {
  40. &.btn-xlg {
  41. padding: 16px 32px;
  42. }
  43. &.btn-lg {
  44. padding: 13px 27px;
  45. font-size: 16px;
  46. }
  47. &.btn-sm {
  48. font-size: 12px;
  49. padding: 7.5px 18px;
  50. }
  51. &.btn-xs {
  52. font-size: 12px;
  53. padding: 4px 10px;
  54. }
  55. }
  56. .btn-transparent {
  57. color: @white;
  58. border-color: @white;
  59. &:hover, &:focus,&.active, &:active {
  60. color: @white;
  61. border-color: @white;
  62. background-color: rgba(0,0,0,0.1);
  63. }
  64. }
  65. .btn-link {
  66. background-color: transparent;
  67. border-color: transparent;
  68. &:hover, &:active, &:focus, &.disabled {
  69. background-color: transparent;
  70. text-decoration: none;
  71. }
  72. }
  73. .btn-default {
  74. color: @baseFontcolor;
  75. background-color: @white;
  76. border-color: @default-border-color;
  77. }
  78. .btn-default:focus,
  79. .btn-default.focus {
  80. color: @baseFontcolor;
  81. background-color: @gray-lighter;
  82. border-color: @default-border-color;
  83. }
  84. .btn-default:hover {
  85. color: @baseFontcolor;
  86. background-color: @gray-lighter;
  87. border-color: @default-border-color;
  88. }
  89. .btn-default:active,
  90. .btn-default.active,
  91. .open > .dropdown-toggle.btn-default {
  92. color: @baseFontcolor;
  93. background-color: @gray-lighter;
  94. background-image: none;
  95. border-color: @default-border-color;
  96. }
  97. .btn-default:active:hover,
  98. .btn-default.active:hover,
  99. .open > .dropdown-toggle.btn-default:hover,
  100. .btn-default:active:focus,
  101. .btn-default.active:focus,
  102. .open > .dropdown-toggle.btn-default:focus,
  103. .btn-default:active.focus,
  104. .btn-default.active.focus,
  105. .open > .dropdown-toggle.btn-default.focus {
  106. color: @baseFontcolor;
  107. background-color: @gray-lighter;
  108. border-color: @default-border-color;
  109. }
  110. .btn-default.disabled {
  111. border-color: @default-border-color;
  112. }
  113. .btn-default.disabled:hover,
  114. .btn-default[disabled]:hover,
  115. fieldset[disabled] .btn-default:hover,
  116. .btn-default.disabled:focus,
  117. .btn-default[disabled]:focus,
  118. fieldset[disabled] .btn-default:focus,
  119. .btn-default.disabled.focus,
  120. .btn-default[disabled].focus,
  121. fieldset[disabled] .btn-default.focus {
  122. background-color: @white !important;
  123. border-color: @default-border-color !important;
  124. }
  125. //btn dark
  126. .btn-dark {
  127. color: @white;
  128. background-color: @gray-800;
  129. border-color: @gray-800;
  130. }
  131. .btn-dark:focus,
  132. .btn-dark.focus,
  133. .btn-dark:hover,
  134. .btn-dark:active,
  135. .btn-dark.active,
  136. .open > .dropdown-toggle.btn-dark {
  137. background-color: @gray-900;
  138. background-image: none;
  139. border-color: @gray-900;
  140. color: @white;
  141. }
  142. .btn-dark:active:hover,
  143. .btn-dark.active:hover,
  144. .open > .dropdown-toggle.btn-dark:hover,
  145. .btn-dark:active:focus,
  146. .btn-dark.active:focus,
  147. .open > .dropdown-toggle.btn-dark:focus,
  148. .btn-dark:active.focus,
  149. .btn-dark.active.focus,
  150. .open > .dropdown-toggle.btn-dark.focus {
  151. background-color: @gray-900;
  152. border-color: @gray-900;
  153. }
  154. .btn-dark.disabled {
  155. border-color: @gray-700;
  156. }
  157. .btn-dark.disabled:hover,
  158. .btn-dark[disabled]:hover,
  159. fieldset[disabled] .btn-dark:hover,
  160. .btn-dark.disabled:focus,
  161. .btn-dark[disabled]:focus,
  162. fieldset[disabled] .btn-dark:focus,
  163. .btn-dark.disabled.focus,
  164. .btn-dark[disabled].focus,
  165. fieldset[disabled] .btn-dark.focus {
  166. border-color: @gray-900 !important;
  167. }
  168. .btn-green {
  169. color: @white;
  170. border-color: @success;
  171. background-color: @success;
  172. &:focus, &.focus, &:hover, &.active, &:active {
  173. background-color: @success;
  174. color: @white;
  175. }
  176. }
  177. .bg-primary {
  178. .btn-default, .btn-primary {
  179. color: var(--primary);
  180. border-color: var(--primary);
  181. background-color: @white;
  182. &:focus, &.focus, &:hover, &.active, &:active {
  183. background-color: @gray-lighter;
  184. }
  185. }
  186. }