custom-image.wxss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. .custom-image {
  17. position: relative;
  18. display: block;
  19. width: 100%;
  20. height: 100%;
  21. }
  22. .custom-image.image-round {
  23. overflow: hidden;
  24. border-radius: 50%;
  25. }
  26. .custom-image .image {
  27. display: block;
  28. width: 100%;
  29. height: 100%;
  30. }
  31. .custom-image .loading-wrap,
  32. .custom-image .error-wrap {
  33. position: absolute;
  34. top: 0;
  35. left: 0;
  36. display: flex;
  37. flex-direction: column;
  38. align-items: center;
  39. justify-content: center;
  40. color: #969799;
  41. font-size: 28rpx;
  42. background-color: #f7f8fa;
  43. }