-
Notifications
You must be signed in to change notification settings - Fork 467
Expand file tree
/
Copy pathMarkerContextMenu.css
More file actions
72 lines (59 loc) · 2.88 KB
/
MarkerContextMenu.css
File metadata and controls
72 lines (59 loc) · 2.88 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
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Most of the CSS logic to be able to add icons is part of the more generic
* file ContextMenu.css that is applied for all context menus. Especially the
* CSS class `react-contextmenu-icon` is used in addition to these more specific
* classes, and that's where other properties for backgrounds are specified.
*/
/* Here are all icons for the marker context menu. */
.markerContextMenuIconSetSelectionFromMarker {
background-image: url(../../../res/img/svg/set-selection-from-marker.svg);
}
.markerContextMenuIconStartSelectionHere, /* <- for dot markers */
.markerContextMenuIconStartSelectionAtMarkerStart /* <- for interval markers */ {
background-image: url(../../../res/img/svg/start-selection-at-marker-start.svg);
}
.markerContextMenuIconStartSelectionAtMarkerEnd {
background-image: url(../../../res/img/svg/start-selection-at-marker-end.svg);
}
.markerContextMenuIconEndSelectionAtMarkerStart {
background-image: url(../../../res/img/svg/end-selection-at-marker-start.svg);
}
.markerContextMenuIconEndSelectionHere, /* <- for dot markers */
.markerContextMenuIconEndSelectionAtMarkerEnd /* <- for interval markers */ {
background-image: url(../../../res/img/svg/end-selection-at-marker-end.svg);
}
.markerContextMenuIconOverrideZeroAtMarkerStart {
background-image: url(../../../res/img/svg/override-zero-at-marker-start.svg);
}
.markerContextMenuIconCopyDescription {
background-image: url(../../../res/img/svg/copy-dark.svg);
}
.markerContextMenuIconCopyStack {
background-image: url(../../../res/img/svg/copy-marker-stack.svg);
}
.markerContextMenuIconCopyUrl {
background-image: url(../../../res/img/svg/globe-dark.svg);
}
.markerContextMenuIconCopyPayload {
background-image: url(../../../res/img/svg/copy-marker-payload.svg);
}
.markerContextMenuSelectThread {
background-image: url(../../../res/img/svg/select-thread.svg);
}
/* These icons don't look nice when selected, unless if we invert them. However
* the other icons look better without the filter, so we don't change them in
* this state. */
.react-contextmenu-item--selected .markerContextMenuIconCopyDescription,
.react-contextmenu-item:hover .markerContextMenuIconCopyDescription,
.react-contextmenu-item--selected .markerContextMenuIconCopyUrl,
.react-contextmenu-item:hover .markerContextMenuIconCopyUrl,
.react-contextmenu-item--selected .markerContextMenuIconCopyStack,
.react-contextmenu-item:hover .markerContextMenuIconCopyStack,
.react-contextmenu-item--selected .markerContextMenuIconCopyPayload,
.react-contextmenu-item:hover .markerContextMenuIconCopyPayload,
.react-contextmenu-item--selected .markerContextMenuSelectThread,
.react-contextmenu-item:hover .markerContextMenuSelectThread {
filter: invert(1);
}