_button.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. .btn {
  2. padding: 0.83rem 1.2rem !important;
  3. font-size: .95rem;
  4. height: 37.6px;
  5. line-height: 1.2;
  6. border-radius: 0.2rem;
  7. box-shadow: $btn-shadow;
  8. cursor: pointer;
  9. }
  10. .btn-group {
  11. .btn {
  12. box-shadow: none;
  13. }
  14. .btn:not(.btn-white):hover {
  15. box-shadow: $shadow-200;
  16. }
  17. .btn.btn-white {
  18. box-shadow: $btn-group-btn-shadow;
  19. }
  20. box-shadow: $btn-shadow;
  21. }
  22. .btn-sm, .btn-group-sm > .btn {
  23. padding: 0.6rem 1rem !important;
  24. font-size: 0.6rem;
  25. line-height: 1;
  26. height: 30px;
  27. }
  28. //a.btn-sm, .btn-group-sm > a.btn {
  29. // padding: 0.6rem 1rem !important;
  30. //}
  31. // --------------------- btn-custom -----------------------
  32. .btn-custom {
  33. background: $custom;
  34. border-color: $custom;
  35. color: $white;
  36. }
  37. .btn-custom:hover {
  38. color: $white;
  39. box-shadow: 0 8px 25px -8px $custom;
  40. }
  41. .btn-outline-custom {
  42. border: 1px solid $custom;
  43. color: $custom;
  44. box-shadow: none;
  45. }
  46. .btn-outline-custom:hover {
  47. background: rgba($custom, .15);
  48. color: $custom;
  49. }
  50. .btn-outline-custom:not(:disabled):not(.disabled):active, .btn-outline-custom:not(:disabled):not(.disabled).active, .show > .btn-outline-custom.dropdown-toggle {
  51. color: #fff;
  52. background-color: $custom;
  53. border-color: $custom;
  54. }
  55. .btn-outline-custom:not(:disabled):not(.disabled):active:focus, .btn-outline-custom:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-custom.dropdown-toggle:focus {
  56. box-shadow: 0 0 0 0.2rem rgba($custom, 0.5);
  57. }
  58. // --------------------- btn-cyan -----------------------
  59. .btn-cyan {
  60. background: $cyan;
  61. border-color: $cyan;
  62. color: $white;
  63. }
  64. .btn-cyan:hover {
  65. color: $white;
  66. box-shadow: 0 8px 25px -8px $cyan;
  67. }
  68. .btn-outline-cyan {
  69. border: 1px solid $cyan;
  70. color: $cyan;
  71. box-shadow: none;
  72. }
  73. .btn-outline-cyan:hover {
  74. background: rgba($cyan, .15);
  75. color: $cyan;
  76. }
  77. .btn-outline-cyan:not(:disabled):not(.disabled):active, .btn-outline-cyan:not(:disabled):not(.disabled).active, .show > .btn-outline-cyan.dropdown-toggle {
  78. color: #fff;
  79. background-color: $cyan;
  80. border-color: $cyan;
  81. }
  82. .btn-outline-cyan:not(:disabled):not(.disabled):active:focus, .btn-outline-cyan:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-cyan.dropdown-toggle:focus {
  83. box-shadow: 0 0 0 0.2rem rgba($cyan, 0.5);
  84. }
  85. .btn.btn-white {
  86. color: $font-color;
  87. }
  88. .btn.btn-white.btn-primary, .btn.btn-white.btn-primary:hover, .btn.btn-white.btn-primary:focus {
  89. color: $white !important;
  90. }
  91. .btn-white:hover {
  92. box-shadow: $btn-shadow-hover !important;
  93. }
  94. .btn-light {
  95. border-color: #f7f7f9!important;
  96. background-color: #f7f7f9!important;
  97. color: #444;
  98. }
  99. .btn-light:hover, .btn-light:focus {
  100. box-shadow: $btn-shadow-hover!important;
  101. color: #444!important;
  102. }
  103. .btn-no-shadow {
  104. box-shadow: none;
  105. }
  106. .btn-outline-primary, .btn-outline-success, .btn-outline-danger, .btn-outline-info, .btn-outline-warning, .btn-outline-dark,
  107. .btn-flat-primary, .btn-flat-success, .btn-flat-danger, .btn-flat-info, .btn-flat-warning, .btn-flat-dark {
  108. box-shadow: none;
  109. }
  110. .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 {
  111. padding: 0.5rem .7rem;
  112. }
  113. // loading
  114. .btn:not(.btn-sm) .spinner-grow, a:not(.btn) .spinner-grow {
  115. margin-bottom: .15rem;
  116. }