u-button.wxss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. view.data-v-461e713c, scroll-view.data-v-461e713c, swiper-item.data-v-461e713c {
  27. display: flex;
  28. flex-direction: column;
  29. flex-shrink: 0;
  30. flex-grow: 0;
  31. flex-basis: auto;
  32. align-items: stretch;
  33. align-content: flex-start;
  34. }
  35. .u-button.data-v-461e713c {
  36. width: 100%;
  37. }
  38. .u-button__text.data-v-461e713c {
  39. white-space: nowrap;
  40. line-height: 1;
  41. }
  42. .u-button.data-v-461e713c:before {
  43. position: absolute;
  44. top: 50%;
  45. left: 50%;
  46. width: 100%;
  47. height: 100%;
  48. border: inherit;
  49. border-radius: inherit;
  50. transform: translate(-50%, -50%);
  51. opacity: 0;
  52. content: " ";
  53. background-color: #000;
  54. border-color: #000;
  55. }
  56. .u-button--active.data-v-461e713c:before {
  57. opacity: 0.15;
  58. }
  59. .u-button__icon + .u-button__text.data-v-461e713c:not(:empty), .u-button__loading-text.data-v-461e713c {
  60. margin-left: 4px;
  61. }
  62. .u-button--plain.u-button--primary.data-v-461e713c {
  63. color: #3c9cff;
  64. }
  65. .u-button--plain.u-button--info.data-v-461e713c {
  66. color: #909399;
  67. }
  68. .u-button--plain.u-button--success.data-v-461e713c {
  69. color: #5ac725;
  70. }
  71. .u-button--plain.u-button--error.data-v-461e713c {
  72. color: #f56c6c;
  73. }
  74. .u-button--plain.u-button--warning.data-v-461e713c {
  75. color: #f56c6c;
  76. }
  77. .u-button.data-v-461e713c {
  78. height: 40px;
  79. position: relative;
  80. align-items: center;
  81. justify-content: center;
  82. display: flex;
  83. flex-direction: row;
  84. box-sizing: border-box;
  85. flex-direction: row;
  86. }
  87. .u-button__text.data-v-461e713c {
  88. font-size: 15px;
  89. }
  90. .u-button__loading-text.data-v-461e713c {
  91. font-size: 15px;
  92. margin-left: 4px;
  93. }
  94. .u-button--large.data-v-461e713c {
  95. width: 100%;
  96. height: 50px;
  97. padding: 0 15px;
  98. }
  99. .u-button--normal.data-v-461e713c {
  100. padding: 0 12px;
  101. font-size: 14px;
  102. }
  103. .u-button--small.data-v-461e713c {
  104. min-width: 60px;
  105. height: 30px;
  106. padding: 0px 8px;
  107. font-size: 12px;
  108. }
  109. .u-button--mini.data-v-461e713c {
  110. height: 22px;
  111. font-size: 10px;
  112. min-width: 50px;
  113. padding: 0px 8px;
  114. }
  115. .u-button--disabled.data-v-461e713c {
  116. opacity: 0.5;
  117. }
  118. .u-button--info.data-v-461e713c {
  119. color: #323233;
  120. background-color: #fff;
  121. border-color: #ebedf0;
  122. border-width: 1px;
  123. border-style: solid;
  124. }
  125. .u-button--success.data-v-461e713c {
  126. color: #fff;
  127. background-color: #5ac725;
  128. border-color: #5ac725;
  129. border-width: 1px;
  130. border-style: solid;
  131. }
  132. .u-button--primary.data-v-461e713c {
  133. color: #fff;
  134. background-color: #3c9cff;
  135. border-color: #3c9cff;
  136. border-width: 1px;
  137. border-style: solid;
  138. }
  139. .u-button--error.data-v-461e713c {
  140. color: #fff;
  141. background-color: #f56c6c;
  142. border-color: #f56c6c;
  143. border-width: 1px;
  144. border-style: solid;
  145. }
  146. .u-button--warning.data-v-461e713c {
  147. color: #fff;
  148. background-color: #f9ae3d;
  149. border-color: #f9ae3d;
  150. border-width: 1px;
  151. border-style: solid;
  152. }
  153. .u-button--block.data-v-461e713c {
  154. display: flex;
  155. flex-direction: row;
  156. width: 100%;
  157. }
  158. .u-button--circle.data-v-461e713c {
  159. border-top-right-radius: 100px;
  160. border-top-left-radius: 100px;
  161. border-bottom-left-radius: 100px;
  162. border-bottom-right-radius: 100px;
  163. }
  164. .u-button--square.data-v-461e713c {
  165. border-bottom-left-radius: 3px;
  166. border-bottom-right-radius: 3px;
  167. border-top-left-radius: 3px;
  168. border-top-right-radius: 3px;
  169. }
  170. .u-button__icon.data-v-461e713c {
  171. min-width: 1em;
  172. line-height: inherit !important;
  173. vertical-align: top;
  174. }
  175. .u-button--plain.data-v-461e713c {
  176. background-color: #fff;
  177. }
  178. .u-button--hairline.data-v-461e713c {
  179. border-width: 0.5px !important;
  180. }