From bef6e0da3bf214b2d56c74e680c84aa1b1cc6f4b Mon Sep 17 00:00:00 2001 From: Vinejar <Хуев@мыло.чпок> Date: Mon, 31 Mar 2025 08:02:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B2=D1=81?= =?UTF-8?q?=D1=8F=D0=BA=D0=BE=D0=B3=D0=BE=20=D0=B4=D0=B8=D0=B7=D0=B0=D0=B9?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hentai_manga_model/views.py | 4 ---- templates/static/css/manga_catalog.css | 14 +++++++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Hentai_manga_model/views.py b/Hentai_manga_model/views.py index 7d4be7a..a0d6acd 100644 --- a/Hentai_manga_model/views.py +++ b/Hentai_manga_model/views.py @@ -2,10 +2,6 @@ from django.shortcuts import render from .models import manga_collection from django.core.paginator import Paginator -from django.shortcuts import render -from .models import manga_collection -from django.core.paginator import Paginator - def manga_catalog(request): # Получаем все записи diff --git a/templates/static/css/manga_catalog.css b/templates/static/css/manga_catalog.css index 600fb12..fe32a94 100644 --- a/templates/static/css/manga_catalog.css +++ b/templates/static/css/manga_catalog.css @@ -10,14 +10,19 @@ body { min-height: 50px; display: flex; position: sticky; + margin: 0 auto; top: 0; - width: 100%; + 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 { @@ -32,8 +37,7 @@ body { position: absolute; color: #ffffff; left: 65%; - - + top: 10%; } @@ -65,7 +69,7 @@ body { /* Изображение */ .manga-cover { width: 100%; - height: 280px; + height: 100%; } .manga-cover img { @@ -149,7 +153,7 @@ body { background: #f0f0f0; padding: 4px 10px; border-radius: 4px; - font-size: 14px; + font-size: 12px; color: #555; }