small.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. @charset "utf-8";
  2. /**************************************************
  3. * MKOnlinePlayer v2.31
  4. * 小屏幕样式修复
  5. * 编写:mengkun(http://mkblog.cn)
  6. * 时间:2017-9-13
  7. *************************************************/
  8. /* 小于 900px 采用这个样式 */
  9. @media screen and (max-width: 900px) {
  10. /*隐藏头部logo*/
  11. .header {
  12. display: none;
  13. }
  14. /*中部顶格*/
  15. .center {
  16. top: 0;
  17. }
  18. /* 调出播放器按钮 */
  19. .btn[data-action='player'] {
  20. display: inline-block;
  21. }
  22. /* 彩色主题颜色 */
  23. .btn-box .active {
  24. background: linear-gradient(to right,#feac5e,#c779d0,#4bc0c8 100%);
  25. -webkit-background-clip: text;
  26. color: transparent;
  27. }
  28. /* 按钮工具条区域 */
  29. .btn-bar {
  30. height: 35px;
  31. right: 0;
  32. z-index: 999;
  33. }
  34. .btn-box {
  35. background-color: #272727;
  36. background-color: rgba(251, 247, 247, 0.63);
  37. position: absolute;
  38. top: 0;
  39. bottom: 0;
  40. left: 0;
  41. right: 0;
  42. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  43. }
  44. .btn {
  45. margin: 0;
  46. padding: 0;
  47. width: 25%;
  48. height: 100%;
  49. display: block;
  50. float: left;
  51. border: none;
  52. text-align: center;
  53. line-height: 35px;
  54. }
  55. .btn:hover {
  56. border: none;
  57. }
  58. .btn-box .active:after {
  59. content: '';
  60. display: block;
  61. background: linear-gradient(to right,#ff6e36,#ff5822,#E91E63 100%);
  62. box-shadow: 0 2px 6px rgba(228, 63, 66, 0.2);
  63. margin-left: 41%;
  64. margin-top: -8px;
  65. border-radius: 20px;
  66. width: 20px;
  67. height: 5px;;
  68. }
  69. /* 中部容器区域 */
  70. .data-area {
  71. top: 40px;
  72. }
  73. /*数据区域占满整个屏幕*/
  74. .data-area {
  75. right: 0;
  76. }
  77. /*列表菜单不显示*/
  78. .list-menu {
  79. display: none!important;
  80. }
  81. .music-name-cult {
  82. padding-right: 0!important;
  83. }
  84. /* 专辑区域腾出位置 */
  85. .music-album {
  86. margin-right: 30px;
  87. }
  88. /* 小屏幕的列表菜单 */
  89. .list-mobile-menu {
  90. position: absolute;
  91. display: block;
  92. width: 30px;
  93. height: 30px;
  94. background-image: url(../images/player.png);
  95. background-position: -30px -365px;
  96. right: 0;
  97. top: 50%;
  98. -webkit-transform: translateY(-50%);
  99. -moz-transform: translateY(-50%);
  100. -ms-transform: translateY(-50%);
  101. -o-transform: translateY(-50%);
  102. transform: translateY(-50%);
  103. z-index: 2;
  104. cursor: pointer;
  105. }
  106. /*控制按钮区域缩小*/
  107. .con-btn {
  108. width: 120px;
  109. }
  110. /*进度条调整*/
  111. .progress {
  112. width: auto;
  113. margin-left: 130px;
  114. margin-right: 10px;
  115. height: 100%;
  116. position: relative;
  117. }
  118. /*音量控制区域隐藏*/
  119. .vol {
  120. display: none;
  121. }
  122. /*隐藏右侧歌词及封面*/
  123. .player {
  124. display: none;
  125. width: 100%;
  126. }
  127. .cover {
  128. margin-top: 60px;
  129. }
  130. #lyric {
  131. overflow-x: hidden;
  132. overflow-y: auto;
  133. }
  134. .lyric {
  135. top: 260px;
  136. }
  137. }
  138. /* 小于 620px 采用这个样式 */
  139. @media screen and (max-width: 620px) {
  140. /*专辑信息不显示*/
  141. .music-album {
  142. display: none;
  143. }
  144. /*歌手名字*/
  145. .auth-name {
  146. width: 35%;
  147. padding-right: 30px;
  148. box-sizing: border-box;
  149. }
  150. /*音乐名字拉长*/
  151. .music-name {
  152. margin-right: 35%;
  153. }
  154. }
  155. /* 小于 500px 采用这个样式 */
  156. @media screen and (max-width: 500px) {
  157. .center {
  158. bottom: 60px;
  159. }
  160. /* 歌单封面 */
  161. .sheet-item {
  162. width: 33.33%;
  163. }
  164. /* 歌单名字 */
  165. .sheet-name {
  166. max-width: 100px;
  167. }
  168. .cover {
  169. margin-top: 50px;
  170. }
  171. .footer {
  172. height: 70px;
  173. height: 4rem;
  174. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  175. background: url(../images/dtbj2.gif);
  176. }
  177. }
  178. /* 小于 350px 采用这个样式 */
  179. @media screen and (max-width: 350px) {
  180. /* 歌单封面 */
  181. .sheet-item {
  182. width: 50%;
  183. }
  184. }