side-bar-item.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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-side-bar-item {
  29. display: flex;
  30. align-items: center;
  31. position: relative;
  32. padding: 32rpx;
  33. font-size: var(--td-side-bar-font-size, 32rpx);
  34. color: var(--td-side-bar-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, 0.9))));
  35. background: var(--td-side-bar-bg-color, var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3)));
  36. min-height: var(--td-side-bar-item-height, 112rpx);
  37. box-sizing: border-box;
  38. white-space: wrap;
  39. line-height: var(--td-side-bar-item-line-height, 48rpx);
  40. }
  41. .t-side-bar-item--active {
  42. font-weight: 600;
  43. background: var(--td-bg-color-container, var(--td-font-white-1, #ffffff));
  44. color: var(--td-side-bar-active-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
  45. --td-badge-content-text-color: var(--td-side-bar-active-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
  46. }
  47. .t-side-bar-item__icon {
  48. font-size: var(--td-side-bar-icon-size, 40rpx);
  49. margin-right: 4rpx;
  50. }
  51. .t-side-bar-item__prefix,
  52. .t-side-bar-item__suffix {
  53. z-index: 1;
  54. position: absolute;
  55. right: 0;
  56. width: 100%;
  57. height: calc(var(--td-side-bar-border-radius, 18rpx) * 2);
  58. background: var(--td-bg-color-container, var(--td-font-white-1, #ffffff));
  59. pointer-events: none;
  60. }
  61. .t-side-bar-item__prefix::after,
  62. .t-side-bar-item__suffix::after {
  63. content: '';
  64. display: block;
  65. width: 100%;
  66. height: 100%;
  67. background-color: var(--td-side-bar-bg-color, var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3)));
  68. }
  69. .t-side-bar-item__prefix {
  70. top: calc(var(--td-side-bar-border-radius, 18rpx) * -2);
  71. }
  72. .t-side-bar-item__prefix::after {
  73. border-bottom-right-radius: var(--td-side-bar-border-radius, 18rpx);
  74. }
  75. .t-side-bar-item__suffix {
  76. bottom: calc(var(--td-side-bar-border-radius, 18rpx) * -2);
  77. }
  78. .t-side-bar-item__suffix::after {
  79. border-top-right-radius: var(--td-side-bar-border-radius, 18rpx);
  80. }
  81. .t-side-bar-item--disabled {
  82. color: var(--td-side-bar-disabled-color, var(--td-text-color-disabled, var(--td-font-gray-4, rgba(0, 0, 0, 0.26))));
  83. }
  84. .t-side-bar-item__line {
  85. width: 6rpx;
  86. height: 28rpx;
  87. position: absolute;
  88. left: 0;
  89. top: 50%;
  90. transform: translateY(-50%);
  91. background: var(--td-side-bar-active-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));
  92. border-radius: 8rpx;
  93. }