73 lines
1.2 KiB
CSS
73 lines
1.2 KiB
CSS
/* Основные стили */
|
|
.content-wrapper {
|
|
position: relative;
|
|
min-height: 500px;
|
|
}
|
|
|
|
.image-box {
|
|
display: none;
|
|
width: 100%;
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#mangaImage {
|
|
max-width: 100%;
|
|
max-height: 90vh;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.manga-grid-container {
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.manga-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 102px);
|
|
gap: 10px;
|
|
justify-content: center;
|
|
margin: 0 auto;
|
|
max-width: calc(6 * 102px + 5 * 10px);
|
|
}
|
|
|
|
.manga-preview {
|
|
width: 102px;
|
|
height: 142px;
|
|
overflow: hidden;
|
|
border-radius: 3px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
|
background: #eee;
|
|
}
|
|
|
|
.manga-preview img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
object-position: center top;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.manga-preview img:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* Адаптивность */
|
|
@media (max-width: 768px) {
|
|
.manga-grid {
|
|
grid-template-columns: repeat(4, 102px);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.manga-grid {
|
|
grid-template-columns: repeat(3, 102px);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 360px) {
|
|
.manga-grid {
|
|
grid-template-columns: repeat(2, 102px);
|
|
}
|
|
} |