-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhelpbutton.css
75 lines (68 loc) · 2.02 KB
/
helpbutton.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
.reveal .controls.helpbutton{
/* don't use reveals controls=false mechanism
to hide our button, but control it by our own
configuration */
display: block;
left: 12px;
right: auto;
}
.reveal .controls.helpbutton button{
bottom: 3.2em;
}
.reveal .controls.helpbutton .controls-help{
border: .5em solid;
border-radius: 1.8em;
box-sizing: border-box;
height: 3.6em;
position: relative;
width: 3.6em;
-webkit-animation: helpbutton-fadein 0.5s linear forwards;
animation: helpbutton-fadein 0.5s linear forwards;
}
@-webkit-keyframes helpbutton-fadein {
from { opacity: 0; }
to { opacity: 1; }
}
@-webkit-keyframes helpbutton-fadein {
from { opacity: 0; }
to { opacity: 1; }
}
.reveal .controls.helpbutton .controls-help:before{
content: '?';
font-size: 2em;
font-weight: 900;
left: 50%;
position: absolute;
top: 50%;
-webkit-transform: translate( -50%, -50% );
transform: translate( -50%, -50% );
transition: all 0.15s ease, background-color 0.8s ease;
}
.reveal .controls.helpbutton .controls-help:hover {
-webkit-transform: scale( 1.1, 1.1 );
transform: scale( 1.1, 1.1 );
}
.reveal .controls.helpbutton .controls-help:active {
-webkit-animation: helpbutton-rotate-center 0.5s linear infinite both;
animation: helpbutton-rotate-center 0.5s linear infinite both;
}
@-webkit-keyframes helpbutton-rotate-center {
0% {
-webkit-transform: rotate(0) scale( 1.1, 1.1 );
transform: rotate(0) scale( 1.1, 1.1 );
}
100% {
-webkit-transform: rotate(-360deg) scale( 1.1, 1.1 );
transform: rotate(-360deg) scale( 1.1, 1.1 );
}
}
@keyframes helpbutton-rotate-center {
0% {
-webkit-transform: rotate(0) scale( 1.1, 1.1 );
transform: rotate(0) scale( 1.1, 1.1 );
}
100% {
-webkit-transform: rotate(-360deg) scale( 1.1, 1.1 );
transform: rotate(-360deg) scale( 1.1, 1.1 );
}
}