diff options
| author | Volpeon <git@volpeon.ink> | 2025-07-21 21:25:30 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2025-07-21 21:25:30 +0200 |
| commit | 3b90048ff3592e2a5630a97f611106aa06be1cb6 (patch) | |
| tree | 3d24739d690b3d411a3c504845d0c42d6849fc4f /src/layouts | |
| parent | Action button: add static mod (diff) | |
| download | iro-design-3b90048ff3592e2a5630a97f611106aa06be1cb6.tar.gz iro-design-3b90048ff3592e2a5630a97f611106aa06be1cb6.tar.bz2 iro-design-3b90048ff3592e2a5630a97f611106aa06be1cb6.zip | |
Improved card and card list
Diffstat (limited to 'src/layouts')
| -rw-r--r-- | src/layouts/_card-list.scss | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/layouts/_card-list.scss b/src/layouts/_card-list.scss index 8ef40c5..a1655be 100644 --- a/src/layouts/_card-list.scss +++ b/src/layouts/_card-list.scss | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | @forward 'card-list.vars'; | 7 | @forward 'card-list.vars'; |
| 8 | @use 'card-list.vars' as vars; | 8 | @use 'card-list.vars' as vars; |
| 9 | @use '../objects/card.vars' as card; | ||
| 9 | 10 | ||
| 10 | @mixin styles { | 11 | @mixin styles { |
| 11 | @include materialize-at-root(meta.module-variables('vars')); | 12 | @include materialize-at-root(meta.module-variables('vars')); |
| @@ -15,6 +16,33 @@ | |||
| 15 | flex-direction: column; | 16 | flex-direction: column; |
| 16 | gap: props.get(vars.$row-gap); | 17 | gap: props.get(vars.$row-gap); |
| 17 | 18 | ||
| 19 | @include bem.modifier('merge') { | ||
| 20 | position: relative; | ||
| 21 | gap: 0; | ||
| 22 | |||
| 23 | @include bem.elem('card') { | ||
| 24 | transition: none; | ||
| 25 | |||
| 26 | &:not(:last-child) { | ||
| 27 | margin-bottom: calc(-1 * props.get(card.$border-width)); | ||
| 28 | border-end-start-radius: 0; | ||
| 29 | border-end-end-radius: 0; | ||
| 30 | } | ||
| 31 | |||
| 32 | &:hover, | ||
| 33 | &:active, | ||
| 34 | &:focus-visible { | ||
| 35 | z-index: 10; | ||
| 36 | transform: none; | ||
| 37 | } | ||
| 38 | |||
| 39 | @include bem.next-twin-elem { | ||
| 40 | border-start-start-radius: 0; | ||
| 41 | border-start-end-radius: 0; | ||
| 42 | } | ||
| 43 | } | ||
| 44 | } | ||
| 45 | |||
| 18 | @include bem.modifier('quiet') { | 46 | @include bem.modifier('quiet') { |
| 19 | row-gap: props.get(vars.$quiet--row-gap); | 47 | row-gap: props.get(vars.$quiet--row-gap); |
| 20 | } | 48 | } |
