@aplus-frontend/ui
Version:
137 lines (135 loc) • 2.85 kB
text/less
@import '../mixins/config.less';
@import '../mixins/mixins.less';
.b(ap-view,{
& > .ant-btn {
padding: 0;
}
& > .ant-dropdown-trigger {
color: var(--ap-text-color-3);
}
&-main-content {
padding: 4px 8px;
display: flex;
align-items: center;
justify-content: center;
&-disabled {
color: var(--ap-text-color-4);
cursor: not-allowed;
}
}
.ant-btn-default:has(&-main-content-disabled) {
border-color: var(--ap-border-color-base) ;
}
&-icon {
width: 100%;
height: 100%;
font-size: 14px;
display: flex;
justify-content: center;
align-items: center;
}
&-main-content-popover {
width: 340px;
&-title-content {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
&-title{
font-size: 14px;
font-weight: 500;
line-height: 22px;
}
.ant-form-item{
margin-bottom: 0;
}
}
&-btn {
margin-bottom: 0;
.ant-form-item-control-input-content {
display: flex;
justify-content: flex-end;
}
}
}
&-menu-list-content {
width: 250px;
display: flex;
padding: 6px 8px;
align-items: center;
height: 32px;
.menu-list-content-name{
overflow: hidden;
display: block;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
margin-right: 8px;
}
.menu-list-content-default{
margin-right: 8px;
flex-shrink: 0;
}
.menu-list-content-action{
cursor: default;
display: none;
flex-shrink: 0;
margin-left: auto;
user-select: none;
&-text {
cursor: pointer;
font-size: 12px;
display: flex;
align-items: center;
color: var(--ap-color-primary);
}
&-delete {
cursor: pointer;
display: flex;
align-items: center;
color: var(--ap-text-color-3);
svg {
outline: none;
box-shadow: none;
}
}
}
.menu-list-content-edit {
display: flex;
align-items: center;
.ant-form-item {
margin-bottom: 0;
}
.ant-space-item:has(.menu-list-content-action-text) {
flex-shrink: 0;
}
}
&:hover{
background: var(--ap-color-bg-1);
.menu-list-content-action {
display: block;
}
}
&-edit {
background: transparent ;
padding: 0 8px;
cursor: default;
}
}
&-menu-list-content-active {
.menu-list-content-name{
color: var(--ap-color-primary);
}
}
&-overlay {
.ant-dropdown-menu{
padding: 8px;
.ant-dropdown-menu-item {
padding: 0;
&:hover {
background: transparent;
}
}
}
}
});