drawer.wxss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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-drawer-sidebar-bg-color: #fff;
  30. --td-drawer-sidebar-border-color: #e7e7e7;
  31. --td-drawer-sidebar-title-color: rgba(0, 0, 0, 0.9);
  32. --td-drawer-sidebar-icon-color: rgba(0, 0, 0, 0.9);
  33. }
  34. .t-drawer__sidebar {
  35. width: calc(100vw * 0.82);
  36. height: 100vh;
  37. background: var(--td-drawer-sidebar-bg-color);
  38. }
  39. .t-drawer__sidebar-item {
  40. display: flex;
  41. align-items: center;
  42. border-bottom: 1rpx solid var(--td-drawer-sidebar-border-color);
  43. padding: 24rpx 0;
  44. margin-left: 32rpx;
  45. }
  46. .t-drawer__sidebar-item-title {
  47. flex: 1;
  48. color: var(--td-drawer-sidebar-title-color);
  49. }
  50. .t-drawer__sidebar-item-icon {
  51. width: 48rpx;
  52. height: 48rpx;
  53. padding-right: 16rpx;
  54. color: var(--td-drawer-sidebar-icon-color);
  55. }