upload-image.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .uni-file-picker__container {
  28. display: flex;
  29. box-sizing: border-box;
  30. flex-wrap: wrap;
  31. margin: -5px;
  32. }
  33. .file-picker__box {
  34. position: relative;
  35. width: 33.3%;
  36. height: 0;
  37. padding-top: 33.33%;
  38. box-sizing: border-box;
  39. }
  40. .file-picker__box-content {
  41. position: absolute;
  42. top: 0;
  43. right: 0;
  44. bottom: 0;
  45. left: 0;
  46. margin: 5px;
  47. border: 1px #eee solid;
  48. border-radius: 5px;
  49. overflow: hidden;
  50. }
  51. .file-picker__progress {
  52. position: absolute;
  53. bottom: 0;
  54. left: 0;
  55. right: 0;
  56. /* border: 1px red solid; */
  57. z-index: 2;
  58. }
  59. .file-picker__progress-item {
  60. width: 100%;
  61. }
  62. .file-picker__mask {
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. position: absolute;
  67. right: 0;
  68. top: 0;
  69. bottom: 0;
  70. left: 0;
  71. color: #fff;
  72. font-size: 12px;
  73. background-color: rgba(0, 0, 0, 0.4);
  74. }
  75. .file-image {
  76. width: 100%;
  77. height: 100%;
  78. }
  79. .is-add {
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. }
  84. .icon-add {
  85. width: 50px;
  86. height: 5px;
  87. background-color: #f1f1f1;
  88. border-radius: 2px;
  89. }
  90. .rotate {
  91. position: absolute;
  92. -webkit-transform: rotate(90deg);
  93. transform: rotate(90deg);
  94. }
  95. .icon-del-box {
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. position: absolute;
  100. top: 3px;
  101. right: 3px;
  102. height: 26px;
  103. width: 26px;
  104. border-radius: 50%;
  105. background-color: rgba(0, 0, 0, 0.5);
  106. z-index: 2;
  107. -webkit-transform: rotate(-45deg);
  108. transform: rotate(-45deg);
  109. }
  110. .icon-del {
  111. width: 15px;
  112. height: 2px;
  113. background-color: #fff;
  114. border-radius: 2px;
  115. }