Skip to content

Commit e4be817

Browse files
authored
Merge pull request #407 from linuxfrorg/projets_libres
Projets Libres in nav bar + decorated links
2 parents 0f970f4 + 6b5c22f commit e4be817

5 files changed

Lines changed: 21 additions & 9 deletions

File tree

app/assets/stylesheets/contrib/RonRonnement-Classic.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,13 @@ footer.actions {
10161016
border-image: url("/favicon.png") 0 0 0 32;
10171017
border-style: solid;
10181018
}
1019+
&[href^="https://www.projets-libres.org"],
1020+
&[href^="https://projets-libres.org"] {
1021+
padding-left: 3px;
1022+
border-left: 16px;
1023+
border-image: url("/projets_libres.png") 0 0 0 32;
1024+
border-style: solid;
1025+
}
10191026
}
10201027
ul,
10211028
ol {

app/assets/stylesheets/parts/content.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,13 @@ footer.actions {
265265
border-image: url("/favicon.png") 0 0 0 32;
266266
border-style: solid;
267267
}
268+
&[href^="https://www.projets-libres.org"],
269+
&[href^="https://projets-libres.org"] {
270+
padding-left: 3px;
271+
border-left: 16px;
272+
border-image: url("/projets_libres.png") 0 0 0 32;
273+
border-style: solid;
274+
}
268275
}
269276
ul,
270277
ol {

app/assets/stylesheets/parts/top_menu.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,14 @@
5858
width: 125px;
5959
}
6060
input#search_submit {
61+
background-image: none;
6162
background: no-repeat 0 transparent;
62-
background-size: 22px;
63-
background-image: url("/images/icones/glass.png");
64-
background-image: url("/images/icones/glass.svg"), none;
65-
text-indent: -9998em;
6663
border: none;
67-
width: 22px;
68-
height: 22px;
64+
text-indent: 0em;
65+
padding-left: 0;
6966
padding-right: 0;
70-
cursor: pointer;
67+
content: "🔎";
68+
text-align: left;
7169
}
7270
}
7371
}

app/views/layouts/_site.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
%li{class: ("active" if controller_name == "diaries" || (controller_name == "users" && action_name == "show"))}= link_to "Journaux", '/journaux', title: "Journaux personnels de nos visiteurs"
1010
%li{class: ("active" if controller_name == "bookmarks" || (controller_name == "users" && action_name == "show"))}= link_to "Liens", '/liens', title: "Liens remarquables"
1111
%li{class: ("active" if controller_name == "forums" || controller_name == "posts")}= link_to "Forums", '/forums', title: "Questions‑réponses, petites annonces"
12-
%li{class: ("active" if controller_name == "wiki_pages" || controller_name == "wiki_versions")}= link_to "Wiki", '/wiki', title: "Pages wiki"
1312
%li{class: ("active" if current_page?("/redaction"))}= link_to "Rédaction", '/redaction', title: "Participez à la rédaction des dépêches"
13+
%li= link_to "🎙️ Projets Libres", 'https://www.projets-libres.org/', title: "Podcast/baladodiffusion Projets Libres", id: "podcast"
1414
= form_tag '/recherche', method: :get do
1515
.searchbox(role="search")
1616
<label for="query" id="label_query">Recherche :</label>
1717
<input id="query" name="q" type="search" placeholder="Rechercher" />
18-
= submit_tag "Rechercher", name: nil, id: "search_submit", title: "Lancer la recherche sur le site"
18+
= submit_tag "🔎", name: nil, id: "search_submit", title: "Lancer la recherche sur le site"

public/projets_libres.png

2.63 KB
Loading

0 commit comments

Comments
 (0)