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,6 +1,15 @@
{{- $ThemeVersion := "3.7.0" -}} {{- $ThemeVersion := "3.7.0" -}}
<footer class="site-footer"> <footer class="site-footer">
<section class="copyright">
&copy;
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
{{ .Site.Params.footer.since }} -
{{ end }}
{{ now.Format "2006" }} {{ .Site.Title }}
</section>
<section class="GDPRbanner">
{{ if .Site.Params.GDPRbanner.enabled }} {{ if .Site.Params.GDPRbanner.enabled }}
{{ if not .Site.Params.GDPRbanner.onlytechnical }} {{ if not .Site.Params.GDPRbanner.onlytechnical }}
<a class="manage-consent" href="#manage-consent">{{ T "footer.GDPRsettings.modify" }}</a> <a class="manage-consent" href="#manage-consent">{{ T "footer.GDPRsettings.modify" }}</a>
@ -10,13 +19,6 @@
{{ else }} {{ else }}
{{ T "footer.GDPRsettings.nocookie" }} {{ T "footer.GDPRsettings.nocookie" }}
{{ end }} {{ end }}
<section class="copyright">
&copy;
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
{{ .Site.Params.footer.since }} -
{{ end }}
{{ now.Format "2006" }} {{ .Site.Title }}
</section> </section>
<section class="powerby"> <section class="powerby">