优化特效皮肤对layui2.8 的兼容性

This commit is contained in:
2023-04-27 18:04:22 +08:00
parent 35a338e11e
commit 97459cf2ae
3 changed files with 85 additions and 66 deletions

View File

@@ -4,17 +4,17 @@ button {
}
& {
cursor : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABFklEQVRYR9WXURLDIAhE6/0PbSdOtUpcd1Gnpv1KGpTHBpCE1/cXq+vrMph7dGvXZTtpfW10DCA5jrH1H0Jhs5E0hnZdCR+vb5S8Nn8mQCeS9BdSalYJqMBjAGzq59xAESN7VFVUgV8AZB/dZBR7QTFDCqGquvUBVVoEtgIwpQRzmANSFHgWQKExHdIrPeuMvQNDarXe6nC/AutgV3JW+6bgqQLeV8FekRtgV+ToDKEKnACYKsfZjjkam7a0ZpYTytwmgainpC3HvwBocgKOxqRjehoR9DFKNFYtOwCGYCszobeCbl26N6yyQ6g8X/Wex/rBPsNEV6qAMaJPMynIHQCoSqS9JSMmwef51LflTgCRszU7DvAGiV6mHWfsaVUAAAAASUVORK5CYII=), auto;
cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABFklEQVRYR9WXURLDIAhE6/0PbSdOtUpcd1Gnpv1KGpTHBpCE1/cXq+vrMph7dGvXZTtpfW10DCA5jrH1H0Jhs5E0hnZdCR+vb5S8Nn8mQCeS9BdSalYJqMBjAGzq59xAESN7VFVUgV8AZB/dZBR7QTFDCqGquvUBVVoEtgIwpQRzmANSFHgWQKExHdIrPeuMvQNDarXe6nC/AutgV3JW+6bgqQLeV8FekRtgV+ToDKEKnACYKsfZjjkam7a0ZpYTytwmgainpC3HvwBocgKOxqRjehoR9DFKNFYtOwCGYCszobeCbl26N6yyQ6g8X/Wex/rBPsNEV6qAMaJPMynIHQCoSqS9JSMmwef51LflTgCRszU7DvAGiV6mHWfsaVUAAAAASUVORK5CYII=), auto;
font-family: "ark-pixel";
}
$border-line-width:3px;
.public-border {
border-style : solid;
border-width : $border-line-width;
border-image-slice : 2;
border-image-width : 2;
border-style: solid;
border-width: $border-line-width;
border-image-slice: 2;
border-image-width: 2;
border-image-repeat: stretch;
border-image-source: url('data:image/svg+xml;utf8,<?xml version="1.0" encoding="UTF-8" ?><svg version="1.1" width="5" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M2 1 h1 v1 h-1 z M1 2 h1 v1 h-1 z M3 2 h1 v1 h-1 z M2 3 h1 v1 h-1 z" fill="rgb(33,37,41)" /></svg>');
border-image-outset: 2;
@@ -27,32 +27,32 @@ $border-line-width:3px;
@extend .public-border;
line-height: 32px;
position : relative;
display : inline-block;
text-align : center;
vertical-align : middle;
cursor : url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0, pointer;
position: relative;
display: inline-block;
text-align: center;
vertical-align: middle;
cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAzElEQVRYR+2X0Q6AIAhF5f8/2jYXZkwEjNSVvVUjDpcrGgT7FUkI2D9xRfQETwNIiWO85wfINfQUEyxBG2ArsLwC0jioGt5zFcwF4OYDPi/mBYKm4t0U8ATgRm3ThFoAqkhNgWkA0jJLvaOVSs7j3qMnSgXWBMiWPXe94QqMBMBc1VZIvaTu5u5pQewq0EqNZvIEMCmxAawK0DNkay9QmfFNAJUXfgGgUkLaE7j/h8fnASkxHTz0DGIBMCnBeeM7AArpUd3mz2x3C7wADglA8BcWMZhZAAAAAElFTkSuQmCC) 14 0, pointer;
-webkit-user-select: none;
-moz-user-select : none;
-ms-user-select : none;
user-select : none;
color : #212529;
background-color : #fff;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
color: #212529;
background-color: #fff;
border-image-repeat: stretch;
&::after {
position : absolute;
top : -$border-line-width;
right : -$border-line-width;
bottom : -$border-line-width;
left : -$border-line-width;
content : "";
position: absolute;
top: -$border-line-width;
right: -$border-line-width;
bottom: -$border-line-width;
left: -$border-line-width;
content: "";
box-shadow: inset (-$border-line-width) (-$border-line-width) #adafbc;
}
&:hover {
color : #212529;
text-decoration : none;
color: #212529;
text-decoration: none;
background-color: #e7e7e7;
}
@@ -65,7 +65,7 @@ $border-line-width:3px;
}
&.layui-btn-normal {
color : #fff;
color: #fff;
background-color: #209cee;
&::after {
@@ -78,7 +78,7 @@ $border-line-width:3px;
}
&.layui-btn-success {
color : #fff;
color: #fff;
background-color: #92cc41;
&::after {
@@ -91,7 +91,7 @@ $border-line-width:3px;
}
&.layui-btn-danger {
color : #fff;
color: #fff;
background-color: #e76e55;
&::after {
@@ -104,7 +104,7 @@ $border-line-width:3px;
}
&.layui-btn-warm {
color : #212529;
color: #212529;
background-color: #f7d51d;
&::after {
@@ -112,7 +112,7 @@ $border-line-width:3px;
}
&:hover {
color : #212529;
color: #212529;
background-color: #f2c409;
}
}
@@ -120,7 +120,7 @@ $border-line-width:3px;
.form-search .layui-btn {
line-height: 16px;
font-size : 14px;
font-size: 14px;
}
@@ -140,9 +140,9 @@ $border-line-width:3px;
.layui-form-checked[lay-skin="primary"] i {
background-color: unset;
color : #212529;
font-weight : bold;
font-size : 28px;
color: #212529;
font-weight: bold;
font-size: 28px;
}
.layui-btn {
@@ -179,7 +179,7 @@ $border-line-width:3px;
.layui-table td,
.layui-table th {
font-size : 16px;
font-size: 16px;
border-width: 0 2px 2px 0;
border-style: solid;
border-color: #212529
@@ -193,11 +193,11 @@ $border-line-width:3px;
.layui-form-label {
background-color: unset;
border : unset;
text-align : right;
color : #212529;
font-size : 16px;
font-weight : bold;
border: unset;
text-align: right;
color: #212529;
font-size: 16px;
font-weight: bold;
}
.layuimini-form>.layui-form-item>.layui-input-block tip,
@@ -207,8 +207,9 @@ $border-line-width:3px;
.layui-layer-easy .layui-layer-title {
background: unset !important;
color : #212529 !important;
font-size : 16px;
color: #212529 !important;
font-size: 16px;
border-bottom: 1px solid #f0f0f0;
}
.layui-layer-easy .layui-layer-btn {
@@ -220,7 +221,7 @@ $border-line-width:3px;
color: #212529 !important;
&.layui-layer-btn0 {
color : #fff !important;
color: #fff !important;
background-color: #209cee;
&::after {
@@ -238,11 +239,25 @@ $border-line-width:3px;
font-size: 16px;
}
.layui-layer-easy .layui-layer-setwin>a:after {
.layui-layer-easy .layui-layer-setwin>span {
color: #212529;
}
.layui-layer-easy .layui-layer-setwin>span:after {
color: #212529;
}
.layui-layer-easy .layui-layer-setwin .layui-layer-max::after,
.layui-layer-easy .layui-layer-setwin .layui-layer-max::before {
border-color: #212529;
}
.layui-layer-easy .layui-layer-setwin .layui-layer-min::before {
background-color: #212529;
}
.layui-layer {
@extend .public-border;
@@ -264,7 +279,7 @@ $border-line-width:3px;
.layui-table-box {
@extend .public-border;
border-image-outset: 1;
margin-top : 5px;
margin-top: 5px;
}
.layuimini-container .layui-table-box .layui-table-header th {
@@ -291,18 +306,18 @@ $border-line-width:3px;
.layui-badge,
.layui-badge-rim {
position : relative;
position: relative;
border-radius: 0;
&::after {
content : '';
position : absolute;
left : 0;
width : 100%;
height : 100%;
top : 0;
content: '';
position: absolute;
left: 0;
width: 100%;
height: 100%;
top: 0;
pointer-events: none;
box-shadow : 0 4px #209cee, 0 -4px #209cee, 4px 0 #209cee, -4px 0 #209cee;
box-shadow: 0 4px #209cee, 0 -4px #209cee, 4px 0 #209cee, -4px 0 #209cee;
}
&.layui-bg-blue {