diff options
author | tdro <tdro@noreply.example.com> | 2024-03-08 14:01:03 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-03-08 14:01:03 -0500 |
commit | 4e74a82ddfc1ad27d58295e9bae4f8e5ab5bb604 (patch) | |
tree | 79e751fab82bae60989597b015cccaa58645ecee | |
parent | 946aca93fefc09be2a613bff0cd6f57b25652177 (diff) | |
download | canory-4e74a82ddfc1ad27d58295e9bae4f8e5ab5bb604.tar.gz canory-4e74a82ddfc1ad27d58295e9bae4f8e5ab5bb604.tar.bz2 canory-4e74a82ddfc1ad27d58295e9bae4f8e5ab5bb604.zip |
themes/default/layouts/_default/section.following: Follow -> Feeds
-rw-r--r-- | assets/css/default.css | 27 | ||||
-rw-r--r-- | themes/default/layouts/_default/section.following.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/partials/author-card.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/partials/pagination.html | 8 |
4 files changed, 24 insertions, 15 deletions
diff --git a/assets/css/default.css b/assets/css/default.css index 7ef9a4d..faa56f9 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -873,14 +873,20 @@ micro-author micro-card > a:hover { } button svg, -nav[data-type="pagination"] svg, -micro-author micro-card > a svg { +micro-author micro-card a svg, +nav[data-type="pagination"] a svg { height: 1.25rem; width: 1.25rem; } -svg ~ header, -header ~ svg { +micro-author micro-card a svg { + font-size: 85%; +} + +micro-author a svg ~ span, +micro-author a span ~ svg, +nav[data-type="pagination"] a svg ~ span, +nav[data-type="pagination"] a span ~ svg { margin-left: 0.25rem; } @@ -1072,8 +1078,10 @@ micro-author micro-card { border: none; } -micro-author micro-card > *, -micro-author micro-card > article { +micro-author micro-card header, +micro-author micro-card > a, +micro-author micro-card > article, +micro-author micro-card > p:not(:last-child) { margin: 0 0.5rem; } @@ -1097,7 +1105,7 @@ micro-author article h3 { font-weight: 400; } -micro-author micro-card header figure { +micro-author micro-card header figure:first-child { margin: 0; } @@ -2424,7 +2432,8 @@ nav[hidden] { flex-direction: column; text-align: center; } - micro-author micro-card > :not(:last-child) { + micro-author micro-card > *:not(:last-child), + micro-author micro-card > p:not(:last-child) { margin-bottom: 0.5rem; } micro-author article { @@ -2439,8 +2448,8 @@ nav[hidden] { } @media screen and (max-width: 1080px) { - column-base[position="left"], search-entry, + column-base[position="left"], column-base[position="middle"] > nav:first-child section { display: none; } diff --git a/themes/default/layouts/_default/section.following.html b/themes/default/layouts/_default/section.following.html index eb74049..2bfcc2e 100644 --- a/themes/default/layouts/_default/section.following.html +++ b/themes/default/layouts/_default/section.following.html @@ -65,7 +65,7 @@ title="Follow {{ $distinct.FeedName }}" href="{{ $href }}"> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/rss.svg")) }} - <header>Follow</header> + <span>Feed</span> </a> </micro-card> </micro-author> diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html index 65228cc..561fef3 100644 --- a/themes/default/layouts/partials/author-card.html +++ b/themes/default/layouts/partials/author-card.html @@ -75,7 +75,7 @@ <p>{{ .Data.description | markdownify | plainify | htmlUnescape | truncate 60 "..." }}</p> <a title="Follow with RSS Reader" href="{{ "" | absURL }}/{{ .Data.user }}/rss.xml"> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/rss.svg")) }} - <header>Follow</header> + <span>Feed</span> </a> </micro-card> </micro-author> diff --git a/themes/default/layouts/partials/pagination.html b/themes/default/layouts/partials/pagination.html index 3e5acd8..e64bfcf 100644 --- a/themes/default/layouts/partials/pagination.html +++ b/themes/default/layouts/partials/pagination.html @@ -30,21 +30,21 @@ <nav{{ if le .TotalPages 1 }} hidden="" {{ end }} data-type="pagination"> <a rel="first" href="{{ $firstHref }}" title="{{ $firstTitle }}" > - <header>{{ $firstTitle }}</header> + <span>{{ $firstTitle }}</span> </a> <a rel="prev" href="{{ $prevHref }}" title="{{ $prevTitle }}"> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-left.svg")) }} - <header>{{ $prevTitle }}</header> + <span>{{ $prevTitle }}</span> </a> <a rel="next" href="{{ $nextHref }}" title="{{ $nextTitle }}"> - <header>{{ $nextTitle }}</header> + <span>{{ $nextTitle }}</span> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-right.svg")) }} </a> <a rel="last" href="{{ $lastHref }}" title="{{ $lastTitle }}" data-count="{{ .TotalPages }}"> - <header>{{ $lastTitle }}</header> + <span>{{ $lastTitle }}</span> </a> </nav> {{- end -}} |