This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
context-menu.css
96 lines (82 loc) · 1.89 KB
/
context-menu.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/**
* @author Chris Board - Boardies IT Solutons
* @description Creates a 3-dot context menu on tables, <p> tags and heading tags (e.g. h1, h2 etc).
* @copyright (c) Boardies IT Solutions - December 2017
*/
.context-menu, td.context-menu, p.context-menu, h1.context-menu, h2.context-menu, h3.context-menu, h4.context-menu, h5.context-menu
{
cursor: pointer;
pointer-events: none;
}
.context-menu:after
{
content: '\2807';
font-size: 20px;
cursor: pointer;
cursor: hand;
pointer-events: all ;
}
td.context-menu:after
{
float: right;
}
p.contextMenu:after > span
{
margin: 0 !important;
padding: 0 !important;
}
h1.context-menu:after,h2.context-menu:after,h3.context-menu:after,h4.context-menu:after,h5.context-menu:after
{
margin-left: 30px;
}
.context-menu-container
{
background-color: white;
z-index: 1000 !important;
border-radius: 5px;
position: absolute;
display: none;
border: solid thin black;
padding: 3px;
-webkit-box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.18);
-moz-box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.18);
box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.18);
min-width: 90px;
}
.context-menu-container > ul
{
margin: 0;
padding: 0;
list-style-type: none;
}
.context-menu-container > ul > li
{
padding: 5px;
cursor: hand;
cursor: pointer;
border-radius: 5px;
}
.context-menu-container > ul > li.disabled
{
color: #b7b7b7;
}
.context-menu-container > ul > li.disabled:hover
{
background-color: white;
}
.context-menu-container > ul > li:hover
{
background-color: #c4c4c4;
}
.context-menu-container > ul > li.danger:hover
{
background-color: #ff6959;
}
.context-menu-container > ul > li.warning:hover
{
background-color: #fff27c;
}
.context-menu-container > ul > li.danger.disabled:hover, .context-menu-container > ul > li.warning.disabled:hover
{
background-color: white;
}