excalidraw/src/components/ContextMenu.css
Christopher Chedeau 1bf18fe4ed
Tweak context menu style (#320)
- Move the context menu right next to the mouse so it's not so far away. But 1px out so that nothing is selected until you move your mouse
- Change the colors to be closer to the macos one. Unfortunately, macos has a 0.5px border that I'm not able to reproduce without some annoying hacks, 1px it'll be.
2020-01-11 15:59:42 -08:00

37 lines
613 B
CSS

.context-menu {
position: relative;
border-radius: 4px;
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
padding: 0;
list-style: none;
user-select: none;
margin: -4px 0 0 1px;
padding: 4px 0;
background-color: #f2f2f2;
border: 1px solid #bcbcbc;
}
.context-menu__option {
width: 150px;
}
.context-menu-option {
position: relative;
width: 100%;
margin: 0;
text-align: left;
border-radius: 0;
padding-left: 20px;
background-color: #f2f2f2;
border: none;
}
.context-menu-option:hover {
color: white;
background-color: #4e95f5;
}
.context-menu-option:focus {
z-index: 1;
}