From 45b6edadf91cd4ad1750b4bcaa319a9e0358927c Mon Sep 17 00:00:00 2001 From: Boris Waaub Date: Tue, 10 Mar 2026 11:26:24 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Ajouter=20un=20bouton=20de=20d=C3=A9mo?= =?UTF-8?q?=20dans=20l'en-t=C3=AAte=20et=20am=C3=A9liorer=20la=20gestion?= =?UTF-8?q?=20des=20classes=20CSS=20pour=20la=20r=C3=A9activit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hugo.toml | 9 +++-- static/css/style.css | 30 ++++++++++++++++ .../chill-theme/layouts/partials/header.html | 36 ++++++++----------- 3 files changed, 52 insertions(+), 23 deletions(-) diff --git a/hugo.toml b/hugo.toml index fb144ea..f4a32ce 100644 --- a/hugo.toml +++ b/hugo.toml @@ -81,7 +81,13 @@ pagination = { pagerSize = 6, path = "page" } background = "header backdrop-blur-sm" border = "none" menu.linkClass = "text-white hover:text-primary font-bold transition duration-200" - + + [params.header.buttons.demo] + text = "Démo" + url = "http://demo.chill.social/" + mobileClass = "block text-center px-6 py-3 rounded-lg font-bold transition duration-200 ease-in-out bg-primary-400 text-white hover:bg-primary-400 hover:scale-105" + open_tab = false + # Header Logo [params.header.logo] src = "/images/logo-darkmode.png" @@ -114,7 +120,6 @@ pagination = { pagerSize = 6, path = "page" } # Social Media Links (optional) [params.social] - mastodon = "https://mastodon.libre-entreprise.com/@Chill" gitlab = "https://gitlab.com/Chill-Projet/chill-bundles" # Navigation Menu diff --git a/static/css/style.css b/static/css/style.css index e816708..fc242fd 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -2395,6 +2395,14 @@ body { margin-top: auto; } +.mr-8 { + margin-right: 2rem; +} + +.ml-8 { + margin-left: 2rem; +} + .line-clamp-2 { overflow: hidden; display: -webkit-box; @@ -2551,6 +2559,10 @@ body { width: 100%; } +.w-auto { + width: auto; +} + .\!max-w-none { max-width: none !important; } @@ -2615,6 +2627,10 @@ body { flex-shrink: 0; } +.shrink-0 { + flex-shrink: 0; +} + .flex-grow { flex-grow: 1; } @@ -2796,6 +2812,12 @@ body { margin-bottom: calc(2rem * var(--tw-space-y-reverse)); } +.space-x-12 > :not([hidden]) ~ :not([hidden]) { + --tw-space-x-reverse: 0; + margin-right: calc(3rem * var(--tw-space-x-reverse)); + margin-left: calc(3rem * calc(1 - var(--tw-space-x-reverse))); +} + .overflow-hidden { overflow: hidden; } @@ -4738,6 +4760,14 @@ body { margin-top: 6rem; } + .lg\:flex { + display: flex; + } + + .lg\:hidden { + display: none; + } + .lg\:w-1\/4 { width: 25%; } diff --git a/themes/chill-theme/layouts/partials/header.html b/themes/chill-theme/layouts/partials/header.html index f5ac301..bf871e6 100644 --- a/themes/chill-theme/layouts/partials/header.html +++ b/themes/chill-theme/layouts/partials/header.html @@ -8,7 +8,7 @@ {{ with $headerConfig.logo }} - {{ $.Site.Title }} + {{ $.Site.Title }} {{ else }} {{ .Site.Title }} {{ end }} @@ -18,7 +18,7 @@ -