From 0c7cb4486a89ec6fe9680e6569ef41d4b82d557d Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 18 Feb 2021 22:21:36 +0100 Subject: use maintained theme --- .../CodeIT/assets/css/_partial/_archive/_tags.scss | 27 +++++++ .../assets/css/_partial/_archive/_terms.scss | 82 ++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 themes/CodeIT/assets/css/_partial/_archive/_tags.scss create mode 100644 themes/CodeIT/assets/css/_partial/_archive/_terms.scss (limited to 'themes/CodeIT/assets/css/_partial/_archive') diff --git a/themes/CodeIT/assets/css/_partial/_archive/_tags.scss b/themes/CodeIT/assets/css/_partial/_archive/_tags.scss new file mode 100644 index 0000000..1c1de3f --- /dev/null +++ b/themes/CodeIT/assets/css/_partial/_archive/_tags.scss @@ -0,0 +1,27 @@ +.tag-cloud-tags { + margin: 10px 0; + + @include link(true, true); + + a { + display: inline-block; + position: relative; + margin: 5px 10px; + @include overflow-wrap(break-word); + @include transition(all ease-out 0.3s); + + &:active, + &:focus, + &:hover { + @include transform(scale(1.2)); + } + + sup { + color: $global-font-secondary-color; + + [theme="dark"] & { + color: $global-font-secondary-color-dark; + } + } + } +} diff --git a/themes/CodeIT/assets/css/_partial/_archive/_terms.scss b/themes/CodeIT/assets/css/_partial/_archive/_terms.scss new file mode 100644 index 0000000..c171bdd --- /dev/null +++ b/themes/CodeIT/assets/css/_partial/_archive/_terms.scss @@ -0,0 +1,82 @@ +.categories-card { + margin: 0 auto; + margin-top: 3rem; + display: flex; + align-items: center; + justify-content: space-between; + flex-direction: row; + flex-wrap: wrap; + line-height: 1.6rem; + + .card-item { + font-size: 0.875rem; + text-align: left; + width: 45%; + display: flex; + align-items: flex-start; + margin-top: 2rem; + min-height: 10rem; + padding: 0 2%; + position: relative; + + .card-item-wrapper { + width: 100%; + overflow: hidden; + + .card-item-title { + font-size: 1.2rem; + font-weight: bold; + display: inline-block; + margin-top: 1rem; + margin-bottom: 0.75rem; + } + + span { + float: right; + padding-right: 1rem; + } + } + } +} + +.archive-item { + display: flex; + justify-content: space-between; + align-items: center; + box-sizing: border-box; + margin: 0.25rem 0 0.25rem 1.5rem; +} + +.archive-item-link { + min-width: 10%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + + &:hover { + color: $global-link-hover-color; + background-color: transparent; + } + + [theme="dark"] & { + color: $global-link-color-dark; + + &:hover { + color: $global-link-hover-color-dark; + } + } +} + +.archive-item-date { + width: 4em; + text-align: right; + color: $global-font-secondary-color; + + [theme="dark"] & { + color: $global-font-secondary-color-dark; + } +} + +.more-post { + text-align: right; +} -- cgit v1.2.3