-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtouchTips.css
51 lines (50 loc) · 1.06 KB
/
touchTips.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
/*
------------------------ =cornerstoneUX touchTips ------------------------ */
*[data-touchTips]:not(img):not(figure) {
border-bottom: 1px dotted #999;
cursor: help;
}
.touchTips {
background: #111;
box-shadow: 0 0.50rem 0.50rem -0.25rem rgba(0,0,0,.3);
color: #fff;
opacity: 0;
padding: 1rem;
position: absolute;
text-align: center;
-webkit-transition: 0.3s ease-in-out all;
transition: 0.3s ease-in-out all;
z-index: 100;
}
.touchTips--show {
opacity: 1;
}
/* ------------------------ directional arrow ------------------------ */
.touchTips:after {
border-style: solid;
border-color: transparent;
border-top-color: #111;
border-width: 0.50rem 0.50rem 0;
content: '';
margin-left: -0.50rem;
position: absolute;
left: 50%;
bottom: -0.50rem;
width: 0;
height: 0;
}
.touchTips.top:after {
border-top-color: transparent;
border-bottom: 0.50rem solid #111;
top: -1rem;
bottom: auto;
}
.touchTips.left:after {
left: 0.50rem;
margin: 0;
}
.touchTips.right:after {
margin: 0;
right: 0.50rem;
left: auto;
}