UNPKG

ygd

Version:

An enterprise-class UI design language and React-based implementation

191 lines (190 loc) 3.89 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ @-webkit-keyframes antCheckboxEffect { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } } @keyframes antCheckboxEffect { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } } .yg-transfer { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; } .yg-transfer-disabled .yg-transfer-list { background: #f5f5f5; } .yg-transfer-list { position: relative; display: inline-block; width: 180px; height: 200px; padding-top: 34px; vertical-align: middle; border: 1px solid #ccc; border-radius: 2px; } .yg-transfer-list-with-footer { padding-bottom: 34px; } .yg-transfer-list-search { padding: 0 10px; width: calc(100% - 30px); } .yg-transfer-list-search-action { position: absolute; top: 4px; right: 14px; bottom: 4px; width: 28px; color: rgba(51, 51, 51, 0.25); line-height: 28px; text-align: center; } .yg-transfer-list-search-action .anticon { color: rgba(51, 51, 51, 0.25); transition: all 0.3s; } .yg-transfer-list-search-action .anticon:hover { color: rgba(0, 0, 0, 0.45); } span.yg-transfer-list-search-action { pointer-events: none; } .yg-transfer-list-header { position: absolute; top: 0; left: 0; width: calc(100% - 20px); height: 28px; line-height: 28px; padding: 1px 10px; overflow: hidden; color: #333; background: #fff; border-bottom: 1px solid #ccc; border-radius: 2px 2px 0 0; } .yg-transfer-list-header-title { position: absolute; right: 12px; } .yg-transfer-list-body { position: relative; height: 100%; font-size: 12px; } .yg-transfer-list-body-search-wrapper { position: absolute; top: 0; left: 0; width: 100%; padding: 4px; } .yg-transfer-list-body-with-search { padding-top: 40px; height: calc(100% - 40px); } .yg-transfer-list-content { height: 100%; margin: 0; padding: 0; overflow: auto; list-style: none; } .yg-transfer-list-content > .LazyLoad { -webkit-animation: transferHighlightIn 1s; animation: transferHighlightIn 1s; } .yg-transfer-list-content-item { padding: 1px 10px; height: 28px; line-height: 28px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: all 0.3s; } .yg-transfer-list-content-item > span { padding-right: 0; } .yg-transfer-list-content-item:not(.yg-transfer-list-content-item-disabled):hover { background-color: #e1edff; cursor: pointer; } .yg-transfer-list-content-item-disabled { color: rgba(51, 51, 51, 0.25); cursor: not-allowed; } .yg-transfer-list-body-not-found { position: absolute; top: 50%; width: 100%; padding-top: 0; color: rgba(51, 51, 51, 0.25); text-align: center; transform: translateY(-50%); } .yg-transfer-list-body-with-search .yg-transfer-list-body-not-found { margin-top: 14px; } .yg-transfer-list-footer { position: absolute; bottom: 0; left: 0; width: 100%; border-top: 1px solid #ccc; border-radius: 0 0 2px 2px; background: #fff; } .yg-transfer-operation { display: inline-block; margin: 0 8px; overflow: hidden; vertical-align: middle; } .yg-transfer-operation .yg-btn { display: block; } .yg-transfer-operation .yg-btn:first-child { margin-bottom: 4px; } .yg-transfer-operation .yg-btn .anticon { font-size: 12px; } @-webkit-keyframes transferHighlightIn { 0% { background: #a3eaff; } 100% { background: transparent; } } @keyframes transferHighlightIn { 0% { background: #a3eaff; } 100% { background: transparent; } }