UNPKG

gd-online-seal-tool

Version:

印章小工具

546 lines (465 loc) 12.6 kB
.container { width: 71rem; margin: 10px auto; height: 80vh; background-color: #fff; box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.06), 0 0 0 0.0625rem rgba(0, 0, 0, 0.04); font-size: 0.875rem; font-weight: 400; padding-left: 3.75rem; color: #4d4d4d; } button:focus { outline: none; } .default-style { display: none; } .sealeffectx { display: none; height: 250px; } #imgFile { height: 44%; position: absolute; top: 20%; width: 56%; opacity: 0; } #changeImg { height: 62%; position: absolute; top: 12%; width: 65px; opacity: 0; right: -4px; } .container .title { color: #4d4d4d; line-height: 3.75rem; } .container .upload { width: 67rem; height: 26.25rem; background: #f6f8fd; border-radius: 0.1875rem; opacity: 0.6; border: 0.0625rem dotted rgba(0, 0, 0, 0.3); text-align: center; cursor: pointer; } .upload img { margin: 7.1875rem 0 0.5625rem; } .upload .upload-trip { color: #4d4d4d; margin-bottom: 4.8125rem; } .upload .sealImg-tip { color: #999; line-height: 1.875rem; margin-top: 5rem; } /* 印章操作容器 */ .flex-conatiner { display: flex; } .file-input { position: absolute; width: 72px; height: 34px; opacity: 0; margin-top: 50px; } .sealpreview { margin: 50px auto 20px auto; width: 250px; height: 250px; overflow: hidden; border: #409eff 1px solid; } .againUpload { background-color: #409eff; border: none; width: 72px; margin-left: -15px; height: 34px; margin-top: 50px; color: #fff; font-size: .875rem; font-weight: 400; border-radius: .1875rem; cursor: pointer; } .againUpload:focus { border: none; } .img-container { width: 26.25rem; height: 26.25rem; position: relative; margin-top: 120px; text-align: center; } .img-container img { width: 100%; } .seal-action { text-align: center; } .seal-action a { margin: auto 10px; color: #409eff; text-decoration: none; cursor: pointer; } .replace { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; line-height: 1.75rem; width: 3.625rem; background: #fff; border-radius: 0.1875rem; color: #5a676d; font-size: 0.75rem; cursor: pointer; width: 60px; border: none; outline: none; } .replace img { vertical-align: sub; width: 15px; height: 15px; } .bottom-w { position: absolute; bottom: -29px; left: 123px; } .bottom-w, .bottom-h { width: 37%; display: flex; align-items: center; justify-content: center; margin-top: 10px; color: #999; } .bottom-w>span, .bottom-h>span { display: inline-block; width: calc(62% - 0.0625rem); height: 0; border-top: 1px solid #eee; } .bottom-h { position: absolute; right: -100px; transform-style: preserve-3d; transform: rotate(90deg); top: 151px; position: absolute; } /* 操作容器 */ .ops-container { margin: 125px 0 20px 65px; } .set-title { color: #999; font-size: 1rem; } .set-size { width: 590px; display: flex; justify-content: space-between; margin: 1.5625rem 0 2.75rem; } .set-size-list { display: flex; justify-content: flex-start; align-items: center; } .set-wight { padding: 0 5px 0 5px; } .set-size-list input { width: 8.125rem; height: 1.7rem; outline: none; border: 1px solid #eee; border-radius: 3px; } /* press */ .box { display: flex; align-items: center; margin-top: 20px; } .box .label { margin-right: 20px; } .box span { width: 40px; line-height: 40px; } .bar { width: 240px; background: #e4e7ed; height: 10px; position: relative; border-radius: 50px; } .bar p { margin: 0; height: 10px; width: 0; background: #409eff; border-radius: 50px; } .bar i { width: 12px; height: 12px; position: absolute; /* left: 114px; */ top: -3px; background: #fff; border-radius: 10px; cursor: pointer; border: 2px solid #409eff; } .set-trans { margin-left: 35px; } .set-trans button { width: 25px; height: 27px; background: #f5f7fa; border: 1px solid #eee; outline: none; cursor: pointer; } .set-trans .reduce { border-radius: 0.25rem 0 0 0.25rem; border-right: 0.0625rem solid #dcdfe6; margin-right: -5px; } .set-trans .plus { border-radius: 0 0.25rem 0.25rem 0; border-left: 0.0625rem solid #dcdfe6; margin-left: -5px; } .set-trans input { width: 50px; height: 23px; outline: none; border: 1px solid #eee; } .sign-color { margin-top: 50px; display: flex; align-items: center; } .select-color { display: flex; justify-content: space-between; margin-left: 20px; } .color-list { width: 5rem; height: 2rem; margin-right: 1rem; position: relative; cursor: pointer; color: #fff; font-size: 0.75rem; line-height: 2rem; display: flex; align-items: center; justify-content: center; } .color-list img { width: 18px; padding-right: 3px; } .default { background-color: rgb(255, 0, 0); } .redcolor { background-color: rgb(255, 0, 0); } .bluecolor { background-color: rgb(0, 0, 255); } .blackcolor { background-color: rgb(0, 0, 0); } .btn-container { margin-top: 80px; } .btn-container button { cursor: pointer; border-radius: 3px; outline: none; height: 32px; } .btn-container button:first-child { width: 100px; font-size: 12px; background-color: #0975e1; color: #fff; border: 1px solid #0975e1; } .btn-container button:last-child { width: 100px; border: 1px solid #dcdfe6; margin-left: 15px; } .panel { position: absolute; bottom: -61px; color: #999999; font-size: 15px; } /* 查看印章效果容器 */ .handle-pic-bottom { margin-top: 77px; width: 71rem; padding-left: 3.75rem; position: relative; } .bottom-none { text-align: center; background: #fafbfe; position: relative; width: 75rem; right: 122px; height: 320px; } .bottom-none img { position: relative; top: 60px; } .bottom-none p { position: relative; top: -53px; } /* 印章效果样式 */ .sealeffectx { margin-top: 120px; } .seale-list { width: 11.25rem; height: 14.0625rem; background: #fff; border: 0.0625rem solid #e4e4e4; float: left; margin-right: 2.5rem; color: #4d4d4d; } .seale-list figure { height: 10rem; overflow: hidden; line-height: 10rem; margin: 0; text-align: center; } .seale-list img { max-height: 8.75rem; vertical-align: middle; } .base-btn { width: 100%; height: 1.875rem; display: flex; justify-content: flex-start; margin-top: 7px; border-top: 1px solid #eee; } .base-btn a { border: none; outline: none; cursor: pointer; background: #fff; text-align: center; font-size: 12px; line-height: 30px; color: #333; } .base-btn a:hover { color: #409eff; } .base-btn a:first-child { width: 6.6875rem; } .base-btn a:last-child { width: 4.1875rem; font-size: 0.75rem; border-left: 1px solid #eee; outline: none; -webkit-text-decoration-line: none; text-decoration-line: none; } .cropper-container { height: 422px !important; } .loader { margin: 0 auto; position: absolute; z-index: 100; top: 8%; left: 42%; display: none; } .loader-mark { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, .7); z-index: 99; display: none; } #seal-type-select, #seal-type-specs { width: 160px; height: 27px; border: 1px solid #eee; outline: none; } #seal-type-select option { height: 32px; } /** loading **/ .mark { position: absolute; z-index: 10; top: 0; left: 0; bottom: 0; right: 0; background: rgba(0, 0, 0, .3); } .loadEffect { width: 500px; height: 500px; position: absolute; top: 50%; left: 50%; margin-top: -250px; margin-left: -250px; z-index: 5000; } /*! * Cropper.js v1.5.7 * https://fengyuanchen.github.io/cropperjs * * Copyright 2015-present Chen Fengyuan * Released under the MIT license * * Date: 2020-05-23T05:22:57.283Z */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}