-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.css
72 lines (71 loc) · 1.11 KB
/
card.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
.cards{
font-size:15px;
margin: 5% 2% ;
background: black;
color:white;
width: 320px;
height: 440px;
border-radius:2em;
display: flex;
flex-direction: column;
text-align: center;
opacity: 0.9;
box-shadow:3px 3px 10px black;
}
.cards:hover {
opacity: 1.0;
transform: scale(1.1);
transition: 0.6s;
}
.cards .img{
margin-top:5%;
width:100%;
height:45%;
}
.cards img{
height: 100%;
width: 90%;
border-radius: 2em;
}
.cards .description{
padding: 2px;
height: 55%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.cards .description h1{
height: 30%;
width: 98%;
}
.cards .description p{
padding: 10px;
height: 30%;
}
.cards .description .btn{
height: 12%;
width:35%;
display: flex;
justify-content: center;
background:#4070F4;
border: 2px solid lightgrey;
color: white;
font-size:18px;
padding: 6px;
font-style: bold;
border-radius:6px;
text-decoration: none;
}
.cards .description .btn:hover{
background: #265DF2;
cursor: pointer;
}
@media (max-width:325px){
.cards .description p{
font-size: 12px;
}
.cards .description .btn{
font-size: 14px;
}
}