diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/objects/_card.scss | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/objects/_card.scss b/src/objects/_card.scss index 2eb16bc..0e19dae 100644 --- a/src/objects/_card.scss +++ b/src/objects/_card.scss | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | @include materialize-at-root(meta.module-variables('vars')); | 11 | @include materialize-at-root(meta.module-variables('vars')); |
| 12 | 12 | ||
| 13 | @include iro.bem-object('card') { | 13 | @include iro.bem-object('card') { |
| 14 | position: relative; | ||
| 14 | display: flex; | 15 | display: flex; |
| 15 | flex-direction: column; | 16 | flex-direction: column; |
| 16 | margin: calc(-1 * props.get(vars.$key-focus--border-width)); | 17 | margin: calc(-1 * props.get(vars.$key-focus--border-width)); |
| @@ -25,6 +26,16 @@ | |||
| 25 | &:active, | 26 | &:active, |
| 26 | &:focus-visible { | 27 | &:focus-visible { |
| 27 | transform: translateY(props.get(vars.$hover--offset-b)); | 28 | transform: translateY(props.get(vars.$hover--offset-b)); |
| 29 | |||
| 30 | @include iro.bem-elem('body') { | ||
| 31 | @include iro.bem-modifier('hidden') { | ||
| 32 | visibility: visible; | ||
| 33 | opacity: 1; | ||
| 34 | transition: | ||
| 35 | opacity .2s ease, | ||
| 36 | visibility .2s linear; | ||
| 37 | } | ||
| 38 | } | ||
| 28 | } | 39 | } |
| 29 | 40 | ||
| 30 | &:focus-visible { | 41 | &:focus-visible { |
| @@ -66,15 +77,28 @@ | |||
| 66 | } | 77 | } |
| 67 | 78 | ||
| 68 | @include iro.bem-elem('body') { | 79 | @include iro.bem-elem('body') { |
| 69 | flex: 1 0 auto; | 80 | flex: 1 0 auto; |
| 70 | padding-block: props.get(vars.$pad-b); | 81 | padding-block: props.get(vars.$pad-b); |
| 71 | padding-inline: props.get(vars.$pad-i); | 82 | padding-inline: props.get(vars.$pad-i); |
| 72 | 83 | ||
| 73 | &::before { | 84 | &::before { |
| 74 | display: block; | 85 | display: block; |
| 75 | margin-block: -100em 100em; | 86 | margin-block: -100em 100em; |
| 76 | content: ''; | 87 | content: ''; |
| 77 | } | 88 | } |
| 89 | |||
| 90 | @include iro.bem-modifier('hidden') { | ||
| 91 | position: absolute; | ||
| 92 | inset-block-end: 0; | ||
| 93 | inset-inline: 0; | ||
| 94 | z-index: 10; | ||
| 95 | visibility: hidden; | ||
| 96 | background-color: props.get(vars.$bg-color); | ||
| 97 | opacity: 0; | ||
| 98 | transition: | ||
| 99 | opacity .2s ease, | ||
| 100 | visibility 0s .2s linear; | ||
| 101 | } | ||
| 78 | } | 102 | } |
| 79 | 103 | ||
| 80 | @include iro.bem-elem('content') { | 104 | @include iro.bem-elem('content') { |
