2 версия сайта, чтобы было совсем красиво
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
body {
|
||||
background-color: #333;
|
||||
color: #fff;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
padding: 20px;
|
||||
margin-bottom: 20px; /* добавлено, чтобы был отступ между карточками */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 24px;
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.card-text {
|
||||
font-size: 18px;
|
||||
line-height: 1.5em; /* добавлено, чтобы текст не был слишком плотным */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.player-container {
|
||||
margin-right: 10px;
|
||||
/* изменено на right, чтобы плеер был слева */
|
||||
width: fit-content;
|
||||
/* добавлено для уменьшения ширины контейнера */
|
||||
height: fit-content;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#audio-player {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
#audio-controls {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#audio-controls button {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.card-container {
|
||||
display: flex;
|
||||
/* добавлено для размещения карточки и плеера в одной строке */
|
||||
justify-content: space-between;
|
||||
/* добавлено для выравнивания по горизонтали */
|
||||
align-items: center;
|
||||
/* добавлено для выравнивания по вертикали */
|
||||
}
|
||||
Reference in New Issue
Block a user