From fff332a2d2d4b1de49b55c7561c81a9b03896195 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 27 Mar 2022 21:17:25 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/_default/baseof.html | 1 + themes/buha/layouts/partials/generator.html | 6 +- .../layouts/partials/tools/categories.html | 59 ++++++++++--------- themes/buha/static/css/visibleIf.css | 24 ++++++++ 4 files changed, 61 insertions(+), 29 deletions(-) create mode 100644 themes/buha/static/css/visibleIf.css diff --git a/themes/buha/layouts/_default/baseof.html b/themes/buha/layouts/_default/baseof.html index c9ce9c84..8a397384 100644 --- a/themes/buha/layouts/_default/baseof.html +++ b/themes/buha/layouts/_default/baseof.html @@ -1,6 +1,7 @@ {{- partial "head.html" . -}} + {{ block "css" . -}}{{- end }}
diff --git a/themes/buha/layouts/partials/generator.html b/themes/buha/layouts/partials/generator.html index ee3ccfc0..85608d5b 100644 --- a/themes/buha/layouts/partials/generator.html +++ b/themes/buha/layouts/partials/generator.html @@ -1,3 +1,7 @@ +{{ define "css" }} + +{{ end }} +

Artikelgenerator

@@ -19,9 +23,9 @@

{{ partial "tools/title" }} {{ partial "tools/content" }} + {{ partial "tools/featured" }} {{ partial "tools/event" }} {{ partial "tools/categories" }} - {{ partial "tools/featured" }} {{ partial "tools/submit" }}
diff --git a/themes/buha/layouts/partials/tools/categories.html b/themes/buha/layouts/partials/tools/categories.html index 4f7d0128..3cb6ca05 100644 --- a/themes/buha/layouts/partials/tools/categories.html +++ b/themes/buha/layouts/partials/tools/categories.html @@ -12,37 +12,40 @@ {{- $categories := $categories | uniq -}} {{- $tags := $tags | uniq -}} - - -
- {{ range sort $categories }} - {{ $n := . | i18n }} - {{ if not $n }} - {{ $n = . }} +
Kategorien aufklappen
+
+
+ {{ range sort $categories }} + {{ $n := . | i18n }} + {{ if not $n }} + {{ $n = . }} + {{ end }} +
+ +
{{ end }} -
- -
- {{ end }} -
- - - +
+ + +
- -
- {{ range sort $tags }} - {{ $n := . | i18n }} - {{ if not $n }} - {{ $n = . }} + +
Tags aufklappen
+
+
+ {{ range sort $tags }} + {{ $n := . | i18n }} + {{ if not $n }} + {{ $n = . }} + {{ end }} +
+ +
{{ end }} -
- -
- {{ end }} -
+
- - \ No newline at end of file + + + \ No newline at end of file diff --git a/themes/buha/static/css/visibleIf.css b/themes/buha/static/css/visibleIf.css new file mode 100644 index 00000000..40623b30 --- /dev/null +++ b/themes/buha/static/css/visibleIf.css @@ -0,0 +1,24 @@ +.visibleIf, .visibleif { + display: none; +} + + +.visibleIf-visible, .visibleif-visible { + display: flex; + flex: 0 1 auto; +} + +span.visibleIf-visible, span.visibleif-visible { + display: flex-inline; +} + +tr.visibleIf-visible, tr.visibleif-visible { + display: flex; + display: table-row; +} + + +.visibleIf-rule, .mandatoryIf-rule, .visibleif-rule, .mandatoryif-rule { + display: none; +} + \ No newline at end of file