tav-ui
Version:
63 lines (54 loc) • 1.15 kB
text/less
@import "../var/index.less";
@default-height: 42px ;
@small-height: 36px ;
@large-height: 36px ;
.item-style() {
li {
display: inline-block;
width: 100%;
height: @default-height;
margin: 0 ;
line-height: @default-height;
span {
line-height: @default-height;
}
> div {
margin: 0 ;
}
&:not(.ant-menu-item-disabled):hover {
color: @text-color-base;
background-color: @item-hover-bg;
}
}
}
.context-menu {
position: fixed;
top: 0;
left: 0;
z-index: 200;
display: block;
width: 156px;
margin: 0;
list-style: none;
background-color: @component-background;
border: 1px solid rgb(0 0 0 / 8%);
border-radius: @primary-border-radius;
box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 10%),
0 1px 5px 0 rgb(0 0 0 / 6%);
background-clip: padding-box;
user-select: none;
.item-style();
.ant-divider {
margin: 0;
}
&__popup {
.ant-divider {
margin: 0;
}
.item-style();
}
.ant-menu-submenu-title,
.ant-menu-item {
padding: 0 ;
}
}