1
0

index.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. .down-arrow {
  56. display: inline-block;
  57. position: relative;
  58. width: 16px;
  59. height: 16px;
  60. }
  61. .down-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. .up-arrow {
  75. display: inline-block;
  76. position: relative;
  77. width: 16px;
  78. height: 16px;
  79. }
  80. .up-arrow::after {
  81. display: inline-block;
  82. content: " ";
  83. height: 8px;
  84. width: 8px;
  85. border-width: 2px 2px 0 0;
  86. border-color: #fff;
  87. border-style: solid;
  88. transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
  89. position: absolute;
  90. top: 50%;
  91. margin-top: -1px;
  92. }
  93. &.white {
  94. cursor: pointer;
  95. text-align: center;
  96. .select-warp.active {
  97. background: rgba(241, 243, 246, 1);
  98. }
  99. .button {
  100. width: 98px;
  101. padding: 0px;
  102. border-radius: 0;
  103. background: none;
  104. color: #686872;
  105. line-height: 30px;
  106. }
  107. .up-arrow {
  108. display: none;
  109. }
  110. .down-arrow {
  111. display: none;
  112. }
  113. color: #686872;
  114. .select-body {
  115. border: none;
  116. }
  117. .select-option {
  118. padding: 0;
  119. text-align: center;
  120. line-height: 30px;
  121. border: none;
  122. }
  123. }
  124. }