dropmenu-item.less 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @highlight: #e41616;
  2. .n-dropmenu-item {
  3. height: 74rpx;
  4. &.show {
  5. color: @highlight;
  6. .n-dropmenu-item__show {
  7. color: @highlight !important;
  8. }
  9. }
  10. &__show {
  11. display: flex;
  12. height: 100%;
  13. align-items: center;
  14. column-gap: 10rpx;
  15. justify-content: center;
  16. color: #555;
  17. }
  18. &__float {
  19. position: absolute;
  20. top: 74rpx;
  21. left: 0;
  22. right: 0;
  23. background: #fff;
  24. border: 1px solid #f3f3f3;
  25. max-height: 400rpx;
  26. font-size: 28rpx;
  27. color: #555;
  28. overflow: auto;
  29. display: none;
  30. z-index: 99;
  31. &.show {
  32. display: block;
  33. animation: slideup 0.2s forwards;
  34. }
  35. }
  36. &__option {
  37. display: flex;
  38. align-items: center;
  39. padding: 20rpx;
  40. border-top: 1px solid #f3f3f3;
  41. &:nth-child(1) {
  42. border-top: 0;
  43. }
  44. &.selected {
  45. color: @highlight;
  46. }
  47. &.click {
  48. color: #000;
  49. }
  50. .text {
  51. flex: 1;
  52. }
  53. }
  54. @keyframes slideup {
  55. 0% {
  56. transform: translateY(30rpx);
  57. opacity: 0;
  58. }
  59. 100% {
  60. transform: translateY(0rpx);
  61. opacity: 1;
  62. }
  63. }
  64. }