_button.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .btn {
  2. padding: 0.54rem 1.2rem !important;
  3. height: 36px;
  4. line-height: 1.2;
  5. border-radius: 0.2rem;
  6. box-shadow: $btn-shadow;
  7. cursor: pointer;
  8. }
  9. .btn-group-sm>.btn, .btn-sm, .btn-lg {
  10. border-radius: 0.2rem;
  11. }
  12. .btn-primary {
  13. color: $white;
  14. }
  15. .btn-sm, .btn-xs {
  16. padding: .54rem .9rem!important
  17. }
  18. a.btn, span.btn {
  19. line-height: 1.4;
  20. }
  21. div.btn {
  22. line-height: 1.3;
  23. }
  24. div.btn.btn-sm, .btn-group-sm > div.btn, span.btn.btn-sm, .btn-group-sm > span.btn {
  25. line-height: 1.2;
  26. }
  27. a.btn-sm, .btn-group-sm > a.btn {
  28. line-height: 1.1;
  29. }
  30. .btn-warning, .btn.btn-warning:hover, .btn.btn-warning:focus, .btn.btn-warning.active {
  31. color: white;
  32. }
  33. .btn-sm, .btn-group-sm > .btn {
  34. //padding: 0.45rem 1rem !important;
  35. font-size: 12px;
  36. line-height: 1.1;
  37. height: 30px;
  38. }
  39. .btn-default {
  40. background: white;
  41. border-color: white;
  42. }
  43. .btn-default:hover, .btn-default:focus, .btn-default.active {
  44. background: white;
  45. box-shadow: $shadow-100;
  46. }
  47. .btn-group {
  48. .btn:not(.btn-white):hover {
  49. box-shadow: $shadow-200;
  50. }
  51. .btn {
  52. box-shadow: none!important;
  53. }
  54. box-shadow: $btn-white-shadow;
  55. }
  56. // --------------------- btn-custom -----------------------
  57. .btn-custom {
  58. @include button-variant($custom, $custom);
  59. color: #fff;
  60. }
  61. .btn-outline-custom {
  62. @include button-outline-variant($custom, $custom);
  63. }
  64. // --------------------- btn-cyan -----------------------
  65. .btn-cyan {
  66. @include button-variant($cyan, $cyan);
  67. }
  68. .btn-outline-cyan {
  69. @include button-outline-variant($cyan, $cyan);
  70. }
  71. .btn.btn-white, .btn.btn-default {
  72. color: $font-color;
  73. box-shadow: $btn-white-shadow;
  74. }
  75. .btn.btn-white.btn-primary, .btn.btn-white.btn-primary:hover, .btn.btn-white.btn-primary:focus {
  76. color: $white !important;
  77. }
  78. .btn-white:hover,.btn-white:focus,.btn-white.active {
  79. box-shadow: $btn-shadow-hover !important;
  80. }
  81. .btn-light {
  82. border-color: #f7f7f9!important;
  83. background-color: #f7f7f9!important;
  84. color: #444;
  85. }
  86. .btn-light:hover, .btn-light:focus {
  87. box-shadow: $btn-shadow-hover!important;
  88. color: #444!important;
  89. }
  90. .btn-no-shadow {
  91. box-shadow: none;
  92. }
  93. .btn-outline-primary, .btn-outline-success, .btn-outline-danger, .btn-outline-info, .btn-outline-warning, .btn-outline-dark,
  94. .btn-flat-primary, .btn-flat-success, .btn-flat-danger, .btn-flat-info, .btn-flat-warning, .btn-flat-dark {
  95. box-shadow: none;
  96. }
  97. .input-group-sm > .form-control, .input-group-sm > .custom-select, .input-group-sm > .input-group-prepend > .input-group-text, .input-group-sm > .input-group-append > .input-group-text, .input-group-sm > .input-group-prepend > .btn, .input-group-sm > .input-group-append > .btn {
  98. padding: 0.5rem .7rem;
  99. }
  100. // loading
  101. .btn:not(.btn-sm) .spinner-grow, a:not(.btn) .spinner-grow {
  102. margin-bottom: .15rem;
  103. }
  104. .btn-outline {
  105. background-color: transparent;
  106. }
  107. .btn-primary.btn-outline {
  108. color: $primary;
  109. border-color: $primary;
  110. }
  111. .btn-info.btn-outline {
  112. color: $info;
  113. border-color: $info;
  114. }
  115. .btn-success.btn-outline {
  116. color: $success;
  117. border-color: $success;
  118. }
  119. .btn-danger.btn-outline {
  120. color: $danger;
  121. border-color: $danger;
  122. }
  123. .btn-warning.btn-outline {
  124. color: $warning;
  125. border-color: $warning;
  126. }
  127. .btn-primary.btn-outline.disabled,
  128. .btn-primary.btn-outline:disabled {
  129. background: transparent;
  130. }
  131. .btn-info.btn-outline:hover, .btn-success.btn-outline:hover, .btn-danger.btn-outline:hover, .btn-warning.btn-outline:hover,
  132. //.btn-primary.btn-outline:focus, .btn-info.btn-outline:focus, .btn-success.btn-outline:focus, .btn-danger.btn-outline:focus, .btn-warning.btn-outline:focus,
  133. .btn-info.btn-outline.active, .btn-success.btn-outline.active, .btn-danger.btn-outline.active, .btn-warning.btn-outline.active{
  134. color: $white;
  135. }
  136. .btn-primary.btn-outline:hover,
  137. .btn-primary.btn-outline.active {
  138. background: rgba($primary, .05);
  139. }