From ee395c48d20053d8fbfb4bda7734bc95d32c2f61 Mon Sep 17 00:00:00 2001 From: Kirchik Date: Sat, 2 Aug 2025 12:48:17 +0200 Subject: [PATCH] Update design --- .gitignore | 3 ++- static/css/mobile-menu.css | 25 +++++++++++++++++++ .../layouts/partials/htmlhead.html | 1 + 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 static/css/mobile-menu.css diff --git a/.gitignore b/.gitignore index 6e5c76d..337508c 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,5 @@ Thumbs.db *_key* *password* *apikey* -*token* \ No newline at end of file +*token*gitea +gitea.pub diff --git a/static/css/mobile-menu.css b/static/css/mobile-menu.css new file mode 100644 index 0000000..194721b --- /dev/null +++ b/static/css/mobile-menu.css @@ -0,0 +1,25 @@ +/* Улучшенная мобильная кнопка меню */ +#navPanelToggle { + background: rgba(255, 255, 255, 0.15) !important; + backdrop-filter: blur(10px) !important; + border: 1px solid rgba(255, 255, 255, 0.3) !important; + color: white !important; + text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important; + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important; + border-radius: 8px !important; +} + +#navPanelToggle:hover { + background: rgba(255, 255, 255, 0.25) !important; + transform: translateY(-1px) !important; + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important; +} + +/* Улучшение для очень маленьких экранов */ +@media (max-width: 480px) { + #navPanelToggle { + font-size: 0.75rem !important; + padding: 0.3rem 0.8rem !important; + backdrop-filter: blur(8px) !important; + } +} \ No newline at end of file diff --git a/themes/hugo-theme-massively/layouts/partials/htmlhead.html b/themes/hugo-theme-massively/layouts/partials/htmlhead.html index 10c3951..b396412 100644 --- a/themes/hugo-theme-massively/layouts/partials/htmlhead.html +++ b/themes/hugo-theme-massively/layouts/partials/htmlhead.html @@ -33,5 +33,6 @@ + {{ partial "htmlhead.custom.html" }}