Files
hentai_manga_site/static/css/manga_catalog.css
2025-11-03 02:56:11 +03:00

315 lines
5.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.
/* Базовые стили */
body {
margin: 0;
padding: 0;
background: #f8f9fa;
font-family: Arial, sans-serif;
position: relative;
}
.content-wrapper {
display: flex;
justify-content: center;
gap: 20px;
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
.center-container {
display: flex;
justify-content: center;
width: 100%;
max-width: 800px;
}
.catalog-header {
min-height: 50px;
display: flex;
position: sticky;
margin: 0 auto;
top: 0;
width: 50%;
height: 5%;
background-color: #3987cf;
z-index: 1000;
align-items: center;
justify-content: space-between;
padding: 0 20px;
border-bottom-left-radius: 15px;
border-bottom-right-radius: 15px;
}
.title-site {
color: #ffffff;
position: absolute;
left: 50%;
transform: translateX(-50%);
margin: 0;
}
.titles-cont {
position: absolute;
color: #ffffff;
left: 65%;
top: 10%;
}
.catalog-container {
max-width: 900px;
margin: 0 auto;
padding: 20px;
position: relative;
z-index: 1;
}
/* Карточка манги */
.manga-item {
display: flex;
gap: 20px;
background: white;
border-radius: 8px;
overflow: hidden;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Контейнер для обложки и кнопки */
.manga-cover-container {
width: 200px;
flex-shrink: 0;
position: relative;
}
/* Изображение */
.manga-cover {
width: 100%;
height: 100%;
}
.manga-cover img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
box-shadow: 0 0 15px #39accf;
}
/* Кнопка "Читать" поверх изображения */
.read-button {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 12px 0;
background: #2478c2;
color: white;
text-align: center;
text-decoration: none;
font-weight: bold;
transition: background 0.3s;
}
.read-button:hover {
background: #2478c2;
}
/* Информация справа */
.manga-details {
padding: 20px;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.manga-title h3 {
width: 100%;
padding-bottom: 3px;
border-bottom: 1px solid #3987cf;
margin: 0 0 8px 0;
color: #333;
font-size: 20px;
}
/* Теги под заголовком */
.tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 10px 0 15px 0;
}
.tag {
background: #f0f0f0;
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
color: #555;
}
/* Мета-информация внизу блока */
.manga-meta {
margin-top: auto;
}
.meta-item {
margin-bottom: 10px;
}
.manga-meta {
font-weight: bold;
color: #555;
margin-right: 5px;
}
/* Строка с мета-информацией */
.meta-row {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
margin-top: auto;
}
/* Кнопка "Читать в источнике" */
.read-original-button {
padding: 6px 12px;
background: #6497c5;
color: white;
text-decoration: none;
border-radius: 4px;
font-size: 14px;
transition: background 0.3s;
white-space: nowrap;
margin-left: 15px;
}
.read-original-button:hover {
background: #5a6268;
}
/* Боковая панель */
.filter-sidebar {
width: 250px;
background: white;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: fixed;
right: 180px;
top: 70px;
z-index: 100;
}
.filter-sidebar h3 {
margin-top: 0;
color: #333;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.tag-filters {
max-height: 500px;
overflow-y: auto;
margin-bottom: 15px;
}
.tag-filter-item {
margin-bottom: 8px;
}
.tag-filter-item label {
margin-left: 8px;
cursor: pointer;
}
.filter-button {
width: 100%;
padding: 10px;
background: #3987cf;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
margin-bottom: 10px;
}
.filter-button:hover {
background: #2c6db1;
}
.clear-filter {
display: block;
text-align: center;
color: #666;
text-decoration: none;
font-size: 14px;
}
.clear-filter:hover {
text-decoration: underline;
}
/* Пагинация */
.pagination {
display: flex;
justify-content: center;
padding: 20px 0;
gap: 10px;
}
.pagination a {
color: #3987cf;
text-decoration: none;
padding: 5px 10px;
border: 1px solid #ddd;
border-radius: 4px;
}
.pagination a:hover {
background: #eee;
}
.pagination .current {
padding: 5px 10px;
color: #666;
}
/* Адаптивность */
@media (max-width: 1000px) {
.content-wrapper {
flex-direction: column;
align-items: center;
}
.filter-sidebar {
width: 100%;
max-width: 500px;
position: static;
margin-top: 20px;
}
.catalog-header {
width: 100%;
border-radius: 0;
}
}
@media (max-width: 768px) {
.manga-item {
flex-direction: column;
}
.manga-cover-container {
width: 100%;
}
.manga-cover {
height: 350px;
}
.manga-details {
padding: 15px;
}
}