Files
Vocard/web/static/css/main.css

659 lines
11 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;
}
.header .left {
display: flex;
}
.header .left p {
font-size: 20;
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;
}
.main .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(80px);
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;
}
.progress-bar-container {
position: relative;
width: 100%;
}
.seek-bar {
position: absolute;
appearance: none;
width: 100%;
height: 4px;
cursor: pointer;
overflow: hidden;
background-color: rgb(73, 73, 73);
}
.seek-bar:hover {
height: 8px;
}
.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: 20;
}
.player-controller .left .control #play-pause-button {
font-size: 30;
}
.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 {
margin-left: 1rem;
overflow: hidden;
}
.player-controller .center .desc {
color: grey;
font-size: 13;
}
.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: 20;
color: gray;
transition: color .2s ease-in-out;
}
.player-controller .right i:hover {
color: #fff;
}
.main .queue-list {
overflow-y: auto;
overflow-x: hidden;
flex: 1;
display: flex;
justify-content: center;
}
.track {
display: flex;
justify-content: space-between;
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 .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: 13;
}
.main .queue-list ul {
list-style: none;
width: 90%;
padding: 1rem;
padding-bottom: 5rem;
max-height: 300px;
}
.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;
}
.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;
}
.context-menu ul {
list-style: none;
padding: .5rem;
border-radius: .5rem;
background-color: rgb(37, 37, 37);
}
.context-menu li {
padding: .5rem;
border-radius: .3rem;
cursor: pointer;
transition: background-color .2s;
}
.context-menu li:hover {
padding: .5rem;
background-color: rgb(98, 98, 98);
}
.context-menu i {
margin-right: .8rem;
}
@media (max-width: 935px) {
.main {
flex-direction: column;
justify-content: center;
padding: 0;
}
.main .toastContrainer {
display: none;
}
.header .center {
display: none;
}
.player-controller .left .position {
display: none;
}
.player-controller .center img {
display: none;
}
ul {
width: 100%;
}
}
@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%;
}
}