UNPKG

linkmore-design

Version:

🌈 🚀lm组件库。🚀

368 lines (307 loc) 6.49 kB
@import '../../style/themes/index.less'; .lm_filter_delete { display: flex; align-items: center; padding-bottom: calc(8 * 2); .ant-space-item, .ant-space-item>*, .ant-btn, .ant-input { font-size: 12px; } .anticon+span, span+.anticon { margin-left: calc(8 / 2); } .ant-input-affix-wrapper { height: 24px; } .line { display: block; height: @height-sm; border-right: 1px solid #eee; } .item_icon { display: none; } .btn_active { // 选中的筛选项高亮 background-color: @primary-color; } } .ant-popover { &.list-popover { min-width: 130px; .ant-popover-inner-content { overflow-y: auto; max-height: 260px; padding: 0; } .list-popover-header { font-size: 12px; height: 40px; border-bottom: 1px solid #eee; padding: 0 15px; .ant-radio-button-wrapper { font-size: 12px; } } .item_other { position: relative; right: -8px; display: inline-flex; align-items: center; color: #666; .item_icon { font-size: 14px; text-align: center; padding: 0 2px; transition: .3s; &:hover { color: @primary-color; } } .item_top { opacity: 0; } } .ant-list { .ant-list-items { .ant-list-item { position: relative; display: flex; height: 32px; align-items: center; font-size: 12px; border: none; color: #333; padding: 0 15px; transition: .3s; cursor: pointer; &.active { background-color: @text-color-bg; } &:hover { background-color: @text-color-bg; .item_top { opacity: 1; } } // 无数据项 // &:last-child { // &::before { // content: ''; // position: absolute; // top: 0; // left: 0; // right: 0; // height: 1px; // width: 100%; // background-color: var(--border-color); // } // } } } .ant-list-item-meta-content { width: auto; } } .filte_warp { padding: 8px 15px; &>div { width: 100%; } .ant-picker-input>input { font-size: 12px; height: 22px; } .ant-input { font-size: 12px; height: 24px; } } .ant-checkbox-group { width: 100%; .ant-checkbox-wrapper { display: flex; flex: 1; align-items: center; font-size: inherit; height: 32px; .ant-checkbox { top: 0; } } } .ant-tree { font-size: 12px; padding-right: 8px; .ant-tree-treenode { height: 32px; align-items: center; padding: 0; .ant-tree-switcher { display: inline-flex; align-items: center; justify-content: center; &:empty { width: 12px; } } } } } } .ant-drawer { .ant-drawer-header { height: 48px; padding: 0 16px; } &.complex_filter { .ant-drawer-body { display: flex; flex-flow: column; padding: 16px 16px 0; .ant-list { flex: 1; overflow-y: auto; margin-top: @gap-base; } } .ant-drawer-footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; height: 48px; .ant-btn { font-size: 12px; min-width: 56px; } } .ant-list-item { height: 40px; padding: 0; &:hover { color: @primary-color; } } .item_other { display: flex; align-items: center; .itme_icon { font-size: 10px; cursor: pointer; } } } &.edit_filter { .ant-drawer-body { display: flex; flex-flow: column; flex: 1; padding: 16px 16px 0; } .edit_filter_title { .ant-space-vertical { width: 100%; } .title_lable { font-size: 12px; padding-bottom: 8px; span.required { color: #fd4d4e; } } } .edit_filter_body { flex: 1; overflow-y: auto; margin-top: 16px; .ant-list-item { border: none; padding: 4px 0; &:first-of-type { padding-top: 0; } .item_box { background: @text-color-bg; padding: 12px; .item_label { display: flex; align-items: center; justify-content: space-between; } .item_tags { padding-top: 16px; .ant-tag { color: @text-color; background-color: @text-color-bg; &.site-tag-plus { background: transparent; border-style: dashed; cursor: pointer; } } .tag-input { width: 78px; margin-right: 8px; vertical-align: top; } } } } } .edit_filter_footer { position: sticky; bottom: 0; background-color: #fff; padding-top: 4px; } } } .ant-select-dropdown { // 筛选区查询下拉框 &.first_select { .rc-virtual-list { .ant-select-item { padding: 0 12px; .ant-input { font-size: 12px; height: 24px; } .item_nowarp { flex-wrap: nowrap; } .item_label { flex: 1; overflow: hidden; text-overflow: ellipsis; } .item_icon { opacity: 0; transition: .3s; padding-left: 3px; } &:hover .item_icon { opacity: 1; } } .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { color: @primary-color; } } .add_more { display: flex; flex-wrap: nowrap; align-items: center; font-size: 12px; padding: 4px 12px; cursor: pointer; .ant-input { font-size: 12px; height: 24px; } } } }