Spaces:
Running
Running
File size: 1,066 Bytes
6bcb42f |
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 |
@import "../../css/colors.css";
@import "../../css/units.css";
@import "../../css/z-index.css";
.context-menu {
min-width: 130px;
padding: 5px 0; /* The white strip at the top and bottom of the menu */
margin: 2px 0 0; /* To keep the menu below the cursor comfortably */
font-size: 0.85rem;
text-align: left;
background-color: $ui-white;
border: 1px solid $ui-black-transparent;
border-radius: calc($space / 2);
box-shadow: 0px 0px 5px 1px $ui-black-transparent-default;
pointer-events: none;
transition: opacity 0.2s ease;
z-index: $z-index-context-menu;
}
[theme="dark"] .context-menu {
background-color: $ui-primary;
}
.menu-item {
padding: 8px 12px;
white-space: nowrap;
cursor: pointer;
transition: 0.1s ease;
}
.menu-item:hover {
background: $motion-primary;
color: white;
}
.menu-item-bordered {
border-top: 1px solid $ui-black-transparent;
}
[theme="dark"] .menu-item-bordered {
border-color: $ui-tertiary;
}
.menu-item-danger:hover {
background: $error-primary;
}
|