Skip to content

Commit

Permalink
Added hover effect to cards (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhaufe authored Dec 6, 2023
1 parent dcf3e87 commit a9e93b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/presentation/components/MiniCard.mts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export class MiniCard extends Component {
padding: '1em',
width: '10em',
},
'.mini-card:hover': {
filter: 'brightness(1.2)'
},
'a': {
alignItems: 'center',
color: 'var(--site-light-bg)',
Expand Down
3 changes: 3 additions & 0 deletions src/presentation/components/PegsCards.mts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export class PegsCards extends Container {
backgroundColor: 'var(--site-dark-bg)',
boxShadow: '4px 5px 5px 0px var(--shadow-color)'
},
'x-pegs-card:hover': {
filter: 'brightness(1.2)'
},
'x-pegs-card:first-of-type': {
backgroundColor: 'transparent',
border: '1px dashed var(--font-color)'
Expand Down

0 comments on commit a9e93b9

Please sign in to comment.