UNPKG

maycur-business

Version:

maycur business react components of web

231 lines (190 loc) • 5.51 kB
@import "../../style/variables.less"; @import "../../Empty/style/empty.less"; .@{prefix}-icon-btn { width: 32px; height: 32px; line-height: 32px; text-align: center; display: inline-block; &:hover { background-color: #f1efea; } } .@{prefix}-mktree-container { display: flex; flex: auto; flex-direction: column; overflow: hidden; .loading-wrapper { position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: rgba(255, 255, 255, 0.4); } .directory-wrapper { padding: 5px 24px; flex: 1; overflow: auto; .active { background-color: @selected-background; } .node__item { display: flex; justify-content: space-between; align-items: center; padding: 0 0 0 5px; &.search-list__item { cursor: pointer; height: 32px; line-height: 32px; &:hover { background: #f6f6f6; } } .fm { color: @maycur-color; font-size: 16px; } &.disabled { color: #d9d9d9; .fm { color: #d9d9d9; } } .node--title { display: flex; flex: auto; // overflow: hidden; .node--title__icon { flex: none; } .node--title__label { display: flex; flex: auto; // overflow: hidden; margin-left: 4px; .title--label__text { // overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .title--label__count { color: #aaa; } .title--label__unsaved { flex: 1 0 auto; color: #ff8931; } } } .node--operator { display: inline-block; opacity: 0; height: 32px; &.show-tips { display: inline-block; } } &:hover { .node--operator { // display: inline-block; opacity: 1; } } &.load-more { color: @maycur-color; cursor: pointer; } } .ant-tree { flex-grow: 1; li { padding: 1px 0; .ant-tree-switcher { height: 32px; line-height: 32px; &:after { display: inline-block; font-size: 12px; color: @gray-text-color; font-family: Maycur; content: '\e918' !important; } &.ant-tree-switcher_open { &:after { transform: scale(0.9) rotate(90deg); } } &.ant-tree-switcher_close { &:after { transform: scale(0.9) rotate(0deg); } } &.ant-tree-switcher-noop { &:after { content: none !important; } } } span.ant-tree-iconEle { width: 24px; height: 32px; line-height: 32px; } .ant-tree-node-content-wrapper { box-sizing: border-box; min-width: calc(~"100% - 20px"); width: auto; height: 32px; line-height: 32px; padding: 0; border-radius: 0; color: @primary-font-color; font-size: 14px; &.ant-tree-node-selected { background-color: transparent; } } } } } .search-box { flex: 0 0 auto; position: relative; padding: 9px 24px; border-bottom: 1px solid #e8e8e8; .ant-input { border-radius: 1px; background-color: #f2f2f2; border-color: #f2f2f2; } } .alert-box { padding: 9px 24px; font-size: 12px; } } .mktree-tips { animation: move 0.5s; animation-delay: 1s; animation-fill-mode: forwards; .ant-popover-inner-content { background-color: @maycur-color; color: #fff; } .ant-popover-arrow { border-top-color: @maycur-color !important; border-left-color: @maycur-color !important; } } @keyframes move { from { transform: translateY(0) } to { transform: translateY(-10px) } }