_buttons.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. /* Button */
  2. .btn {
  3. padding: .65rem 1.4rem;
  4. font-size: 14px;
  5. opacity: 1;
  6. border-radius: 3px;
  7. &:hover, &:focus {
  8. opacity: 0.9;
  9. transition: all .3s;
  10. }
  11. .btn-label{
  12. display: inline-block;
  13. i {
  14. font-size: 16px;
  15. vertical-align: middle;
  16. margin-right: 2px;
  17. margin-left: -2px;
  18. line-height: 0;
  19. margin-top: -2.5px;
  20. }
  21. &.just-icon i{
  22. margin-left: 0 !important;
  23. margin-right: 0px !important;
  24. }
  25. }
  26. }
  27. /* Button Sizes */
  28. .btn-lg {
  29. font-size: 15px;
  30. border-radius: 3px;
  31. padding: 12.5px 27.5px;
  32. font-weight: $font-weight-normal;
  33. .btn-label{
  34. i {
  35. font-size: 27px;
  36. vertical-align: middle;
  37. margin-right: 2px;
  38. margin-left: -7px;
  39. line-height: 0;
  40. margin-top: -2.5px;
  41. }
  42. &.just-icon i{
  43. margin-left: 0 !important;
  44. margin-right: 0px !important;
  45. }
  46. }
  47. }
  48. .btn-sm {
  49. font-size: 11px;
  50. padding: 7px 13px;
  51. }
  52. .btn-xs {
  53. font-size: 10px;
  54. padding: 5px 9px;
  55. }
  56. .btn {
  57. &.disabled:hover, &:hover:disabled {
  58. opacity: 0.65;
  59. }
  60. }
  61. /* Button Icon */
  62. .btn-icon{
  63. font-size: .9375rem;
  64. height: 2.5125rem;
  65. line-height: normal;
  66. min-width: 2.5125rem;
  67. overflow: hidden;
  68. padding: 0;
  69. position: relative;
  70. width: 2.5125rem;
  71. &.btn-lg {
  72. height: 2.75rem;
  73. min-width: 2.75rem;
  74. width: 2.75rem;
  75. }
  76. &.btn-sm {
  77. height: 2rem;
  78. min-width: 2rem;
  79. width: 2rem;
  80. }
  81. &.btn-xs {
  82. height: 1.6875rem;
  83. min-width: 1.6875rem;
  84. width: 1.6875rem;
  85. }
  86. }
  87. /* Button States */
  88. .btn-white {
  89. background: $white-color !important;
  90. color: $dark-color !important;
  91. &:hover, &:focus, &:disabled {
  92. background: $white-color !important;
  93. color: $dark-color !important;
  94. }
  95. }
  96. .btn-default {
  97. background: $dark-color !important;
  98. color: $white-color !important;
  99. &:hover, &:focus, &:disabled {
  100. background: $dark-color !important;
  101. color: $white-color !important;
  102. }
  103. }
  104. .btn-primary {
  105. background: $primary-color !important;
  106. border-color: $primary-color !important;
  107. &:hover, &:focus, &:disabled {
  108. background: $primary-color !important;
  109. border-color: $primary-color !important;
  110. }
  111. }
  112. .btn-secondary {
  113. background: $secondary-color !important;
  114. border-color: $secondary-color !important;
  115. &:hover, &:focus, &:disabled {
  116. background: $secondary-color !important;
  117. border-color: $secondary-color !important;
  118. }
  119. }
  120. .btn-info {
  121. background: $info-color !important;
  122. border-color: $info-color !important;
  123. &:hover, &:focus, &:disabled {
  124. background: $info-color !important;
  125. border-color: $info-color !important;
  126. }
  127. }
  128. .btn-success {
  129. background: $success-color !important;
  130. border-color: $success-color !important;
  131. &:hover, &:focus, &:disabled {
  132. background: $success-color !important;
  133. border-color: $success-color !important;
  134. }
  135. }
  136. .btn-warning {
  137. background: $warning-color !important;
  138. border-color: $warning-color !important;
  139. color: $white-color !important;
  140. &:hover, &:focus, &:disabled {
  141. background: $warning-color !important;
  142. border-color: $warning-color !important;
  143. color: $white-color !important;
  144. }
  145. }
  146. .btn-danger {
  147. background: $danger-color !important;
  148. border-color: $danger-color !important;
  149. &:hover, &:focus, &:disabled {
  150. background: $danger-color !important;
  151. border-color: $danger-color !important;
  152. }
  153. }
  154. .btn-light{
  155. background: $white-color !important;
  156. border-color: transparent;
  157. &:hover, &:focus, &:disabled {
  158. background: #ebecec !important;
  159. border-color: transparent;
  160. }
  161. }
  162. .btn-dropdown-card-header {
  163. padding: 0;
  164. background: transparent;
  165. color: inherit;
  166. font-size: 15px;
  167. &:after {
  168. display: none;
  169. }
  170. }
  171. /* Button Border */
  172. @mixin btn-border($color) {
  173. color: $color !important;
  174. border: 1px solid $color !important;
  175. }
  176. .btn-border {
  177. background: $transparent-bg !important;
  178. &:hover, &:focus {
  179. background: $transparent-bg !important;
  180. }
  181. &.btn-white {
  182. @include btn-border($white-color);
  183. }
  184. &.btn-default {
  185. @include btn-border($dark-color);
  186. }
  187. &.btn-primary {
  188. @include btn-border($primary-color);
  189. }
  190. &.btn-secondary {
  191. @include btn-border($secondary-color);
  192. }
  193. &.btn-info {
  194. @include btn-border($info-color);
  195. }
  196. &.btn-success {
  197. @include btn-border($success-color);
  198. }
  199. &.btn-warning {
  200. @include btn-border($warning-color);
  201. }
  202. &.btn-danger {
  203. @include btn-border($danger-color);
  204. }
  205. &.btn-light {
  206. border: 1px solid #efefef;
  207. background: #fff !important;
  208. }
  209. }
  210. /* Button Rounded */
  211. .btn-round {
  212. border-radius: 100px !important;
  213. }
  214. /* Button Link */
  215. @mixin btn-link($color) {
  216. color: $color !important;
  217. &:hover {
  218. color: $color !important;
  219. }
  220. }
  221. .btn-link {
  222. border: 0 !important;
  223. background: $transparent-bg !important;
  224. &:hover, &:focus {
  225. text-decoration: underline !important;
  226. background: $transparent-bg !important;
  227. border: 0 !important;
  228. }
  229. &.btn-default {
  230. @include btn-link($dark-color);
  231. }
  232. &.btn-primary {
  233. @include btn-link($primary-color);
  234. }
  235. &.btn-secondary {
  236. @include btn-link($secondary-color);
  237. }
  238. &.btn-info {
  239. @include btn-link($info-color);
  240. }
  241. &.btn-success {
  242. @include btn-link($success-color);
  243. }
  244. &.btn-warning {
  245. @include btn-link($warning-color);
  246. }
  247. &.btn-danger {
  248. @include btn-link($danger-color);
  249. }
  250. }
  251. .toggle-on.btn {
  252. color: $white-color !important;
  253. }
  254. .toggle-handle {
  255. background: $white-color !important;
  256. &:hover {
  257. background: $white-color !important;
  258. }
  259. }
  260. .btn-round .toggle-handle {
  261. border-radius: 50px;
  262. }
  263. .btn-rounded {
  264. border-radius: 60px !important;
  265. }
  266. .btn-full {
  267. width: 100%;
  268. }
  269. .btn-no-radius {
  270. border-radius: 0px;
  271. }