style fixes
All checks were successful
website-main / prod-build (push) Successful in 13s
website-main / test-build (push) Successful in 5s

This commit is contained in:
Denys Konovalov 2024-01-03 12:14:44 +01:00
parent 7db204b6d4
commit eab1d36be5
Signed by: Denys Konovalov
GPG Key ID: 0037E1B0E33BD2C9
3 changed files with 14 additions and 19 deletions

@ -262,7 +262,7 @@ textarea.form-control {
border-color: var(--gcg-color-primary); border-color: var(--gcg-color-primary);
} }
.content * { .content *:not(details, details > *) {
margin-bottom: 20px; margin-bottom: 20px;
} }
@ -366,7 +366,7 @@ summary {
color: var(--gcg-color-secondary); color: var(--gcg-color-secondary);
} }
summary.hover { summary:hover {
color: var(--gcg-color-primary); color: var(--gcg-color-primary);
} }
@ -399,11 +399,6 @@ details[open] summary {
font-size: 96px; font-size: 96px;
} }
#wc-canvas {
width: 100%;
height: 600px;
}
.filter-controls li { .filter-controls li {
cursor: pointer; cursor: pointer;
transition: 0.1s ease; transition: 0.1s ease;

@ -3,7 +3,7 @@
<details> <details>
<summary>{{ .title }}</summary> <summary>{{ .title }}</summary>
<div class="content text-justify"> <div class="content text-justify">
{{ .content | markdownify | emojify }} <div>{{ .content }}</div>
</div> </div>
</details> </details>
</div> </div>

@ -1,10 +1,10 @@
{{- $pc := .Page.Site.Config.Privacy.YouTube -}} {{ $pc := .Page.Site.Config.Privacy.YouTube }}
{{- if not $pc.Disable -}} {{ if not $pc.Disable }}
{{- $ytHost := cond $pc.PrivacyEnhanced "piped.kavin.rocks" "www.youtube.com" -}} {{ $ytHost := cond $pc.PrivacyEnhanced "piped.kavin.rocks" "www.youtube.com" }}
{{- $id := .Get "id" | default (.Get 0) -}} {{ $id := .Get "id" | default (.Get 0) }}
{{- $class := .Get "class" | default (.Get 1) -}} {{ $class := .Get "class" | default (.Get 1) }}
{{- $title := .Get "title" | default "YouTube Video" }} {{ $title := .Get "title" | default "YouTube Video" }}
<div {{ with $class }}class="{{ . }}" {{ else }} style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"{{ end }}> <div {{ with $class }}class="{{ . }}" {{ else }} style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"{{ end }}>
<iframe src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}" {{ if not $class }}style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" {{ end }}allowfullscreen title="{{ $title }}"></iframe> <iframe src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}" {{ if not $class }}style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" {{ end }}allowfullscreen title="{{ $title }}"></iframe>
</div> </div>
{{ end -}} {{ end }}