diff options
| author | tdro <tdro@noreply.example.com> | 2023-09-10 09:15:05 -0400 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2023-09-10 09:15:05 -0400 |
| commit | 3ec7c6f82cbc70a9cef04256aa6191001c011f48 (patch) | |
| tree | 7ef85e962de5b25fb4ab464e77a9ed7f34bbd84f | |
| parent | 8934a7738eba3836c34c1b9369c28a42afc1c66d (diff) | |
| download | canory-3ec7c6f82cbc70a9cef04256aa6191001c011f48.tar.gz canory-3ec7c6f82cbc70a9cef04256aa6191001c011f48.tar.bz2 canory-3ec7c6f82cbc70a9cef04256aa6191001c011f48.zip | |
themes/default/layouts/_default/section.webring: Cleanup structure
To better support painting animations
| -rw-r--r-- | assets/css/default.css | 9 | ||||
| -rw-r--r-- | themes/default/layouts/_default/section.webring.html | 23 |
2 files changed, 15 insertions, 17 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index 9a29167..f462ae6 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -1701,11 +1701,6 @@ web-ring time { font-variant: small-caps; } -web-ring p, -web-ring time { - display: inline; -} - web-ring p:not(:last-child) { margin-bottom: 0; } @@ -2516,6 +2511,10 @@ profile-box { animation: paint ease-in 0.25s; } +time { + animation: paint ease-in 0.15s; +} + @keyframes paint { 0%, 90% { diff --git a/themes/default/layouts/_default/section.webring.html b/themes/default/layouts/_default/section.webring.html index f3689d8..e2f4518 100644 --- a/themes/default/layouts/_default/section.webring.html +++ b/themes/default/layouts/_default/section.webring.html @@ -34,26 +34,25 @@ {{ or .FeedTitle (truncate 50 "..." (or .FeedContentShort .FeedDescriptionShort)) }} </a> </h2> - <time - title="{{ .FeedDateTitle }}" - datetime="{{ .FeedDateTime }}"> - {{ .FeedDate }} - </time> <p> - {{ "--" | markdownify }} {{ if gt (len .FeedDescriptionShort) (len .FeedContentShort) -}} {{ or .FeedDescriptionShort .FeedTitle }} {{- else -}} {{ or .FeedContentShort .FeedTitle }} {{- end }} — + <a + data-hover + title="{{ .FeedSourceDescription }}" + href="{{ or .FeedSourceHome .FeedSourceLink }}"> + {{ .FeedSourceTitle }} + </a> </p> - <a - data-hover - title="{{ .FeedSourceDescription }}" - href="{{ or .FeedSourceHome .FeedSourceLink }}"> - {{ .FeedSourceTitle }} - </a> + <time + title="{{ .FeedDateTitle }}" + datetime="{{ .FeedDateTime }}"> + {{ .FeedDate }} + </time> </article> {{- end -}} {{- end -}} |
