/
SearchPosts.css
86 lines (72 loc) · 1.46 KB
/
SearchPosts.css
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
85
86
body {
text-align: center;
font-family: verdana, arial, helvetica, sans-serif;
}
header form {
display: flex;
align-items: center;
}
header input {
padding: 5px;
margin: 10px;
border-radius: 10px;
border-style: solid;
}
.text {
font-size: 14px;
}
p {
overflow-wrap: anywhere;
}
.my-masonry-grid {
display: -webkit-box; /* Not needed if autoprefixing */
display: -ms-flexbox; /* Not needed if autoprefixing */
display: flex;
margin-left: -30px; /* gutter size offset */
width: auto;
padding: 15px;
}
.my-masonry-grid_column {
padding-left: 30px; /* gutter size */
-webkit-background-clip: padding-box;
background-clip: padding-box;
}
/* Style your items */
.my-masonry-grid_column > div {
background: #f9f8f8;
margin-bottom: 30px;
border-radius: 20px;
padding: 15px;
box-shadow: #e6d9d4 5px 5px 0px 0px;
border: 1px solid #e6d9d4;
}
.my-masonry-grid_column img {
width: 100%;
border-radius: 10px;
}
video {
max-width: 100%;
}
.my-masonry-grid img[src="https://www.redditstatic.com/icon.png"] {
width: 38px;
float: left;
}
.my-masonry-grid img[src=""] {
display: none;
}
.my-masonry-grid_column a {
color: inherit;
text-decoration: auto;
}
/* Optional, different gutter size on mobile */
@media (max-width: 800px) {
.my-masonry-grid {
margin-left: -15px; /* gutter size offset */
}
.my-masonry-grid_column {
padding-left: 15px; /* gutter size offset */
}
.my-masonry-grid_column > div {
margin-bottom: 15px; /* space between items */
}
}