-
Notifications
You must be signed in to change notification settings - Fork 0
/
share.css
106 lines (94 loc) · 2.24 KB
/
share.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
#shareButton {
position: fixed;
right: 40px;
bottom: 40px;
width: 2.5em;
height: 2.5em;
font-size: 24px;
border-radius: 50%;
border: 0;
outline: 0;
background: linear-gradient(135deg, hsl(0, 100%, 30%), hsl(330, 100%, 40%));
color: #fff;
box-shadow: 2px 3px 8px 2px hsla(330, 100%, 40%, 0.4);
cursor: pointer;
transition: 0.3s;
-webkit-tap-highlight-color: transparent;
}
#shareButton:hover {
box-shadow: 4px 6px 16px 4px hsla(330, 100%, 40%, 0.4);
}
#shareButton i {
position: absolute;
transform: translate(-50%, -50%);
left: 1.2em;
top: 1.3em;
transition: 0.6s;
}
#shareButton > .container {
position: absolute;
width: 200px;
background: hsl(0, 40%, 95%);
bottom: 100%;
right: 0;
padding: 8px;
box-shadow: 0 0 1px 0 hsla(330, 100%, 40%, 0.4),
2px 3px 8px 2px hsla(330, 100%, 40%, 0.4);
margin-bottom: 16px;
border-radius: 4px;
opacity: 0;
visibility: hidden;
transition: 0.3s;
transform: translateY(10%);
}
#shareButton > .container:hover {
box-shadow: 0 0 1px 0 hsla(330, 100%, 40%, 0.4),
4px 6px 16px 4px hsla(330, 100%, 40%, 0.4);
}
#shareButton.showAddThisButtons > .container {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.addthis_inline_share_toolbox,
.addthis_sharing_toolbox {
text-align: right;
}
#shareButton:after {
content: "";
position: absolute;
top: 2px;
bottom: 2px;
left: 2px;
right: 2px;
border: 0 solid #fff;
border-radius: 50%;
border-width: 2px 0 0 2px;
border-left-color: transparent;
animation: loading-share-buttons 1s cubic-bezier(0.4, 0.6, 0.4, 0.6) infinite;
animation-play-state: paused;
opacity: 0;
transition: 0.3s;
}
#shareButton.loading:after {
animation-play-state: running;
opacity: 1;
}
#shareButton i.fa-times {
opacity: 0;
left: 1.22em;
transform: translate(-50%, -50%) rotate(180deg);
}
#shareButton.showAddThisButtons i.fa-share-alt {
opacity: 0;
transform: translate(-50%, -50%) rotate(180deg);
}
#shareButton.showAddThisButtons i.fa-times {
opacity: 1;
transform: translate(-50%, -50%) rotate(360deg);
}
@keyframes loading-share-buttons {
to {
transform: rotate(-360deg);
}
}