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.
226 lines
3.1 KiB
226 lines
3.1 KiB
.player-container {
|
|
position: relative;
|
|
z-index: 100;
|
|
}
|
|
|
|
.player-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: #fff;
|
|
border-top: 1rpx solid #eee;
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
|
|
.progress {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 32rpx;
|
|
height: 40rpx;
|
|
}
|
|
|
|
.slider {
|
|
flex: 1;
|
|
margin: 0 20rpx;
|
|
}
|
|
|
|
.time {
|
|
font-size: 20rpx;
|
|
color: #999;
|
|
min-width: 60rpx;
|
|
}
|
|
|
|
.main-bar {
|
|
height: 120rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 32rpx;
|
|
}
|
|
|
|
.song-info {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.cover {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
border-radius: 8rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.cover.rotating {
|
|
animation: rotate 8s linear infinite;
|
|
}
|
|
|
|
@keyframes rotate {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.name {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
margin-bottom: 4rpx;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.artist {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.play-btn {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.play-btn image {
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
}
|
|
|
|
/* 播放列表面板 */
|
|
.playlist-panel {
|
|
position: fixed;
|
|
bottom: -100vh;
|
|
left: 0;
|
|
right: 0;
|
|
height: 60vh;
|
|
background: #fff;
|
|
border-radius: 24rpx 24rpx 0 0;
|
|
transition: transform 0.3s ease;
|
|
z-index: 100;
|
|
}
|
|
|
|
.playlist-panel.show {
|
|
transform: translateY(-100%);
|
|
}
|
|
|
|
.playlist-header {
|
|
padding: 32rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1rpx solid #eee;
|
|
}
|
|
|
|
.playlist-header .close {
|
|
font-size: 48rpx;
|
|
color: #999;
|
|
line-height: 1;
|
|
}
|
|
|
|
.playlist-content {
|
|
height: calc(100% - 100rpx);
|
|
}
|
|
|
|
/* 歌词弹窗 */
|
|
.lyric-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
z-index: 999;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.lyric-modal.show {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.lyric-content {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 70vh;
|
|
background: #fff;
|
|
border-radius: 24rpx 24rpx 0 0;
|
|
padding: 32rpx;
|
|
transform: translateY(100%);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.lyric-modal.show .lyric-content {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.lyric-scroll {
|
|
height: 100%;
|
|
}
|
|
|
|
.lyric-line {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
text-align: center;
|
|
padding: 20rpx 0;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.lyric-line.active {
|
|
color: #ff3a3a;
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.lyric-empty {
|
|
text-align: center;
|
|
color: #999;
|
|
padding: 40rpx 0;
|
|
}
|
|
|
|
/* 深色模式 */
|
|
@media (prefers-color-scheme: dark) {
|
|
.player-bar {
|
|
background: #1a1a1a;
|
|
border-top-color: #333;
|
|
}
|
|
|
|
.name {
|
|
color: #fff;
|
|
}
|
|
|
|
.artist {
|
|
color: #666;
|
|
}
|
|
|
|
.playlist-panel {
|
|
background: #1a1a1a;
|
|
}
|
|
|
|
.playlist-header {
|
|
border-bottom-color: #333;
|
|
}
|
|
|
|
.lyric-content {
|
|
background: #1a1a1a;
|
|
}
|
|
|
|
.lyric-line {
|
|
color: #999;
|
|
}
|
|
|
|
.lyric-line.active {
|
|
color: #ff6b6b;
|
|
}
|
|
} |