Files
hentai_manga_site/templates/static/css/manga_view.css

117 lines
2.3 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Основные стили */
/* Центрируем основной контейнер */
.main-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
max-width: 900px;
margin: 20px auto;
padding: 20px;
background: #f9f9f9;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 8px;
}
/* Бокс с названием и каталогом */
.info-box {
width: 100%;
padding: 15px;
background: #e0e0e0;
border-radius: 5px;
text-align: center;
margin-bottom: 15px;
}
/* Блок с сеткой превью и изображением */
.preview-box {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
background: #fff;
padding: 15px;
border-radius: 5px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* Сетка манги */
.manga-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 10px;
justify-content: center;
width: 100%;
max-width: 600px;
}
/* Превью картинок */
.manga-preview {
width: 100px;
height: 140px;
overflow: hidden;
border-radius: 5px;
background: #eee;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: transform 0.2s;
}
.manga-preview img {
width: 100%;
height: 100%;
object-fit: cover;
}
.manga-preview:hover {
transform: scale(1.05);
}
/* Основное изображение */
.image-box {
display: none;
width: 100%;
text-align: center;
margin-top: 15px;
}
#mangaImage {
max-width: 100%;
max-height: 80vh;
object-fit: contain;
}
/* Блок с выпадающим списком */
.select-box {
width: 100%;
margin-top: 15px;
text-align: center;
}
.select-box select {
padding: 8px;
font-size: 16px;
border-radius: 5px;
border: 1px solid #ccc;
cursor: pointer;
}
/* Адаптивность */
@media (max-width: 768px) {
.manga-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 480px) {
.manga-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 360px) {
.manga-grid {
grid-template-columns: repeat(2, 1fr);
}
}