-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
122 lines (105 loc) · 1.75 KB
/
style.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
html {
font-size: 100%;
}
.masonry {
padding: 10px;
columns: 4;
column-gap: 20px;
}
@media (max-width: 1200px) {
.masonry {
columns: 3;
}
}
@media (max-width: 992px) {
.masonry {
columns: 2;
}
}
.masonry .grid {
display: inline-block;
margin-bottom: 16px;
position: relative;
overflow: hidden;
border-radius: 5px;
}
.masonry .grid:hover {
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
transition: all 0.5s ease-in-out;
}
.masonry .grid img {
width: 100%;
border-radius: 5px;
}
.masonry .grid:hover img {
transform: scale(1.05);
transition: all 0.5s ease-in-out;
}
.masonry .grid__title {
font-size: 3rem;
font-weight: bold;
margin: 0px 0px 10px 0px;
}
.masonry .grid__author {
font-size: 1rem;
font-weight: 300;
}
.masonry .grid__link {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.masonry .grid__link:hover {
background-color: rgba(0, 0, 0, 0.1);
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.masonry .grid__body {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
padding: 2rem;
color: #fff;
display: flex;
flex-direction: column;
}
.masonry .grid__tag {
background-color: rgba(255, 255, 255, 0.8);
color: #333;
border-radius: 5px;
padding: 5px 15px;
margin-bottom: 5px;
font-size: 1rem;
}
.mt-auto {
margin-top: auto;
}
@media (max-width:768px) {
html {
font-size: 80%;
}
.masonry .grid__title {
margin: 0px 0px 6px 0px;
}
}
@media (max-width:550px) {
html {
font-size: 60%;
}
}
@media (max-width:425px) {
html {
font-size: 50%;
}
.masonry .grid__body {
padding: 1.2rem 1.2rem 2rem 1.2rem;
}
}
@media (max-width:375px) {
html {
font-size: 45%;
}
}