side-bar-item.wxss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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-side-bar-active-color: #0052d9;
  30. --td-side-bar-border-radius: 18rpx;
  31. }
  32. .t-side-bar-item {
  33. position: relative;
  34. padding: 32rpx;
  35. font-size: 28rpx;
  36. color: rgba(0, 0, 0, 0.9);
  37. background: #f3f3f3;
  38. }
  39. .t-side-bar-item--active {
  40. background: #fff;
  41. color: var(--td-side-bar-active-color, #0052d9);
  42. }
  43. .t-side-bar-item__prefix,
  44. .t-side-bar-item__suffix {
  45. z-index: 1;
  46. position: absolute;
  47. right: 0;
  48. width: calc(var(--td-side-bar-border-radius, 18rpx) * 2);
  49. height: calc(var(--td-side-bar-border-radius, 18rpx) * 2);
  50. background: #fff;
  51. }
  52. .t-side-bar-item__prefix::after,
  53. .t-side-bar-item__suffix::after {
  54. content: '';
  55. display: block;
  56. width: 100%;
  57. height: 100%;
  58. background-color: #f3f3f3;
  59. }
  60. .t-side-bar-item__prefix {
  61. top: calc(var(--td-side-bar-border-radius, 18rpx) * -2);
  62. }
  63. .t-side-bar-item__prefix::after {
  64. border-bottom-right-radius: var(--td-side-bar-border-radius, 18rpx);
  65. }
  66. .t-side-bar-item__suffix {
  67. bottom: calc(var(--td-side-bar-border-radius, 18rpx) * -2);
  68. }
  69. .t-side-bar-item__suffix::after {
  70. border-top-right-radius: var(--td-side-bar-border-radius, 18rpx);
  71. }
  72. .t-side-bar-item--disabled {
  73. color: rgba(0, 0, 0, 0.26);
  74. }
  75. .t-side-bar-item__line {
  76. width: 6rpx;
  77. height: 28rpx;
  78. position: absolute;
  79. left: 0;
  80. top: 50%;
  81. transform: translateY(-50%);
  82. background: var(--td-side-bar-active-color, #0052d9);
  83. border-radius: 8rpx;
  84. }