dropdown-menu.wxss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. /** dropdwon-menu */
  29. .t-dropdown-menu__bar {
  30. position: relative;
  31. display: flex;
  32. height: 48px;
  33. background: #fff;
  34. }
  35. .t-dropdown-menu__bar::after {
  36. position: absolute;
  37. box-sizing: border-box;
  38. content: ' ';
  39. pointer-events: none;
  40. right: 0;
  41. left: 0;
  42. bottom: 0;
  43. border-bottom: 1px solid #e6e6e6;
  44. transform: scaleY(0.5);
  45. }
  46. .t-dropdown-menu__item {
  47. display: flex;
  48. flex: 1;
  49. align-items: center;
  50. justify-content: center;
  51. padding: 0 16rpx;
  52. position: relative;
  53. overflow: hidden;
  54. color: #000000;
  55. }
  56. .t-dropdown-menu__item.t-is-active {
  57. color: #0052d9;
  58. }
  59. .t-dropdown-menu__item.t-is-disabled .t-dropdown-menu__icon,
  60. .t-dropdown-menu__item.t-is-disabled .t-dropdown-menu__title {
  61. color: #bbbbbb;
  62. }
  63. .t-dropdown-menu__icon {
  64. transition: transform 240ms ease;
  65. }
  66. .t-dropdown-menu__icon--active {
  67. transform: rotate(180deg);
  68. }
  69. .t-dropdown-menu__title {
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. white-space: nowrap;
  73. font-size: 32rpx;
  74. }