-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4.css
More file actions
106 lines (86 loc) · 1.59 KB
/
Copy path4.css
File metadata and controls
106 lines (86 loc) · 1.59 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
/* General styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
html,
body {
height: 100%;
}
body {
font-family: 'Poppins', sans-serif;
font-size: 1.6rem;
color: #fff;
background-color: #111111;
display: grid;
place-items: center;
}
a {
text-decoration: none;
color: inherit;
}
/* General styles end*/
.container {
max-width: 110rem;
padding: 1.5rem;
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
grid-gap: 1.5rem;
}
.card {
background: #262525;
color: #fff;
padding: 1.5rem;
overflow: hidden;
border-radius: 0.8rem;
}
.card-title-large {
font-family: fantasy, sans-serif;
font-size: 10rem;
letter-spacing: 0.5rem;
color: #1d1d1d;
user-select: none;
transform: translateX(7rem);
transition: transform 2.5s;
}
.card-title-small {
margin-bottom: 1rem;
}
.card-description {
font-size: 1.4rem;
line-height: 1.5;
}
.card-cta {
display: inline-block;
width: 3.5rem;
height: 3.5rem;
border-radius: 50%;
display: grid;
place-items: center;
margin-left: auto;
}
.card:hover .card-cta {
background-color: #262525;
}
.card:hover .card-title-large {
transform: translateX(-115%);
color: #fff;
}
.card.twitter:hover {
background-color: #1da1f2;
}
.card.instagram:hover {
background: radial-gradient( at 20% 128%, #feda78 20%, #e23467 60%, #ac2bb3 90%);
}
.card.facebook:hover {
background-color: #4267b2;
}
.card.youtube:hover {
background-color: #ff074f;
}