Поиск по тегам
This commit is contained in:
315
static/css/manga_catalog.css
Normal file
315
static/css/manga_catalog.css
Normal file
@@ -0,0 +1,315 @@
|
||||
/* Базовые стили */
|
||||
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;
|
||||
}
|
||||
}
|
||||
187
static/css/manga_view.css
Normal file
187
static/css/manga_view.css
Normal file
@@ -0,0 +1,187 @@
|
||||
/* Базовые стили */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
margin: 0 auto;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
align-items: center;
|
||||
background-color: #ffffff;
|
||||
justify-content: center;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.frame_content{
|
||||
min-height: 100vh;
|
||||
width: 50%;
|
||||
place-items: center;
|
||||
background-color: #cee6fd;
|
||||
flex-direction: column;
|
||||
|
||||
}
|
||||
|
||||
/* Хедер */
|
||||
.navigation-box {
|
||||
padding: 15px 0;
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
border-bottom: dashed #ffffff;
|
||||
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
justify-content: center;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Контейнер сетки */
|
||||
.manga-grid-container {
|
||||
width: 100%;
|
||||
overflow-x: auto; /* На случай узких экранов */
|
||||
}
|
||||
|
||||
/* Сетка превью */
|
||||
.grid-container {
|
||||
width: 100%;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.manga-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
|
||||
gap: var(--grid-gap); /* Фиксированный отступ */
|
||||
justify-items: center;
|
||||
max-width: calc(
|
||||
(var(--preview-base-width) * var(--preview-scale) * var(--grid-columns)) +
|
||||
(var(--grid-gap) * (var(--grid-columns) - 1))
|
||||
);
|
||||
}
|
||||
|
||||
/* Элементы превью */
|
||||
.manga-preview {
|
||||
width: calc(var(--preview-base-width) * var(--preview-scale));
|
||||
height: calc(var(--preview-base-height) * var(--preview-scale));
|
||||
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%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
box-shadow: 0 0 20px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.scalable-image {
|
||||
width: calc(100% * var(--page-scale));
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
object-fit: contain;
|
||||
box-shadow: 0 0 20px rgba(0,0,0,0.4);
|
||||
}
|
||||
/* Футер */
|
||||
.footer-navigation {
|
||||
margin-top: 0;
|
||||
padding: 15px 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
width: 100%;
|
||||
border-top: dashed #ffffff;
|
||||
|
||||
}
|
||||
|
||||
.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: 1200px) {
|
||||
:root { --grid-columns: 4; }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
:root {
|
||||
--grid-columns: 3;
|
||||
--preview-scale: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
:root {
|
||||
--grid-columns: 2;
|
||||
--grid-gap: 10px; /* Можно уменьшить для мобилок */
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user