909 lines
15 KiB
CSS
909 lines
15 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600;700&display=swap');
|
|
|
|
* {
|
|
padding: 0;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
color: #ffffff;
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
background-color: #020202;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
max-height: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
:root {
|
|
--grey: rgba(142, 142, 142, 20%);
|
|
--grey-hover: rgba(142, 142, 142, 30%);
|
|
}
|
|
|
|
/* width */
|
|
::-webkit-scrollbar {
|
|
width: 10px;
|
|
}
|
|
|
|
/* Handle */
|
|
::-webkit-scrollbar-thumb {
|
|
background: #888;
|
|
}
|
|
|
|
/* Handle on hover */
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #555;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.box {
|
|
position: absolute;
|
|
opacity: 20%;
|
|
border-radius: 40%;
|
|
filter: blur(60px);
|
|
transition: all 2s ease-in-out;
|
|
}
|
|
|
|
.dropdown-container {
|
|
position: relative;
|
|
display: inline-block;
|
|
padding: 10px;
|
|
border-radius: 10px 10px 0 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dropdown-container:hover {
|
|
background-color: var(--grey);
|
|
}
|
|
|
|
.dropdown-container:hover .dropdown-item {
|
|
display: block;
|
|
background-color: var(--grey);
|
|
}
|
|
|
|
.dropdown-content {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.dropdown-content img {
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
margin-right: .6rem;
|
|
}
|
|
|
|
.dropdown-item {
|
|
display: none;
|
|
position: absolute;
|
|
left: 0;
|
|
margin-top: 10px;
|
|
padding: 5px;
|
|
border-radius: 0 0 10px 10px;
|
|
width: 100%;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.dropdown-item a {
|
|
display: block;
|
|
padding: .5rem 1rem;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.dropdown-item i {
|
|
margin-right: .6rem;
|
|
}
|
|
|
|
.dropdown-item a:hover {
|
|
background-color: var(--grey-hover);
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
padding: 1rem;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
background-color: transparent;
|
|
transition: background-color 0.5s ease;
|
|
}
|
|
|
|
.header .left {
|
|
display: flex;
|
|
}
|
|
|
|
.header .left p {
|
|
font-size: 20px;
|
|
padding: 12px;
|
|
border-radius: 10px;
|
|
margin: 0rem 0.4rem;
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header .left p:hover {
|
|
background-color: var(--grey);
|
|
}
|
|
|
|
.header .center .search-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.header .center .search-container .search-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-radius: 8px;
|
|
padding: .6rem 1rem;
|
|
width: 500px;
|
|
overflow: hidden;
|
|
background-color: rgba(33, 33, 33, 255);
|
|
}
|
|
|
|
.header .center .search-loader {
|
|
display: none;
|
|
border: 3px solid transparent;
|
|
border-radius: 50%;
|
|
border-top: 3px solid #c9cbcc;
|
|
width: 20px;
|
|
height: 20px;
|
|
animation: spin 1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.header .center input {
|
|
margin: 0 1rem;
|
|
background-color: transparent;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
outline: none;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.header .center .search-result-list {
|
|
position: absolute;
|
|
display: none;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
top: 50px;
|
|
width: 100%;
|
|
height: 400px;
|
|
border-radius: 8px;
|
|
padding: 1rem .5rem;
|
|
background-color: rgba(33, 33, 33, 255);
|
|
}
|
|
|
|
.header .search-result {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-radius: 8px;
|
|
padding: .5rem 1rem;
|
|
cursor: pointer;
|
|
margin-bottom: .5rem;
|
|
}
|
|
|
|
.header .search-result:hover {
|
|
background-color: var(--grey);
|
|
}
|
|
|
|
.header .search-result-left {
|
|
display: flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
margin-right: .6rem;
|
|
max-width: 85%;
|
|
}
|
|
|
|
.header .search-result-info p.info {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header .search-result-info p.desc {
|
|
font-size: 14px;
|
|
color: gray;
|
|
}
|
|
|
|
.header .search-result img {
|
|
width: auto;
|
|
height: 50px;
|
|
border-radius: 4px;
|
|
margin-right: .5rem;
|
|
}
|
|
|
|
.main {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
padding: 0rem 4rem;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.toastContrainer {
|
|
position: absolute;
|
|
left: 2%;
|
|
z-index: 2;
|
|
}
|
|
|
|
.toastContrainer .toast {
|
|
display: flex;
|
|
position: relative;
|
|
padding: .8rem;
|
|
margin-top: 1rem;
|
|
background-color: var(--grey-hover);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
transform: translateX(-100%);
|
|
animation: moveRight .5s ease-in-out forwards;
|
|
}
|
|
|
|
@keyframes moveRight {
|
|
100% {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.toastContrainer .toast::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 3px;
|
|
background-color: azure;
|
|
animation: anim 6s ease-in-out forwards;
|
|
}
|
|
|
|
@keyframes anim {
|
|
100% {
|
|
width: 0;
|
|
}
|
|
}
|
|
|
|
.toastContrainer .toast img {
|
|
border-radius: 10px;
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-right: .7rem;
|
|
}
|
|
|
|
.toastContrainer .toast .content p.username {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.toastContrainer .toast .content p.message {
|
|
font-size: 10px;
|
|
width: 300px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.main .thumbnail {
|
|
display: flex;
|
|
position: relative;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.main .thumbnail img {
|
|
padding: 1rem;
|
|
width: 75%;
|
|
height: auto;
|
|
z-index: 1;
|
|
}
|
|
|
|
.main .thumbnail-background {
|
|
position: absolute;
|
|
padding: 1rem;
|
|
filter: blur(50px);
|
|
transform: translate3d(0px, 0px, 0) scale(1);
|
|
opacity: var(0.6);
|
|
border-radius: inherit;
|
|
transition: all 1s ease-in-out;
|
|
}
|
|
|
|
.player-controller {
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.player-controller:hover .seek-bar {
|
|
height: 9px;
|
|
}
|
|
|
|
.progress-bar-container {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.position-info {
|
|
position: absolute;
|
|
top: -30px;
|
|
left: 0;
|
|
display: none;
|
|
}
|
|
|
|
.progress-bar-container:hover .position-info {
|
|
display: block;
|
|
}
|
|
|
|
.seek-bar {
|
|
position: absolute;
|
|
appearance: none;
|
|
width: 100%;
|
|
height: 4px;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
background-color: rgb(73, 73, 73);
|
|
}
|
|
|
|
.seek-bar::-webkit-slider-thumb {
|
|
appearance: none;
|
|
width: 1px;
|
|
height: 20px;
|
|
background: rgb(171, 168, 168);
|
|
box-shadow: -1000px 0 0 1000px rgb(171, 168, 168);
|
|
}
|
|
|
|
.control-container {
|
|
display: flex;
|
|
padding: 1rem;
|
|
align-items: center;
|
|
background-color: #212121;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.player-controller .left {
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
|
|
.player-controller .left .control {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.player-controller .left .control i {
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
margin-left: .8rem;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.player-controller .left .control #play-pause-btn {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.player-controller .left .position {
|
|
display: flex;
|
|
padding: 10px;
|
|
margin-left: 1rem;
|
|
}
|
|
|
|
.player-controller .center {
|
|
display: flex;
|
|
padding: 0rem 1rem;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
flex: 2;
|
|
max-width: 40%;
|
|
}
|
|
|
|
.player-controller .center img {
|
|
border-radius: .2rem;
|
|
height: 40;
|
|
}
|
|
|
|
.player-controller .center .data {
|
|
overflow: hidden;
|
|
margin: 0 1rem;
|
|
}
|
|
|
|
.player-controller .center .data p {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.player-controller .center .desc {
|
|
color: grey;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.player-controller .center i {
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
font-size: 20px;
|
|
color: gray;
|
|
transition: color .2s ease-in-out;
|
|
}
|
|
|
|
.player-controller .center i:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
.player-controller .right {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: right;
|
|
align-items: center;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
.player-controller .right i {
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
margin-left: .8rem;
|
|
font-size: 20px;
|
|
color: gray;
|
|
transition: color .2s ease-in-out;
|
|
}
|
|
|
|
.player-controller .right i:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
.main .list {
|
|
flex: 1;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-items: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.main .auto-play {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 1rem;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.main .queue-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.main .queue-list ul {
|
|
list-style: none;
|
|
width: 95%;
|
|
max-height: 300px;
|
|
}
|
|
|
|
.track {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
max-width: 100%;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
border-radius: .5rem;
|
|
padding: 5px 15px;
|
|
overflow: hidden;
|
|
margin-bottom: .5rem;
|
|
transition: background-color .2s, transform .2s;
|
|
}
|
|
|
|
.track:hover {
|
|
background-color: var(--grey);
|
|
}
|
|
|
|
.track:hover .time {
|
|
display: none;
|
|
}
|
|
|
|
.track:hover i.action {
|
|
display: block;
|
|
}
|
|
|
|
.track.active {
|
|
background-color: var(--grey-hover);
|
|
}
|
|
|
|
.track .left {
|
|
display: flex;
|
|
justify-content: left;
|
|
align-items: center;
|
|
margin-right: .5rem;
|
|
max-width: 90%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.track i {
|
|
cursor: move;
|
|
margin-right: 1rem;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.track i.action {
|
|
display: none;
|
|
padding: .5rem 1rem;
|
|
border-radius: 50%;
|
|
margin-right: 0;
|
|
cursor: pointer;
|
|
transition: background-color .2s;
|
|
}
|
|
|
|
.track i.action:hover {
|
|
background-color: rgba(157, 157, 157, 50%);
|
|
}
|
|
|
|
.track i:active {
|
|
transform: scale(0.85);
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.track .left img {
|
|
padding: 5px;
|
|
height: 50;
|
|
border-radius: .5rem;
|
|
}
|
|
|
|
.track .left .info {
|
|
margin-left: .5rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.track .left .info p {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.track .left .info p.desc {
|
|
color: grey;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.users-bar {
|
|
position: absolute;
|
|
right: 0;
|
|
padding: 1.5rem 0;
|
|
background-color: rgb(37, 37, 37);
|
|
width: 0px;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
transition: all .5s ease-in-out;
|
|
z-index: 2;
|
|
}
|
|
|
|
.users-bar.active {
|
|
width: 350px;
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
.users-bar .info {
|
|
padding: 0 .5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.users-bar .info h5 {
|
|
color: rgba(142, 142, 142);
|
|
}
|
|
|
|
.users-container {
|
|
width: 100%;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.user {
|
|
padding: .5rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: .5rem;
|
|
}
|
|
|
|
.user .left {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.user img {
|
|
width: 35px;
|
|
height: auto;
|
|
border-radius: 8px;
|
|
margin-right: .5rem;
|
|
}
|
|
|
|
.context-menu {
|
|
display: none;
|
|
position: absolute;
|
|
z-index: 2;
|
|
}
|
|
|
|
.context-menu ul {
|
|
list-style: none;
|
|
min-width: 150px;
|
|
padding: .5rem 0;
|
|
border-radius: .3rem;
|
|
background-color: rgb(37, 37, 37);
|
|
}
|
|
|
|
.context-menu li {
|
|
padding: .5rem 1rem;
|
|
cursor: pointer;
|
|
transition: background-color .2s;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.context-menu li:hover {
|
|
background-color: rgb(98, 98, 98);
|
|
}
|
|
|
|
.context-menu i {
|
|
margin-right: .8rem;
|
|
}
|
|
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 52px;
|
|
height: 26px;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--grey-hover);
|
|
-webkit-transition: .4s;
|
|
transition: .4s;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white;
|
|
-webkit-transition: .4s;
|
|
transition: .4s;
|
|
}
|
|
|
|
input:checked+.slider {
|
|
background-color: #2196F3;
|
|
}
|
|
|
|
input:focus+.slider {
|
|
box-shadow: 0 0 1px #2196F3;
|
|
}
|
|
|
|
input:checked+.slider:before {
|
|
-webkit-transform: translateX(26px);
|
|
-ms-transform: translateX(26px);
|
|
transform: translateX(26px);
|
|
}
|
|
|
|
/* Rounded sliders */
|
|
.slider.round {
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.playlists {
|
|
flex-grow: 1;
|
|
padding: 0rem 4rem;
|
|
}
|
|
|
|
.playlists-grid {
|
|
display: grid;
|
|
grid-gap: 1.5rem;
|
|
padding: 2rem;
|
|
grid-template-rows: repeat(auto-fit, 250px);
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
|
|
grid-auto-rows: 250px;
|
|
}
|
|
|
|
.images {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 200px;
|
|
width: 200px;
|
|
border-radius: .5rem;
|
|
overflow: hidden;
|
|
position: relative;
|
|
transition: all 0.2s ease-in-out;
|
|
opacity: 0;
|
|
animation: created 1s ease-in-out forwards;
|
|
}
|
|
|
|
.images img {
|
|
width: 50%;
|
|
height: 50%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.images i.action {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
display: none;
|
|
color: white;
|
|
cursor: pointer;
|
|
margin: .5rem;
|
|
padding: .5rem .9rem;
|
|
background-color: transparent;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
.images i.play {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
margin: 1rem;
|
|
padding: .7rem .84rem;
|
|
display: none;
|
|
color: white;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
border-radius: 50%;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
.images::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
box-shadow: inset 0px 10px 40px rgba(0, 0, 0, 0.5);
|
|
opacity: 0;
|
|
transition: all 0.2s ease-in-out;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.images:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.images:hover i {
|
|
display: block;
|
|
text-align: center;
|
|
border-radius: 3rem;
|
|
}
|
|
|
|
.images i.action:hover {
|
|
background-color: rgba(255, 255, 255, 0.3);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.images i.action:active {
|
|
transform: scale(0.85);
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.images i.play:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.images i.play:active {
|
|
transform: scale(0.85);
|
|
box-shadow: 0 0 10px rgba(230, 230, 230, 0.3);
|
|
}
|
|
|
|
.playlist .info {
|
|
margin-top: .5rem;
|
|
}
|
|
.playlist .info p {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.playlist .info p.desc {
|
|
font-size: 14px;
|
|
color: gray;
|
|
}
|
|
|
|
@keyframes created {
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 935px) {
|
|
.main {
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 0;
|
|
}
|
|
|
|
.toastContrainer {
|
|
display: none;
|
|
}
|
|
|
|
.header .center {
|
|
display: none;
|
|
}
|
|
|
|
.player-controller .left .position {
|
|
display: none;
|
|
}
|
|
|
|
.player-controller .center img {
|
|
display: none;
|
|
}
|
|
|
|
ul {
|
|
width: 100%;
|
|
}
|
|
|
|
.playlists-grid {
|
|
grid-gap: 1rem;
|
|
padding: 1rem;
|
|
grid-template-rows: repeat(auto-fit, 200px);
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 150px));
|
|
grid-auto-rows: 200px;
|
|
}
|
|
|
|
.images {
|
|
height: 150px;
|
|
width: 150px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.main {
|
|
padding: 0;
|
|
}
|
|
|
|
.main .queue-list {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
min-width: 100%;
|
|
}
|
|
|
|
} |