Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Standardize hover animations for all cards #999

Merged
merged 3 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion styles/components/card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
cursor: url(../../public/icons/pointer-cursor.png), pointer;
align-self: stretch;
border: solid 1px transparent;
transition: all 0.3s ease-in-out;
Marchand-Nicolas marked this conversation as resolved.
Show resolved Hide resolved
}

.card:hover {
border: solid 1px var(--secondary500);
transform: translateY(-4px);
background-color: var(--hover-background-color, #4a4c53);
box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
}

.cardImage {
Expand Down
5 changes: 4 additions & 1 deletion styles/components/pages/home/card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
cursor: url(../../../../public/icons/pointer-cursor.png), pointer;
align-self: stretch;
border: solid 1px transparent;
transition: all 0.3s ease-in-out;
}

.card:hover {
border: solid 1px var(--secondary500);
transform: translateY(-4px);
background-color: var(--hover-background-color, #4a4c53);
box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
Marchand-Nicolas marked this conversation as resolved.
Show resolved Hide resolved
}

.cardImage {
Expand Down
5 changes: 4 additions & 1 deletion styles/components/quests/card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
cursor: url(../../../public/icons/pointer-cursor.png), pointer;
align-self: stretch;
border: solid 1px transparent;
transition: all 0.3s ease-in-out;
}

.card:hover {
border: solid 1px var(--secondary500);
transform: translateY(-4px);
background-color: var(--hover-background-color, #4a4c53);
box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
Marchand-Nicolas marked this conversation as resolved.
Show resolved Hide resolved
}

.cardImage {
Expand Down