Improve card design
This commit is contained in:
parent
13767cb504
commit
2bc27a847f
1 changed files with 5 additions and 1 deletions
|
@ -60,12 +60,16 @@ img {
|
|||
@media (hover: hover) {
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.ui.card > .image > img.preview {
|
||||
transition: height 0.2s linear;
|
||||
transition: height 0.2s linear, opacity 0.2s linear;
|
||||
}
|
||||
}
|
||||
.ui.card:hover > .image > img.preview {
|
||||
height: calc(1em + 3 * var(--padding));
|
||||
}
|
||||
.ui.card:hover > .image > img.preview[src="/src/assets/img/no-image.svg"] {
|
||||
object-fit: contain;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
|
||||
/** Provider */
|
||||
|
|
Loading…
Reference in a new issue