From 19d3eb0bdfe505715d3b9f62a3cf8d340291a144 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 11 Nov 2021 09:14:38 +0100 Subject: Show profiles on home page again; general updates --- assets/css/components/_card-list.scss | 59 +++++++++++++++++++++++++++++++++ assets/css/components/_post-list.scss | 61 ----------------------------------- 2 files changed, 59 insertions(+), 61 deletions(-) create mode 100644 assets/css/components/_card-list.scss delete mode 100644 assets/css/components/_post-list.scss (limited to 'assets/css/components') diff --git a/assets/css/components/_card-list.scss b/assets/css/components/_card-list.scss new file mode 100644 index 0000000..2a2ae69 --- /dev/null +++ b/assets/css/components/_card-list.scss @@ -0,0 +1,59 @@ +@include namespace('card-list') { + @include store(( + --colors: ( + --cat: ( + --fg: prop(--colors --fg-lo, $global: true), + ), + --meta: ( + --fg: prop(--colors --fg-hi, $global: true), + ) + ), + --dims: ( + --col-width: 17em + ) + )); + + @include component(namespace()) { + margin-top: $line-height * 2rem; + font-size: 1rem; + + @include element('category-header') { + margin-top: $line-height * 2rem; + color: prop(--colors --cat --fg); + + :link, + :visited { + text-decoration: none; + + &:hover { + text-decoration: underline; + } + } + } + + @include element('category-content') { + margin-top: $line-height * .5rem; + filter: drop-shadow(#{prop(--dims --obj-shadow, $global: true)} #{prop(--colors --obj-shadow, $global: true)}); + + @include modifier('grid') { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(#{prop(--dims --col-width)}, 1fr)); + gap: 6px; + + @include element('card') { + @include next-twin-element { + margin-top: 0; + } + } + } + } + + @include element('card') { + box-shadow: none; + + @include next-twin-element { + margin-top: 2px; + } + } + } +} diff --git a/assets/css/components/_post-list.scss b/assets/css/components/_post-list.scss deleted file mode 100644 index 9b124a6..0000000 --- a/assets/css/components/_post-list.scss +++ /dev/null @@ -1,61 +0,0 @@ -@include namespace('post-list') { - @include store(( - --colors: ( - --cat: ( - --fg: prop(--colors --fg-lo, $global: true), - ), - --meta: ( - --fg: prop(--colors --fg-hi, $global: true), - ) - ), - --dims: ( - --col-width: 17em - ) - )); - - @include component(namespace()) { - margin-top: $line-height * 2rem; - font-size: 1rem; - - @include element('category-header') { - margin-top: $line-height * 2rem; - color: prop(--colors --cat --fg); - - :link, - :visited { - text-decoration: none; - - &:hover { - text-decoration: underline; - } - } - } - - @include element('category-content') { - margin-top: $line-height * .5rem; - filter: drop-shadow(#{prop(--dims --obj-shadow, $global: true)} #{prop(--colors --obj-shadow, $global: true)}); - } - - @include element('post') { - box-shadow: none; - - @include next-twin-element { - margin-top: 2px; - } - } - - @include modifier('grid') { - @include element('category-content') { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(#{prop(--dims --col-width)}, 1fr)); - gap: $line-height * .5rem; - } - - @include element('post') { - @include next-twin-element { - margin-top: 0; - } - } - } - } -} -- cgit v1.2.3-54-g00ecf