u-upload.wxss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* uni.scss */
  15. /* 颜色变量 */
  16. /* 行为相关颜色 */
  17. /* 文字基本颜色 */
  18. /* 背景颜色 */
  19. /* 边框颜色 */
  20. /* 尺寸变量 */
  21. /* 文字尺寸 */
  22. /* 图片尺寸 */
  23. /* Border Radius */
  24. /* 水平间距 */
  25. /* 垂直间距 */
  26. /* 透明度 */
  27. /* 文章场景相关 */
  28. view.data-v-49deb6f2, scroll-view.data-v-49deb6f2, swiper-item.data-v-49deb6f2 {
  29. display: flex;
  30. flex-direction: column;
  31. flex-shrink: 0;
  32. flex-grow: 0;
  33. flex-basis: auto;
  34. align-items: stretch;
  35. align-content: flex-start;
  36. }
  37. .u-upload.data-v-49deb6f2 {
  38. display: flex;
  39. flex-direction: column;
  40. flex: 1;
  41. }
  42. .u-upload__wrap.data-v-49deb6f2 {
  43. display: flex;
  44. flex-direction: row;
  45. flex-wrap: wrap;
  46. flex: 1;
  47. }
  48. .u-upload__wrap__preview.data-v-49deb6f2 {
  49. border-radius: 2px;
  50. margin: 0 8px 8px 0;
  51. position: relative;
  52. overflow: hidden;
  53. display: flex;
  54. flex-direction: row;
  55. }
  56. .u-upload__wrap__preview__image.data-v-49deb6f2 {
  57. width: 80px;
  58. height: 80px;
  59. }
  60. .u-upload__wrap__preview__other.data-v-49deb6f2 {
  61. width: 80px;
  62. height: 80px;
  63. background-color: #f2f2f2;
  64. flex: 1;
  65. display: flex;
  66. flex-direction: column;
  67. justify-content: center;
  68. align-items: center;
  69. }
  70. .u-upload__wrap__preview__other__text.data-v-49deb6f2 {
  71. font-size: 11px;
  72. color: #909193;
  73. margin-top: 2px;
  74. }
  75. .u-upload__deletable.data-v-49deb6f2 {
  76. position: absolute;
  77. top: 0;
  78. right: 0;
  79. background-color: #373737;
  80. height: 14px;
  81. width: 14px;
  82. display: flex;
  83. flex-direction: row;
  84. border-bottom-left-radius: 100px;
  85. align-items: center;
  86. justify-content: center;
  87. z-index: 3;
  88. }
  89. .u-upload__deletable__icon.data-v-49deb6f2 {
  90. position: absolute;
  91. -webkit-transform: scale(0.7);
  92. transform: scale(0.7);
  93. top: 0px;
  94. right: 0px;
  95. }
  96. .u-upload__success.data-v-49deb6f2 {
  97. position: absolute;
  98. bottom: 0;
  99. right: 0;
  100. display: flex;
  101. flex-direction: row;
  102. border-style: solid;
  103. border-top-color: transparent;
  104. border-left-color: transparent;
  105. border-bottom-color: #5ac725;
  106. border-right-color: #5ac725;
  107. border-width: 9px;
  108. align-items: center;
  109. justify-content: center;
  110. }
  111. .u-upload__success__icon.data-v-49deb6f2 {
  112. position: absolute;
  113. -webkit-transform: scale(0.7);
  114. transform: scale(0.7);
  115. bottom: -10px;
  116. right: -10px;
  117. }
  118. .u-upload__status.data-v-49deb6f2 {
  119. position: absolute;
  120. top: 0;
  121. bottom: 0;
  122. left: 0;
  123. right: 0;
  124. background-color: rgba(0, 0, 0, 0.5);
  125. display: flex;
  126. flex-direction: column;
  127. align-items: center;
  128. justify-content: center;
  129. }
  130. .u-upload__status__icon.data-v-49deb6f2 {
  131. position: relative;
  132. z-index: 1;
  133. }
  134. .u-upload__status__message.data-v-49deb6f2 {
  135. font-size: 12px;
  136. color: #FFFFFF;
  137. margin-top: 5px;
  138. }
  139. .u-upload__button.data-v-49deb6f2 {
  140. display: flex;
  141. flex-direction: column;
  142. align-items: center;
  143. justify-content: center;
  144. width: 80px;
  145. height: 80px;
  146. background-color: #f4f5f7;
  147. border-radius: 2px;
  148. margin: 0 8px 8px 0;
  149. box-sizing: border-box;
  150. }
  151. .u-upload__button__text.data-v-49deb6f2 {
  152. font-size: 11px;
  153. color: #909193;
  154. margin-top: 2px;
  155. }
  156. .u-upload__button--hover.data-v-49deb6f2 {
  157. background-color: #e6e7e9;
  158. }
  159. .u-upload__button--disabled.data-v-49deb6f2 {
  160. opacity: 0.5;
  161. }