button.css 1.4 KB

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