custom CSS for GDPR banner

This commit is contained in:
Massimo Maggioni 2022-01-29 14:15:30 +01:00
parent 1bda9df28e
commit 3e2dff5e45
2 changed files with 22 additions and 10 deletions

View File

@ -28,4 +28,14 @@ footer.site-footer {
color: var(--body-text-color); color: var(--body-text-color);
} }
} }
.GDPRbanner {
color: var(--body-text-color);
font-weight: normal;
font-size: 1.2rem;
a {
color: var(--body-text-color);
}
}
} }

View File

@ -1,16 +1,6 @@
{{- $ThemeVersion := "3.7.0" -}} {{- $ThemeVersion := "3.7.0" -}}
<footer class="site-footer"> <footer class="site-footer">
{{ if .Site.Params.GDPRbanner.enabled }}
{{ if not .Site.Params.GDPRbanner.onlytechnical }}
<a class="manage-consent" href="#manage-consent">{{ T "footer.GDPRsettings.modify" }}</a>
{{ else }}
{{ T "footer.GDPRsettings.technical" }}
{{ end }}
{{ else }}
{{ T "footer.GDPRsettings.nocookie" }}
{{ end }}
<section class="copyright"> <section class="copyright">
&copy; &copy;
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }} {{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
@ -19,6 +9,18 @@
{{ now.Format "2006" }} {{ .Site.Title }} {{ now.Format "2006" }} {{ .Site.Title }}
</section> </section>
<section class="GDPRbanner">
{{ if .Site.Params.GDPRbanner.enabled }}
{{ if not .Site.Params.GDPRbanner.onlytechnical }}
<a class="manage-consent" href="#manage-consent">{{ T "footer.GDPRsettings.modify" }}</a>
{{ else }}
{{ T "footer.GDPRsettings.technical" }}
{{ end }}
{{ else }}
{{ T "footer.GDPRsettings.nocookie" }}
{{ end }}
</section>
<section class="powerby"> <section class="powerby">
{{ with .Site.Params.footer.customText }} {{ with .Site.Params.footer.customText }}
{{ . | safeHTML }} <br/> {{ . | safeHTML }} <br/>