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

155 lines
2.7 KiB
CSS

/* Базовые стили */
body {
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
background: #f8f9fa;
}
.main-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
flex: 1;
display: flex;
flex-direction: column;
width: 100%;
}
/* Хедер */
.navigation-box {
padding: 15px 0;
margin-bottom: 20px;
}
.breadcrumb {
display: flex;
align-items: center;
list-style: none;
padding: 0;
margin: 0;
font-size: 16px;
flex-wrap: wrap;
}
.breadcrumb a, .breadcrumb span {
margin: 0 5px;
white-space: nowrap;
}
/* Основное содержимое */
.content-area {
flex: 1;
display: flex;
flex-direction: column;
}
/* Сетка превью */
.grid-container {
width: 100%;
margin-bottom: 20px;
}
.manga-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 15px;
justify-items: center;
}
.manga-preview {
width: 100px;
height: 140px;
overflow: hidden;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
transition: transform 0.3s;
}
.manga-preview:hover {
transform: scale(1.05);
}
.manga-preview img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Страница манги */
.image-scaling-container {
width: 100%;
flex: 1;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
}
.scalable-image {
max-width: var(--manga-page-width);
max-height: var(--manga-page-height);
width: auto;
height: auto;
object-fit: contain;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
/* Футер */
.footer-navigation {
margin-top: auto;
padding: 20px 0;
border-top: 1px solid #eee;
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
width: 100%;
}
.dropdown-box select {
padding: 8px 15px;
border-radius: 4px;
border: 1px solid #ccc;
min-width: 200px;
max-width: 100%;
}
.page-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}
.nav-button {
padding: 8px 15px;
background: #f0f0f0;
border-radius: 4px;
text-decoration: none;
color: #333;
border: none;
cursor: pointer;
font-size: 14px;
}
.nav-button:hover {
background: #e0e0e0;
}
/* Адаптивность */
@media (max-width: 768px) {
.manga-grid {
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}
.manga-preview {
width: 80px;
height: 112px;
}
:root {
--manga-page-width: 95vw;
--manga-page-height: 60vh;
}
}