index.less 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @import '../../app.less';
  2. .select {
  3. position: relative;
  4. .mask {
  5. position: fixed;
  6. top: 0;
  7. left: 0;
  8. right: 0;
  9. bottom: 0;
  10. z-index: 1;
  11. }
  12. .select-warp {
  13. line-height: 30px;
  14. display: inline-block;
  15. position: relative;
  16. }
  17. .select-body {
  18. overflow: hidden;
  19. position: absolute;
  20. bottom: 0;
  21. left: 0;
  22. right: 0;
  23. background: #fff;
  24. border: 1px solid @line_color;
  25. border-radius: 4px;
  26. box-sizing: border-box;
  27. opacity: 0;
  28. z-index: 2;
  29. transform: translateY(100%);
  30. .select-option {
  31. height: 0;
  32. line-height: 25px;
  33. padding-left: 10px;
  34. border-bottom: 1px solid transparent;
  35. font-size: 12px;
  36. cursor: pointer;
  37. transition: all 0.3s;
  38. }
  39. .select-option:hover {
  40. background: @theme_bg_color;
  41. }
  42. .select-option:last-child {
  43. border-bottom: none;
  44. }
  45. }
  46. .select-body.select {
  47. opacity: 1;
  48. .select-option {
  49. height: auto;
  50. border-color: @line_color;
  51. }
  52. }
  53. }