index.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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: 14px;
  22. line-height: 24px;
  23. padding: 8px 16px;
  24. }
  25. .button.disabled {
  26. cursor: no-drop;
  27. }
  28. .button.basic.radius {
  29. border-radius: 17px;
  30. }
  31. .button.small.radius {
  32. border-radius: 14px;
  33. }
  34. .button.lager.radius {
  35. border-radius: 36px;
  36. }
  37. .button.theme {
  38. background: @theme_color;
  39. color: #fff;
  40. }
  41. .button.theme.disabled {
  42. background: #c8c8c8;
  43. border: 1px solid #b8b8b8;
  44. }
  45. .button.default {
  46. background: #fff;
  47. color: @holder_color;
  48. border: 1px solid @line_color;
  49. }
  50. .button.white {
  51. background: #fff;
  52. color: @theme_color;
  53. }
  54. .button.error {
  55. background: #f36565;
  56. color: #fff;
  57. }
  58. .button.warn {
  59. background: #f2b252;
  60. color: #fff;
  61. }
  62. .button.border {
  63. background: #fff;
  64. border: 2px solid @theme_color;
  65. }
  66. .button.theme:hover {
  67. background: @theme_color_hover;
  68. }
  69. .button.theme.disabled:hover {
  70. background: darken(#c8c8c8, 5);
  71. }
  72. .button.border:hover {
  73. border-color: @theme_color;
  74. }
  75. .button.default:hover {
  76. border-color: @holder_color;
  77. }
  78. .button.white:hover {
  79. color: @theme_color_hover;
  80. }
  81. .button.error:hover {
  82. background: darken(#f36565, 5);
  83. }
  84. .button.warn:hover {
  85. background: darken(#f2b252, 5);
  86. }