vue-simple-context-menu
Version:
Simple context-menu component built for Vue. Works well with both left and right clicks. Nothing too fancy, just works and is simple to use.
43 lines • 1.03 kB
CSS
.vue-simple-context-menu {
background-color: #ecf0f1;
border-bottom-width: 0px;
border-radius: 4px;
box-shadow: 0 3px 6px 0 rgba(51, 51, 51, 0.2);
display: none;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
left: 0;
list-style: none;
margin: 0;
padding: 0;
position: absolute;
top: 0;
z-index: 1000000;
}
.vue-simple-context-menu--active {
display: block;
}
.vue-simple-context-menu__item {
align-items: center;
color: #333;
cursor: pointer;
display: flex;
padding: 5px 15px;
}
.vue-simple-context-menu__item:hover {
background-color: #007aff;
color: #fff;
}
.vue-simple-context-menu__divider {
background-clip: content-box;
background-color: #c0cdd1;
box-sizing: content-box;
height: 2px;
padding: 4px 0;
pointer-events: none;
}
.vue-simple-context-menu li:first-of-type {
margin-top: 4px;
}
.vue-simple-context-menu li:last-of-type {
margin-bottom: 4px;
}