UNPKG

ze-react-component-library

Version:
65 lines (63 loc) 1.59 kB
@import '~antd/es/style/themes/default.less'; .tree-filter { .tree-filter-items { flex-grow: 1; flex-shrink: 0; .tree-filter-item { padding: @padding-xs; &:hover { &.hover-action { background: @item-hover-bg; } } .tree-filter-item-content { flex-grow: 1; max-width: 100%; display: flex; align-items: center; flex-wrap: wrap; } } .tree-filter-item-with-condition { display: flex; width: 100%; .tree-filter-items { width: calc(100% - 36px); } .tree-filter-condition { margin: @padding-xs 0; border-left: 1px solid var(--ant-primary-color); width: 24px; position: relative; margin-left: @padding-xs; flex-shrink: 0; .tree-filter-condition-switcher { background: white; position: absolute; top: 50%; left: 0; transform: translateX(-50%) translateY(-50%); .ant-select { &.ant-select-open { .ant-select-selector { .ant-select-selection-item { color: white; } } } .ant-select-selector { background-color: var(--ant-primary-color); color: white; border: none; padding: 0; font-size: 0.9em; width: 24px; border-radius: 12px; text-align: center; } } } } } } }