forked from aichenitrkl/aichenitrkl.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Blogs.css
104 lines (96 loc) · 1.8 KB
/
Blogs.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
96
97
98
99
100
101
102
103
104
/* header {
width: 90%;
max-width: 1240px;
margin: 0 auto;
} */
#band_blog {
width: 90%;
max-width: 1240px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
grid-gap: 20px;
}
@media (min-width: 30em) {
#band_blog {
grid-template-columns: 1fr 1fr;
}
}
@media (min-width: 60em) {
#band_blog {
grid-template-columns: repeat(4, 1fr);
}
}
#card_blog {
background: white;
text-decoration: none;
color: #444;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
min-height: 100%;
position: relative;
top: 0;
transition: all 0.1s ease-in;
}
#card_blog:hover {
top: -2px;
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
}
/* .item-1{
} */
#card_blog article {
padding: 20px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
#card_blog h1 {
font-size: 20px;
margin: 0;
color: #333;
}
#card_blog p {
flex: 1;
line-height: 1.4;
}
#card_blog span {
font-size: 12px;
font-weight: bold;
color: #999;
text-transform: uppercase;
letter-spacing: 0.05em;
margin: 2em 0 0 0;
}
#card_blog .thumb {
padding-bottom: 60%;
background-size: cover;
background-position: center center;
}
@media (min-width: 60em) {
.item-1 {
grid-row: 1 / span 2;
grid-column: span 2;
}
.item-1 h1 {
font-size: 24px;
}
.item-2 {
grid-column: span 2;
}
.item-3{
grid-column: span 1;
}
}
@media screen and (max-width: 600px) {
.item-5,.item-6,.item-7,.item-8,.item-1 p {
visibility: hidden;
clear: both;
float: left;
margin: 10px auto 5px 20px;
width: 28%;
display: none;
}
}