index.less 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @import '../../app.less';
  2. .button {
  3. text-align: center;
  4. cursor: pointer;
  5. display: inline-block;
  6. vertical-align: middle;
  7. transition: all 0.25s;
  8. border-radius: 2px;
  9. }
  10. .button.basic {
  11. padding: 4px 24px;
  12. line-height: 20px;
  13. font-size: 14px;
  14. }
  15. .button.small {
  16. padding: 3px 14px;
  17. line-height: 18px;
  18. font-size: 12px;
  19. }
  20. .button.lager {
  21. font-size: 18px;
  22. font-weight: 600;
  23. line-height: 28px;
  24. padding: 8px 16px;
  25. }
  26. .button.disabled {
  27. cursor: no-drop;
  28. }
  29. .button.basic.radius {
  30. border-radius: 17px;
  31. }
  32. .button.small.radius {
  33. border-radius: 14px;
  34. }
  35. .button.lager.radius {
  36. border-radius: 36px;
  37. }
  38. .button.theme {
  39. background: @theme_color;
  40. color: #fff;
  41. }
  42. .button.default {
  43. background: #fff;
  44. color: @holder_color;
  45. border: 1px solid @line_color;
  46. }
  47. .button.white {
  48. background: #fff;
  49. color: @theme_color;
  50. }
  51. .button.error {
  52. background: #f36565;
  53. color: #fff;
  54. }
  55. .button.warn {
  56. background: #f2b252;
  57. color: #fff;
  58. }
  59. .button.border {
  60. background: #fff;
  61. border: 2px solid @theme_color;
  62. }
  63. .button.theme:hover {
  64. background: @theme_color_hover;
  65. }
  66. .button.border:hover {
  67. border-color: @theme_color;
  68. }
  69. .button.default:hover {
  70. border-color: @holder_color;
  71. }
  72. .button.white:hover {
  73. color: @theme_color_hover;
  74. }
  75. .button.error:hover {
  76. background: darken(#f36565, 5);
  77. }
  78. .button.warn:hover {
  79. background: darken(#f2b252, 5);
  80. }