-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposting.css
95 lines (81 loc) · 1.54 KB
/
posting.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
87
88
89
90
91
92
93
94
95
.posting{
display:grid;
grid-template-rows: repeat(1, auto);
grid-template-columns: repeat(2, auto);
grid-template-areas: "img img" "content content" "foot foot";
grid-gap:0.2em;
color: #666;
margin:0.6em;
border-radius: 0.2em;
border: #eee solid 2px;
position:relative;
}
.posting:hover{
box-shadow: -6px 3px 5px #ccc;
background-color:green;
}
.posting-body{
padding:0.5em 0.3em;
font-size:0.8em;
height:fit-content;
grid-area:content;
}
.posting:nth-child(odd){
background-color: #eee;
}
.posting:nth-child(even){
background-color: inherit;
}
.posting-content{
font-size:1.3em;
color: black;
padding:0.5em;
height:fit-content;
display:block;
justify-content: center;
align-content: center;
font-size:1.2rem;
}
.posting-container{
display:grid;
--columns: 1;
grid-template-columns: repeat(var(--columns), 1fr);
}
.posting-image{
width:100%;
border-radius: 0.2em;
grid-area: img;
}
.footer{
height:fit-content;
grid-area:foot;
}
.footer-content{
/*position:absolute;*/
bottom:0;
}
@media (max-width: 576px) {
.posting{
grid-template-areas: "img content" "img foot";
}
}
@media (min-width: 576px) {
.posting-container{
--columns: 2;
}
}
@media (min-width: 768px) {
.posting-container{
--columns: 3;
}
}
@media (min-width: 992px) {
.posting-container{
--columns: 4;
}
}
@media (min-width: 1200px) {
.posting-container{
--columns: 5;
}
}