button.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. border: 1px solid #2D8CF0;
  38. background-color: #2D8CF0 !important;
  39. }
  40. .pear-btn-danger {
  41. border: 1px solid #f56c6c;
  42. background-color: #f56c6c !important;
  43. }
  44. .pear-btn-warming {
  45. border: 1px solid #f6ad55;
  46. background-color: #f6ad55 !important;
  47. }
  48. .pear-btn-success {
  49. border: 1px solid #36b368;
  50. background-color: #36b368 !important;
  51. }
  52. .pear-btn[round] {
  53. border-radius: 50px;
  54. }
  55. .pear-btn-primary[plain] {
  56. color: #409eff !important;
  57. background: #ecf5ff 10% !important;
  58. }
  59. .pear-btn-primary[plain]:hover {
  60. color: #fff !important;
  61. background-color: #2d8cf0!important
  62. }
  63. .pear-btn-success[plain] {
  64. color: #36b368 !important;
  65. background: #f0f9eb !important;
  66. }
  67. .pear-btn-success[plain]:hover {
  68. color: white !important;
  69. background-color: #36b368 !important
  70. }
  71. .pear-btn-warming[plain] {
  72. color: #e6a23c !important;
  73. background: #fdf6ec !important;
  74. }
  75. .pear-btn-warming[plain]:hover {
  76. color: white !important;
  77. background-color: #e6a23c !important
  78. }
  79. .pear-btn-danger[plain] {
  80. color: #f56c6c !important;
  81. background: #fef0f0 !important;
  82. }
  83. .pear-btn-danger[plain]:hover {
  84. color: white !important;
  85. background-color: #f56c6c !important
  86. }
  87. /** Button Group */
  88. .pear-btn-group {
  89. display: inline-block;
  90. vertical-align: middle;
  91. }
  92. .pear-btn-group .pear-btn {
  93. float: left;
  94. position: relative;
  95. border-radius: 0px;
  96. margin-left: 1px;
  97. margin-right: 1px;
  98. }
  99. .pear-btn-md {
  100. height: 34px;
  101. line-height: 34px;
  102. padding: 0 10px;
  103. font-size: 12.5px;
  104. }
  105. .pear-btn-group .pear-btn:first-child {
  106. border-top-left-radius: 4px !important;
  107. border-bottom-left-radius: 4px !important;
  108. }
  109. .pear-btn-group .pear-btn:last-child {
  110. border-top-right-radius: 4px !important;
  111. border-bottom-right-radius: 4px !important;
  112. }
  113. .pear-btn-group .pear-btn[round]:first-child {
  114. border-top-left-radius: 50px !important;
  115. border-bottom-left-radius: 50px !important;
  116. }
  117. .pear-btn-group .pear-btn[round]:last-child {
  118. border-top-right-radius: 50px !important;
  119. border-bottom-right-radius: 50px !important;
  120. }
  121. /** Button Size*/
  122. .pear-btn-sm {
  123. height: 32px;
  124. line-height: 32px;
  125. padding: 0 10px;
  126. font-size: 12px;
  127. }
  128. .pear-btn-xs {
  129. height: 28px;
  130. line-height: 28px;
  131. padding: 0 8px;
  132. font-size: 12px;
  133. }
  134. .pear-btn-md {
  135. height: 34px;
  136. line-height: 34px;
  137. padding: 0 10px;
  138. font-size: 12.5px;
  139. }
  140. .pear-btn-lg {
  141. height: 44px;
  142. line-height: 44px;
  143. padding: 0 25px;
  144. font-size: 16px;
  145. }