-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcard.css
More file actions
132 lines (114 loc) · 2.4 KB
/
card.css
File metadata and controls
132 lines (114 loc) · 2.4 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
.container {
display: flex;
align-items: center;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-content: space-evenly;
width: min(100% - 30px, 840px);
}
.container .card {
position: relative;
min-width: 230px;
aspect-ratio: 1;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3),
-5px -5px 15px rgba(255, 255, 255, 0.1);
border-radius: 15px;
margin: 5px;
transition: 0.5s;
}
.container .card:nth-child(1) .box .content-card a {
background: #ffbb00;
}
.container .card:nth-child(2) .box .content-card a {
background: #23c186;
}
.container .card:nth-child(3) .box .content-card a {
background: #23c186;
}
.container .card:nth-child(4) .box .content-card a {
background: #23c186;
}
.container .card:nth-child(5) .box .content-card a {
background: #2196f3;
}
.container .card:nth-child(6) .box .content-card a {
background: #ffbb00;
}
.container .card .box {
position: absolute;
top: 10px;
left: 15px;
right: 15px;
bottom: 10px;
background: #2a2b2f;
border-radius: 15px;
display: flex;
justify-content: center;
align-items: left;
overflow: hidden;
transition: 0.5s;
}
.container .card .box:hover {
transform: translateY(-50px);
}
.container .card .box:before {
content: "";
position: absolute;
width: 50%;
height: 100%;
background: rgba(255, 255, 255, 0);
}
.container .card .box .content-card {
padding: 20px;
text-align: center;
}
.container .card .box .content-card h2 {
position: absolute;
top: -10px;
right: 30px;
font-size: 8rem;
color: rgba(255, 255, 255, 0.1);
}
.container .card .box .content-card h3 {
font-size: 1.3rem;
color: #fff;
z-index: 1;
transition: 0.5s;
margin-bottom: 5px;
}
.container .card .box .content-card p {
font-size: 0.8rem;
font-weight: 200;
color: rgba(255, 255, 255, 0.9);
z-index: 1;
transition: 0.5s;
}
.container .card .box .content-card a {
font-size: 0.8rem;
position: relative;
display: inline-block;
padding: 1px 10px;
background: black;
border-radius: 5px;
text-decoration: none;
color: white;
margin-top: 5px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
transition: 0.5s;
}
.container .card .box .content-card a:hover {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
background: #fff;
color: #000;
}
.img-card {
width: 60px;
height: 68px;
margin: 5px;
}
@media screen and (max-width: 600px) {
.container .card{
width: 5%;
}
}