-
Notifications
You must be signed in to change notification settings - Fork 30
/
cards.css
119 lines (101 loc) · 2.36 KB
/
cards.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
.card-container {
background-color: #d3d3d3;
padding: 3rem;
}
.card-container h1 {
font-weight: bold;
}
.card-container .container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.card-container .container {
display: flex;
justify-content: center;
align-items: center;
margin: 3rem;
}
.card-container .container .card {
position: relative;
width: 350px;
height: 400px;
background: #fff;
margin: 20px;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
transition: 0.5s;
}
.card-container .container .card:hover {
transform: scale(1.08);
}
.card-container .container .card .circle {
position: absolute;
width: 100%;
height: 100%;
background: #000;
clip-path: circle(180px at center 0);
text-align: center;
}
.card-container .container .card .circle h3 {
color: #fff;
text-align: center;
font-size: 1.2em;
padding: 60px 0;
}
.card-container .container .card .content {
position: absolute;
width: 100%;
bottom: 10px;
padding-bottom: 20px;
text-align: center;
font-size: 18px;
font-weight: 600;
}
.card-container .container .card .content .features {
color: #666;
margin: 8px;
}
.card-container .container .card .content a {
position: relative;
display: inline-block;
padding: 10px 20px;
background: #000;
color: #fff;
border-radius: 40px;
text-decoration: none;
margin-top: 20px;
}
.card-container .container .card:nth-child(1) .circle,
.card-container .container .card:nth-child(1) .content a {
background: #ffaf00;
}
.card-container .container .card:nth-child(2) .circle,
.card-container .container .card:nth-child(2) .content a {
background: #da2268;
}
@media screen and (min-width: 350px) and (max-width: 700px) {
.card-container {
padding: 3rem 0;
}
.card-container .container {
margin: 1rem;
justify-content: space-evenly;
}
.card-container .container .card{
width: 70%;
height: 300px;
/* height: 70%; */
margin: 1rem 0;
}
.card-container .container .card .circle{
clip-path: circle(140px at center 0);
}
.card-container .container .card .content .features{
margin: 0px;
font-size: 15px;
}
}