image-viewer.wxss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-image-viewer {
  29. position: fixed;
  30. top: var(--td-image-viewer-top, var(--td-position-fixed-top, 0));
  31. left: 0;
  32. bottom: 0;
  33. right: 0;
  34. z-index: 1001;
  35. transform: translateZ(0);
  36. overflow: hidden;
  37. }
  38. .t-image-viewer__mask {
  39. position: absolute;
  40. z-index: 1000;
  41. left: 0;
  42. top: 0;
  43. width: 100%;
  44. height: 100%;
  45. }
  46. .t-image-viewer__content {
  47. width: 100vw;
  48. display: inline-block;
  49. position: absolute;
  50. top: 50%;
  51. transform: translateY(-50%);
  52. z-index: 1005;
  53. }
  54. .t-image-viewer .swiper {
  55. outline: 0;
  56. }
  57. .t-image-viewer__image {
  58. width: 100%;
  59. display: inline-block;
  60. position: absolute;
  61. top: 50%;
  62. transform: translateY(-50%);
  63. }
  64. .t-image-viewer .t-image--external {
  65. width: inherit;
  66. height: inherit;
  67. display: block;
  68. }
  69. .t-image-viewer__nav {
  70. width: 100%;
  71. position: absolute;
  72. display: flex;
  73. align-items: center;
  74. justify-content: space-between;
  75. height: var(--td-image-viewer-nav-height, 96rpx);
  76. background-color: var(--td-image-viewer-nav-bg-color, var(--td-font-gray-3, rgba(0, 0, 0, 0.4)));
  77. left: 0;
  78. color: var(--td-image-viewer-nav-color, var(--td-text-color-anti, var(--td-font-white-1, #ffffff)));
  79. z-index: 1005;
  80. }
  81. .t-image-viewer__nav-close {
  82. margin-left: var(--td-image-viewer-close-margin-left, var(--td-spacer-1, 24rpx));
  83. }
  84. .t-image-viewer__nav-close:empty {
  85. display: none;
  86. }
  87. .t-image-viewer__nav-delete {
  88. margin-right: var(--td-image-viewer-delete-margin-right, var(--td-spacer-1, 24rpx));
  89. }
  90. .t-image-viewer__nav-delete:empty {
  91. display: none;
  92. }
  93. .t-image-viewer__nav-close,
  94. .t-image-viewer__nav-delete {
  95. font-size: 48rpx;
  96. }
  97. .t-image-viewer__nav-index {
  98. flex: 1;
  99. font-size: var(--td-image-viewer-nav-index-font-size, var(--td-font-size-base, 28rpx));
  100. text-align: center;
  101. }