button.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. .pear-btn {
  2. display: inline-block;
  3. line-height: 38px;
  4. white-space: nowrap;
  5. cursor: pointer;
  6. text-align: center;
  7. box-sizing: border-box;
  8. outline: none;
  9. transition: 0.1s;
  10. font-weight: 500;
  11. padding: 0 18px;
  12. height: 38px;
  13. font-size: 14px;
  14. background-color: white;
  15. border: 1px solid #dcdfe6;
  16. border-radius: 2px;
  17. }
  18. .pear-btn i {
  19. font-size: 13px;
  20. }
  21. .pear-btn:hover {
  22. opacity: .8;
  23. filter: alpha(opacity=80);
  24. color: #409eff;
  25. background-color: #ECF5FF;
  26. }
  27. .pear-btn-danger,
  28. .pear-btn-warming,
  29. .pear-btn-success,
  30. .pear-btn-primary {
  31. height: 37px;
  32. line-height: 37px;
  33. color: #fff !important
  34. }
  35. /** Button 主题 */
  36. .pear-btn-primary {
  37. background-color: #2D8CF0 !important;
  38. }
  39. .pear-btn-danger {
  40. background-color: #f56c6c !important;
  41. }
  42. .pear-btn-warming {
  43. background-color: #f6ad55 !important;
  44. }
  45. .pear-btn-success {
  46. background-color: #36b368 !important;
  47. }
  48. .pear-btn[round] {
  49. border-radius: 50px;
  50. }
  51. .pear-btn-primary[plain] {
  52. color: #409eff !important;
  53. background: #ecf5ff 10% !important;
  54. }
  55. .pear-btn-primary[plain]:hover {
  56. color: #fff !important;
  57. background-color: #2d8cf0!important
  58. }
  59. .pear-btn-success[plain] {
  60. color: #36b368 !important;
  61. background: #f0f9eb !important;
  62. }
  63. .pear-btn-success[plain]:hover {
  64. color: white !important;
  65. background-color: #36b368 !important
  66. }
  67. .pear-btn-warming[plain] {
  68. color: #e6a23c !important;
  69. background: #fdf6ec !important;
  70. }
  71. .pear-btn-warming[plain]:hover {
  72. color: white !important;
  73. background-color: #e6a23c !important
  74. }
  75. .pear-btn-danger[plain] {
  76. color: #f56c6c !important;
  77. background: #fef0f0 !important;
  78. }
  79. .pear-btn-danger[plain]:hover {
  80. color: white !important;
  81. background-color: #f56c6c !important
  82. }
  83. /** Button Group */
  84. .pear-btn-group {
  85. display: inline-block;
  86. vertical-align: middle;
  87. }
  88. .pear-btn-group .pear-btn {
  89. float: left;
  90. position: relative;
  91. border-radius: 0px;
  92. margin-left: 1px;
  93. margin-right: 1px;
  94. }
  95. .pear-btn-md {
  96. height: 34px;
  97. line-height: 34px;
  98. padding: 0 10px;
  99. font-size: 12.5px;
  100. }
  101. .pear-btn-group .pear-btn:first-child {
  102. border-top-left-radius: 4px !important;
  103. border-bottom-left-radius: 4px !important;
  104. }
  105. .pear-btn-group .pear-btn:last-child {
  106. border-top-right-radius: 4px !important;
  107. border-bottom-right-radius: 4px !important;
  108. }
  109. .pear-btn-group .pear-btn[round]:first-child {
  110. border-top-left-radius: 50px !important;
  111. border-bottom-left-radius: 50px !important;
  112. }
  113. .pear-btn-group .pear-btn[round]:last-child {
  114. border-top-right-radius: 50px !important;
  115. border-bottom-right-radius: 50px !important;
  116. }
  117. /** Button Size*/
  118. .pear-btn-sm {
  119. height: 32px;
  120. line-height: 32px;
  121. padding: 0 10px;
  122. font-size: 12px;
  123. }
  124. .pear-btn-xs {
  125. height: 28px;
  126. line-height: 28px;
  127. padding: 0 8px;
  128. font-size: 12px;
  129. }
  130. .pear-btn-md {
  131. height: 34px;
  132. line-height: 34px;
  133. padding: 0 10px;
  134. font-size: 12.5px;
  135. }
  136. .pear-btn-lg {
  137. height: 44px;
  138. line-height: 44px;
  139. padding: 0 25px;
  140. font-size: 16px;
  141. }