Skip to content
Closed
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
175 changes: 67 additions & 108 deletions src/sections/Blog/Blog-list/blogList.style.js
Original file line number Diff line number Diff line change
@@ -1,125 +1,84 @@
import styled from "styled-components";

export const BlogPageWrapper = styled.div`
.blog-list-wrapper {
margin: 5rem auto;
}
.blog-lists{
margin-top: 5rem;
}

.tooltip-search{
margin-bottom: 0.8rem;
}
.post-block{
background-color: ${props => props.theme.grey212121ToWhite};
width: 100%;
display: flex;
justify-content: center;
align-items: center;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-thumb-block{
height: 8rem;
width: 25%;
img{
padding: 0px;
margin-left: 0.5rem;
width: 100%;
height: 100%;
}
}

.post-content-block{
height: 8.5rem;
width: 75%;
}

.post-title{
font-size: 1.5rem;
}
.blog-list-wrapper {
margin: 5rem auto;
}
.blog-lists {
margin-top: 5rem;
}

.post-meta-block{
flex-direction: row-reverse;
p{
font-size: 1rem;
text-align: end;
}
.author{
font-size: 1rem;
text-align: start;
margin-bottom:0;
}
}
.tooltip-search {
margin-bottom: 0.8rem;
}
.post-block {
background-color: ${(props) => props.theme.grey212121ToWhite};
width: 100%;
display: flex;
align-items: stretch;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-thumb-block {
height: 8rem;
width: 25%;
overflow: hidden;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}

@media screen and (max-width:1200px){
.post-block{
height: auto;
}
.post-thumb-block{
height: 8rem;
}
.post-content-block {
width: 75%;
padding: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
}

}
@media screen and (max-width: 1200px) {
.post-block {
min-height: auto;
}
.post-thumb-block {
height: 8rem;
}
}

@media screen and (max-width:992px){
.post-block{
flex-direction: row;
}
.post-thumb-block{
height: 8rem;
width: 25%;
margin-right: 1rem;

img{
object-fit: cover;
margin: 0;
flex: 1;
}
}
.post-content-block{
width: 70%;
padding: 0.5rem;
}
}
@media screen and (max-width: 576px) {
.post-block {
flex-direction: column;
}
.blog-list-wrapper {
margin: 1.5rem auto 5rem;
}
.blog-lists {
margin-top: 0;
}
.post-thumb-block {
width: 100%;
height: 12rem;

@media screen and (max-width:576px){
.post-block{
flex-direction: column;
}
.blog-list-wrapper{
margin: 1.5rem auto 5rem;
}
.blog-lists{
margin-top: 0;
}
.post-thumb-block{
width: 100%;
height: 12rem;
margin-right: 0;

img{
object-fit: cover;
padding: 0;
margin: 0;
}
}
.post-content-block{
width: 100%;
padding: 0.75rem 0.5rem;
}
.tooltip-search{
display: block;
}
}
img {
object-fit: cover;
}
}
.post-content-block {
width: 100%;
padding: 1rem;
}
.tooltip-search {
display: block;
}
}

@media only screen and (min-width: 577px) {
@media only screen and (min-width: 577px) {
.tooltip-search {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0;
}
}

`;
Loading