dropdown-menu.wxss 1.6 KB

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