674 lines
13 KiB
CSS
674 lines
13 KiB
CSS
@charset "utf-8";
|
||
/**************************************************
|
||
* MKOnlinePlayer v2.1
|
||
* 播放器样式表文件
|
||
* 编写:mengkun(http://mkblog.cn)
|
||
* 时间:2017-3-20
|
||
*************************************************/
|
||
blockquote, body, button, dd, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, hr, html, input, lengend, li, ol, p, pre, td, textarea, th, ul {
|
||
margin: 0;
|
||
padding: 0
|
||
}
|
||
body, button, input, select, textarea, th {
|
||
color: #333;
|
||
background-color: #fff;
|
||
font-size: 14px;
|
||
line-height: 1.5;
|
||
font-family: poppin, 'PingFang SC', Tahoma, Arial, \5FAE\8F6F\96C5\9ED1, sans-serif;
|
||
font-family: Tahoma, Arial, \5FAE\8F6F\96C5\9ED1, sans-serif/9
|
||
}
|
||
h1, h2, h3, h4, h5, h6 {
|
||
font-size: 100%
|
||
}
|
||
li {
|
||
list-style: none
|
||
}
|
||
img {
|
||
border: 0 none;
|
||
-ms-interpolation-mode: bicubic;
|
||
image-rendering: optimizeQuality
|
||
}
|
||
input[type=button], input[type=submit] {
|
||
cursor: pointer
|
||
}
|
||
button {
|
||
cursor: pointer
|
||
}
|
||
table {
|
||
border-collapse: collapse;
|
||
border-spacing: 0
|
||
}
|
||
a {
|
||
color: #333;
|
||
text-decoration: none
|
||
}
|
||
a:hover {
|
||
color: #31c27c;
|
||
text-decoration: none
|
||
}
|
||
a:focus, button:focus, input:focus {
|
||
outline: 0
|
||
}
|
||
.text-center {text-align: center;}
|
||
.clear-fix {zoom: 1;}
|
||
.clear-fix:before, .clear-fix:after {display: table;line-height: 0;content: "";}
|
||
.clear-fix:after {clear: both; }
|
||
/*滚动条美化*/
|
||
.mCSB_container::-webkit-scrollbar{width:0;height:0}
|
||
|
||
html,body{
|
||
height: 100%;
|
||
background-color: #777970;
|
||
}
|
||
#blur {
|
||
background-color: #212121;
|
||
opacity:0.3;
|
||
filter:Alpha(opacity=30);
|
||
}
|
||
#blur,#blur-canvas {
|
||
position: absolute;
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
#blur-canvas{
|
||
/*z-index: -1;*/
|
||
}
|
||
#mkplayer{
|
||
display: none;
|
||
}
|
||
.header {
|
||
height: 50px;
|
||
position: absolute;
|
||
}
|
||
.logo {
|
||
display: inline-block;
|
||
font-size: 23px;
|
||
color: #829194;
|
||
cursor: pointer;
|
||
margin: 10px 20px;
|
||
}
|
||
.logo:hover {
|
||
color: #fff;
|
||
}
|
||
|
||
/* 宽度约束容器 */
|
||
.container{
|
||
position: relative;
|
||
width: 100%;
|
||
height: 100%;
|
||
max-width: 1200px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
/* 中部主要容器 */
|
||
.center{
|
||
position: absolute;
|
||
width: 100%;
|
||
top: 50px;
|
||
bottom: 100px;
|
||
}
|
||
|
||
/* 顶部按钮条 */
|
||
.btn-bar {
|
||
position: absolute;
|
||
display: inline-block;
|
||
left: 0;
|
||
right: 400px;
|
||
height: 55px;
|
||
}
|
||
|
||
|
||
/* 搜索区域 */
|
||
.btn-box {
|
||
position: absolute;
|
||
top: 10px;
|
||
bottom: 10px;
|
||
left: 10px;
|
||
right: 10px;
|
||
}
|
||
/* 常规按钮 */
|
||
.btn {
|
||
display: inline-block;
|
||
position: relative;
|
||
border-radius: 2px;
|
||
border: 1px solid #fff;
|
||
border: 1px solid rgba(150,150,150,.5);
|
||
color: #fff;
|
||
opacity: .8;
|
||
filter: alpha(opacity=80);
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
padding: 6px 25px;
|
||
margin: 0 2px;
|
||
}
|
||
.btn:hover {
|
||
border: 1px solid #fff;
|
||
opacity: 1;
|
||
filter: alpha(opacity=100);
|
||
}
|
||
.btn[data-action='player'] {
|
||
display: none;
|
||
}
|
||
|
||
.search-btn {
|
||
text-align: center;
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
background-color: #eee;
|
||
right: 0;
|
||
padding: 6px 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.search-submit {
|
||
width: 100px;
|
||
|
||
}
|
||
|
||
.search-close {
|
||
padding: 8px 0;
|
||
background-color: #fff;
|
||
width: 30px;
|
||
right: 100px;
|
||
}
|
||
|
||
.input{
|
||
display: block;
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 120px;
|
||
background-color: #fff;
|
||
}
|
||
|
||
.input input {
|
||
position: absolute;
|
||
border: none;
|
||
top: 10px;
|
||
bottom: 10px;
|
||
left: 10px;
|
||
width: 100%;
|
||
}
|
||
|
||
/* 左侧主体数据区 */
|
||
.data-area {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 400px;
|
||
top: 60px;
|
||
bottom: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* 数据区域容器 */
|
||
.data-box {
|
||
position: absolute;
|
||
left: 10px;
|
||
right: 10px;
|
||
top: 10px;
|
||
bottom: 10px;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
/*以下是播放列表 css 样式*/
|
||
/* 列表头 */
|
||
.list-head {
|
||
height: 40px;
|
||
}
|
||
|
||
/* 一项数据 */
|
||
.list-item {
|
||
width: 100%;
|
||
height: 50px;
|
||
line-height: 50px;
|
||
color: #bdbdbe;
|
||
color: rgba(225,225,225,.8);
|
||
font-size: 14px;
|
||
overflow: hidden;
|
||
border-bottom: 1px solid rgba(150,150,150,.1);
|
||
cursor: default;
|
||
}
|
||
|
||
/* 正在播放的那项 */
|
||
.list-playing {
|
||
color: #fff;
|
||
}
|
||
|
||
/* 列表数字 */
|
||
.list-num {
|
||
display: block;
|
||
width: 30px;
|
||
text-align: center;
|
||
float: left;
|
||
overflow: hidden;
|
||
}
|
||
/* 正在播放的那项数字 */
|
||
.list-playing .list-num {
|
||
background: url("../images/wave.gif") 10px 20px no-repeat;
|
||
text-indent: -99px;
|
||
}
|
||
|
||
/* 音乐名字 */
|
||
.music-name {
|
||
position: relative;
|
||
display: block;
|
||
width: auto;
|
||
margin-left: 40px;
|
||
margin-right: 300px;
|
||
height: 100%;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none; /*禁止双击选定*/
|
||
-ms-user-select: none;
|
||
-o-user-select: none;
|
||
user-select: none;
|
||
}
|
||
/* 鼠标滑过时音乐名字被截断 */
|
||
.music-name-cult {
|
||
display: block;
|
||
word-break: keep-all;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.list-item:hover .music-name-cult {
|
||
padding-right: 150px;
|
||
}
|
||
.list-playing:hover .music-name-cult {
|
||
padding-right: 100px;
|
||
}
|
||
/* 作者名称与音乐专辑 */
|
||
.auth-name,.music-album {
|
||
position: relative;
|
||
display: block;
|
||
width: 150px;
|
||
float: right;
|
||
height: 100%;
|
||
word-break: keep-all;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
/*列表中滑动出现的菜单*/
|
||
.list-menu {
|
||
position: absolute;
|
||
right: 10px;
|
||
top: 50%;
|
||
overflow: hidden;
|
||
font-size: 0;
|
||
height: 36px;
|
||
margin-top: -18px;
|
||
float: right;
|
||
display: none;
|
||
}
|
||
.list-item:hover .list-menu {
|
||
display: block;
|
||
}
|
||
.list-head:hover .list-menu {
|
||
display: none;
|
||
}
|
||
|
||
/* 列表中滑动出现的小图标 */
|
||
.list-icon {
|
||
display: block;
|
||
width: 36px;
|
||
height: 36px;
|
||
background-image: url("../images/icon_list_menu.png");
|
||
float: left;
|
||
margin-left: 10px;
|
||
}
|
||
.list-playing .icon-play{
|
||
display: none;
|
||
}
|
||
.icon-play {
|
||
background-position: -80px 0;
|
||
}
|
||
.icon-play:hover {
|
||
background-position: -120px 0;
|
||
}
|
||
.icon-download {
|
||
background-position: -80px -120px;
|
||
}
|
||
.icon-download:hover {
|
||
background-position: -120px -120px;
|
||
}
|
||
.icon-share {
|
||
background-position: -80px -40px;
|
||
}
|
||
.icon-share:hover {
|
||
background-position: -120px -40px;
|
||
}
|
||
|
||
/* 分享弹窗中的链接框 */
|
||
.share-url {
|
||
width: 100%;
|
||
margin-top: 10px;
|
||
}
|
||
|
||
/* 列表中点击加载更多 */
|
||
.list-loadmore {
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* 以下是歌单 css 样式 */
|
||
/* 歌单中的一项 */
|
||
.sheet-item {
|
||
position: relative;
|
||
display: block;
|
||
width: 25%;
|
||
float: left;
|
||
text-align: center;
|
||
}
|
||
/* 歌单封面 */
|
||
.sheet-cover {
|
||
display: block;
|
||
width: 100px;
|
||
height: 100px;
|
||
margin: 10px auto;
|
||
cursor: pointer;
|
||
}
|
||
/* 正在播放的列表 */
|
||
.sheet-playing:before {
|
||
content: url(../images/wave.gif);
|
||
position: absolute;
|
||
top: 90px;
|
||
left: 50%;
|
||
margin-left: -45px;
|
||
}
|
||
|
||
/* 歌单名字 */
|
||
.sheet-name {
|
||
/*padding: 0 5px;*/
|
||
display: inline-block;
|
||
max-width: 120px;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
-o-text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
margin-bottom: 10px;
|
||
color: #fff;
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
}
|
||
/* 播放列表分割标题栏 */
|
||
.sheet-title-bar {
|
||
border-radius: 2px;
|
||
margin: 20px 0;
|
||
text-align: center;
|
||
line-height: 40px;
|
||
height: 40px;
|
||
background-color: rgba(0, 0, 0, 0.12);
|
||
}
|
||
.login-btn {
|
||
cursor: pointer;
|
||
}
|
||
.login-btn:hover {
|
||
color: #31c27c;
|
||
}
|
||
|
||
/* 以下是界面右侧 css 样式 */
|
||
/* 播放器主体(歌词和封面) */
|
||
.player {
|
||
height: 100%;
|
||
width: 400px;
|
||
float: right;
|
||
position: relative;
|
||
}
|
||
|
||
/* 歌曲封面区域 */
|
||
.cover {
|
||
position: relative;
|
||
display: block;
|
||
width: 186px;
|
||
height: 186px;
|
||
margin: auto;
|
||
}
|
||
|
||
.cover:after {
|
||
content: "";
|
||
position: absolute;
|
||
left: 9px;
|
||
top: 0;
|
||
width: 201px;
|
||
height: 180px;
|
||
background: url(../images/album_cover_player.png) 0 0 no-repeat;
|
||
}
|
||
/* 歌曲封面图片 */
|
||
.music-cover {
|
||
vertical-align: middle;
|
||
width: 186px;
|
||
height: 186px;
|
||
}
|
||
|
||
/* 歌词部分 */
|
||
.lyric {
|
||
position: absolute;
|
||
left: 10px;
|
||
right: 10px;
|
||
top: 195px;
|
||
bottom: 10px;
|
||
overflow: hidden;
|
||
text-align: center;
|
||
color: #bdbdbe;
|
||
color: rgba(225,225,225,.8);
|
||
line-height: 28px;
|
||
padding: 20px 0;
|
||
}
|
||
|
||
#lyric {
|
||
position: absolute;
|
||
width: 100%;
|
||
top: 0;
|
||
bottom: 0;
|
||
overflow: hidden;
|
||
}
|
||
/* 正在播放的那一句歌词 */
|
||
#lyric .lplaying {
|
||
color: #31c27c;
|
||
}
|
||
/* 歌词显示区显示的提示语(如加载中、无歌词等) */
|
||
.lyric-tip {
|
||
position: absolute;
|
||
width: 100%;
|
||
top: 50%;
|
||
}
|
||
|
||
/* 歌曲信息按钮 */
|
||
#music-info {
|
||
position: absolute;
|
||
width: 26px;
|
||
height: 26px;
|
||
border-radius: 13px;
|
||
right: 10px;
|
||
bottom: 10px;
|
||
cursor: pointer;
|
||
color: #fff;
|
||
text-align: center;
|
||
line-height: 26px;
|
||
font-family: SimSun,"宋体";
|
||
font-weight: bold;
|
||
background-color: #4E4E4E;
|
||
opacity: 0.3;
|
||
filter: Alpha(opacity=30);
|
||
}
|
||
/* 标题 */
|
||
.info-title {
|
||
color: #B2AFAF
|
||
}
|
||
.info-btn {
|
||
cursor: pointer;
|
||
color: #31c27c;
|
||
}
|
||
.info-btn:hover {
|
||
text-decoration: underline;
|
||
}
|
||
/* 底部 */
|
||
.footer {
|
||
height: 100px;
|
||
bottom: 0;
|
||
width: 100%;
|
||
position: absolute;
|
||
}
|
||
|
||
/* 带图片的按钮 */
|
||
.player-btn {
|
||
background-image: url("../images/player.png");
|
||
opacity: .8;
|
||
filter: alpha(opacity=80)
|
||
}
|
||
.player-btn:hover {
|
||
opacity: 1;
|
||
filter: alpha(opacity=100)
|
||
}
|
||
/* 暂停状态 */
|
||
.btn-state-paused {
|
||
background-position: -30px 0;
|
||
}
|
||
/* 控制按钮(上一首、播放、下一首)区域 */
|
||
.con-btn {
|
||
float: left;
|
||
width: 130px;
|
||
height: 100%;
|
||
position: relative;
|
||
margin: 0 10px;
|
||
}
|
||
.con-btn a{
|
||
display: inline-block;
|
||
position: absolute;
|
||
top: 50%;
|
||
}
|
||
.btn-prev{
|
||
background-position: 0 -30px;
|
||
width: 19px;
|
||
height: 20px;
|
||
margin-top: -10px;
|
||
}
|
||
|
||
.btn-play{
|
||
width: 21px;
|
||
height: 29px;
|
||
margin-top: -14.5px;
|
||
left: 50%;
|
||
margin-left: -10.5px;
|
||
}
|
||
.btn-next{
|
||
background-position: 0 -52px;
|
||
right: 0;
|
||
width: 19px;
|
||
height: 20px;
|
||
margin-top: -10px;
|
||
}
|
||
|
||
/* 音乐进度条区域 */
|
||
.progress {
|
||
width: auto;
|
||
margin-left: 150px;
|
||
margin-right: 200px;
|
||
height: 100%;
|
||
position: relative;
|
||
}
|
||
|
||
/* 限制进度条的盒子 */
|
||
.progress-box {
|
||
position: absolute;
|
||
height: 20px;
|
||
left: 10px;
|
||
right: 0;
|
||
top: 50%;
|
||
margin-top: -10px;
|
||
}
|
||
|
||
/* 音量控制区域 */
|
||
.vol {
|
||
float: right;
|
||
width: 200px;
|
||
height: 100%;
|
||
right: 0;
|
||
position: relative;
|
||
}
|
||
|
||
.quiet {
|
||
width: 60px;
|
||
height: 100%;
|
||
position: relative;
|
||
float: left;
|
||
}
|
||
.btn-quiet{
|
||
display: inline-block;
|
||
position: absolute;
|
||
width: 26px;
|
||
height: 21px;
|
||
top: 50%;
|
||
right: 0;
|
||
margin-top: -10px;
|
||
background-position: 0 -144px;
|
||
}
|
||
.btn-state-quiet {
|
||
background-position: 0 -182px;
|
||
}
|
||
.volume {
|
||
position: relative;
|
||
margin-left: 60px;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
/* 限制声音进度条的盒子 */
|
||
.volume-box {
|
||
position: absolute;
|
||
height: 20px;
|
||
left: 10px;
|
||
right: 10px;
|
||
top: 50%;
|
||
margin-top: -10px;
|
||
}
|
||
|
||
/* 以下是孟坤进度条控件样式区域 */
|
||
/* 进度条可点击区域 */
|
||
.mkpgb-area {
|
||
position: relative;
|
||
cursor: pointer;
|
||
height: 100%;
|
||
}
|
||
/* 进度条有背景区域 */
|
||
.mkpgb-bar {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 0;
|
||
right: 0;
|
||
height: 2px;
|
||
margin-top: -1px;
|
||
border-radius: 2px;
|
||
background-color: #808284;
|
||
overflow: hidden;
|
||
}
|
||
/* 进度条已完成区域 */
|
||
.mkpgb-cur {
|
||
position: absolute;
|
||
background-color: #D8D8D8;
|
||
width: 0;
|
||
height: 2px;
|
||
top: 50%;
|
||
margin-top: -1px;
|
||
border-radius: 2px;
|
||
}
|
||
/* 进度条小点 */
|
||
.mkpgb-dot {
|
||
width: 10px;
|
||
height: 10px;
|
||
background-color: #fff;
|
||
border-radius: 5px;
|
||
overflow: hidden;
|
||
position: absolute;
|
||
left: 0px;
|
||
margin-left: -5px;
|
||
top: 50%;
|
||
margin-top: -5px;
|
||
}
|
||
/* 进度条禁止点击样式 */
|
||
.mkpgb-locked {
|
||
cursor: not-allowed;
|
||
}
|
||
|