Skip to content

Commit

Permalink
trying to resolve padding and multiple elements issue
Browse files Browse the repository at this point in the history
Signed-off-by: Vamshi Reddy <[email protected]>
  • Loading branch information
VamshiReddy02 committed Aug 11, 2023
1 parent 2bd692f commit 99ddeb8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 17 deletions.
31 changes: 14 additions & 17 deletions src/components/Card/Card.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +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{
height:80%;
width:70%;
margin: auto;
transition: all 0.3s ease-in;
}
.old-gatsby-image-wrapper{
height:100%;
width:70%;
margin: auto;
transition: all 0.3s ease-in;
}
img{
padding: 10px;
width: 100%;
height: 100%;
.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
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

0 comments on commit 99ddeb8

Please sign in to comment.