From 6b5c22f22c1a993d1a20350fd3c43e3815b0b056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Sibaud?= Date: Sat, 24 Jan 2026 19:46:37 +0100 Subject: [PATCH] Projets Libres in nav bar + decorated links --- .../contrib/RonRonnement-Classic.scss | 7 +++++++ app/assets/stylesheets/parts/content.scss | 7 +++++++ app/assets/stylesheets/parts/top_menu.scss | 12 +++++------- app/views/layouts/_site.html.haml | 4 ++-- public/projets_libres.png | Bin 0 -> 2690 bytes 5 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 public/projets_libres.png diff --git a/app/assets/stylesheets/contrib/RonRonnement-Classic.scss b/app/assets/stylesheets/contrib/RonRonnement-Classic.scss index 3246b5400..dbc4909ab 100644 --- a/app/assets/stylesheets/contrib/RonRonnement-Classic.scss +++ b/app/assets/stylesheets/contrib/RonRonnement-Classic.scss @@ -1016,6 +1016,13 @@ footer.actions { border-image: url("/favicon.png") 0 0 0 32; border-style: solid; } + &[href^="https://www.projets-libres.org"], + &[href^="https://projets-libres.org"] { + padding-left: 3px; + border-left: 16px; + border-image: url("/projets_libres.png") 0 0 0 32; + border-style: solid; + } } ul, ol { diff --git a/app/assets/stylesheets/parts/content.scss b/app/assets/stylesheets/parts/content.scss index e3a959221..18440d151 100644 --- a/app/assets/stylesheets/parts/content.scss +++ b/app/assets/stylesheets/parts/content.scss @@ -265,6 +265,13 @@ footer.actions { border-image: url("/favicon.png") 0 0 0 32; border-style: solid; } + &[href^="https://www.projets-libres.org"], + &[href^="https://projets-libres.org"] { + padding-left: 3px; + border-left: 16px; + border-image: url("/projets_libres.png") 0 0 0 32; + border-style: solid; + } } ul, ol { diff --git a/app/assets/stylesheets/parts/top_menu.scss b/app/assets/stylesheets/parts/top_menu.scss index 6d0e7430d..b6771ac3f 100644 --- a/app/assets/stylesheets/parts/top_menu.scss +++ b/app/assets/stylesheets/parts/top_menu.scss @@ -58,16 +58,14 @@ width: 125px; } input#search_submit { + background-image: none; background: no-repeat 0 transparent; - background-size: 22px; - background-image: url("/images/icones/glass.png"); - background-image: url("/images/icones/glass.svg"), none; - text-indent: -9998em; border: none; - width: 22px; - height: 22px; + text-indent: 0em; + padding-left: 0; padding-right: 0; - cursor: pointer; + content: "🔎"; + text-align: left; } } } diff --git a/app/views/layouts/_site.html.haml b/app/views/layouts/_site.html.haml index 6ce3c1117..4e7408588 100644 --- a/app/views/layouts/_site.html.haml +++ b/app/views/layouts/_site.html.haml @@ -9,10 +9,10 @@ %li{class: ("active" if controller_name == "diaries" || (controller_name == "users" && action_name == "show"))}= link_to "Journaux", '/journaux', title: "Journaux personnels de nos visiteurs" %li{class: ("active" if controller_name == "bookmarks" || (controller_name == "users" && action_name == "show"))}= link_to "Liens", '/liens', title: "Liens remarquables" %li{class: ("active" if controller_name == "forums" || controller_name == "posts")}= link_to "Forums", '/forums', title: "Questions‑rĂ©ponses, petites annonces" - %li{class: ("active" if controller_name == "wiki_pages" || controller_name == "wiki_versions")}= link_to "Wiki", '/wiki', title: "Pages wiki" %li{class: ("active" if current_page?("/redaction"))}= link_to "RĂ©daction", '/redaction', title: "Participez Ă  la rĂ©daction des dĂ©pĂȘches" + %li= link_to "đŸŽ™ïžÂ Projets Libres", 'https://www.projets-libres.org/', title: "Podcast/baladodiffusion Projets Libres", id: "podcast" = form_tag '/recherche', method: :get do .searchbox(role="search") - = submit_tag "Rechercher", name: nil, id: "search_submit", title: "Lancer la recherche sur le site" + = submit_tag "🔎", name: nil, id: "search_submit", title: "Lancer la recherche sur le site" diff --git a/public/projets_libres.png b/public/projets_libres.png new file mode 100644 index 0000000000000000000000000000000000000000..2fbd065db0a9480b73e9239fb977d8300292824d GIT binary patch literal 2690 zcmV-|3Vrp7P)gR~9sfP=yZ4n%HpeE}Y?9qysaB8nn67>*Dk3nt{+cgYReWwS^2c=z4+c=~}P1c|`(`S?8l=YRhG z7r`BzDwi9C5TjPjdL0GUC60oec~+C&%`&8f0F12AP=Xf*uS`sSJrsg|7bYg zH86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