image.wxss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 {
  29. position: relative;
  30. display: inline-block;
  31. }
  32. .t-image__mask,
  33. .t-image__img {
  34. color: var(--td-image-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, 0.4))));
  35. vertical-align: top;
  36. width: inherit;
  37. height: inherit;
  38. }
  39. .t-image__mask {
  40. display: flex;
  41. align-items: center;
  42. justify-content: center;
  43. background-color: var(--td-image-loading-bg-color, var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3)));
  44. color: var(--td-image-loading-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, 0.4))));
  45. }
  46. .t-image--loading-text {
  47. width: 0;
  48. height: 0;
  49. }
  50. .t-image__common {
  51. width: 100%;
  52. height: 100%;
  53. }
  54. .t-image--lazy {
  55. position: absolute;
  56. top: 0;
  57. left: 0;
  58. z-index: -1;
  59. }
  60. .t-image--shape-circle {
  61. border-radius: 50%;
  62. overflow: hidden;
  63. }
  64. .t-image--shape-round {
  65. border-radius: var(--td-image-round-radius, var(--td-radius-default, 12rpx));
  66. overflow: hidden;
  67. }
  68. .t-image--shape-square {
  69. border-radius: 0;
  70. overflow: hidden;
  71. }