diff options
Diffstat (limited to 'assets/css/components')
| -rw-r--r-- | assets/css/components/_card.scss | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/assets/css/components/_card.scss b/assets/css/components/_card.scss index e1f92b0..2e32a48 100644 --- a/assets/css/components/_card.scss +++ b/assets/css/components/_card.scss | |||
| @@ -75,7 +75,9 @@ | |||
| 75 | 75 | ||
| 76 | @include element('row') { | 76 | @include element('row') { |
| 77 | @include modifier('hidden') { | 77 | @include modifier('hidden') { |
| 78 | opacity: 1; | 78 | visibility: visible; |
| 79 | transition: opacity .2s; | ||
| 80 | opacity: 1; | ||
| 79 | } | 81 | } |
| 80 | } | 82 | } |
| 81 | 83 | ||
| @@ -119,16 +121,18 @@ | |||
| 119 | } | 121 | } |
| 120 | 122 | ||
| 121 | @include modifier('hidden') { | 123 | @include modifier('hidden') { |
| 124 | visibility: hidden; | ||
| 122 | position: absolute; | 125 | position: absolute; |
| 123 | z-index: 10; | 126 | z-index: 10; |
| 124 | right: 0; | 127 | right: 0; |
| 125 | bottom: 0; | 128 | bottom: 0; |
| 126 | left: 0; | 129 | left: 0; |
| 127 | transition: opacity .2s; | 130 | transition: opacity .2s, visibility 0s .2s; |
| 128 | opacity: 0; | 131 | opacity: 0; |
| 129 | background-color: prop(--colors --hover --bg); | 132 | background-color: prop(--colors --hover --bg); |
| 130 | 133 | ||
| 131 | @media (hover: none) { | 134 | @media (hover: none) { |
| 135 | visibility: visible; | ||
| 132 | position: static; | 136 | position: static; |
| 133 | opacity: 1; | 137 | opacity: 1; |
| 134 | background-color: transparent; | 138 | background-color: transparent; |
