_button.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. a.btn, div.btn, span.btn {
  10. line-height: 1.4;
  11. }
  12. div.btn.btn-sm, .btn-group-sm > div.btn, span.btn.btn-sm, .btn-group-sm > span.btn {
  13. line-height: 1.2;
  14. }
  15. a.btn-sm, .btn-group-sm > a.btn {
  16. line-height: 1.1;
  17. }
  18. .btn-warning {
  19. color: white;
  20. }
  21. .btn-group {
  22. .btn {
  23. box-shadow: none;
  24. }
  25. .btn:not(.btn-white):hover {
  26. box-shadow: $shadow-200;
  27. }
  28. .btn.btn-white {
  29. box-shadow: $btn-group-btn-shadow;
  30. }
  31. box-shadow: $btn-shadow;
  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. //a.btn-sm, .btn-group-sm > a.btn {
  48. // line-height: 1.4;
  49. //}
  50. // --------------------- btn-custom -----------------------
  51. .btn-custom {
  52. @include button-variant($custom, $custom);
  53. color: #fff;
  54. }
  55. .btn-outline-custom {
  56. @include button-outline-variant($custom, $custom);
  57. }
  58. // --------------------- btn-cyan -----------------------
  59. .btn-cyan {
  60. @include button-variant($cyan, $cyan);
  61. }
  62. .btn-outline-cyan {
  63. @include button-outline-variant($cyan, $cyan);
  64. }
  65. .btn.btn-white {
  66. color: $font-color;
  67. }
  68. .btn.btn-white.btn-primary, .btn.btn-white.btn-primary:hover, .btn.btn-white.btn-primary:focus {
  69. color: $white !important;
  70. }
  71. .btn-white:hover,.btn-white:focus,.btn-white.active {
  72. box-shadow: $btn-shadow-hover !important;
  73. }
  74. .btn-light {
  75. border-color: #f7f7f9!important;
  76. background-color: #f7f7f9!important;
  77. color: #444;
  78. }
  79. .btn-light:hover, .btn-light:focus {
  80. box-shadow: $btn-shadow-hover!important;
  81. color: #444!important;
  82. }
  83. .btn-no-shadow {
  84. box-shadow: none;
  85. }
  86. .btn-outline-primary, .btn-outline-success, .btn-outline-danger, .btn-outline-info, .btn-outline-warning, .btn-outline-dark,
  87. .btn-flat-primary, .btn-flat-success, .btn-flat-danger, .btn-flat-info, .btn-flat-warning, .btn-flat-dark {
  88. box-shadow: none;
  89. }
  90. .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 {
  91. padding: 0.5rem .7rem;
  92. }
  93. // loading
  94. .btn:not(.btn-sm) .spinner-grow, a:not(.btn) .spinner-grow {
  95. margin-bottom: .15rem;
  96. }