Добавлен каталог, с рабочим стилем
This commit is contained in:
107
templates/static/css/manga_catalog.css
Normal file
107
templates/static/css/manga_catalog.css
Normal file
@@ -0,0 +1,107 @@
|
||||
/* Базовые стили */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: #f8f9fa;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.catalog-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/* Карточка манги */
|
||||
.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 {
|
||||
width: 200px;
|
||||
height: 280px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.manga-cover img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Информация справа */
|
||||
.manga-info {
|
||||
padding: 25px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.manga-info h2 {
|
||||
margin: 0 0 8px 0;
|
||||
color: #333;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.alt-title {
|
||||
color: #666;
|
||||
margin: 0 0 15px 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.meta-data {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.pages {
|
||||
display: block;
|
||||
color: #888;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.tag {
|
||||
background: #f0f0f0;
|
||||
padding: 4px 10px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.read-button {
|
||||
display: inline-block;
|
||||
padding: 10px 25px;
|
||||
background: #4a89dc;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-radius: 5px;
|
||||
margin-top: 15px;
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
.read-button:hover {
|
||||
background: #3b7dd8;
|
||||
}
|
||||
|
||||
/* Адаптивность */
|
||||
@media (max-width: 768px) {
|
||||
.manga-item {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.manga-cover {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user