This commit is contained in:
Vinejar
2025-03-30 03:51:35 +03:00
parent 9d4585f573
commit c634edd56d
3 changed files with 50 additions and 17 deletions

View File

@@ -0,0 +1,93 @@
/* Основные стили */
.centered-box {
width: 800px;
margin: 0 auto; /* Автоматические отступы по бокам */
background: #f0f0f0;
padding: 20px;
align-content: center;
}
.centered-box > *{
margin: 10px 15px;
}
.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(9, 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);
}
.breadcrumb {
font-weight: bold;
list-style: none;
text-decoration: none;
}
li.breadcrumb > a {
text-decoration: none !important;
color: green;
}
/* Адаптивность */
@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);
}
}