Update controller.scss

This commit is contained in:
A-Circle Zhang 2018-08-19 18:28:49 +08:00 committed by GitHub
parent 6707e750ae
commit c5026f071f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 45 additions and 1 deletions

View File

@ -35,6 +35,50 @@
.dplayer-bar .dplayer-played .dplayer-thumb {
transform: scale(1);
}
.dplayer-highlight {
display: block;
width: 8px;
transform: translateX(-4px);
top: 30%;
height: 40%;
}
}
.dplayer-highlight {
width: 9px;
z-index: 12;
position: absolute;
top: 40%;
width: 6px;
height: 20%;
border-radius: 6px;
background-color: #fff;
text-align: center;
transform: translateX(-3px);
transition: all .2s ease-in-out;
&:hover {
.dplayer-highlight-text {
display: block;
}
&~.dplayer-bar-preview {
opacity: 0;
},
&~.dplayer-bar-time {
opacity: 0;
}
}
.dplayer-highlight-text {
display: none;
position: absolute;
left: 50%;
top: -24px;
padding: 5px 8px;
background-color: rgba(0, 0, 0, .62);
color: #fff;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
transform: translateX(-50%);
}
}
.dplayer-bar-preview {
position: absolute;
@ -609,4 +653,4 @@
}
}
}
}
}