common.css 3.07 KB
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f3f9;
    text-align: center;
    vertical-align: middle;
}

.main-wrapper {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 30vh;
    padding: 10px 20px 10px 10px;
}

.control-wrapper {
    position: relative;
    padding: 10px 20px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .1);
}

.control-right {
    float: right;
    /* padding-left: 140px; */
    width: 30%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.refresh-selector {
    margin-right: 10px;
    height: 30px;
    line-height: 30px;
}

.color-picker-btn,
.size-decrease,
.size-inscrease,
.size-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
}

.color-picker-btn,
.size-decrease,
.size-inscrease {
    border-radius: 100%;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.control-wrapper:after,
.control-wrapper:before,
.content-item:after,
.content-item:before {
    content: '';
    display: table;
}

.control-wrapper:after,
.content-item:after {
    clear: both;
}

.content-item {
    margin-top: 0;
    margin-bottom: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.text-left {
    float: left;
}

.text-right {
    float: right;
    margin-left: 30px;
}

.color-picker-btn {
    margin-right: 15px;
    vertical-align: middle;
}

.cp-default {
    display: none;
    position: absolute;
    top: 60px;
}


/* 颜色选择器 */

.picker-wrapper,
.slide-wrapper {
    position: relative;
    float: left;
}

.picker-indicator,
.slide-indicator {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.picker,
.slide {
    cursor: crosshair;
    float: left;
}

.cp-default {
    background-color: gray;
    padding: 12px;
    box-shadow: 0 0 40px #000;
    border-radius: 15px;
}

.cp-default .picker {
    width: 200px;
    height: 200px;
}

.cp-default .slide {
    width: 30px;
    height: 200px;
}

.cp-default .slide-wrapper {
    margin-left: 10px;
}

.cp-default .picker-indicator {
    width: 5px;
    height: 5px;
    border: 2px solid darkblue;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    opacity: .5;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
    filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=50);
    filter: alpha(opacity=50);
    background-color: white;
}

.cp-default .slide-indicator {
    width: 100%;
    height: 10px;
    left: -4px;
    opacity: .6;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
    filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=60);
    filter: alpha(opacity=60);
    border: 4px solid lightblue;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    background-color: white;
}