diff --git a/assets/css/main.css b/assets/css/main.css index ef96540..1c194b8 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -656,4 +656,20 @@ pre { .2xl\:ratio-16-9 { padding-top: 56.25%; } /* 16:9 Aspect Ratio */ .2xl\:ratio-21-9 { padding-top: 42.85%; } /* 21:9 Aspect Ratio */ .2xl\:ratio-32-9 { padding-top: 28.125%; } /* 32:9 Aspect Ratio */ -} \ No newline at end of file +} + +#cookie-notice {font-size: larger; padding: 0.5rem 1rem; display: none; + text-align: center; position: fixed; bottom: 0; left: 20px; padding-top: 40px; + padding-bottom: 40px; width: 100%; background: rgb(70, 70, 70); + color: rgba(255,255,255,0.8);} + +#cookie-notice a {font-weight: 600; display: inline-flex; cursor: pointer; margin-left: 0.5rem;} +#cookie-notice-accept {color:rgb(86, 228, 58)} +#cookie-notice-deny {color:rgb(243, 34, 34)} + +@media (max-width: 767px) { + #cookie-notice span {display: block; padding-top: 3px; margin-bottom: 1rem;} + #cookie-notice a {position: relative; bottom: 4px;} + #cookie-notice {left: 0px;} + } + \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml index d41b613..1343972 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -140,3 +140,4 @@ disableTextInHeader = false # bing = "" # pinterest = "" # yandex = "" + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..e13c790 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,43 @@ + + +{{- partial "head.html" . -}} + +
+ + {{ $header := print "partials/header/" .Site.Params.header.layout ".html" }} + {{ if templates.Exists $header }} + {{ partial $header . }} + {{ else }} + {{ partial "partials/header/basic.html" . }} + {{ end }} +