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

fixing hover effect on cards on News page #4691

Merged
merged 4 commits into from
Aug 23, 2023
Merged
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
20 changes: 13 additions & 7 deletions src/components/Card/Card.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,21 @@ export const CardWrapper = styled.div`
border-top-right-radius: 0.5rem;
border-top-left-radius: 0.5rem;

.gatsby-image-wrapper, .old-gatsby-image-wrapper{
.gatsby-image-wrapper{
height:80%;
transition: all 0.3s ease-in;
}
.old-gatsby-image-wrapper{
height:100%;
width:70%;
margin-left: 3rem;
transition: all 0.3s ease-in;
}
img{
height: inherit;
max-height: 180px;
display: block;
text-align: center;
margin: auto;
img{
padding: 0px;
margin-top: 0.5rem;
width: 100%;
height: 100%;
}
}

Expand Down Expand Up @@ -97,6 +102,7 @@ export const CardWrapper = styled.div`
.post-meta-block{
height: auto;
display: flex;


.author{
text-align: end;
Expand Down