diff --git a/assets/css/_partials/_single/_collections.scss b/assets/css/_partials/_single/_collections.scss index 6f4f8f024..f384b5568 100644 --- a/assets/css/_partials/_single/_collections.scss +++ b/assets/css/_partials/_single/_collections.scss @@ -111,21 +111,35 @@ .collection-summary { display: flex; - justify-content: space-between; - align-items: center; + align-items: baseline; + gap: 0.25rem; padding: 0.2rem 0.5rem; background-color: darken($global-background-color, 3%); [data-theme='dark'] & { background-color: lighten($global-background-color-dark, 3%); } - - .details-icon { + + > i.fa-layer-group { flex-shrink: 0; } .collection-name { + flex-grow: 1; font-weight: bold; + + &::before { + content: attr(data-collections) '・'; + } + } + + .collection-count { + flex-shrink: 0; + @extend .text-secondary; + } + + .details-icon { + flex-shrink: 0; } @include user-select(none); @@ -195,7 +209,22 @@ background-color: lighten($global-background-color-dark, 3%); } + a.collection-nav-item { + padding-inline: 2px; + border-radius: 50%; + @include transition(background-color 0.3s ease-out); + + &:hover { + background-color: darken($global-background-color, 10%); + + [data-theme='dark'] & { + background-color: lighten($global-background-color-dark, 10%); + } + } + } + > i.collection-nav-item { + padding: 4px 2px; cursor: not-allowed; } } diff --git a/layouts/partials/single/collection-list.html b/layouts/partials/single/collection-list.html index 7b273cb38..b58524482 100644 --- a/layouts/partials/single/collection-list.html +++ b/layouts/partials/single/collection-list.html @@ -12,11 +12,9 @@
- - {{ dict "Class" "fa-solid fa-layer-group fa-fw" | partial "plugin/icon.html" }} - {{ T "collections" }}・{{ .LinkTitle }} - {{ $pages.Len }} - + {{ dict "Class" "fa-solid fa-layer-group fa-fw" | partial "plugin/icon.html" }} + {{ .LinkTitle }} + {{ $pages.Len }} {{- dict "Class" "details-icon fa-solid fa-angle-right fa-fw" | partial "plugin/icon.html" -}}