Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
79 lines (78 loc) · 1.82 KB
/
Copy pathstyle.css
File metadata and controls
79 lines (78 loc) · 1.82 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
font-family: Arial, Helvetica, sans-serif;
align-items: center;
min-height: 100vh;
background: linear-gradient(45deg, #24006b, #f42f8c);
}
.container {
width: 1200px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
grid-gap: 15px;
margin: 0 auto;
}
.container .card {
position: relative;
width: 300px;
height: 400px;
margin: 0 auto;
background: #fff;
box-shadow: 10px 15px 60px rgba(13, 13, 13, 0.9);
}
.container .card .face {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.container .card .face.face1 {
box-sizing: border-box;
padding: 20px;
}
.container .card:nth-child(1) .face.face2 {
background: linear-gradient(45deg, #3503ad, #f7308c);
}
.container .card:nth-child(2) .face.face2 {
background: linear-gradient(45deg, #ccff00, #09afff);
}
.container .card:nth-child(3) .face.face2 {
background: linear-gradient(45deg, #e91e63, #ffeb3b);
}
.container .card .face.face1 h2 {
margin: 0;
padding: 0;
}
.container .card .face.face2 {
background: #111;
transition: 0.5s;
}
.container .card .face.face2:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
}
.container .card:hover .face.face2 {
height: 60px;
}
.container .card .face.face2 h2 {
margin: 0;
padding: 0;
font-size: 10em;
color: #fff;
transition: 0.5s;
}
.container .card:hover .face.face2 h2 {
font-size: 2em;
}