197 lines
3.7 KiB
CSS
197 lines
3.7 KiB
CSS
/* Базовые стили */
|
||
body {
|
||
margin: 0;
|
||
padding: 0;
|
||
background: #f8f9fa;
|
||
font-family: Arial, sans-serif;
|
||
}
|
||
|
||
.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%; /* Сдвигаем на 50% вправо */
|
||
transform: translateX(-50%); /* Корректируем положение на половину своей ширины */
|
||
margin: 0; /* Убираем стандартные отступы */
|
||
}
|
||
|
||
.titles-cont {
|
||
position: absolute;
|
||
color: #ffffff;
|
||
left: 65%;
|
||
top: 10%;
|
||
|
||
}
|
||
|
||
|
||
.catalog-container {
|
||
max-width: 50%;
|
||
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-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;
|
||
}
|
||
/* Строка с мета-информацией */
|
||
.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;
|
||
}
|
||
|
||
.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;
|
||
}
|
||
|
||
|
||
/* Адаптивность */
|
||
@media (max-width: 768px) {
|
||
.catalog-container {
|
||
max-width: 90%;
|
||
}
|
||
|
||
.manga-item {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.manga-cover-container {
|
||
width: 100%;
|
||
}
|
||
|
||
.manga-cover {
|
||
height: 350px;
|
||
}
|
||
|
||
.manga-details {
|
||
padding: 15px;
|
||
}
|
||
} |