﻿
/*cropperImg 上传裁剪图片js库
cropperImg 库 样式重写*/

body {
    font: 14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif
}

/*.layui-layer {
    top: 150px;
    left: 0;
    margin: 0;
    padding: 0;
    background-color: #fff;
    -webkit-background-clip: content;
    border-radius: 2px;
    box-shadow: 1px 1px 50px rgba(0,0,0,.3);
}

.layui-layer {
    position: fixed;
    _position: absolute;
    pointer-events: auto;
}*/

.layui-layer-admin .layui-layer-title {
    background-color: #20222A !important;
}

.layui-layer-admin .layui-layer-title {
    font-size: 13px;
}

.layui-layer-admin .layui-layer-title {
    height: 40px;
    line-height: 40px;
    border: 0;
    background-color: #20222A;
    color: #fff;
}

.layui-layer-title {
    padding: 0 81px 0 16px;
      height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #F0F0F0;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 2px 2px 0 0;
}

/*重写弹出面板框内容和边框间距*/
.layui-layer-admin .layui-layer-content {
    padding: 10px;
    line-height: 22px;
}

.layui-layer-page .layui-layer-content {
    position: relative;
    overflow: auto;
}

.layui-layer-admin .layui-layer-setwin {
    position: absolute;
    right: 15px;
    *right: 0;
    top: 8px;
    font-size: 0;
    line-height: initial;
}

.layui-layer-setwin {
    position: absolute;
    right: 15px;
    *right: 0;
    top: 16px;
    font-size: 0;
    line-height: initial;
}

    .layui-layer-setwin span {
        position: relative;
        width: 16px;
        height: 16px;
        line-height: 18px;
        margin-left: 10px;
        text-align: center;
        font-size: 16px;
        cursor: pointer;
        color: #fff;
        _overflow: hidden;
        box-sizing: border-box;
    }

.layui-layer-admin layui-layer-setwin .layui-layer-close1 {
    background-position: -149px -31px;
    cursor: pointer;
}

.layui-layer-setwin span {
    display: inline-block;
    vertical-align: middle;
    *display: inline;
    *zoom: 1;
    position: relative;
    width: 16px;
    height: 16px;
    line-height: 18px;
    margin-left: 10px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    color: #ccc;
}

.layui-icon {
    font-family: "layui-icon" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none;
}

.layui-icon-close:before {
    content: "\1006";
}

.layui-row {
    height: 100%;
}

    .layui-row:before {
        content: "";
        display: block;
        clear: both;
    }

    .layui-row:after {
        content: "";
        display: block;
        clear: both;
    }

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #009688;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    border-radius: 6px;
    background-color: #f5f5f5;
}

.ew-crop-tool {
    padding: 15px 0px 0px 0;
}

.layui-col-sm8 {
    height: 500px;
    background: #e6e6e6;
    max-height: 500px;
    position: relative;
    min-height: 155px;
    padding-right: 15px;
    padding-left: 0 !important;
    float: left;
    display: block;
    box-sizing: border-box;
}

@media screen and (min-width: 768px) {
    .layui-col-sm8 {
        width: 66.66666667%;
    }
}


.layui-col-sm4 {
    margin-top: 1px;
    padding: 21px 13px !important;
    text-align: center;
    position: relative;
    min-height: 155px;
    float: left;
    display: block;
    box-sizing: border-box;
}

@media screen and (min-width: 768px) {
    .layui-col-sm4 {
        width: 32.333333%;
    }
}

.ew-crop-img {
    max-width: 100%;
}

.cropper-hidden {
    display: none !important;
}


.preview-lg {
    width: 256px;
    height: 144px;
}

.preview-md {
    width: 128px;
    height: 72px;
}

.preview-sm {
    width: 64px;
    height: 36px;
}

.preview-xs {
    width: 32px;
    height: 18px;
    margin-right: 0;
}

img {
    border: none;
    vertical-align: middle;
    display: inline-block;
}

.cropper-container {
    width: 587px !important;
    height: 500px;
}

.cropper-bg {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
}

.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    -ms-touch-action: none;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cropper-wrap-box {
    overflow: hidden;
}

.cropper-wrap-box {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.cropper-crop {
    cursor: crosshair;
}

.cropper-modal {
    background-color: #000;
    opacity: .5;
}

.cropper-drag-box, .cropper-modal {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.cropper-crop-box {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.ew-crop-img-preview {
    float: left;
    margin-bottom: 10px;
    margin-right: 15px;
    overflow: hidden;
    background: #e6e6e6;
}


.preview-xs {
    margin-right: 0;
}

.layui-btn-group {
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
}

    .layui-btn-group + .layui-btn-group {
        margin-left: 10px;
    }

.my-toggles .layui-btn {
    font-size: 12px;
}

.my-toggles .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    background-color: #1ab394;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid transparent;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    -webkit-user-select: none;
    outline: none;
    -webkit-appearance: none;
    transition: all .3s;
    -webkit-transition: all .3s;
    box-sizing: border-box;
}

.layui-btn-group .layui-btn:first-child {
    border-left: none;
    border-radius: 2px 0 0 2px;
}

.layui-btn-group .layui-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-left: 1px solid rgba(255,255,255,.5);
    border-radius: 0;
}

    .layui-btn-group .layui-btn:first-child {
        border-left: none;
        border-radius: 2px 0 0 2px;
    }

.my-toggles .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    background-color: #1ab394;
}

   .my-toggles .layui-btn .layui-icon {
        padding: 0 2px;
        vertical-align: middle\0;
        vertical-align: bottom;
    }

.layui-icon-add-1:before {
    content: "\e654";
}

.layui-btn-group .layui-btn:first-child {
    border-left: none;
    border-radius: 2px 0 0 2px;
}

.layui-btn-group .layui-btn:last-child {
    border-radius: 0 2px 2px 0;
}

.layui-icon-refresh-1:before {
    content: "\e666";
}

.layui-icon-left:before {
    content: "\e603";
}

.layui-icon-right:before {
    content: "\e602";
}

.layui-icon-up:before {
    content: "\e619";
}

.layui-icon-down:before {
    content: "\e61a";
}

.layui-icon-triangle-r:before {
    content: "\e623";
}

.layui-icon-triangle-d:before {
    content: "\e625";
}

.layui-icon-refresh:before {
    content: "\e669";
}

.layui-icon-upload-drag:before {
    content: "\e681";
}

.layui-btn:active {
    opacity: 1;
    filter: alpha(opacity=100);
}

.layui-btn:hover {
    opacity: 0.8;
    filter: alpha(opacity=80);
    color: #fff;
}

.cropper-canvas {
    overflow: hidden;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.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-hide {
    position: absolute;
}

.cropper-view-box {
    display: block;
    height: 100%;
    outline-color: rgba(51, 153, 255, 0.75);
    outline: 1px solid #39f;
    overflow: hidden;
    width: 100%;
}

.cropper-dashed.dashed-h {
    border-bottom-width: 1px;
    border-top-width: 1px;
    height: 33.33333%;
    left: 0;
    top: 33.33333%;
    width: 100%;
}

.cropper-dashed {
    border: 0 dashed #eee;
    display: block;
    opacity: .5;
    position: absolute;
}

    .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-move {
    cursor: move;
}

.cropper-face {
    background-color: #fff;
    left: 0;
    top: 0;
}

.cropper-face {
    display: block;
    height: 100%;
    opacity: .1;
    position: absolute;
    width: 100%;
}

.cropper-line.line-e {
    cursor: ew-resize;
    right: -3px;
    top: 0;
    width: 5px;
}

.cropper-line {
    background-color: #39f;
    display: block;
    height: 100%;
    opacity: .1;
    position: absolute;
}

    .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.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 {
    background-color: #39f;
    height: 5px;
    opacity: .75;
    width: 5px;
    display: block;
    position: absolute;
}

    .cropper-point.point-sw {
        bottom: -3px;
        cursor: nesw-resize;
        left: -3px;
    }

@media (min-width: 768px) {
    .cropper-point.point-se { height: 15px;
        width: 15px;
        height: 5px;
        width: 5px;
    }
}

.cropper-point .point-se {
    bottom: -3px;
    cursor: nwse-resize;
    height: 20px;
    opacity: 1;
    right: -3px;
    width: 20px;
}

    .cropper-point.point-se:before {
        background-color: #39f;
        bottom: -50%;
        content: ' ';
        display: block;
        height: 200%;
        opacity: 0;
        position: absolute;
        right: -50%;
        width: 200%;
    }



.myCropperBox .layui-form-item {
    margin-bottom: 10px;
    clear: both;
    *zoom: 1;
}

.layui-form-item {
    position: relative;
      margin-bottom: 15px;
    clear: both;
    *zoom: 1;
}

.myCropperBox .layui-form-label {
    width: 70px;
    padding: 2px 5px;
    height: 25px;
    line-height: 20px;
    border-width: 1px;
    border-style: solid;
    border-radius: 2px 0 0 2px;
    text-align: center;
    background-color: #fbfbfb;
    overflow: hidden;
    box-sizing: border-box;
}

.myCropperBox .layui-form-pane .layui-form-label {
    white-space: nowrap;
    text-overflow: ellipsis;
    border-color: #eee;
}

.layui-form-label {
    position: relative;
    float: left;
    display: block;
    font-weight: 400;
}

.myCropperBox .layui-input-inline {
    margin-left: -1px;
    margin-right: 10px;
}

.myCropperBox .layui-input {
    height: 25px;
    line-height: 1.3;
    border-width: 1px;
    border-style: solid;
    background-color: #fff;
}

.layui-form-pane .layui-input {
    border-radius: 0 2px 2px 0;
}

.myCropperBox .layui-form-item .layui-input-inline {
    float: left;
}

.myCropperBox .layui-input {
    display: block;
    width: 100%;
    padding-left: 5px;
    color: rgb(0 0 0 / 85%);
}

.myCropperBox .layui-input-inline {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.myCropperBox .layui-form-mid {
    float: left;
    display: block;
    padding: 2px 0 !important;
    height: 25px;
    line-height: 20px;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
}

.myCropperBox .layui-form-mid {
    position: relative;
    float: left;
    display: block;
    padding: 9px 0 !important;
    line-height: 20px;
    margin-right: 10px;
}

.myCropperBox .layui-text-em, .layui-word-aux {
    color: #999 !important;
}

.myCropperBox .layui-form-item:after {
    content: '\20';
    clear: both;
    *zoom: 1;
    display: block;
    height: 0;
}
