-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcontextMenu.css
More file actions
136 lines (133 loc) · 3.39 KB
/
Copy pathcontextMenu.css
File metadata and controls
136 lines (133 loc) · 3.39 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/* Sourced @ https://www.cssscript.com/cool-custom-context-menu/ */
.contextMenu {
--menu-border: rgba(255, 255, 255, 0.08);
--menu-bg: linear-gradient(
45deg,
rgba(10, 20, 28, 0.2) 0%,
rgba(10, 20, 28, 0.7) 100%
);
--item-border: rgba(255, 255, 255, 0.1);
--item-color: #fff;
--item-bg-hover: rgba(255, 255, 255, 0.1);
height: 0;
overflow: hidden;
background: var(--menu-bg) !important;
-webkit-backdrop-filter: blur(5px);
backdrop-filter: blur(5px);
position: fixed;
top: var(--top);
left: var(--left);
-webkit-animation: menuAnimation 0.2s 0s both;
animation: menuAnimation 0.2s 0s both;
transform-origin: left;
list-style: none;
margin: 4px !important;
padding: 0 !important;
display: flex;
flex-direction: column;
z-index: 999999999;
box-shadow: 0 0 0 1px var(--menu-border), 0 2px 2px rgba(0, 0, 0, 0.03), 0 4px 4px rgba(0, 0, 0, 0.04), 0 10px 8px rgba(0, 0, 0, 0.05), 0 15px 15px rgba(0, 0, 0, 0.06), 0 30px 30px rgba(0, 0, 0, 0.07), 0 70px 65px rgba(0, 0, 0, 0.09);
}
.contextMenu-item {
background-color: none !important;
padding: 4px !important;
margin: 2px !important;
}
.contextMenu-item[data-divider=top] {
border-top: 1px solid;
}
.contextMenu-item[data-divider=bottom] {
border-bottom: 1px solid;
}
.contextMenu-item[data-divider=top-bottom] {
border-top: 1px solid;
border-bottom: 1px solid;
}
.contextMenu-item[data-divider] {
border-color: var(--item-border);
padding: 1px !important;
}
.contextMenu-button[data-divider] {
border-color: var(--item-border);
color: rgba(255, 255, 255, 0.40) !important;
cursor: default !important;
padding: 1px !important;
}
.contextMenu-button {
color: var(--item-color) !important;
background: 0 !important;
background-color: none !important;
box-shadow: none !important;
border: 0 !important;
white-space: nowrap;
width: 100%;
border-radius: 4px;
padding: 6px 24px 6px 7px !important;
text-align: left;
display: flex;
align-items: center;
font-size: 14px;
width: 100%;
-webkit-animation: menuItemAnimation 0.2s 0s both;
animation: menuItemAnimation 0.2s 0s both;
font-family: "Roboto Condensed", "Inter", sans-serif;
cursor: pointer;
}
.contextMenu-button:not([data-divider]):hover {
background-color: var(--item-bg-hover) !important;
}
.contextMenu[data-theme=light] {
--menu-bg: linear-gradient(
45deg,
rgba(255, 255, 255, 0.45) 0%,
rgba(255, 255, 255, 0.85) 100%
);
--menu-border: rgba(0, 0, 0, 0.08);
--item-border: rgba(0, 0, 0, 0.1);
--item-color: rgb(10, 20, 28);
--item-bg-hover: rgba(10, 20, 28, 0.09);
}
@-webkit-keyframes menuAnimation {
0% {
opacity: 0;
transform: scale(0.5);
}
100% {
height: var(--height);
opacity: 1;
border-radius: 8px;
transform: scale(1);
}
}
@keyframes menuAnimation {
0% {
opacity: 0;
transform: scale(0.5);
}
100% {
height: var(--height);
opacity: 1;
border-radius: 8px;
transform: scale(1);
}
}
@-webkit-keyframes menuItemAnimation {
0% {
opacity: 0;
transform: translateX(-10px);
}
100% {
opacity: 1;
transform: translateX(0);
}
}
@keyframes menuItemAnimation {
0% {
opacity: 0;
transform: translateX(-10px);
}
100% {
opacity: 1;
transform: translateX(0);
}
}