diff options
| author | Volpeon <git@volpeon.ink> | 2021-11-11 09:14:38 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-11-11 09:14:38 +0100 |
| commit | 19d3eb0bdfe505715d3b9f62a3cf8d340291a144 (patch) | |
| tree | c5fc53d5d7f211e774e43e3ec217bd0335b56ed4 /assets/css/components/_card-list.scss | |
| parent | Make footer sticky again, fix blobfox and bunhd URLs (diff) | |
| download | volpeon.ink-19d3eb0bdfe505715d3b9f62a3cf8d340291a144.tar.gz volpeon.ink-19d3eb0bdfe505715d3b9f62a3cf8d340291a144.tar.bz2 volpeon.ink-19d3eb0bdfe505715d3b9f62a3cf8d340291a144.zip | |
Show profiles on home page again; general updates
Diffstat (limited to 'assets/css/components/_card-list.scss')
| -rw-r--r-- | assets/css/components/_card-list.scss | 59 |
1 files changed, 59 insertions, 0 deletions
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 @@ | |||
| 1 | @include namespace('card-list') { | ||
| 2 | @include store(( | ||
| 3 | --colors: ( | ||
| 4 | --cat: ( | ||
| 5 | --fg: prop(--colors --fg-lo, $global: true), | ||
| 6 | ), | ||
| 7 | --meta: ( | ||
| 8 | --fg: prop(--colors --fg-hi, $global: true), | ||
| 9 | ) | ||
| 10 | ), | ||
| 11 | --dims: ( | ||
| 12 | --col-width: 17em | ||
| 13 | ) | ||
| 14 | )); | ||
| 15 | |||
| 16 | @include component(namespace()) { | ||
| 17 | margin-top: $line-height * 2rem; | ||
| 18 | font-size: 1rem; | ||
| 19 | |||
| 20 | @include element('category-header') { | ||
| 21 | margin-top: $line-height * 2rem; | ||
| 22 | color: prop(--colors --cat --fg); | ||
| 23 | |||
| 24 | :link, | ||
| 25 | :visited { | ||
| 26 | text-decoration: none; | ||
| 27 | |||
| 28 | &:hover { | ||
| 29 | text-decoration: underline; | ||
| 30 | } | ||
| 31 | } | ||
| 32 | } | ||
| 33 | |||
| 34 | @include element('category-content') { | ||
| 35 | margin-top: $line-height * .5rem; | ||
| 36 | filter: drop-shadow(#{prop(--dims --obj-shadow, $global: true)} #{prop(--colors --obj-shadow, $global: true)}); | ||
| 37 | |||
| 38 | @include modifier('grid') { | ||
| 39 | display: grid; | ||
| 40 | grid-template-columns: repeat(auto-fill, minmax(#{prop(--dims --col-width)}, 1fr)); | ||
| 41 | gap: 6px; | ||
| 42 | |||
| 43 | @include element('card') { | ||
| 44 | @include next-twin-element { | ||
| 45 | margin-top: 0; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | } | ||
| 49 | } | ||
| 50 | |||
| 51 | @include element('card') { | ||
| 52 | box-shadow: none; | ||
| 53 | |||
| 54 | @include next-twin-element { | ||
| 55 | margin-top: 2px; | ||
| 56 | } | ||
| 57 | } | ||
| 58 | } | ||
| 59 | } | ||
