forked from layer5io/layer5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblogList.style.js
More file actions
84 lines (77 loc) · 1.49 KB
/
Copy pathblogList.style.js
File metadata and controls
84 lines (77 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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;
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;
}
}
.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: 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;
img {
object-fit: cover;
}
}
.post-content-block {
width: 100%;
padding: 1rem;
}
.tooltip-search {
display: block;
}
}
@media only screen and (min-width: 577px) {
.tooltip-search {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0;
}
}
`;