diff --git a/assets/scss/partials/widgets.scss b/assets/scss/partials/widgets.scss index 63fa300..33a02dd 100644 --- a/assets/scss/partials/widgets.scss +++ b/assets/scss/partials/widgets.scss @@ -36,27 +36,26 @@ /* Archives widget */ .widget.archives { + .widget-archive--list { + border-radius: var(--card-border-radius); + box-shadow: var(--shadow-l1); + background-color: var(--card-background); + } + .archives-year { - margin-bottom: 10px; + &:not(:last-of-type) { + border-bottom: 1.5px solid var(--card-separator-color); + } + a { - background-color: var(--card-background); - padding: 15px 25px; - border-radius: var(--card-border-radius); - box-shadow: var(--shadow-l1); + font-size: 1.4rem; + padding: 18px 25px; display: flex; - transition: box-shadow 0.3s ease; - - &:hover { - box-shadow: var(--shadow-l2); - } - - @media (max-width: $on-desktop-large) { - font-size: 1.4rem; - } span.year { flex: 1; color: var(--card-text-color-main); + font-weight: bold; } span.count { diff --git a/layouts/partials/widget/archives.html b/layouts/partials/widget/archives.html index d6950a4..038b669 100644 --- a/layouts/partials/widget/archives.html +++ b/layouts/partials/widget/archives.html @@ -8,18 +8,20 @@ {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }} {{ $filtered := ($pages | intersect $notHidden) }} {{ $archives := $filtered.GroupByDate "2006" }} - - {{ range $index, $item := first (add .Site.Params.widgets.archives.limit 1) ($archives) }} - {{- $id := lower (replace $item.Key " " "-") -}} -
- {{ end }} - + + + \ No newline at end of file