From eab1d36be5c79f68dd9c0c244e71b4cbed8b9220 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 3 Jan 2024 12:14:44 +0100 Subject: [PATCH] style fixes --- assets/css/style.css | 9 ++------- layouts/partials/collapsible.html | 4 ++-- layouts/shortcodes/youtube.html | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 19 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 6cb39d40..55f985d9 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -262,7 +262,7 @@ textarea.form-control { border-color: var(--gcg-color-primary); } -.content * { +.content *:not(details, details > *) { margin-bottom: 20px; } @@ -366,7 +366,7 @@ summary { color: var(--gcg-color-secondary); } -summary.hover { +summary:hover { color: var(--gcg-color-primary); } @@ -399,11 +399,6 @@ details[open] summary { font-size: 96px; } -#wc-canvas { - width: 100%; - height: 600px; -} - .filter-controls li { cursor: pointer; transition: 0.1s ease; diff --git a/layouts/partials/collapsible.html b/layouts/partials/collapsible.html index bf2afb7f..2c4fd984 100644 --- a/layouts/partials/collapsible.html +++ b/layouts/partials/collapsible.html @@ -3,8 +3,8 @@
{{ .title }}
- {{ .content | markdownify | emojify }} +
{{ .content }}
- \ No newline at end of file + \ No newline at end of file diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html index a63ac426..4b177016 100644 --- a/layouts/shortcodes/youtube.html +++ b/layouts/shortcodes/youtube.html @@ -1,10 +1,10 @@ -{{- $pc := .Page.Site.Config.Privacy.YouTube -}} -{{- if not $pc.Disable -}} -{{- $ytHost := cond $pc.PrivacyEnhanced "piped.kavin.rocks" "www.youtube.com" -}} -{{- $id := .Get "id" | default (.Get 0) -}} -{{- $class := .Get "class" | default (.Get 1) -}} -{{- $title := .Get "title" | default "YouTube Video" }} -
- -
-{{ end -}} \ No newline at end of file +{{ $pc := .Page.Site.Config.Privacy.YouTube }} +{{ if not $pc.Disable }} + {{ $ytHost := cond $pc.PrivacyEnhanced "piped.kavin.rocks" "www.youtube.com" }} + {{ $id := .Get "id" | default (.Get 0) }} + {{ $class := .Get "class" | default (.Get 1) }} + {{ $title := .Get "title" | default "YouTube Video" }} +
+ +
+{{ end }} \ No newline at end of file