198 lines
10 KiB
SCSS
198 lines
10 KiB
SCSS
@charset "UTF-8";
|
|
/**
|
|
* {sonist app style}
|
|
* @authors yutent<yutent@doui.cc>
|
|
* @date 2018/12/16 17:15:07
|
|
*/
|
|
|
|
|
|
@import "./var.scss";
|
|
|
|
@font-face {font-family: "sonist font";
|
|
src: url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAysAAsAAAAAFOAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY9ikkYY21hcAAAAYAAAACpAAACRLbi0KRnbHlmAAACLAAACAwAAA0QU/XrjmhlYWQAAAo4AAAALwAAADYTt0/UaGhlYQAACmgAAAAcAAAAJAfeA5FobXR4AAAKhAAAAA8AAABAQAAAAGxvY2EAAAqUAAAAIgAAACIcSBmSbWF4cAAACrgAAAAfAAAAIAElAK5uYW1lAAAK2AAAAVAAAAKRbYZNvnBvc3QAAAwoAAAAgwAAAL22eIcreJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWCcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeizxXY27438AQw9zA0AAUZgTJAQDhxQwfeJztkcsRwkAMQ7UkhF8gFyCTQ/iTE7VQECeKoxeVEeQVZWDP2/Has5+RAEwBFOIhSiC9kRDxUjflfoFl7pd4aj9XTgC27DiMo6qtqj6qHEnzjTKqic6WeqHCTN2F7lmhxlrTRuMK/6jz+vntmlDThPbcmaz33oRXbE34xc6Ej+yN9AYPRsqDRyMPwJORG+DZhL+8GDkEXk38jjcj18C7CXc5GDRf39Ms5gAAAHiclRZbbBvHcWfveLf34JFHHo+iJFI6HnUXWzQlPkTKkkxJ1sOO3Ypx7FSGU6dw8+FXArewEyNwP+SiQIPCbSC0QeG/Bkb91SAN0jfqxA5a9KdG0aAoarQoAjQpnI8WSYD2yzx3lkd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qiS6afOMjf1jeQPYH10p3s3icbYxbDoIwFAV7Cq0WUHEhLKqRG23sA/sg6upFDX45X5OTyWGcfWnYf3pwVKghILHBFgoNWnTYYY8DehxZpa1VdCvGmidFcSEds3AlmZOarH4M1qTM3VxH7a8yGX+mKBcfgxNRjyZ8NkttCn4pB0/3vPoUae5W1yX9ovcxYy/tJyzCAA==') format('woff')
|
|
}
|
|
|
|
[class^="s-icon-"], [class*=" s-icon-"] {display:inline-block;font-family:"sonist font" !important;font-style:normal;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}
|
|
|
|
.s-icon-all:before { content: "\e714"; }
|
|
.s-icon-eq:before { content: "\e715"; }
|
|
.s-icon-heart:before { content: "\e716"; }
|
|
.s-icon-music:before { content: "\e717"; }
|
|
.s-icon-play-list:before { content: "\e719"; }
|
|
.s-icon-mv:before { content: "\e71d"; }
|
|
.s-icon-rank:before { content: "\e71e"; }
|
|
.s-icon-singer:before { content: "\e71f"; }
|
|
.s-icon-random:before { content: "\e720"; }
|
|
.s-icon-radio:before { content: "\e721"; }
|
|
.s-icon-single:before { content: "\e722"; }
|
|
.s-icon-next:before { content: "\e723"; }
|
|
.s-icon-prev:before { content: "\e724"; }
|
|
.s-icon-pause:before { content: "\e725"; }
|
|
.s-icon-play:before { content: "\e726"; }
|
|
|
|
.do-fn-drag {-webkit-app-region:drag;user-select: none;}
|
|
.do-fn-nodrag {-webkit-app-region:no-drag;}
|
|
|
|
html {font-size:62.5%}
|
|
body {line-height:1.5;background:#fff;font-size:1.4rem;color:nth($cd, 1)}
|
|
|
|
table {overflow:auto;display:table;width:100%;line-height:2.5rem;
|
|
thead tr {height:4.5rem;border-bottom:.1rem solid nth($cp, 1)}
|
|
thead th {padding:1rem .8rem;border:0;}
|
|
tbody tr {height:auto;@include ts(background, .3s);
|
|
&:hover {background:#f7f8fb;}
|
|
}
|
|
tbody td {padding:.9rem .8rem}
|
|
}
|
|
|
|
::-webkit-scrollbar {width:8px;height:8px;background:#f7f8fb;}
|
|
::-webkit-scrollbar:hover {background:#f3f5fb;}
|
|
::-webkit-scrollbar-button {display:none;}
|
|
::-webkit-scrollbar-thumb {background:nth($cp, 3);}
|
|
::-webkit-scrollbar-thumb:hover {background:nth($ct, 1);}
|
|
|
|
|
|
.do-mod-app {display:flex;position:fixed;left:0;top:0;width:100%;height:100%;
|
|
|
|
|
|
.menubar {position:absolute;left:1.2rem;top:0;z-index:99;width:auto;height:3rem;padding:.9rem 0;
|
|
|
|
.item {display:inline-block;width:1.2rem;height:1.2rem;margin:0 .2rem;background:url(/images/btn-grey.svg) no-repeat;background-size:cover;}
|
|
|
|
&.focus {
|
|
.quit {background-image:url(/images/btn-close.svg);}
|
|
.min {background-image:url(/images/btn-mini.svg);}
|
|
.max {background-image:url(/images/btn-maxi.svg);}
|
|
}
|
|
&:hover {
|
|
.quit {background-image:url(/images/btn-close_a.svg);}
|
|
.min {background-image:url(/images/btn-mini_a.svg);}
|
|
.max {background-image:url(/images/btn-maxi_a.svg);}
|
|
}
|
|
}
|
|
|
|
.menubar-win {position:absolute;right:1.2rem;top:0;z-index:99;width:auto;height:4rem;padding:.9rem 0;line-height:1.8rem;
|
|
|
|
.item,.opt {position:relative;display:inline-block;width:2.2rem;height:2.2rem;margin:0 .2rem;padding:.2rem;font-size:1.6rem;
|
|
}
|
|
.item:hover {transform:scale(1.1)}
|
|
|
|
.opt i {font-size:1.8rem;}
|
|
|
|
.opt-list {position:absolute;z-index:100;right:0;top:2.2rem;width:13rem;height:auto;padding:.8rem 0;background:#fff;box-shadow:0 .5rem 2rem rgba(0, 0, 0, .1);font-size:1.4rem;
|
|
span {display:flex;align-items:center;height:3rem;padding:0 2rem;line-height:3rem;
|
|
|
|
i {padding-right:.8rem;}
|
|
&.pipe {height:.1rem;margin:.5rem 0;border-bottom:.1rem solid nth($cp, 1)}
|
|
&:hover {background:nth($cp, 1)}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar {flex:0 1 22rem;position:relative;height:100%;background:nth($cp, 1);
|
|
|
|
// 用户信息
|
|
.user-box {width:18rem;height:16.5rem;margin:4rem 2rem 0;text-align:center;
|
|
|
|
.avatar {overflow:hidden;width:12rem;height:12rem;margin:0 3rem;border:.6rem solid #fff;border-radius:50%;box-shadow:0 .5rem 1.5rem rgba(0, 0, 0, .15);}
|
|
img {width:100%;height:100%;}
|
|
.uname {line-height:2;font-weight:normal;}
|
|
}
|
|
|
|
// 音乐菜单
|
|
.music-box {width:100%;height:auto;padding:0 1.5rem;
|
|
|
|
dt.title {line-height:4rem;color:nth($cgr, 1)}
|
|
dd.item {height:3rem;margin:.3rem 0;padding:0 .8rem;line-height:3rem;color:nth($cgr, 3);
|
|
|
|
.icon {float:left;width:3rem;height:3rem;padding:0 .5rem;font-size:2.4rem;}
|
|
&:hover {padding-left:.9rem;color:nth($ct, 1);}
|
|
&.active {border-radius:.3rem;background:nth($ct, 1);color:#fff;}
|
|
&.disabled {opacity:.25}
|
|
}
|
|
}
|
|
|
|
// 播放控制按钮
|
|
.play-contrl {position:absolute;left:0;bottom:0;width:100%;height:8rem;background:rgba(255,255,255,.3);
|
|
|
|
.item {position:absolute;top:2rem;width:4rem;height:4rem;line-height:4rem;font-size:3.5rem;text-align:center;color:nth($ct, 2);@include ts();
|
|
|
|
&:hover {color:nth($cp, 3)}
|
|
&:active {color:nth($ct, 1);transform:scale(1.1)}
|
|
}
|
|
.prev {left:2.5rem;}
|
|
.play {left:50%;top:1.5rem;width:5rem;height:5rem;margin-left:-2.5rem;line-height:5rem;font-size:4.5rem;}
|
|
.next {right:2.5rem;}
|
|
}
|
|
}
|
|
|
|
|
|
// 主体样式
|
|
.main {flex:1;display:flex;flex-flow:column wrap;
|
|
|
|
// 工具栏
|
|
.tool-bar {flex:0 1 5rem;padding:1rem;
|
|
|
|
.search {position:relative;display:inline-block;line-height:3rem;}
|
|
.icon {position:absolute;right:0;top:0;width:2.6rem;height:3rem;}
|
|
input {width:20rem;padding:0 1.3rem;border-radius:1.5rem;}
|
|
}
|
|
|
|
// 功能模块
|
|
.module {flex:1;display:flex;flex-flow:column wrap;}
|
|
|
|
|
|
|
|
// 播放条
|
|
.play-bar {position:relative;flex:0 1 8rem;display:flex;justify-content:center;align-items:center;background:#f5f6fc;
|
|
|
|
.song-stat {flex:1;height:8rem;margin:0 2rem 0 0;
|
|
|
|
canvas {display:flex;width:100%;height:100%;}
|
|
}
|
|
|
|
.ctrl {position:relative;flex:0 1 3.5rem;height:3rem;line-height:3rem;text-align:center;color:nth($ct, 2);font-size:2rem;
|
|
|
|
&:hover {color:nth($ct, 1)}
|
|
&:active {color:nth($ct, 3)}
|
|
&.lrc {margin-right:2rem;font-size:1.6rem;}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes play {
|
|
from {transform:rotate(0deg)}
|
|
to {transform:rotate(360deg)}
|
|
} |
JavaScript
60.1%
SCSS
19.2%
HTML
16.9%
CSS
3.8%