speed.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .speed-select {
  2. text-align: center;
  3. display: block;
  4. width: 120px;
  5. background: rgb(255, 255, 255);
  6. box-shadow: rgb(0 0 0 / 10%) 0px 3px 20px 0px;
  7. border-radius: 2px;
  8. padding: 0px;
  9. position: absolute;
  10. bottom: 48px;
  11. left: -30px;
  12. color: rgba(0, 0, 0, 0.85);
  13. }
  14. .speed-select li:hover {
  15. background: #1890FF1a;
  16. }
  17. .speed-select ::after {
  18. position: absolute;
  19. bottom: -16px;
  20. left: 40%;
  21. content: ' ';
  22. border: 8px solid transparent;
  23. border-top: 8px solid #FFFFFF;
  24. }
  25. /*避免触发onmouseleave事件*/
  26. .speed-select ::before {
  27. position: absolute;
  28. bottom: -16px;
  29. left: 0;
  30. content: ' ';
  31. border: 8px solid transparent;
  32. border-top: 8px solid transparent;
  33. width: 100%;
  34. }
  35. .speed-select.mobile {
  36. display: block;
  37. position: fixed;
  38. z-index: 2;
  39. left: 0;
  40. width: 90%;
  41. margin: auto;
  42. margin: 0px 5% 50px;
  43. border-radius: 10px;
  44. padding: 10px 0;
  45. }
  46. .hd.speed-select.mobile {
  47. height: 90px;
  48. }
  49. .speed.speed-select.mobile {
  50. height: 180px;
  51. }
  52. .speed-select.mobile .selectOption.active {
  53. color: #648FFC;
  54. }
  55. .speed-select .selectOption.active {
  56. color: #648FFC;
  57. }
  58. .speed-select.mobile .selectOption.cancel {
  59. position: absolute;
  60. background: #FFFF;
  61. width: 100%;
  62. margin-top: 30px;
  63. height: 45px;
  64. text-align: center;
  65. line-height: 45px;
  66. list-style: none;
  67. cursor: pointer;
  68. font-size: 16px;
  69. color: rgba(0, 0, 0, .85);
  70. border-radius: 10px;
  71. }
  72. .speed-select.mobile ::after {
  73. display: none;
  74. }
  75. .speed-select-mask {
  76. position: fixed;
  77. width: 100%;
  78. background: rgba(0, 0, 0, 0.40);
  79. /* height: 100vh; */
  80. top: 0;
  81. z-index: 1;
  82. left: 0;
  83. bottom: 0;
  84. }
  85. .speed-select.mobile.expend {
  86. bottom: 0;
  87. top: auto;
  88. width: 240px;
  89. right: 0;
  90. left: auto;
  91. height: 100vw;
  92. margin: 0;
  93. background: rgba(0, 0, 0, 0.75);
  94. color: #FFFFFF;
  95. display: flex;
  96. justify-content: center;
  97. flex-direction: column;
  98. align-items: center;
  99. padding: 0;
  100. border-radius: 0;
  101. }
  102. .speed-select.mobile.expend li {
  103. color: #FFFFFF;
  104. }
  105. .speed-select.mobile.expend li:first-child {
  106. margin-top: 40%;
  107. }
  108. .speed-select.mobile.expend .selectOption.cancel {
  109. left: 0;
  110. top: 0;
  111. width: 40px;
  112. font-size: 0;
  113. background: none;
  114. margin-top: 0;
  115. }
  116. .speed-select.mobile.expend .selectOption.cancel::before {
  117. content: "";
  118. display: block;
  119. width: 16px;
  120. height: 1px;
  121. background: #FFFFFF;
  122. border: none;
  123. position: absolute;
  124. top: 50%;
  125. left: 50%;
  126. transform: translate(-50%, -50%) rotate(45deg);
  127. }
  128. .speed-select.mobile.expend .selectOption.cancel::after {
  129. content: "";
  130. display: block;
  131. width: 1px;
  132. height: 16px;
  133. background: #FFFFFF;
  134. border: none;
  135. position: absolute;
  136. top: 50%;
  137. left: 50%;
  138. transform: translate(-50%, -50%) rotate(45deg);
  139. }