cryptpad/customize.dist/src/less2/include/contextmenu.less
2021-10-11 16:55:56 +02:00

77 lines
2.3 KiB
Plaintext

@import (reference) "./colortheme-all.less";
.contextmenu_main() {
--LessLoader_require: LessLoader_currentFile();
};
& {
.cp-contextmenu {
display: none;
position: absolute !important;
z-index: 50000;
& > ul {
border: 1px solid @cp_context-border;
background-color: @cp_context-bg;
border-radius: 0px;
.dropdown-divider {
border-top: 1px solid @cp_context-border;
}
}
li {
padding: 0;
font-size: @colortheme_app-font-size;
&.dropdown-submenu {
position: relative;
&> a {
cursor: default;
// reset bootstrap active style
&:active {
background: inherit;
color: inherit;
}
}
.dropdown-toggle {
transform: rotate(270deg);
margin-left: 1rem;
float: right;
}
.dropdown-menu {
top: -0.7rem;
left: 100%;
background-color: @cp_context-bg;
border-radius: 0px;
border: 1px solid @cp_context-border;
}
}
a {
cursor: pointer;
color: @cp_context-fg;
padding-left: 10px;
&:hover {
background-color: @cp_context-bg-hover;
color: @cp_context-fg;
}
&:active {
background-color: @cp_context-bg-active;
color: @cp_context-fg;
}
.fa, .cptools {
margin-right: 10px;
color: @cp_context-icon;
width: 16px;
}
// XXX PREMIUM
&.cp-app-disabled {
cursor: not-allowed !important;
opacity: 0.5;
}
}
}
.cp-app-drive-context-noAction {
font-style: italic;
color: @cp_context-disabled;
cursor: default;
display: none;
}
}
}