_button.scss 2.7 KB

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