speed.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. /* top: 0; */
  41. top: calc(100vh - 400px);
  42. width: 90%;
  43. margin: auto;
  44. margin: 0px 5% 50px;
  45. border-radius: 10px;
  46. padding: 10px 0;
  47. }
  48. .hd.speed-select.mobile {
  49. height: 90px;
  50. }
  51. .speed.speed-select.mobile {
  52. height: 180px;
  53. top: calc(100vh - 400px);
  54. }
  55. .speed-select.mobile .selectOption.active{
  56. color: #648FFC;
  57. }
  58. .speed-select .selectOption.active{
  59. color: #648FFC;
  60. }
  61. .speed-select.mobile .selectOption.cancel{
  62. position: absolute;background: #FFFF;
  63. width: 100%;
  64. margin-top: 30px;
  65. height: 45px;
  66. text-align: center;
  67. line-height: 45px;
  68. list-style: none;
  69. cursor: pointer;
  70. font-size: 16px;
  71. color: rgba(0, 0, 0, .85);
  72. border-radius: 10px;
  73. }
  74. .speed-select.mobile ::after{
  75. display: none;
  76. }
  77. .speed-select-mask {
  78. position: fixed;
  79. width: 100%;
  80. background: rgba(0,0,0,0.40);
  81. /* height: 100vh; */
  82. top: 0;
  83. z-index: 1;
  84. left: 0;
  85. bottom: 0;
  86. }
  87. .speed-select.mobile.expend {
  88. bottom: 0;
  89. top: auto;
  90. width: 240px;
  91. right: 0;
  92. left: auto;
  93. height: 100vw;
  94. margin: 0;
  95. background: rgba(0,0,0,0.75);
  96. color: #FFFFFF;
  97. display: flex;
  98. justify-content: center;
  99. flex-direction: column;
  100. align-items: center;
  101. padding: 0;
  102. border-radius: 0;
  103. }
  104. .speed-select.mobile.expend li{
  105. color: #FFFFFF;
  106. }
  107. .speed-select.mobile.expend li:first-child{
  108. margin-top: 40%;
  109. }
  110. .speed-select.mobile.expend .selectOption.cancel{
  111. left: 0;
  112. top: 0;
  113. width: 40px;
  114. font-size: 0;
  115. background: none;
  116. margin-top: 0;
  117. }
  118. .speed-select.mobile.expend .selectOption.cancel::before {
  119. content: "";
  120. display: block;
  121. width: 16px;
  122. height: 1px;
  123. background: #FFFFFF;
  124. border: none;
  125. position: absolute;
  126. top: 50%;
  127. left: 50%;
  128. transform: translate(-50%, -50%) rotate(45deg);
  129. }
  130. .speed-select.mobile.expend .selectOption.cancel::after {
  131. content: "";
  132. display: block;
  133. width: 1px;
  134. height: 16px;
  135. background: #FFFFFF;
  136. border: none;
  137. position: absolute;
  138. top: 50%;
  139. left: 50%;
  140. transform: translate(-50%, -50%) rotate(45deg);
  141. }