index.less 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. text-align: center;
  17. }
  18. .select-body {
  19. overflow: hidden;
  20. position: absolute;
  21. bottom: 0;
  22. left: 0;
  23. right: 0;
  24. background: #fff;
  25. border: 1px solid @line_color;
  26. border-radius: 4px;
  27. box-sizing: border-box;
  28. opacity: 0;
  29. z-index: 2;
  30. transform: translateY(100%);
  31. .select-option {
  32. height: 0;
  33. line-height: 25px;
  34. padding-left: 10px;
  35. border-bottom: 1px solid transparent;
  36. font-size: 12px;
  37. cursor: pointer;
  38. transition: all 0.3s;
  39. text-align: left;
  40. }
  41. .select-option:hover {
  42. background: @theme_bg_color;
  43. }
  44. .select-option:last-child {
  45. border-bottom: none;
  46. }
  47. }
  48. .select-body.select {
  49. opacity: 1;
  50. .select-option {
  51. height: auto;
  52. border-color: @line_color;
  53. }
  54. }
  55. .right-arrow {
  56. display: inline-block;
  57. position: relative;
  58. width: 16px;
  59. height: 16px;
  60. }
  61. .right-arrow::after {
  62. display: inline-block;
  63. content: " ";
  64. height: 8px;
  65. width: 8px;
  66. border-width: 2px 2px 0 0;
  67. border-color: #fff;
  68. border-style: solid;
  69. transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
  70. position: absolute;
  71. top: 50%;
  72. margin-top: -1px;
  73. }
  74. }