image-viewer.wxss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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: 0;
  31. left: 0;
  32. bottom: 0;
  33. right: 0;
  34. z-index: 1001;
  35. height: 100%;
  36. transform: translateZ(0);
  37. overflow: hidden;
  38. }
  39. .t-image-viewer__mask {
  40. position: fixed;
  41. z-index: 1000;
  42. left: 0;
  43. top: 0;
  44. width: 100%;
  45. height: 100%;
  46. }
  47. .t-image-viewer__content {
  48. width: 100vw;
  49. display: inline-block;
  50. position: absolute;
  51. top: 50%;
  52. transform: translateY(-50%);
  53. z-index: 1005;
  54. }
  55. .t-image-viewer__image {
  56. width: 100%;
  57. display: inline-block;
  58. position: absolute;
  59. top: 50%;
  60. transform: translateY(-50%);
  61. }
  62. .t-image-viewer .t-image--external {
  63. width: inherit;
  64. height: inherit;
  65. display: block;
  66. }
  67. .t-image-viewer__nav {
  68. width: 100%;
  69. position: fixed;
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-between;
  73. height: 48rpx;
  74. top: 68rpx;
  75. left: 0;
  76. color: #ffffff;
  77. z-index: 1005;
  78. }
  79. .t-image-viewer__nav-icon {
  80. flex: 0 0 48rpx;
  81. width: 48rpx;
  82. height: 48rpx;
  83. }
  84. .t-image-viewer__nav-close {
  85. margin-left: 36rpx;
  86. }
  87. .t-image-viewer__nav-delete {
  88. margin-right: 36rpx;
  89. }
  90. .t-image-viewer__nav-index {
  91. flex: 1;
  92. font-size: 28rpx;
  93. text-align: center;
  94. }