header subtitle color

main
alexanderroese 2024-06-22 19:58:55 +02:00
parent 24f64bd92a
commit 5bb890c260
2 changed files with 14 additions and 3 deletions

View File

@ -221,8 +221,7 @@ class Accordion {
} }
document.querySelectorAll('details').forEach((el) => { document.querySelectorAll('details').forEach((el) => {
console.log("id v", el.id.startsWith("Details-collapsible_row_")) // without this the mobile navbar will not open anymore
if (el.id.startsWith("Details-collapsible_row_")) { if (el.id.startsWith("Details-collapsible_row_")) {
new Accordion(el); new Accordion(el);
} }

View File

@ -1,4 +1,16 @@
{% liquid
capture shx_current_page
render "shx-get-current-page"
endcapture
assign shx_subtitle_color = "#AF9363"
if shx_current_page contains "texte"
shx_subtitle_color = settings.color_schemes["scheme-shx-texte"]["settings"]["background"]
endif
%}
<div style="text-align: center; padding-left: 20px; padding-right: 20px"> <div style="text-align: center; padding-left: 20px; padding-right: 20px">
<span style="color: #AF9363; font-size: 24px; hyphens: auto;">{{ subtitle }}</span> <span style="color: {{ shx_subtitle_color }}; font-size: 24px; hyphens: auto;">{{ subtitle }}</span>
<h1 style="font-size: 38px; font-weight: bold; margin: 0; hyphens: auto;">{{ title }}</h1> <h1 style="font-size: 38px; font-weight: bold; margin: 0; hyphens: auto;">{{ title }}</h1>
</div> </div>