_button.scss 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .btn {
  2. padding: 0.54rem 1.2rem !important;
  3. height: 38px;
  4. line-height: 1.2;
  5. border-radius: 0.2rem;
  6. box-shadow: $btn-shadow;
  7. cursor: pointer;
  8. }
  9. a.btn {
  10. line-height: 1.3;
  11. }
  12. .btn-warning {
  13. color: white;
  14. }
  15. .btn-group {
  16. .btn {
  17. box-shadow: none;
  18. }
  19. .btn:not(.btn-white):hover {
  20. box-shadow: $shadow-200;
  21. }
  22. .btn.btn-white {
  23. box-shadow: $btn-group-btn-shadow;
  24. }
  25. box-shadow: $btn-shadow;
  26. }
  27. .btn-sm, .btn-group-sm > .btn {
  28. //padding: 0.45rem 1rem !important;
  29. font-size: 12px;
  30. line-height: 1.1;
  31. height: 30px;
  32. }
  33. //a.btn-sm, .btn-group-sm > a.btn {
  34. // line-height: 1.4;
  35. //}
  36. // --------------------- btn-custom -----------------------
  37. .btn-custom {
  38. @include button-variant($custom, $custom);
  39. }
  40. .btn-outline-custom {
  41. @include button-outline-variant($custom, $custom);
  42. }
  43. // --------------------- btn-cyan -----------------------
  44. .btn-cyan {
  45. @include button-variant($cyan, $cyan);
  46. }
  47. .btn-outline-cyan {
  48. @include button-outline-variant($cyan, $cyan);
  49. }
  50. .btn.btn-white {
  51. color: $font-color;
  52. }
  53. .btn.btn-white.btn-primary, .btn.btn-white.btn-primary:hover, .btn.btn-white.btn-primary:focus {
  54. color: $white !important;
  55. }
  56. .btn-white:hover,.btn-white:focus,.btn-white.active {
  57. box-shadow: $btn-shadow-hover !important;
  58. }
  59. .btn-light {
  60. border-color: #f7f7f9!important;
  61. background-color: #f7f7f9!important;
  62. color: #444;
  63. }
  64. .btn-light:hover, .btn-light:focus {
  65. box-shadow: $btn-shadow-hover!important;
  66. color: #444!important;
  67. }
  68. .btn-no-shadow {
  69. box-shadow: none;
  70. }
  71. .btn-outline-primary, .btn-outline-success, .btn-outline-danger, .btn-outline-info, .btn-outline-warning, .btn-outline-dark,
  72. .btn-flat-primary, .btn-flat-success, .btn-flat-danger, .btn-flat-info, .btn-flat-warning, .btn-flat-dark {
  73. box-shadow: none;
  74. }
  75. .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 {
  76. padding: 0.5rem .7rem;
  77. }
  78. // loading
  79. .btn:not(.btn-sm) .spinner-grow, a:not(.btn) .spinner-grow {
  80. margin-bottom: .15rem;
  81. }