-
Notifications
You must be signed in to change notification settings - Fork 0
/
social.css
102 lines (84 loc) · 1.88 KB
/
social.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
.social-text {
margin-bottom: 2em;
}
.social {
display: flex;
flex-direction: column;
align-items: center;
}
.social a {
font-size: 4.5em;
padding: 3rem;
}
.social ul li {
list-style: none;
transform: rotate(0deg) skew(0deg);
background: transparent;
width: 45px;
height: 45px;
margin: 20px 30px;
}
.social ul li span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
transition: 0.5s;
display: flex !important;
align-items: center;
justify-content: center;
color: #fff;
font-size: 30px !important;
}
.social ul li:nth-child(1) span {
background: #3b5998;
}
.social ul li:nth-child(2) span {
background: #00aced;
}
.social ul li:nth-child(3) span {
background: #dd4b39;
}
.social ul li:nth-child(4) span {
background: #517fa8;
}
.social ul li:nth-child(5) span {
background: #bb0000;
}
.social ul {
display: flex;
flex-direction: column;
}
.social ul li {
transform: rotate(-30deg) skew(25deg);
}
@media (min-width: 992px) {
.social ul {
flex-direction: row;
}
.social ul li:hover span {
box-shadow: -1px 1px 1px rgba(0, 0, 0, .1);
}
.social ul li:hover span:nth-child(5) {
transform: translate(40px, -40px);
opacity: 1;
}
.social ul li:hover span:nth-child(4) {
transform: translate(30px, -30px);
opacity: .8;
}
.social ul li:hover span:nth-child(3) {
transform: translate(20px, -20px);
opacity: .6;
}
.social ul li:hover span:nth-child(2) {
transform: translate(10px, -10px);
opacity: .4;
}
.social ul li:hover span:nth-child(1) {
transform: translate(0, 0);
opacity: 0.2;
}
}