index.less 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. box-sizing: border-box;
  10. }
  11. .button.basic {
  12. padding: 4px 24px;
  13. line-height: 20px;
  14. font-size: 14px;
  15. }
  16. .button.small {
  17. padding: 3px 14px;
  18. line-height: 18px;
  19. font-size: 12px;
  20. }
  21. .button.lager {
  22. font-size: 14px;
  23. line-height: 24px;
  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.link {
  47. border: none;
  48. color: #686872;
  49. }
  50. .button.default {
  51. background: #fff;
  52. color: @holder_color;
  53. border: 1px solid @line_color;
  54. }
  55. .button.white {
  56. background: #fff;
  57. color: @theme_color;
  58. }
  59. .button.error {
  60. background: #f36565;
  61. color: #fff;
  62. }
  63. .button.warn {
  64. background: #f2b252;
  65. color: #fff;
  66. }
  67. .button.border {
  68. background: #fff;
  69. border: 2px solid @theme_color;
  70. }
  71. .button.link:hover {
  72. color: @theme_color;
  73. }
  74. .button.theme:hover {
  75. background: @theme_color_hover;
  76. }
  77. .button.theme.disabled:hover {
  78. background: darken(#c8c8c8, 5);
  79. }
  80. .button.border:hover {
  81. border-color: @theme_color;
  82. }
  83. .button.default:hover {
  84. border-color: @holder_color;
  85. }
  86. .button.white:hover {
  87. color: @theme_color_hover;
  88. }
  89. .button.error:hover {
  90. background: darken(#f36565, 5);
  91. }
  92. .button.warn:hover {
  93. background: darken(#f2b252, 5);
  94. }