button.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .btn {
  2. border-radius: 4px;
  3. border: 1px solid transparent;
  4. color: #fff;
  5. display: inline-block;
  6. font-size: 16px;
  7. font-weight: 400;
  8. height: 38px;
  9. line-height: 1.5;
  10. padding: 6px 12px;
  11. text-align: center;
  12. text-decoration: none;
  13. transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  14. user-select: none;
  15. vertical-align: middle;
  16. white-space: nowrap;
  17. }
  18. .btn:focus,
  19. .btn:hover {
  20. text-decoration: none;
  21. }
  22. .btn:focus {
  23. box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
  24. outline: 0;
  25. }
  26. .btn:not(:disabled):not(.disabled) {
  27. cursor: pointer;
  28. }
  29. /* Blue */
  30. .btn.blue {
  31. background-color: #0d6efd;
  32. border-color: #0d6efd;
  33. }
  34. .btn.blue:hover {
  35. background-color: #0b5ed7;
  36. border-color: #0a58ca;
  37. }
  38. .btn.blue:focus {
  39. box-shadow: 0 0 0 0.25rem rgb(49 132 253 / 50%);
  40. }
  41. /* Green */
  42. .btn.green {
  43. background-color: #198754;
  44. border-color: #198754;
  45. }
  46. .btn.green:hover {
  47. background-color: #157347;
  48. border-color: #146c43;
  49. }
  50. .btn.green:focus {
  51. box-shadow: 0 0 0 0.25rem rgb(60 153 110 / 50%);
  52. }
  53. /* Red */
  54. .btn.red {
  55. background-color: #bb2d3b;
  56. border-color: #b02a37;
  57. }
  58. .btn.red:hover {
  59. background-color: #d45562;
  60. border-color: #b02a37;
  61. }
  62. .btn.red:focus {
  63. box-shadow: 0 0 0 0.25rem rgb(225 83 97 / 50%);
  64. }
  65. /* White */
  66. .btn.white {
  67. background-color: #f8f9fa;
  68. border-color: #f8f9fa;
  69. color: #000;
  70. }
  71. .btn.white:hover {
  72. background-color: #cbcbcb;
  73. border-color: #f9fafb;
  74. color: #000;
  75. }
  76. .btn.white:focus {
  77. box-shadow: 0 0 0 0.25rem rgb(211 212 213 / 50%);
  78. }