UNPKG

maycur-business

Version:

maycur business react components of web

464 lines (406 loc) • 8.53 kB
@import '../../style/variables.less'; @viewer-prefix-cls: ~"@{prefix}-viewer"; .@{viewer-prefix-cls} { &-inline { position: relative; width: 100%; height: 100%; } @zIndex: 1000; @btn-background-color: rgba(51,51,51,0.8); @btn-hover-background-color: rgba(0, 0, 0, .8); @verify-color:#5BD200; @icon-hover-background-color:#555; & ul { margin: 0; padding: 0; // display:flex; // overflow: hidden; // max-width: calc(~"100% - 40px"); // text-align:center; } & li { list-style: none; } & { opacity: 0; } &-mask { position: fixed; top: 0; right: 0; left: 0; bottom: 0; height: 100%; filter: alpha(opacity=50); z-index: @zIndex; } &-btn { text-align:center; } &-close { position: absolute; top: 0px; right: 0px; overflow: hidden; width: 26px; height: 26px; margin:9px 9px 0 0; cursor: pointer; z-index: @zIndex + 20; display:flex; justify-content:center; align-items:center; &:hover{ background:@icon-hover-background-color; } } &-close > i { color:#fff; display: inline-block; } &-image{ display:flex; justify-content:center; align-items:center; img{ height:100%; } } // .fm-cross{ // position: absolute; // top: 0px; // right: 0px; // overflow: hidden; // width: 14px; // height: 14px; // margin-top:15px; // display: inline-block; // color:#fff; // cursor: pointer; // // background:@icon-hover-background-color; // } &-canvas { position: fixed; top: 0; right: 0; left: 0; bottom: 0; overflow: hidden; z-index: @zIndex + 5; background:rgba(55,55,55,0.6); > img { display: block; width: auto; height: auto; user-select: none; } > img.drag { cursor: move; } } @header-height:44px; &-header{ width:100%; height:@header-height; line-height:@header-height; background:@btn-background-color; position:absolute; text-align: left; display:flex; justify-content:center; overflow: hidden; // padding-left: 139px; z-index: @zIndex + 10; font-size:12px; .fm{ font-size:17px; color:#fff; } .proven-true{ position:relative; color:@verify-color; &:before{ content: ""; position: absolute; top: 17px; left: 5px; color: #5bd200; width: 8px; height: 8px; background: #fff; } .fm{ color:@verify-color !important; position:relative; z-index:10; } } .verify-true{ color:#fff; cursor: pointer; } .ant-divider-vertical{ height:16px; margin:13px 22px 0 8px; } } &-footer { height:88px; background-color: @btn-background-color; position: fixed; right: 0; bottom: 0; left: 0; overflow: hidden; text-align: center; z-index: @zIndex + 5; } &-inline > &-close, &-inline > &-canvas, &-inline > &-footer { position: absolute; } &-attribute { margin: 0; margin-bottom: 6px; opacity: .8; color: #ccc; font-size: 15px; } @toolbarHeight: 28px; &-toolbar { overflow: hidden; line-height:@header-height; width:40%; display:flex; justify-content:space-around; // height: @toolbarHeight; // margin-bottom: 6px !important; } &-toolbar li { display: inline-block; width: @toolbarHeight; height: @toolbarHeight; border-radius: @toolbarHeight; cursor: pointer; } li.empty { background-color: transparent; cursor: default; } &-image{ position:relative; } &-loading-wrap{ // position:absolute; // height:100%; // width:100%; // z-index:9999; display: flex; justify-content: center; align-items: center; height:100%; width:100%; } &-navbar { // overflow: hidden; p{ font-family: MicrosoftYaHei; font-size: 10px; color: #fff; line-height: 32px; } &-switch{ display:flex; padding: 0 24px; // justify-content:space-around; // justify-content:center; .fm-angle-right,.fm-angle-left{ display: inline-block; width:40px; height:40px; color:#fff; // opacity: 0.8; font-size:20px; cursor: pointer; display: flex; align-items: center; justify-content: center; &:hover{ background: @icon-hover-background-color; } } } .empty{ background:#fff; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; .fm-receipt1{ color:#ddd; font-size: 24px; } } } @viewer-list-item-width: 40px; @viewer-list-item-height: 40px; @viewer-list-item-img-width: @viewer-list-item-width + 30px; @viewer-list-item-img-marginLeft: -(@viewer-list-item-img-width - @viewer-list-item-width) /2; &-list-switch{ overflow: hidden; width:calc(~"100% - 88px"); display: flex; justify-content: center; flex:1; } &-list-release{ overflow:hidden; } &-list { height: @viewer-list-item-height; padding: 1px; text-align: left; display:flex; } &-list > li { display: inline-block; position:relative; width: @viewer-list-item-width; height: @viewer-list-item-height; cursor: pointer; overflow: hidden; flex-shrink: 0; margin-right: 1px; margin-right:6px; border:1px solid transparent; &.proven-true{ &:after{ content:""; position:absolute; top:7px; right:8px; color:@verify-color; width:8px; height:8px; background:#fff; } } .fm-proven-true{ position:absolute; top:0; right:4px; font-size:16px; color:@verify-color; width:16px; height:16px; z-index:10; } img { width: @viewer-list-item-img-width; height: @viewer-list-item-height; margin-left: @viewer-list-item-img-marginLeft; opacity: .5; } .react-pdf__Document{ opacity: .5; } } // &-list > li > img { // width: @viewer-list-item-img-width; // height: @viewer-list-item-height; // margin-left: @viewer-list-item-img-marginLeft; // // opacity: .5; // } &-list > li.active{ border-color:#fff; img{ opacity: 1; } .react-pdf__Document{ opacity: 1; } } // &-list > li.active > img { // opacity: 1; // } @transitionDuration: .3s; @transitionFunc: ease-out; &-transition { // transition: opacity @transitionDuration @transitionFunc; } &-image-transition { // transition-property: width, height, margin, transform; // transition-duration: @transitionDuration; // transition-timing-function: @transitionFunc; } &-list-transition { // transition: margin @transitionDuration @transitionFunc; } } @icon-prefix-cls: ~"@{prefix}-viewer-icon"; .@{icon-prefix-cls} { & { font-family: 'icomoon' !important; display: inline-block; font-style: normal; vertical-align: baseline; text-align: center; text-transform: none; text-rendering: auto; line-height: 1; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #fff; font-size: 13px; } &-zoomIn:before { content: '\ea0a'; } &-zoomOut:before { content: '\ea0b'; } &-prev:before { content: '\ea38'; } &-next:before { content: '\ea34'; } &-close:before { content: '\ea0f'; } &-rotateLeft:before { content: '\e967'; } &-rotateRight:before { content: '\e968'; } &-reset:before { content: '\e984'; } &-scaleX:before { content: '\ea60'; } &-scaleY:before { content: '\ea5f'; } &-download:before { content: '\e9c7'; } } .circle-loading { box-sizing: border-box; width: 80px; height: 80px; border-radius: 100%; border: 10px solid rgba(255, 255, 255, 0.2); border-top-color: #FFF; animation: spin 1s infinite linear; margin-top:-44px; } @keyframes spin { 100% { transform: rotate(360deg); } }