From 3fca24ac755bbecc02462eff96a769bf665863fe Mon Sep 17 00:00:00 2001 From: noego Date: Thu, 15 Feb 2024 22:22:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=B5=20other:=20changement=20ui=20premi?= =?UTF-8?q?er=20article?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/common/post-entry.css | 31 -------------- assets/css/core/zmedia.css | 73 +++++++++++++++----------------- layouts/_default/list.html | 2 +- layouts/partials/home_info.html | 19 ++++----- 4 files changed, 44 insertions(+), 81 deletions(-) diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css index 25810ce..b0a0c1a 100644 --- a/assets/css/common/post-entry.css +++ b/assets/css/common/post-entry.css @@ -1,34 +1,3 @@ -.first-entry { - position: relative; - display: flex; - flex-direction: column; - justify-content: center; - min-height: 320px; - margin: var(--gap) 0 calc(var(--gap) * 2) 0; -} - -.first-entry .entry-header { - overflow: hidden; - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 3; -} - -.first-entry .entry-header h1 { - font-size: 34px; - line-height: 1.3; -} - -.first-entry .entry-content { - margin: 14px 0; - font-size: 16px; - -webkit-line-clamp: 3; -} - -.first-entry .entry-footer { - font-size: 14px; -} - .home-info .entry-content { -webkit-line-clamp: unset; } diff --git a/assets/css/core/zmedia.css b/assets/css/core/zmedia.css index a68fd71..4819147 100644 --- a/assets/css/core/zmedia.css +++ b/assets/css/core/zmedia.css @@ -1,55 +1,50 @@ @media screen and (max-width: 768px) { - /* theme-vars */ - :root { - --gap: 14px; - } + /* theme-vars */ + :root { + --gap: 14px; + } - /* profile-mode */ - .profile img { - transform: scale(0.85); - } + /* profile-mode */ + .profile img { + transform: scale(0.85); + } - /* post-entry */ - .first-entry { - min-height: 260px; - } + /* archive */ + .archive-month { + flex-direction: column; + } - /* archive */ - .archive-month { - flex-direction: column; - } + .archive-year { + margin-top: 20px; + } - .archive-year { - margin-top: 20px; - } - - /* footer */ - .footer { - padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap); - } + /* footer */ + .footer { + padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap); + } } /* footer */ @media screen and (max-width: 900px) { - .list .top-link { - transform: translateY(-5rem); - } + .list .top-link { + transform: translateY(-5rem); + } } @media screen and (max-width: 340px) { - .share-buttons { - justify-content: unset; - } + .share-buttons { + justify-content: unset; + } } @media (prefers-reduced-motion) { - /* terms; profile-mode; post-single; post-entry; post-entry; search; search */ - .terms-tags a:active, - .button:active, - .post-entry:active, - .top-link, - #searchResults .focus, - #searchResults li:active { - transform: none; - } + /* terms; profile-mode; post-single; post-entry; post-entry; search; search */ + .terms-tags a:active, + .button:active, + .post-entry:active, + .top-link, + #searchResults .focus, + #searchResults li:active { + transform: none; + } } diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4051ad1..2dd4b1a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -58,7 +58,7 @@ {{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }} {{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }} -{{- $class = "first-entry" }} +{{- $class = "post-entry" }} {{- else if $term }} {{- $class = "post-entry tag-entry" }} {{- end }} diff --git a/layouts/partials/home_info.html b/layouts/partials/home_info.html index 199dfb7..b01477b 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -1,13 +1,12 @@ {{- with site.Params.homeInfoParams }} -
-
-

{{ .Title | markdownify }}

-
-
- {{ .Content | markdownify }} -
-
- {{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }} -
+
+
+

{{ .Title | markdownify }}

+
+
{{ .Content | markdownify }}
+
{{- end -}}