image-map.scss
2.18 KB
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
/**
* Copyright © 2016-2017 The Thingsboard Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.image-map-pin-tooltip {
pointer-events: all;
padding: 5px;
.image-map-pin-tooltip-close-button {
cursor: pointer;
position: absolute;
top: 0;
right: 0;
padding: 6px 6px 0 0;
border: none;
text-align: center;
width: 20px;
height: 16px;
font: 18px/16px Tahoma, Verdana, sans-serif;
color: #b0b0b0;
text-decoration: none;
font-weight: bold;
background: transparent;
&:hover {
color: #919191;
}
}
#tooltip-content {
line-height: normal;
font-size: 13px;
font-weight: 300;
color: #333;
}
}
#image-map-container {
width: 100%;
height: 100%;
#image-map {
color: rgba(0, 0, 0, 0.870588);
position: relative;
margin: auto;
background: transparent no-repeat scroll 0 0;
background-size: 100% 100%;
&.is-pointer {
cursor: pointer !important;
}
.movable {
cursor: move;
}
.image-map-pin {
outline: none;
position: absolute;
background: none;
.image-map-pin-title {
position: relative;
white-space: nowrap;
text-align: center;
line-height: 1.5;
font-size: 12px;
font-weight: 400;
top: -20px;
&:before {
content: "";
margin-left: -100%;
}
&:after {
content: "";
margin-right: -100%;
}
}
.image-map-pin-image {
position: absolute;
pointer-events: none;
top: 0;
bottom: 0;
right: 0;
left: 0;
width: 100%;
height: 100%;
}
}
}
}