Skip to content

Commit

Permalink
Update SCSS to handle show class
Browse files Browse the repository at this point in the history
  • Loading branch information
maxatdetroit committed Jul 29, 2024
1 parent cce02c0 commit de6199a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
47 changes: 47 additions & 0 deletions src/components/organisms/ArticleCard/ArticleCard.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/components/organisms/ArticleCard/ArticleCard.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions src/components/organisms/ArticleCard/ArticleCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
height 0.2s ease-in-out;
}

.card-container:hover .text-container {
.card-container:hover .text-container,
.card-container .text-container.show {
box-sizing: border-box;
height: 100%;
padding-top: 30%;
Expand All @@ -37,7 +38,10 @@
transition: opacity 0.2s ease-in-out;
}

.card-container:hover .subtitle-container {
margin-top: 2em;
opacity: 1;
.card-container:hover,
.card-container .text-container.show {
.subtitle-container {
margin-top: 2em;
opacity: 1;
}
}

0 comments on commit de6199a

Please sign in to comment.