From 0ded2e9138dc72b058af82c26097ce6911be06dc Mon Sep 17 00:00:00 2001 From: Hoernschen Date: Fri, 8 Jul 2022 17:01:05 +0200 Subject: [PATCH] CHANGE card display, CHANGE Link List, ADD Custom Bullet Points --- assets/scss/footer.scss | 4 ++++ assets/scss/header.scss | 5 ++++ assets/scss/index.scss | 48 +++++++++++++++++++++++++++++++++---- layouts/_default/list.html | 2 ++ layouts/index.html | 1 + layouts/partials/links.html | 22 ++++++++++++++--- layouts/partials/posts.html | 26 ++++++++++---------- layouts/posts/list.html | 26 ++++++++++---------- 8 files changed, 103 insertions(+), 31 deletions(-) diff --git a/assets/scss/footer.scss b/assets/scss/footer.scss index 58b0039..3433624 100644 --- a/assets/scss/footer.scss +++ b/assets/scss/footer.scss @@ -42,6 +42,10 @@ color: inherit; } +.link:before { + content: none; +} + .copyright { margin-top: 2rem; width: 100%; diff --git a/assets/scss/header.scss b/assets/scss/header.scss index 45b13f5..2e32c0b 100644 --- a/assets/scss/header.scss +++ b/assets/scss/header.scss @@ -21,6 +21,11 @@ margin: auto; } +.header-blocker { + width: 100%; + min-height: 4rem; +} + .sticky { position: fixed; top: 0; diff --git a/assets/scss/index.scss b/assets/scss/index.scss index f333a3b..669e00f 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -45,6 +45,28 @@ a { color: {{ .Site.Params.color.secondary }}; } +{{ if .Site.Params.list.image }} + + ul { + list-style: none; + padding-left: 1rem; + } + + ul li { + display: flex; + } + + ul li:before { + content: url({{ .Site.Params.list.image }}); + display: inline-block; + width: 21px; + height: 21px; + margin-right: 10px; + flex-shrink: 0; + } + +{{ end }} + button { font-family: inherit; font-size: 100%; @@ -381,6 +403,7 @@ button { .mediumCard { display: flex; flex-direction: column; + flex: 1 1 300px; border-radius: 5px; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); max-width: 350px; @@ -399,14 +422,24 @@ button { margin: 5px; justify-content: center; } + +.cardContent { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; +} + .cardImage { display: flex; width: 100%; height: 150px; border-radius: 5px 5px 0px 0px; object-fit: cover; - flex-shrink: 0; - flex-grow: 1; +} + +.noCover { + object-fit: unset !important; } .cardIcon { @@ -429,8 +462,6 @@ button { padding: 6px; padding-top: 0px; word-wrap: break-word; - //white-space: -moz-pre-wrap; - //white-space: pre-wrap; height: 100%; } @@ -453,6 +484,15 @@ button { object-fit: cover; } +.image-copyright { + width: 100%; + max-width: 1152px; + align-self: center; + padding-right: 1.5rem; + padding-left: 1.5rem; + font-size: small; +} + .more-button { padding-top: 1rem; text-align: center; diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c10ff15..4aef137 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,6 +9,8 @@ {{ end }} {{.Content}} + {{ else }} +
{{ end }} {{- range $index, $page := .Pages }} {{ $odd := mod $index 2 }} diff --git a/layouts/index.html b/layouts/index.html index e90803c..96cd4fa 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,5 @@ {{ define "main" }} +
{{- range $index, $section := .Site.Params.sections }} {{ $odd := mod $index 2 }} {{ if eq .type "slider" }} diff --git a/layouts/partials/links.html b/layouts/partials/links.html index 2cf4110..25790ec 100644 --- a/layouts/partials/links.html +++ b/layouts/partials/links.html @@ -8,7 +8,7 @@ {{- $id := .id }} {{end}}
-