Код: Выделить всё
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
width: 100%;
overflow-x: hidden;
margin: 0;
padding: 0;
}
body {
background-color: white;
justify-content: center;
display: flex;
justify-content: center;
}
.header {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 35px 5%;
font-family: 'Luxurious Script', cursive;
font-size: 15px;
position: sticky;
position: -webkit-sticky;
top: 0;
z-index: 99;
background-color: white; }
.container-wrapper {
width: 100%;
max-width: 1200px;
margin: 0 auto;
display: grid;
}
.grid {
display: grid;
justify-content: center;
align-items: center;
gap: 20px;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
text-align: center;
width: 100%;
max-width: 1200px;
padding: 20px;
margin: 20px;
}
.grid-item {
width: 100%;
max-width: 300px;
height: 320px;
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
margin: 40px;
}
.grid-item video,
.grid-item .container {
width: 100%;
height: 100%;
max-width: 300px;
}
.container {
width: 100%;
height: 300px;
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 50px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
transition: all 0.5s ease;
}
.container:hover{
box-shadow: 0 10px 20px rgb(0, 0, 0, 0.4);
}
h2 {
font-size: 20px;
text-align: center;
font-family: "Roboto", sans-serif;
font-weight: 600;
}
h3 {
font-size: 20px;
text-align: center;
font-family: "Roboto", sans-serif;
font-weight: 100;
}
.player-progress {
background-color: lightgray;
border-radius: 5px;
cursor: pointer;
margin: 40px 20px 35px;
height: 6px;
width: 95%;
}
.progress{
background-color: black;
border-radius: 5px;
height: 100%;
width: 0%;
transition: width 0.1s linear;
}
.music-duration{
position: relative;
top: -25px;
display: flex;
justify-content: center;
align-items: center;
letter-spacing: 2px;
font-family: "Abel", sans-serif;
font-size: small;
}
.music-duration span {
margin: 0 10px;
}
.player-controls{
display: flex;
justify-content: center;
top: -15px;
left: 120px;
width: 200px;
}
.bx {
font-size: 30px;
color: darkgrey;
cursor: pointer;
user-select: none;
transition: all 0.3 ease;
}
.bx:hover{
filter: brightness(40%)
}
audio-player {
width: calc(100% - 40px) ;
box-sizing: border-box;
}
video{
border-radius: 20px;
overflow: hidden;
}
@media (max-width: 1200px) {
.container-wrapper {
padding: 0 20px;
}
}
@media (max-width: 599px) {
.grid-item {
margin: 10px 0;
}
}
Код: Выделить всё
Cant Die Yet
0:00
0:00
[i][/i]
[i][/i]
[i][/i]
[url=https://twitter.com/cashbreed?ref_src=twsrc%5Etfw][/url]
Я пытался настроить поля и все такое, но мои элементы либо просто отодвигаются экран при просмотре на телефоне, и больше ничего не работает и не влияет на скорость отклика
Подробнее здесь: https://stackoverflow.com/questions/785 ... my-browser