drawer.wxss 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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-drawer {
  29. background: var(--td-drawer-bg-color, var(--td-bg-color-block, #fff));
  30. height: 100vh;
  31. width: var(--td-drawer-width, 560rpx);
  32. display: flex;
  33. flex-direction: column;
  34. padding-bottom: env(safe-area-inset-bottom, 28px);
  35. padding-bottom: constant(safe-area-inset-bottom, 28px);
  36. }
  37. .t-drawer__title {
  38. font-weight: 600;
  39. font-size: var(--td-drawer-title-font-size, 36rpx);
  40. padding: 48rpx 32rpx 16rpx;
  41. }
  42. .t-drawer__sidebar {
  43. height: var(--td-drawer-sidebar-height, 70vh);
  44. }
  45. .t-drawer__sidebar-item {
  46. display: flex;
  47. align-items: center;
  48. position: relative;
  49. padding: var(--td-drawer-item-padding, 32rpx) 0;
  50. margin-left: var(--td-drawer-item-padding, 32rpx);
  51. line-height: var(--td-drawer-item-height, 48rpx);
  52. }
  53. .t-drawer__sidebar-item::after {
  54. content: '';
  55. display: block;
  56. position: absolute;
  57. top: unset;
  58. bottom: 0;
  59. left: unset;
  60. right: unset;
  61. background-color: var(--td-drawer-border-color, var(--td-border-color, #e7e7e7));
  62. }
  63. .t-drawer__sidebar-item::after {
  64. height: 1px;
  65. left: 0;
  66. right: 0;
  67. transform: scaleY(0.5);
  68. }
  69. .t-drawer__sidebar-item-title {
  70. flex: 1;
  71. color: var(--td-drawer-title-color);
  72. }
  73. .t-drawer__sidebar-item-icon {
  74. padding-right: 16rpx;
  75. color: var(--td-drawer-title-color, var(--td-drawer-title-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9))));
  76. font-size: var(--td-drawer-item-icon-size, 48rpx);
  77. }
  78. .t-drawer__footer {
  79. flex: 1;
  80. display: flex;
  81. flex-direction: column;
  82. padding-bottom: var(--td-drawer-footer-padding-bottom, 40rpx);
  83. }