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
Show file tree
Hide file tree
Changes from all commits
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
29 changes: 18 additions & 11 deletions src/components/Card/Card.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,27 @@ export const CardWrapper = styled.div`
}
}

.post-thumb-block{
.post-thumb-block{
overflow: hidden;
height: 11.5rem;
border-top-right-radius: 0.5rem;
border-top-left-radius: 0.5rem;

.gatsby-image-wrapper, .old-gatsby-image-wrapper{
height:100%;
transition: all 0.3s ease-in;
}
img{
height: inherit;
max-height: 180px;
display: block;
text-align: center;
margin: auto;
.gatsby-image-wrapper, .old-gatsby-image-wrapper{
height:100%;
margin-top: 0.2rem;
transition: all 0.3s ease-in;
}
img{
height: inherit;
max-height: 180px;
display: block;
text-align: center;
margin: auto;
}

}


.post-content-block{
padding: 1rem 2rem;
Expand Down Expand Up @@ -97,6 +100,8 @@ export const CardWrapper = styled.div`
.post-meta-block{
height: auto;
display: flex;
margin-buttom: 0.5rem;


.author{
text-align: end;
Expand All @@ -118,6 +123,7 @@ export const CardWrapper = styled.div`
.readmore-btn-wrapper{
display:flex;
justify-content: flex-start;

}

.readmore-btn::after{
Expand All @@ -136,6 +142,7 @@ export const CardWrapper = styled.div`
align-items: center;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);


svg{
font-size: 1.5rem;
transition: all 0.3s;
Expand Down
24 changes: 24 additions & 0 deletions src/sections/Company/News-grid/NewsGrid.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,30 @@ export const NewsPageWrapper = styled.div`
.search-box-container {
width: 35%;
}
.post-thumb-block{
overflow: hidden;
height: 11.5rem;
border-top-right-radius: 0.5rem;
border-top-left-radius: 0.5rem;

.gatsby-image-wrapper{
height: 100%;
width: 80%;
margin: auto;
transition: all 0.3s ease-in;
}
.old-gatsby-image-wrapper{
height:100%;
width:80%;
margin: auto;
transition: all 0.3s ease-in;
}
img{
padding: 4px;
width: 100%;
height: 100%;
}
}

.post-content-block {
height: 10rem;
Expand Down