avatar.wxss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. page {
  29. --td-avatar-group-border-color: #fff;
  30. }
  31. .border--small {
  32. border: 4rpx solid var(--td-avatar-group-border-color, #fff);
  33. }
  34. .border--medium {
  35. border: 6rpx solid var(--td-avatar-group-border-color, #fff);
  36. }
  37. .border--large {
  38. border: 8rpx solid var(--td-avatar-group-border-color, #fff);
  39. }
  40. page {
  41. --td-avatar-bg-color: #d4e3fc;
  42. --td-avatar-content-color: #0052d9;
  43. }
  44. .t-avatar {
  45. display: flex;
  46. align-items: center;
  47. justify-content: center;
  48. box-sizing: border-box;
  49. }
  50. .t-avatar__wrapper {
  51. float: left;
  52. position: relative;
  53. background-color: var(--td-avatar-bg-color, #d4e3fc);
  54. color: var(--td-avatar-content-color, #0052d9);
  55. border-radius: 999rpx;
  56. }
  57. .t-avatar__wrapper .t-badge-host {
  58. position: absolute;
  59. }
  60. .t-avatar__wrapper .t-badge__round {
  61. top: -10%;
  62. right: -10%;
  63. }
  64. .t-avatar__wrapper .t-badge__circle {
  65. top: -5%;
  66. right: -5%;
  67. }
  68. .t-avatar.t-size-l {
  69. width: 128rpx;
  70. height: 128rpx;
  71. font-size: 52rpx;
  72. }
  73. .t-avatar.t-size-m {
  74. width: 96rpx;
  75. height: 96rpx;
  76. font-size: 40rpx;
  77. }
  78. .t-avatar.t-size-s {
  79. width: 64rpx;
  80. height: 64rpx;
  81. font-size: 28rpx;
  82. }
  83. .t-avatar .t-image,
  84. .t-avatar__image {
  85. width: 100%;
  86. height: 100%;
  87. }
  88. .t-avatar--circle {
  89. border-radius: 999rpx;
  90. overflow: hidden;
  91. }
  92. .t-avatar--round {
  93. border-radius: 10rpx;
  94. overflow: hidden;
  95. }
  96. .t-avatar__text,
  97. .t-avatar__icon {
  98. font-size: inherit;
  99. width: 100%;
  100. height: 100%;
  101. display: flex;
  102. align-items: center;
  103. justify-content: center;
  104. }
  105. .t-avatar__text:empty,
  106. .t-avatar__icon:empty {
  107. width: 0;
  108. height: 0;
  109. }