change css + bug fix

This commit is contained in:
√(noham)²
2024-03-26 18:33:48 +01:00
parent 8ae08cc047
commit bdde9c5e6c
4 changed files with 8 additions and 3 deletions

132
front-example/player.css Normal file
View File

@@ -0,0 +1,132 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align:left;
}
body {
background-repeat: no-repeat;
background-size: cover;
}
body * {
font-family: 'Roboto', sans-serif;
}
#boxes * {
border: 1px solid transparent;
}
#boxes {
display: grid;
grid-template-columns: max-content max-content;
grid-template-areas:
'A B'
'A C';
gap: 32px;
place-content: center;
height: 100vh;
}
.song-url, .artist-url {
text-decoration: none;
color: inherit;
}
#player {
grid-area: B;
height: fit-content;
}
#player .controls {
display: flex;
justify-content: space-around;
}
.player {
background-color: rgb(119, 119, 119);
padding: 28px;
border-radius: 20px;
}
.player img {
width: 120px;
height: 120px;
object-fit: cover;
border-radius: 10px;
}
.info {
color: #E1E1E6;
}
.info .name-artist {
opacity: 0.68;
font-size: 19px;
}
.info-wrapper {
display: flex;
align-items: center;
gap: 30px;
}
.player h1 {
font-size: 27px;
color: #E1E1E6;
padding-bottom: 7px;
}
.controls {
display: flex;
justify-content: space-between;
padding-top: 20px;
}
.track {
padding-top: 28px;
position: relative;
}
.track::before {
content: '';
height: 6px;
width: 100%;
display: block;
background: #D9D9D9;
opacity: 0.3;
border-radius: 10px;
position: absolute;
}
.track::after {
content: '';
height: 6px;
width: var(--new-width);
display: block;
background: var(--new-color);
border-radius: 10px;
}
.time {
font-size: 15px;
color: gainsboro;
display: flex;
justify-content: space-between;
padding-top: 9.6px;
}
@media (max-width: 670px) {
#boxes {
display: flex;
flex-direction: column;
max-width: 270px;
margin: auto;
height: auto;
padding-block: 60px;
}
}