-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
89 lines (88 loc) · 1.72 KB
/
main.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
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:sans-serif;
}
body{
min-height:100vh;
padding:2rem;
display:grid;
place-items:center;
background-color:#222;
}
.container{
max-width:1000px;
display:flex;
flex-flow: row wrap;
align-items:center;
justify-content:center;
}
.card{
min-height:200px;
width:260px;
margin:40px 10px;
padding:1rem;
cursor:pointer;
background-color:#fff;
display: flex;
flex-flow: row wrap;
}
.card img{
width:100%;
height:160px;
border-radius:10px;
position:relative;
z-index:1000;
transition:all .5s ease-in-out;
}
.card__content{
margin:1rem 0;
color:#222;
overflow:hidden;
margin-top:-200px;
opacity:0;
visibility:hidden;
transition:all .5s ease-in-out;
}
.card__content h2{
margin:.6rem auto;
text-align:center;
}
.card__content p{
font-size:1.1rem;
line-height:1.8rem;
text-align:center;
}
.card__content a{
width:200px;
padding:10px 15px;
display:block;
text-align:center;
margin:.6rem auto;
font-size:1.1rem;
color:#444;
text-decoration:none;
background-color:#222;
border-radius:10px;
transition:.3s;
}
.card__content a:hover{
color:#fff;
background-color:#000;
box-shadow:0 0 2px 2px rgba(0,0,0,0.4);
}
.card:hover img{
margin-top:-60px;
box-shadow:0 0 4px 6px rgba(0,0,0,0.3);
}
.card:hover>.card__content{
margin-top:0;
opacity:1;
visibility:visible;
}
@media screen and (max-width:800px){
.container{
flex-wrap:wrap;
}
}