UNPKG

linkmore-design

Version:

🌈 πŸš€lmη»„δ»ΆεΊ“γ€‚πŸš€

223 lines (210 loc) β€’ 4.37 kB
@import '../../style/themes/index.less'; .lm_grid_tree { position: relative; font-size: 12px; height: calc(100% - 40px); width: 168px; border: 1px solid @line-color; transition: all 0.3s; .grid_tree_title { display: flex; align-items: center; justify-content: space-between; font-weight: 500; height: 40px; background-color: @white; transition: 0.3s; overflow: hidden; .grid_tree_title_left { white-space: nowrap; padding: 0 6px 0 8px; > button { display: flex; justify-content: flex-end; } } .grid_tree_title_right { button { width: 24px; height: 24px; margin-right: 8px; padding: 0; cursor: pointer; :hover { color: @primary-color; } } &.ant-popover-open { button { color: @primary-color; } } } } .ant-tree { font-size: 12px; white-space: nowrap; padding: 0px; transition: 0.3s; .ant-tree-list-holder-inner > :first-child { .ant-tree-switcher:empty { transition: none; width: 6px; } } .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; } } } } .toggle_btn { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); right: 0; display: flex; font-size: 8px; width: 12px; height: 48px; align-items: center; justify-content: center; border-radius: 0; color: @text-color-secondary; background-color: @line-color; transition: 0s; border-top-left-radius: 100px; border-bottom-left-radius: 100px; cursor: pointer; &:hover { color: #fff; background-color: @primary-color; } } &.grid_toggle { width: 0; border-width: 0; margin-left: -8px; .grid_tree_title { opacity: 0; } .ant-tree { opacity: 0; } .toggle_btn { right: -20px; transform: translateY(-50%) rotateY(180deg); z-index: 20; } } &.lm_ghost { .ant-tree-list-holder-inner > :nth-child(n) { .ant-tree-switcher:empty { transition: none; width: 6px; } } .ant-tree-treenode.ant-tree-treenode-switcher-close.ant-tree-treenode-selected { background-color: @primary-color-hover; color: @white; } .ant-tree .ant-tree-treenode { height: 44px; &:hover:not(.ant-tree-treenode-selected) { background: rgba(24, 144, 252, 0.04); } } .ant-tree .ant-tree-node-content-wrapper:hover { background-color: transparent; } .title-box { display: flex; font-size: 12px; line-height: 44px; padding-right: 8px; .title-name { flex: 1; } .icon { line-height: 44px; font-size: 14px; display: none; } } .ant-tree-treenode-selected { .title-box { .icon { display: block; } } } &.grid_toggle { .bottom_node { display: none; } } .bottom_node { padding: 8px; display: block; .ant-btn { width: 100%; max-width: none; height: 32px; } } } } .lm_tree_warp { .ant-tree-list-holder-inner { .ant-tree-treenode { width: 100%; display: flex; > .ant-tree-node-content-wrapper { flex: 1 1 auto; &.ant-tree-node-selected { background-color: @primary-color-hover; color: @white; border-radius: 0; } } } } } .ant-list { .ant-list-items { margin: 0; padding: 0; .ant-list-item { margin: 0; position: relative; display: flex; line-height: 1.57; align-items: center; font-size: @font-size-base; color: @text-color; padding: 12px 0; cursor: pointer; border-bottom: 1px solid @border-color-split; &.active { color: @primary-color-hover; } &:hover { .item_top { opacity: 1; } } } } .ant-list-item-meta-content { width: auto; } }