2020-04-10 18:09:29 -04:00
|
|
|
@import "open-color/open-color.scss";
|
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.excalidraw {
|
|
|
|
.context-menu {
|
|
|
|
position: relative;
|
|
|
|
border-radius: 4px;
|
|
|
|
box-shadow: 0px 3px 10px transparentize($oc-black, 0.8);
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
user-select: none;
|
|
|
|
margin: -0.25rem 0 0 0.125rem;
|
|
|
|
padding: 0.25rem 0;
|
|
|
|
background-color: var(--popup-secondary-background-color);
|
|
|
|
border: 1px solid var(--button-gray-3);
|
|
|
|
}
|
2020-08-13 04:35:31 -07:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.context-menu button {
|
|
|
|
color: var(--popup-text-color);
|
|
|
|
}
|
2020-01-07 07:50:59 +05:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.context-menu-option {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
min-width: 9.5rem;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0.25rem 1rem 0.25rem 1.25rem;
|
|
|
|
text-align: start;
|
|
|
|
border-radius: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
white-space: nowrap;
|
2020-12-12 23:03:58 +01:00
|
|
|
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 0.2fr;
|
2020-12-20 21:15:40 +01:00
|
|
|
align-items: center;
|
2020-12-15 04:29:00 +05:30
|
|
|
|
|
|
|
&.dangerous {
|
|
|
|
div:nth-child(1) {
|
|
|
|
color: $oc-red-7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-12 23:03:58 +01:00
|
|
|
div:nth-child(1) {
|
|
|
|
justify-self: start;
|
|
|
|
margin-inline-end: 20px;
|
|
|
|
}
|
|
|
|
div:nth-child(2) {
|
|
|
|
justify-self: end;
|
|
|
|
opacity: 0.6;
|
|
|
|
font-size: 0.7rem;
|
|
|
|
}
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
2020-01-07 07:50:59 +05:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.context-menu-option:hover {
|
|
|
|
color: var(--popup-background-color);
|
|
|
|
background-color: var(--select-highlight-color);
|
2020-12-15 04:29:00 +05:30
|
|
|
|
|
|
|
&.dangerous {
|
|
|
|
div:nth-child(1) {
|
|
|
|
color: var(--popup-background-color);
|
|
|
|
}
|
|
|
|
background-color: $oc-red-6;
|
|
|
|
}
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
2020-01-07 07:50:59 +05:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.context-menu-option:focus {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2020-01-07 07:50:59 +05:00
|
|
|
}
|