Files
codey.lol/src/assets/styles/player.css

258 lines
4.2 KiB
CSS
Raw Normal View History

2025-06-18 07:46:59 -04:00
div > img {
transition: 300ms;
}
div > img:hover {
opacity: 0.7;
cursor: pointer;
}
div {
box-sizing: border-box;
}
img {
width: 100%;
height: 100%;
}
.album-cover > img {
height: 100% !important;
width: 100% !important;
object-fit: cover;
aspect-ratio: 1;
}
p {
margin-top: 0;
margin-bottom: 0.3em;
}
body {
font-family: "Mukta", sans-serif;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
min-width: 100vw;
min-height: 100vh;
/* background: linear-gradient(-45deg, #FFCDD2 50%, #B2EBF2 50%); */
}
div,
section {
box-sizing: border-box;
}
.c-containter {
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
width: 100%;
height: 30vh;
padding: 1em;
}
.music-container {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
/* top: 20%;
left: 30%; */
width: 40%;
max-width: 700px;
box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.3);
max-height: 290px;
}
.album-cover {
flex: 1 0 30%;
}
.album-cover img {
width: 100%;
height: 100%;
}
.arrow {
position: absolute;
top: calc(50% - 2.5em);
background: rgba(255, 255, 255, 0.3);
border: 0;
width: 5em;
height: 5em;
cursor: pointer;
}
.arrow:hover {
background: rgba(255, 255, 255, 0.5);
}
.arrow img {
display: block;
width: 20px;
margin: 0 auto;
}
.arrow.left {
left: -5em;
}
.arrow.right {
right: -5em;
}
.music-player {
display: flex;
flex-flow: column wrap;
justify-content: center;
background: inherit;
padding: 1em;
text-align: center;
width: 500px;
max-width: 500px;
}
.music-player__title {
color: inherit;
font-size: 0.9rem;
margin: 0 0 0.1em 0;
}
.music-player__header {
color: inherit;
font-size: 1rem;
margin: 1 0 0.1em 0;
}
.music-player__author {
color: inherit;
font-size: 0.9rem;
margin: 0 0 0.5em 0;
}
.music-player__genre {
color: inherit;
font-size: 0.9rem;
margin: 0 0 0.5em 0;
}
.music-player__genre:before {
font-weight: bold;
content: "Genre: "
}
.music-bar {
background: #efefef;
stroke-width: 1;
height: 8px;
width: 100%;
}
.music-bar:hover {
cursor: pointer;
}
.music-bar #length {
width: 0%;
background: #2196F3;
height: 100%;
transition: width linear 200ms;
}
.music-time {
display: flex;
flex-flow: row wrap;
}
.music-time__last {
margin-left: auto;
}
.music-order {
display: flex;
flex-flow: row wrap;
}
.music-order__shuffle, .music-order__loop {
width: 1.2em;
height: 1.2em;
opacity: 0.2;
margin: 0.3em 0;
}
.music-order__shuffle.is-loop, .music-order__loop.is-loop {
opacity: 1 !important;
}
.music-order__shuffle.is-loop-one, .music-order__loop.is-loop-one {
opacity: 1 !important;
}
.music-order__shuffle {
margin-left: auto;
}
.music-control {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
height: 2em;
}
.music-control__play {
width: 3em;
height: 3em;
margin: 0 1em;
}
.music-control__backward, .music-control__forward {
width: 1.5em;
height: 1.5em;
}
@media all and (max-width: 960px) {
.c-containter {
display: block;
overflow: auto;
max-height: inherit;
max-width: 90%;
}
.music-container {
display: flex;
justify-content: center;
flex-flow: column wrap;
margin: 0 auto;
padding-left: 25%;
overflow: auto;
}
.music-player__author {
font-size: 0.4rem;
}
.music-player__title {
font-size: 0.6rem;
}
.music-player__genre {
display: none;
}
.music-player {
width: 100%;
max-width: 100%;
}
.album-cover {
position: relative;
flex: 1 1 100%;
max-width: 200px;
max-height: 200px;
}
.arrow {
position: absolute;
top: calc(50% - 1.5em);
width: 3em;
height: 3em;
}
.arrow.left {
left: 0;
}
.arrow.right {
right: 0;
}
.music-control__play {
width: 2.2em;
height: 2.2em;
}
}