From 211d2e3c9628a084c2053c2f18ed4ae96ed58c2b Mon Sep 17 00:00:00 2001 From: erjemin Date: Mon, 12 Jan 2026 14:00:54 +0300 Subject: [PATCH] =?UTF-8?q?add:=20=D0=BF=D0=BB=D0=B0=D1=88=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BE=20cookies=20=D0=B8=20=D1=81=D1=87=D0=B5=D1=82=D1=87?= =?UTF-8?q?=D0=B8=D0=BA=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../typograph/templates/typograph/base.html | 132 +++++++++++++++++- 1 file changed, 131 insertions(+), 1 deletion(-) diff --git a/etpgrf_site/typograph/templates/typograph/base.html b/etpgrf_site/typograph/templates/typograph/base.html index a34e1bf..5da0fb3 100644 --- a/etpgrf_site/typograph/templates/typograph/base.html +++ b/etpgrf_site/typograph/templates/typograph/base.html @@ -73,10 +73,61 @@ .result-box .etp-r-dot { margin-right: -0.2em; } .result-box .etp-r-comma { margin-right: -0.2em; } .result-box .etp-r-colon { margin-right: -0.2em; } + + /* --- Стили для Cookie Banner --- */ + #cookie-banner { + backdrop-filter: blur(10px); /* Эффект размытия фона */ + border-top: 1px solid var(--bs-border-color); + z-index: 1050; /* Поверх всего */ + } + /* Светлая тема: темная плашка */ + [data-bs-theme="light"] #cookie-banner { + background-color: rgba(33, 37, 41, 0.85); /* bg-dark с прозрачностью */ + color: #fff; + } + [data-bs-theme="light"] #cookie-banner a { + color: #fff; + text-decoration: none; + border-bottom: 1px dotted #fff; + } + [data-bs-theme="light"] #cookie-banner a:hover { + border-bottom-style: solid; + } + [data-bs-theme="light"] #cookie-accept { + color: #fff; + border: 1px dashed #fff; + background: transparent; + } + [data-bs-theme="light"] #cookie-accept:hover { + background: rgba(255,255,255, 0.2); + } + + /* Темная тема: светлая плашка */ + [data-bs-theme="dark"] #cookie-banner { + background-color: rgba(248, 249, 250, 0.85); /* bg-light с прозрачностью */ + color: #000; + } + [data-bs-theme="dark"] #cookie-banner a { + color: #000; + text-decoration: none; + border-bottom: 1px dotted #000; + } + [data-bs-theme="dark"] #cookie-banner a:hover { + border-bottom-style: solid; + } + [data-bs-theme="dark"] #cookie-accept { + color: #000; + border: 1px dashed #000; + background: transparent; + } + [data-bs-theme="dark"] #cookie-accept:hover { + background: rgba(0,0,0, 0.1); + } +{# ШАПКА и главное меню #}
- {% block content %}{% endblock %} + {% block content %}{% endblock %} +
+ +{# Плашка о куках #} + {# Bootstrap JS #} + +{# Логика куки-баннера и счетчиков #} + +