UNPKG

qm-bus

Version:

千米公有云业务组件库

626 lines (539 loc) 11.3 kB
@import '../../index.less'; .picture-library-wrapper { height: 100%; overflow: hidden; } .picture-library { position: relative; height: 100%; .folder-tree { position: absolute; width: 160px; height: 100%; border-right: 1px solid @border-color-split; overflow: auto; .qmIcon { color: @primary-color; margin-right: 5px; } } .picture-container { width: 100%; padding-left: 180px; .clearfix; } .select-tips { padding-bottom: 10px; } } .picture-main { padding: 5px 0 35px 0; margin-right: -15px; .clearfix; overflow-x: hidden; overflow-y: auto; .ant-col-4 { padding-right: 15px; padding-bottom: 10px; } .empty-tips { padding-top: 100px; text-align: center; i { color: @warning-color; margin-right: 10px; font-size: 14px; } .content { color: #999; } } } .select-picture-library { &.modal-custom { .modal-body-main { height: 490px; overflow: hidden; padding: 10px 10px 53px 10px; } } .picture-library { position: static; height: auto; .folder-tree { border-right: none; background-color: #f7f7f7; } } .ant-col-6 { padding-right: 15px; padding-bottom: 15px; } .modal-body-main { overflow: hidden; &.upload { .picture-library { left: -33.33%; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; } .upload-picture-library { left: 0; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; } .protocol-library { left: 30%; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; } } &.proptocol { .picture-library { left: -66.66%; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; } .upload-picture-library { left: -33.33%; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; } .protocol-library { left: 0; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; } } .modal-wrapper { position: relative; width: 300%; } .picture-library { position: absolute; left: 0; width: 33.33%; float: left; padding: 0 15px; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; overflow: hidden; } .upload-picture-library { position: absolute; left: 33.33%; width: 33.33%; float: left; padding: 0 15px; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; overflow: hidden; } .protocol-library { position: absolute; left: 66.66%; width: 33.33%; float: left; padding: 0 15px; -webkit-transition: left 0.3s ease-in; -moz-transition: left 0.3s ease-in; -ms-transition: left 0.3s ease-in; -o-transition: left 0.3s ease-in; transition: left 0.3s ease-in; overflow: hidden; } } } .picture-item { position: relative; display: inline-block; width: 100%; font-size: 0; text-align: center; padding-bottom: 35px; border: 1px solid @border-color-base; .border-radius(@border-radius-base); cursor: pointer; overflow: hidden; &:hover { .img-checkbox { display: inline-block; } } &.checked { .img-checkbox { display: inline-block; } } .img-shape { width: 100%; padding-top: 100%; overflow: hidden; &:hover { .video-play { display: inherit; } } } .video-box { position: absolute; width: 100%; vertical-align: middle; video { display: inline-block; width: auto; max-width: 100%; max-height: 100%; vertical-align: middle; margin-top: -100%; } } .video-play { position: absolute; bottom: 35px; height: 20%; width: 100%; border-radius: 1px; background: #000000; color: rgba(16, 16, 16, 1); font-size: 25px; opacity: 0.5; display: none; } .img-box { position: absolute; width: 100%; vertical-align: middle; img { display: inline-block; width: auto; max-width: 100%; max-height: 100%; vertical-align: middle; margin-top: -100%; } .empty { display: inline-block; height: 100%; vertical-align: middle; margin-top: -100%; } } .img-title { position: absolute; bottom: 0; left: 0; display: inline-block; width: 100%; height: 35px; font-size: @font-size-base; line-height: 35px; text-align: center; padding: 0 6px; background-color: #fff; //border-top: 1px solid @border-color-base; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; z-index: 10; &:hover { .edit-icon { display: inline-block; } } } .edit-icon { display: none; position: absolute; top: 0; right: 2px; color: @primary-color; padding-left: 8px; } .img-title-edit { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 35px; font-size: @font-size-base; line-height: 35px; text-align: left; padding: 0 8px; //margin: 0 -1px -1px -1px; background-color: #fff; border-color: transparent; .border-radius(0px); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; outline: none; z-index: 10; .transitions(border, 0.1s, ease-in); &:focus { border-color: @primary-color; } &.edit { border-color: @primary-color; } } .img-checkbox { display: none; position: absolute; top: 0; right: 0; .ant-checkbox-inner { width: 18px; height: 18px; .border-radius(0); border-color: @primary-color; &:after { top: 2px; left: 6px; width: 5px; height: 9px; } } } } .picture-modal { .ant-modal-body { padding: 0; font-size: 0; } .pic-modal-main { .clearfix; background-color: #fff; } .pic-left { float: left; width: 481px; border-right: 1px solid #f9f9f9; background-color: #f9f9f9; } .pic-right { float: right; width: 215px; font-size: @font-size-base; padding: 15px; ul { padding-bottom: 15px; } li { padding-top: 5px; } } .pic-name { font-size: 14px; margin-top: 60px; margin-bottom: 70px; line-height: 1.7em; height: 3.4em; display: -webkit-box; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 22px; overflow: hidden; word-break: break-all; } .img-large { position: relative; display: table-cell; width: 480px; height: 480px; text-align: center; vertical-align: middle; overflow: hidden; img { max-width: 100%; max-height: 100%; } .turn-left, .turn-right { position: absolute; top: 50%; margin-top: -14px; opacity: 0.5; } .turn-left { left: 5px; } .turn-right { right: 5px; } } .pic-list { width: 480px; padding: 10px 0 20px 0; } .turn-left, .turn-right { width: 40px; height: 65px; line-height: 65px; text-align: center; display: inline; font-size: 28px; color: #ccc; } .turn-left { float: left; } .turn-right { float: right; } .list-wrapper { width: 400px; height: 65px; overflow: hidden; } .list-inline { position: relative; width: 940000px; } .list-item { position: relative; padding: 0; display: inline-block; margin-right: 10px; letter-spacing: 0; vertical-align: top; .img-response { width: 65px; height: 65px; overflow: hidden; vertical-align: middle; border: 1px solid @border-color-base; .border-radius(@border-radius-base); .video-box { position: relative; height: 100%; width: 100%; video { position: absolute; max-width: 100%; max-height: 100%; margin: auto; left: -100%; right: -100%; top: -100%; bottom: -100%; } svg { position: relative; margin: 15px 15px; } } &:hover { border: 2px solid @primary-color; } img { max-width: 100%; max-height: 100%; } } &.active { .img-response { border: 2px solid @primary-color; } } } } .upload-picture-library.multiple { .upload-picture-main { height: 407px; padding: 0 20px; overflow: auto; } } .upload-picture-library { .upload-picture-main { height: 407px; padding: 0 20px; overflow: auto; } .ant-input { width: 350px; } .hr-split { width: 100%; height: 1px; background-color: @border-color-split; margin: 20px 0; } .ant-upload.ant-upload-select-picture-card { width: 75px; height: 75px; .anticon-plus { padding-top: 10px; } } .local-img-preview { .ant-upload-select-picture-card { i.anticon-plus { padding-top: 5px; } } } .ant-upload-select-picture-card { i.anticon-plus { font-size: 28px; color: #999; padding-top: 5px; } .ant-upload-text { display: none; } } .ant-upload-list-picture-card .ant-upload-list-item { width: 75px; height: 75px; padding: 2px; margin-bottom: 0; } .ant-upload-list-picture-card .ant-upload-list-item-uploading-text { margin-top: 16px; line-height: 15px; text-align: center; } .ant-upload-list-item-progress { padding: 0px; } } .picture-move-to-modal { padding: 10px 20px; .folder-tree { max-height: 320px; overflow: auto; .qmIcon { color: @primary-color; margin-right: 5px; } } }