header subtitle color
parent
24f64bd92a
commit
5bb890c260
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue