chore: split index.css
This commit is contained in:
@@ -177,3 +177,213 @@
|
||||
border: 1px solid #eee;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.layui-colorpicker {
|
||||
border: 1px solid @global-neutral-color-3;
|
||||
padding: 5px;
|
||||
border-radius: @global-border-radius;
|
||||
line-height: 24px;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
-webkit-transition: all 0.3s;
|
||||
}
|
||||
|
||||
.layui-colorpicker:hover {
|
||||
border-color: @global-neutral-color-6;
|
||||
}
|
||||
|
||||
.layui-colorpicker.layui-colorpicker-lg {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.layui-colorpicker.layui-colorpicker-sm {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
.layui-colorpicker.layui-colorpicker-xs {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.layui-colorpicker-trigger-bgcolor {
|
||||
display: block;
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.layui-colorpicker-trigger-span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||
border-radius: @global-border-radius;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.layui-colorpicker-trigger-i {
|
||||
display: inline-block;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.layui-colorpicker-trigger-i.layui-icon-close {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.layui-colorpicker-main {
|
||||
position: absolute;
|
||||
left: -999999px;
|
||||
top: -999999px;
|
||||
z-index: 66666666;
|
||||
width: 280px;
|
||||
margin: 5px 0;
|
||||
padding: 7px;
|
||||
background: #fff;
|
||||
border: 1px solid @global-neutral-color-6;
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.layui-colorpicker-main-wrapper {
|
||||
height: 180px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.layui-colorpicker-basis {
|
||||
width: 260px;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.layui-colorpicker-basis-white {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0));
|
||||
}
|
||||
|
||||
.layui-colorpicker-basis-black {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: linear-gradient(0deg, #000, transparent);
|
||||
}
|
||||
|
||||
.layui-colorpicker-basis-cursor {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border: 1px solid #fff;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
right: -3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.layui-colorpicker-side {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 12px;
|
||||
height: 100%;
|
||||
background: linear-gradient(red, #ff0, #0f0, #0ff, #00f, #f0f, red);
|
||||
}
|
||||
|
||||
.layui-colorpicker-side-slider {
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
box-shadow: 0 0 1px #888;
|
||||
background: #fff;
|
||||
border-radius: 1px;
|
||||
border: 1px solid #f0f0f0;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.layui-colorpicker-main-alpha {
|
||||
display: none;
|
||||
height: 12px;
|
||||
margin-top: 7px;
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
.layui-colorpicker-alpha-bgcolor {
|
||||
height: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.layui-colorpicker-alpha-slider {
|
||||
width: 5px;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 1px #888;
|
||||
background: #fff;
|
||||
border-radius: 1px;
|
||||
border: 1px solid #f0f0f0;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.layui-colorpicker-main-pre {
|
||||
padding-top: 7px;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.layui-colorpicker-pre {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
margin-left: 6px;
|
||||
margin-bottom: 7px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.layui-colorpicker-pre:nth-child(11n + 1) {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.layui-colorpicker-pre-isalpha {
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
.layui-colorpicker-pre.layui-this {
|
||||
box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.layui-colorpicker-pre > div {
|
||||
height: 100%;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.layui-colorpicker-main-input {
|
||||
text-align: right;
|
||||
padding-top: 7px;
|
||||
}
|
||||
|
||||
.layui-colorpicker-main-input .layui-btn-container .layui-btn {
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
|
||||
.layui-colorpicker-main-input div.layui-inline {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.layui-colorpicker-main-input input.layui-input {
|
||||
width: 150px;
|
||||
height: 30px;
|
||||
color: #666;
|
||||
}
|
||||
Reference in New Issue
Block a user