@charset "utf-8"; /************************************************** * MKOnlinePlayer v2.31 * 小屏幕样式修复 * 编写:mengkun(http://mkblog.cn) * 时间:2017-9-13 *************************************************/ /* 小于 900px 采用这个样式 */ @media screen and (max-width: 900px) { /*隐藏头部logo*/ .header { display: none; } /*中部顶格*/ .center { top: 0; } /* 调出播放器按钮 */ .btn[data-action='player'] { display: inline-block; } /* 彩色主题颜色 */ .btn-box .active { background: linear-gradient(to right,#feac5e,#c779d0,#4bc0c8 100%); -webkit-background-clip: text; color: transparent; } /* 按钮工具条区域 */ .btn-bar { height: 35px; right: 0; z-index: 999; } .btn-box { background-color: #272727; background-color: rgba(251, 247, 247, 0.63); position: absolute; top: 0; bottom: 0; left: 0; right: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } .btn { margin: 0; padding: 0; width: 25%; height: 100%; display: block; float: left; border: none; text-align: center; line-height: 35px; } .btn:hover { border: none; } .btn-box .active:after { content: ''; display: block; background: linear-gradient(to right,#ff6e36,#ff5822,#E91E63 100%); box-shadow: 0 2px 6px rgba(228, 63, 66, 0.2); margin-left: 41%; margin-top: -8px; border-radius: 20px; width: 20px; height: 5px;; } /* 中部容器区域 */ .data-area { top: 40px; } /*数据区域占满整个屏幕*/ .data-area { right: 0; } /*列表菜单不显示*/ .list-menu { display: none!important; } .music-name-cult { padding-right: 0!important; } /* 专辑区域腾出位置 */ .music-album { margin-right: 30px; } /* 小屏幕的列表菜单 */ .list-mobile-menu { position: absolute; display: block; width: 30px; height: 30px; background-image: url(../images/player.png); background-position: -30px -365px; right: 0; top: 50%; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -ms-transform: translateY(-50%); -o-transform: translateY(-50%); transform: translateY(-50%); z-index: 2; cursor: pointer; } /*控制按钮区域缩小*/ .con-btn { width: 120px; } /*进度条调整*/ .progress { width: auto; margin-left: 130px; margin-right: 10px; height: 100%; position: relative; } /*音量控制区域隐藏*/ .vol { display: none; } /*隐藏右侧歌词及封面*/ .player { display: none; width: 100%; } .cover { margin-top: 60px; } #lyric { overflow-x: hidden; overflow-y: auto; } .lyric { top: 260px; } } /* 小于 620px 采用这个样式 */ @media screen and (max-width: 620px) { /*专辑信息不显示*/ .music-album { display: none; } /*歌手名字*/ .auth-name { width: 35%; padding-right: 30px; box-sizing: border-box; } /*音乐名字拉长*/ .music-name { margin-right: 35%; } } /* 小于 500px 采用这个样式 */ @media screen and (max-width: 500px) { .center { bottom: 60px; } /* 歌单封面 */ .sheet-item { width: 33.33%; } /* 歌单名字 */ .sheet-name { max-width: 100px; } .cover { margin-top: 50px; } .footer { height: 70px; height: 4rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); background: url(../images/dtbj2.gif); } } /* 小于 350px 采用这个样式 */ @media screen and (max-width: 350px) { /* 歌单封面 */ .sheet-item { width: 50%; } }