Skip to content

Commit

Permalink
Update root css
Browse files Browse the repository at this point in the history
- Don't add padding/animation to card images on touch devices
  • Loading branch information
alpe12 committed Oct 10, 2023
1 parent 1b76491 commit 701d474
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ img {
background-color: darkgray;
}

.cards .card .imagelink img {
min-height: 200px;
transition: scale 200ms ease;
border-top-left-radius: 1em;
border-top-right-radius: 1em;
}

@media (hover: hover) {
.cards .card:hover {
outline: 2px outset darkgray;
Expand All @@ -50,17 +57,9 @@ img {
padding: 4px;
padding-bottom: 0;
}
}

.cards .card .imagelink img {
min-height: 200px;
transition: scale 200ms ease;
border-top-left-radius: 1em;
border-top-right-radius: 1em;
}

.cards .card .imagelink img:hover {
scale: 1.05;
.cards .card .imagelink img:hover {
scale: 1.05;
}
}

.cards .card .content {
Expand Down

0 comments on commit 701d474

Please sign in to comment.