Skip to content

Commit

Permalink
Add border on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
jsolly committed Jan 10, 2025
1 parent 9142618 commit 968610f
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,24 @@ const frameworks = Object.entries(FRAMEWORKS).map(([id]) => ({
</script>

<style is:global>

/* Only show grab cursor on desktop devices */
@media (min-width: 1024px) {
[data-framework] {
cursor: grab;
}

[data-framework].dragging {
cursor: grabbing;
}
}
[data-framework] {
cursor: grab;
}

[data-framework].dragging {
cursor: grabbing;
}

/* Add hover effect for draggable cards */
.framework-container {
transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.framework-container:hover {
border-color: rgb(203 213 225); /* slate-300 */
}
}
</style>

0 comments on commit 968610f

Please sign in to comment.