Skip to content

Commit

Permalink
Merge pull request #2163 from Inist-CNRS/2154-customisation-policetai…
Browse files Browse the repository at this point in the history
…lle-du-headtitle-et-des-titres-de-ressourcesgraphiques-pour-le-thème-voscouleurs

add titleGraph & headerTilte font variables
  • Loading branch information
touv authored Sep 20, 2024
2 parents bbec1fd + da7178e commit 3783344
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/app/custom/themes/voscouleurs/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ header #banner.container {
#banner h1,
#banner p {
color: var(--headerTitle) !important;
font-family: var(--font-headerTitle) !important;
}
header a.logo,
header a.logo img {
Expand Down Expand Up @@ -118,6 +119,7 @@ h2 {
.property.format_fieldClone .property_label,
.graph-results .MuiCardHeader-content {
color: var(--titleGraph) !important;
font-family: var(--font-titleGraph) !important;
}
/*link in text*/
a {
Expand Down
4 changes: 3 additions & 1 deletion src/app/custom/themes/voscouleurs/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<% if (custom.font) {%>
:root {
--font-title: <%= custom.font.title %>;
--font-headerTitle: <%= custom.font.headerTitle %>;
--font-titleGraph: <%= custom.font.titleGraph %>;
}
<% } %>
/* import config theme color */
Expand Down Expand Up @@ -77,4 +79,4 @@
<script src="<%= lodex.base.href %>/index.js"></script>
</body>

</html>
</html>
4 changes: 3 additions & 1 deletion src/app/custom/themes/voscouleurs/lodex-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"font": {
"information": "utiliser strictement https://fonts.google.com/",
"family": "nom d'une famille de googlefont construit le lien dans head ",
"title": "nom de cette font pour les titres déclaration css"
"title": "nom de cette font pour les titres déclaration css",
"titleGraph": "nom de cette font pour les titres des graphiques",
"headerTitle": "nom de cette font pour les titres de la banière"
},
"color": {
"info-theme": "EN DEVELOPPEMENT : les trois couleurs suivantes permettent de mémoriser les codes hexadecimaux de 2 couleurs qui font l'identité de votre organisme",
Expand Down

0 comments on commit 3783344

Please sign in to comment.