You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
160 lines
2.7 KiB
160 lines
2.7 KiB
.speed-select {
|
|
text-align: center;
|
|
display: block;
|
|
background: rgb(255, 255, 255);
|
|
box-shadow: rgb(0 0 0 / 10%) 0px 3px 20px 0px;
|
|
border-radius: 2px;
|
|
padding: 0px;
|
|
width: 100px;
|
|
position: absolute;
|
|
bottom: 48px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
color: rgba(0, 0, 0, 0.85);
|
|
user-select: none;
|
|
}
|
|
|
|
.speed-select li:hover {
|
|
background: #1890ff1a;
|
|
}
|
|
|
|
.speed-select ::after {
|
|
position: absolute;
|
|
bottom: -16px;
|
|
left: 40%;
|
|
content: " ";
|
|
border: 8px solid transparent;
|
|
border-top: 8px solid #ffffff;
|
|
}
|
|
|
|
/*避免触发onmouseleave事件*/
|
|
.speed-select ::before {
|
|
position: absolute;
|
|
bottom: -16px;
|
|
left: 0;
|
|
content: " ";
|
|
border: 8px solid transparent;
|
|
border-top: 8px solid transparent;
|
|
width: 100%;
|
|
}
|
|
|
|
.speed-select.mobile {
|
|
display: block;
|
|
position: fixed;
|
|
z-index: 2;
|
|
left: 0;
|
|
transform: translateX(0);
|
|
width: 90%;
|
|
margin: auto;
|
|
margin: 0px 5% 50px;
|
|
border-radius: 10px;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.hd.speed-select.mobile {
|
|
height: 90px;
|
|
}
|
|
|
|
.speed.speed-select.mobile {
|
|
height: 180px;
|
|
}
|
|
|
|
.speed-select.mobile .selectOption.active {
|
|
color: #648ffc;
|
|
}
|
|
|
|
.speed-select .selectOption.active {
|
|
color: #648ffc;
|
|
}
|
|
|
|
.speed-select.mobile .selectOption.cancel {
|
|
position: absolute;
|
|
background: #ffff;
|
|
width: 100%;
|
|
margin-top: 30px;
|
|
height: 45px;
|
|
text-align: center;
|
|
line-height: 45px;
|
|
list-style: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
color: rgba(0, 0, 0, 0.85);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.speed-select.mobile ::after {
|
|
display: none;
|
|
}
|
|
|
|
.speed-select-mask {
|
|
position: fixed;
|
|
width: 100%;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
/* height: 100vh; */
|
|
top: 0;
|
|
z-index: 1;
|
|
left: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.speed-select.mobile.expend {
|
|
bottom: 0;
|
|
top: auto;
|
|
width: 240px;
|
|
right: 0;
|
|
left: auto;
|
|
height: 100vw;
|
|
margin: 0;
|
|
background: rgba(0, 0, 0, 0.75);
|
|
color: #ffffff;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.speed-select.mobile.expend li {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.speed-select.mobile.expend li:first-child {
|
|
margin-top: 40%;
|
|
}
|
|
|
|
.speed-select.mobile.expend .selectOption.cancel {
|
|
left: 0;
|
|
top: 0;
|
|
width: 40px;
|
|
font-size: 0;
|
|
background: none;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.speed-select.mobile.expend .selectOption.cancel::before {
|
|
content: "";
|
|
display: block;
|
|
width: 16px;
|
|
height: 1px;
|
|
background: #ffffff;
|
|
border: none;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%) rotate(45deg);
|
|
}
|
|
|
|
.speed-select.mobile.expend .selectOption.cancel::after {
|
|
content: "";
|
|
display: block;
|
|
width: 1px;
|
|
height: 16px;
|
|
background: #ffffff;
|
|
border: none;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%) rotate(45deg);
|
|
}
|
|
|