Skip to content
Open
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
52 changes: 41 additions & 11 deletions src/sections/Blog/Blog-list/blogList.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,50 @@ export const BlogPageWrapper = styled.div`
background-color: ${props => props.theme.grey212121ToWhite};
width: 100%;
display: flex;
flex-direction: row;
min-height: auto;
justify-content: center;
align-items: center;
align-items: stretch;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-thumb-block{
height: 8rem;
min-height: 10rem;
width: 25%;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
border-top-left-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
border-top-right-radius: 0;

.gatsby-image-wrapper,
.old-gatsby-image-wrapper {
width: 100%;
height: 100%;
}

.gatsby-image-wrapper img,
.old-gatsby-image-wrapper img {
object-fit: contain !important;
width: 100%;
height: 100%;
}

img{
padding: 0px;
margin-left: 0.5rem;
padding: 0;
margin: 0;
width: 100%;
height: 100%;
object-fit: contain !important;
}
}

.post-content-block{
height: 8.5rem;
height: auto;
width: 75%;
min-height: auto;
padding: 1rem 1.5rem;
}

.post-title{
Expand All @@ -57,7 +83,7 @@ export const BlogPageWrapper = styled.div`
height: auto;
}
.post-thumb-block{
height: 8rem;
min-height: 8rem;
}

}
Expand All @@ -67,25 +93,25 @@ export const BlogPageWrapper = styled.div`
flex-direction: row;
}
.post-thumb-block{
height: 8rem;
min-height: 8rem;
width: 25%;
margin-right: 1rem;
margin-right: 0;

img{
object-fit: cover;
margin: 0;
flex: 1;
}
}
.post-content-block{
width: 70%;
padding: 0.5rem;
width: 75%;
padding: 0.75rem 1rem;
}
}

@media screen and (max-width:576px){
.post-block{
flex-direction: column;
min-height: auto;
}
.blog-list-wrapper{
margin: 1.5rem auto 5rem;
Expand All @@ -97,6 +123,9 @@ export const BlogPageWrapper = styled.div`
width: 100%;
height: 12rem;
margin-right: 0;
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
border-bottom-left-radius: 0;

img{
object-fit: cover;
Expand All @@ -123,3 +152,4 @@ export const BlogPageWrapper = styled.div`
}

`;

Loading