-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
123 lines (105 loc) · 2.13 KB
/
index.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
120
121
122
123
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Ubuntu&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 'Poppins', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
background-color: #e91e63;
font-family: 'Poppins', sans-serif;
}
ul {
display: flex;
flex-wrap: wrap;
}
ul li {
list-style: none;
margin: 0 1.4rem;
}
ul li a i {
font-size: 35px;
color: #333;
transition: 0.5s;
padding-right: 1rem;
}
ul li a span {
color: #333;
letter-spacing: 2px;
transition: 0.5s;
}
ul li a {
display: flex;
align-items: center;
text-decoration: none;
width: 13rem;
height: 5rem;
background: #fff;
padding-left: 1.25rem;
position: relative;
transition: 0.5s;
}
ul li a::before {
content: '';
position: absolute;
top: 10px;
left: -20px;
height: 100%;
width: 1.25rem;
background: #cecece;
transition: 0.5s;
transform: skewY(-45deg);
}
ul li a::after {
content: '';
position: absolute;
bottom: -20px;
left: -10px;
height: 1.25rem;
width: 100%;
background: #cecece;
transition: 0.5s;
transform: skewX(-45deg);
}
ul li:hover i {
color: #fff;
}
ul li:hover span {
color: #fff;
}
ul li:hover a {
background: #dd4b39;
transform: translate(15px, -15px);
box-shadow: -50px 50px 50px rgba(0, 0, 0, 0.5);
}
ul li:hover a::before {
background: #b33a2b;
}
ul li:hover a::after {
background: #b33a2b;
}
.like:hover a,
.like:hover a::after,
.like:hover a::before {
background: #598af2;
}
.subscribe:hover a,
.subscribe:hover a::after,
.subscribe:hover a::before {
background: #f20000;
}
.share:hover a,
.share:hover a::after,
.share:hover a::before {
background: #7809f7;
}
@media screen and (max-width: 1040px) {
ul {
flex-direction: column;
}
}