-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathgridtheme.css
More file actions
59 lines (52 loc) · 1.06 KB
/
gridtheme.css
File metadata and controls
59 lines (52 loc) · 1.06 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
.grid-card-section {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: space-between;
}
.grid-card:hover{
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
}
.grid-card {
width: 210px;
max-height: 400px;
margin: 10px 15px;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
border-radius: 5px;
}
.grid-card-text {
padding: 0 15px;
}
.grid-card-cover img {
width: 100%;
}
.grid-card-cover {
width: 200px;
height: 220px;
padding: 5px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
border-radius: 5px;
display:block;
margin:auto;
}
.grid-card-cover .grid-card-description {
opacity: 0;
z-index: -1;
position: absolute;
top: 25%;
left: 140%;
width: 100%;
transform: translate(-50%, -50%);
padding: 10px;
border-radius: 5px;
background: rgba(0, 0, 0, 0.8);
color: #fff;
text-align: center;
font-size: 14px;
}
.grid-card-cover:hover .grid-card-description{
z-index: 3;
opacity: 1;
}