index.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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.theme.disabled {
  43. background: #c8c8c8;
  44. border: 1px solid #b8b8b8;
  45. }
  46. .button.default {
  47. background: #fff;
  48. color: @holder_color;
  49. border: 1px solid @line_color;
  50. }
  51. .button.white {
  52. background: #fff;
  53. color: @theme_color;
  54. }
  55. .button.error {
  56. background: #f36565;
  57. color: #fff;
  58. }
  59. .button.warn {
  60. background: #f2b252;
  61. color: #fff;
  62. }
  63. .button.border {
  64. background: #fff;
  65. border: 2px solid @theme_color;
  66. }
  67. .button.theme:hover {
  68. background: @theme_color_hover;
  69. }
  70. .button.theme.disabled:hover {
  71. background: darken(#c8c8c8, 5);
  72. }
  73. .button.border:hover {
  74. border-color: @theme_color;
  75. }
  76. .button.default:hover {
  77. border-color: @holder_color;
  78. }
  79. .button.white:hover {
  80. color: @theme_color_hover;
  81. }
  82. .button.error:hover {
  83. background: darken(#f36565, 5);
  84. }
  85. .button.warn:hover {
  86. background: darken(#f2b252, 5);
  87. }