-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcontextmenu.css
105 lines (89 loc) · 1.62 KB
/
contextmenu.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
97
98
99
100
101
102
103
104
105
.cm_container{
position: fixed;
opacity: 0;
transform: scale(0);
transition: transform 0.1s;
transform-origin: top left;
padding: 0;
}
.cm_container.display{
opacity: 1;
transform: scale(1);
}
.cm_container, .cm_container *{
box-sizing: border-box;
}
.cm_container *{
position: relative;
}
.cm_container ul{
list-style-type: none;
padding: 0;
margin: 0;
background-color: #ccc;
box-shadow: 0 0 5px #333;
}
.cm_container li{
padding: 5px 10px;
padding-right: 1.7em;
cursor: pointer;
white-space: nowrap;
}
.cm_container li:hover{
background-color: #bbb;
}
.cm_container li .cm_icon_span{
width: 1.5em;
height: 1.2em;
vertical-align: bottom;
display: inline-block;
border-right: 1px solid #aaa;
margin-right: 5px;
padding-right: 5px;
text-align: center;
}
.cm_container li .cm_sub_span{
width: 1em;
display: inline-block;
text-align: center;
position: absolute;
top: 50%;
right: 0.5em;
transform: translateY(-50%);
}
.cm_container li > ul{
position: absolute;
top: 0;
left: 100%;
opacity: 0;
transition: opacity 0.2s;
visibility: hidden;
}
.cm_container li:hover > ul{
opacity: 1;
visibility: visible;
}
.cm_container li.cm_divider{
border-bottom: 1px solid #aaa;
margin: 5px;
padding: 0;
cursor: default;
}
.cm_container li.cm_divider:hover{
background-color: inherit;
}
.cm_container.cm_border_right > ul ul{
left: unset;
right: 100%;
}
.cm_container.cm_border_bottom > ul ul{
top: unset;
bottom: 0;
}
.cm_container li[disabled=""]{
color: #777;
cursor: default;
}
.cm_container li[disabled=""]:hover{
background-color: inherit;
}