-
Notifications
You must be signed in to change notification settings - Fork 45
/
vega-tooltip.scss
61 lines (54 loc) · 1.09 KB
/
vega-tooltip.scss
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
#vg-tooltip-element {
visibility: hidden;
padding: 8px;
position: fixed;
z-index: 1000;
font-family: sans-serif;
font-size: 11px;
border-radius: 3px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
&.visible {
visibility: visible;
}
h2 {
margin-top: 0;
margin-bottom: 10px;
font-size: 13px;
}
table {
border-spacing: 0;
tr {
border: none;
td {
overflow: hidden;
text-overflow: ellipsis;
padding-top: 2px;
padding-bottom: 2px;
&.key {
color: #808080;
max-width: 150px;
text-align: right;
padding-right: 4px;
}
&.value {
display: block;
max-width: 300px;
max-height: 7em;
text-align: left;
}
}
}
}
/* The default theme is the light theme. */
background-color: rgba(255, 255, 255, 0.95);
border: 1px solid #d9d9d9;
color: black;
&.dark-theme {
background-color: rgba(32, 32, 32, 0.9);
border: 1px solid #f5f5f5;
color: white;
td.key {
color: #bfbfbf;
}
}
}