特性: 删除所有公共样式导入, 使用 css3 变量完全代替 less 变量

This commit is contained in:
就眠儀式 2022-04-25 23:03:29 +08:00
parent 57b52152bc
commit 921bb3cc26
61 changed files with 276 additions and 493 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@layui/layui-vue", "name": "@layui/layui-vue",
"version": "1.0.5-dev.5", "version": "1.0.5-dev.8",
"author": "就眠儀式", "author": "就眠儀式",
"license": "MIT", "license": "MIT",
"description": "a component library for Vue 3 base on layui-vue", "description": "a component library for Vue 3 base on layui-vue",

View File

@ -89,7 +89,6 @@ export default (): UserConfigExport => {
} }
}, },
chunkFileNames: ({ name }) => { chunkFileNames: ({ name }) => {
console.log(name);
return name === "index" ? "index.js" : "[name]/index.js"; return name === "index" ? "index.js" : "[name]/index.js";
}, },
entryFileNames: ({ name }) => { entryFileNames: ({ name }) => {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-avatar { .layui-avatar {
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
@ -22,7 +19,7 @@
width: 32px; width: 32px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
} }
.layui-avatar.layui-avatar-radius { .layui-avatar.layui-avatar-radius {

View File

@ -1,2 +0,0 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";

View File

@ -1,7 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
/** backtop **/
@width: 50px; @width: 50px;
@height: @width; @height: @width;
@ -18,7 +14,7 @@
font-size: 40px; font-size: 40px;
background-color: #9f9f9f; background-color: #9f9f9f;
color: #ffffff; color: #ffffff;
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
opacity: 0.95; opacity: 0.95;
z-index: 999999; z-index: 999999;
:hover { :hover {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-badge, .layui-badge,
.layui-badge-dot, .layui-badge-dot,
.layui-badge-rim { .layui-badge-rim {
@ -11,7 +8,7 @@
text-align: center; text-align: center;
background-color: #ff5722; background-color: #ff5722;
color: #fff; color: #fff;
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
} }
.layui-badge { .layui-badge {
@ -32,7 +29,7 @@
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
background-color: #fff; background-color: #fff;
border-color: @global-neutral-color-3; border-color: var(--global-neutral-color-3);
color: #666; color: #666;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-body { .layui-body {
display: block; display: block;
flex: 1; flex: 1;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-breadcrumb { .layui-breadcrumb {
font-size: 0; font-size: 0;
} }
@ -14,7 +11,7 @@
} }
.layui-breadcrumb a:hover { .layui-breadcrumb a:hover {
color: @global-checked-color !important; color: var(--global-checked-color) !important;
} }
.layui-breadcrumb a:nth-last-child(2) { .layui-breadcrumb a:nth-last-child(2) {
@ -28,5 +25,5 @@
.layui-breadcrumb span[lay-separator] { .layui-breadcrumb span[lay-separator] {
margin: 0 10px; margin: 0 10px;
color: @global-neutral-color-7; color: var(--global-neutral-color-7);
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
:root { :root {
--button-primary-text-color: #fff; --button-primary-text-color: #fff;
--button-primary-background-color: var(--global-primary-color); --button-primary-background-color: var(--global-primary-color);

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-btn-container { .layui-btn-container {
font-size: 0; font-size: 0;
} }

View File

@ -1,8 +1,7 @@
@import (reference) "../../theme/variable.less"; :root {
@import (reference) "../../theme/public.less"; --button-primary-color: var(--global-primary-color);
--button-border-radius: var(--global-border-radius);
@button-primary-color: @global-primary-color; }
@button-border-radius: @global-border-radius;
.layui-btn-group { .layui-btn-group {
vertical-align: middle; vertical-align: middle;
@ -20,11 +19,11 @@
} }
.layui-btn-group .layui-btn:first-child { .layui-btn-group .layui-btn:first-child {
border-radius: @button-border-radius 0 0 @button-border-radius; border-radius: var(--button-border-radius) 0 0 var(--button-border-radius);
} }
.layui-btn-group .layui-btn:last-child { .layui-btn-group .layui-btn:last-child {
border-radius: 0 @button-border-radius @button-border-radius 0; border-radius: 0 var(--button-border-radius) var(--button-border-radius) 0;
} }
.layui-btn-group .layui-btn + .layui-btn { .layui-btn-group .layui-btn + .layui-btn {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
:root { :root {
--card-border-radius: var(--global-border-radius); --card-border-radius: var(--global-border-radius);
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-carousel { .layui-carousel {
position: relative; position: relative;
left: 0; left: 0;
@ -24,7 +21,7 @@
line-height: 20px; line-height: 20px;
margin: -10px 0 0 -50px; margin: -10px 0 0 -50px;
text-align: center; text-align: center;
color: @global-neutral-color-8; color: var(--global-neutral-color-8);
font-family: layui-icon !important; font-family: layui-icon !important;
font-size: 30px; font-size: 30px;
font-style: normal; font-style: normal;
@ -139,7 +136,7 @@
height: 10px; height: 10px;
margin: 0 3px; margin: 0 3px;
font-size: 14px; font-size: 14px;
background-color: @global-neutral-color-3; background-color: var(--global-neutral-color-3);
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.5);
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-form-checkbox { .layui-form-checkbox {
position: relative; position: relative;
height: 30px; height: 30px;
@ -19,13 +16,13 @@
height: 100%; height: 100%;
font-size: 14px; font-size: 14px;
border-radius: 2px 0 0 2px; border-radius: 2px 0 0 2px;
background-color: @global-neutral-color-6; background-color: var(--global-neutral-color-6);
color: #fff; color: #fff;
overflow: hidden; overflow: hidden;
} }
.layui-form-checkbox:hover span { .layui-form-checkbox:hover span {
background-color: @global-neutral-color-8; background-color: var(--global-neutral-color-8);
} }
.layui-form-checkbox i { .layui-form-checkbox i {
@ -34,7 +31,7 @@
width: 29px; width: 29px;
height: 28px; height: 28px;
position: absolute; position: absolute;
border: 1px solid @global-neutral-color-6; border: 1px solid var(--global-neutral-color-6);
border-radius: 0 2px 2px 0; border-radius: 0 2px 2px 0;
color: #fff; color: #fff;
font-size: 20px; font-size: 20px;
@ -42,8 +39,8 @@
} }
.layui-form-checkbox:hover i { .layui-form-checkbox:hover i {
border-color: @global-neutral-color-8; border-color: var(--global-neutral-color-8);
color: @global-neutral-color-8; color: var(--global-neutral-color-8);
} }
.layui-form-checkbox[lay-skin="primary"] { .layui-form-checkbox[lay-skin="primary"] {
@ -72,7 +69,7 @@
width: 16px; width: 16px;
height: 16px; height: 16px;
line-height: 16px; line-height: 16px;
border: 1px solid @global-neutral-color-6; border: 1px solid var(--global-neutral-color-6);
font-size: 12px; font-size: 12px;
border-radius: 2px; border-radius: 2px;
background-color: #fff; background-color: #fff;
@ -81,28 +78,28 @@
} }
.layui-form-checkbox[lay-skin="primary"]:hover i { .layui-form-checkbox[lay-skin="primary"]:hover i {
border-color: @global-checked-color; border-color: var(--global-checked-color);
color: #fff; color: #fff;
} }
.layui-form-checked, .layui-form-checked,
.layui-form-checked:hover { .layui-form-checked:hover {
border-color: @global-checked-color; border-color: var(--global-checked-color);
} }
.layui-form-checked i, .layui-form-checked i,
.layui-form-checked:hover i { .layui-form-checked:hover i {
color: @global-checked-color; color: var(--global-checked-color);
} }
.layui-form-checked span, .layui-form-checked span,
.layui-form-checked:hover span { .layui-form-checked:hover span {
background-color: @global-checked-color; background-color: var(--global-checked-color);
} }
.layui-form-checked[lay-skin="primary"] i { .layui-form-checked[lay-skin="primary"] i {
border-color: @global-checked-color !important; border-color: var(--global-checked-color) !important;
background-color: @global-checked-color; background-color: var(--global-checked-color);
color: #fff; color: #fff;
} }
@ -112,24 +109,24 @@
.layui-checkbox-disabled[lay-skin="primary"] span { .layui-checkbox-disabled[lay-skin="primary"] span {
background: 0 0 !important; background: 0 0 !important;
color: @global-neutral-color-8 !important; color: var(--global-neutral-color-8) !important;
} }
.layui-checkbox-disabled[lay-skin="primary"]:hover i { .layui-checkbox-disabled[lay-skin="primary"]:hover i {
border-color: @global-neutral-color-6; border-color: var(--global-neutral-color-6);
} }
.layui-checkbox-disabled, .layui-checkbox-disabled,
.layui-checkbox-disabled i { .layui-checkbox-disabled i {
border-color: @global-neutral-color-3 !important; border-color: var(--global-neutral-color-3) !important;
} }
.layui-checkbox-disabled span { .layui-checkbox-disabled span {
background-color: @global-neutral-color-3 !important; background-color: var(--global-neutral-color-3) !important;
} }
.layui-checkbox-disabled em { .layui-checkbox-disabled em {
color: @global-neutral-color-6 !important; color: var(--global-neutral-color-6) !important;
} }
.layui-checkbox-disabled:hover i { .layui-checkbox-disabled:hover i {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-collapse { .layui-collapse {
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
@ -23,7 +20,7 @@
line-height: 42px; line-height: 42px;
padding: 0 15px 0 35px; padding: 0 15px 0 35px;
color: #333; color: #333;
background-color: @global-neutral-color-1; background-color: var(--global-neutral-color-1);
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;
overflow: hidden; overflow: hidden;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-color-picker { .layui-color-picker {
position: relative; position: relative;
user-select: none; user-select: none;
@ -109,7 +106,7 @@
width: 26px; width: 26px;
height: 26px; height: 26px;
display: block; display: block;
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAWElEQVRIiWM8fubkfwYygKWJOSM5+mCAhRLNoxaPWjxq8ajFoxbTyeL/DAfJ0Xjs3Cl7Siwmu4Yht1aDgZEYx6MWj1o8avGoxaMWD3qLya5X//4nqx6HAQC7RBGFzolqTAAAAABJRU5ErkJggg=="); background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAWElEQVRIiWM8fubkfwYygKWJOSM5+mCAhRLNoxaPWjxq8ajFoxbTyeL/DAfJ0Xjs3Cl7Siwmu4Yht1aDgZEYx6MWj1o8avGoxaMWD3qLya5X//4nqx6HAQC7RBGFzolqTAAAAABJRU5ErkJggg==");
background-size: 10px 10px; background-size: 10px 10px;
} }
@ -180,9 +177,9 @@
} }
.layui-colorpicker { .layui-colorpicker {
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
padding: 5px; padding: 5px;
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
line-height: 24px; line-height: 24px;
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
@ -191,7 +188,7 @@
} }
.layui-colorpicker:hover { .layui-colorpicker:hover {
border-color: @global-neutral-color-6; border-color: var(--global-neutral-color-6);
} }
.layui-colorpicker.layui-colorpicker-lg { .layui-colorpicker.layui-colorpicker-lg {
@ -223,7 +220,7 @@
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
border: 1px solid rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
text-align: center; text-align: center;
} }
@ -246,7 +243,7 @@
margin: 5px 0; margin: 5px 0;
padding: 7px; padding: 7px;
background: #fff; background: #fff;
border: 1px solid @global-neutral-color-6; border: 1px solid var(--global-neutral-color-6);
border-radius: 2px; border-radius: 2px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-container { .layui-container {
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@font-face { @font-face {
font-family: "laydate-icon"; font-family: "laydate-icon";
src: url("./font/iconfont.eot"); src: url("./font/iconfont.eot");

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-dropdown { .layui-dropdown {
position: relative; position: relative;
display: inline-block; display: inline-block;
@ -22,7 +19,7 @@
} }
.layui-dropdown dl > .layui-dropdown-menu { .layui-dropdown dl > .layui-dropdown-menu {
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
} }
.layui-dropdown-up > dl { .layui-dropdown-up > dl {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-empty { .layui-empty {
margin: 0 8px; margin: 0 8px;
font-size: 14px; font-size: 14px;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-exception { .layui-exception {
.layui-exception-image { .layui-exception-image {
width: 50%; width: 50%;

View File

@ -1,19 +1,13 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@field-border-color: var(--field-border-color);
@field-border-radius: var(--field-border-radius);
:root { :root {
--field-border-color: @global-neutral-color-3; --field-border-color: var(--global-neutral-color-3);
--field-border-radius: @global-border-radius; --field-border-radius: var(--global-border-radius);
} }
.layui-field { .layui-field {
margin-bottom: 10px; margin-bottom: 10px;
padding: 0; padding: 0;
border-width: 1px; border-width: 1px;
border-color: @field-border-color; border-color: var(--field-border-color);
border-style: solid; border-style: solid;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-footer { .layui-footer {
box-sizing: border-box; box-sizing: border-box;
} }

View File

@ -1,129 +1,125 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-form-item { .layui-form-item {
margin-bottom: 20px; margin-bottom: 20px;
clear: both; clear: both;
*zoom: 1; *zoom: 1;
} }
.layui-form-item:after {
content: "\20";
clear: both;
*zoom: 1;
display: block;
height: 0;
}
.layui-form-label {
float: left;
display: block;
padding: 9px 15px;
width: 80px;
font-weight: 400;
line-height: 20px;
text-align: right;
}
.layui-form-label-col {
display: block;
float: none;
padding: 9px 0;
line-height: 20px;
text-align: left;
}
.layui-form-item .layui-inline {
margin-bottom: 5px;
margin-right: 10px;
}
.layui-input-block {
margin-left: 110px;
min-height: 36px;
}
.layui-input-inline {
display: inline-block;
vertical-align: middle;
}
.layui-form-item .layui-input-inline {
float: left;
width: 190px;
margin-right: 10px;
}
.layui-form-text .layui-input-inline {
width: auto;
}
.layui-form-mid {
float: left;
display: block;
padding: 9px 0 !important;
line-height: 20px;
margin-right: 10px;
}
.layui-form-danger + .layui-form-select .layui-input,
.layui-form-danger:focus {
border-color: #ff5722 !important;
}
.layui-form-item .layui-form-checkbox {
margin-top: 4px;
}
.layui-form-item .layui-form-checkbox[lay-skin="primary"] {
margin-top: 10px;
}
.layui-required { .layui-form-item:after {
color: #ff5722; content: "\20";
font-size: 12px; clear: both;
line-height: 1; *zoom: 1;
} display: block;
height: 0;
.layui-form .layui-form-item { }
.layui-input-block,
.layui-input-inline { .layui-form-label {
.layui-form-danger { float: left;
&, display: block;
.layui-input { padding: 9px 15px;
border-color: #ff5722 !important; width: 80px;
} font-weight: 400;
line-height: 20px;
text-align: right;
}
.layui-form-label-col {
display: block;
float: none;
padding: 9px 0;
line-height: 20px;
text-align: left;
}
.layui-form-item .layui-inline {
margin-bottom: 5px;
margin-right: 10px;
}
.layui-input-block {
margin-left: 110px;
min-height: 36px;
}
.layui-input-inline {
display: inline-block;
vertical-align: middle;
}
.layui-form-item .layui-input-inline {
float: left;
width: 190px;
margin-right: 10px;
}
.layui-form-text .layui-input-inline {
width: auto;
}
.layui-form-mid {
float: left;
display: block;
padding: 9px 0 !important;
line-height: 20px;
margin-right: 10px;
}
.layui-form-danger + .layui-form-select .layui-input,
.layui-form-danger:focus {
border-color: #ff5722 !important;
}
.layui-form-item .layui-form-checkbox {
margin-top: 4px;
}
.layui-form-item .layui-form-checkbox[lay-skin="primary"] {
margin-top: 10px;
}
.layui-required {
color: #ff5722;
font-size: 12px;
line-height: 1;
}
.layui-form .layui-form-item {
.layui-input-block,
.layui-input-inline {
.layui-form-danger {
&,
.layui-input {
border-color: #ff5722 !important;
} }
} }
} }
}
.layui-error-message {
color: #ff5722; .layui-error-message {
font-size: 12px; color: #ff5722;
line-height: 1; font-size: 12px;
padding-top: 5px; line-height: 1;
position: absolute; padding-top: 5px;
top: 100%; position: absolute;
left: 0; top: 100%;
left: 0;
}
.layui-error-message-anim {
-ms-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-animation: layui-top-show-anim 0.3s ease 1;
animation: layui-top-show-anim 0.3s ease 1;
}
@keyframes layui-top-show-anim {
0% {
opacity: 0.3;
transform: rotateX(45deg);
} }
.layui-error-message-anim { 100% {
-ms-transform-origin: 0 0; opacity: 1;
-webkit-transform-origin: 0 0; transform: rotateX(0);
transform-origin: 0 0;
-webkit-animation: layui-top-show-anim 0.3s ease 1;
animation: layui-top-show-anim 0.3s ease 1;
} }
}
@keyframes layui-top-show-anim {
0% {
opacity: 0.3;
transform: rotateX(45deg);
}
100% {
opacity: 1;
transform: rotateX(0);
}
}

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-fullscreen { .layui-fullscreen {
position: fixed; position: fixed;
top: 0; top: 0;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-header { .layui-header {
box-sizing: border-box; box-sizing: border-box;
height: 60px; height: 60px;

View File

@ -1,2 +0,0 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";

View File

@ -1,12 +1,6 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@icon-picker-border-radius: var(--icon-picker-border-radius);
@icon-picker-checked-color: var(--icon-picker-checked-color);
:root { :root {
--icon-picker-border-radius: @global-border-radius; --icon-picker-border-radius: var(--global-border-radius);
--icon-picker-checked-color: @global-checked-color; --icon-picker-checked-color: var(--global-checked-color);
} }
.layui-iconpicker { .layui-iconpicker {
@ -15,7 +9,7 @@
line-height: 38px; line-height: 38px;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
border-radius: @icon-picker-border-radius; border-radius: var(--icon-picker-border-radius);
cursor: pointer; cursor: pointer;
} }
@ -95,13 +89,13 @@
} }
.layui-iconpicker-list li:hover { .layui-iconpicker-list li:hover {
background-color: @global-neutral-color-1; background-color: var(--global-neutral-color-1);
color: rgba(0, 0, 0, 0.5); color: rgba(0, 0, 0, 0.5);
} }
.layui-iconpicker-list li.layui-this { .layui-iconpicker-list li.layui-this {
border-color: @icon-picker-checked-color; border-color: var(--icon-picker-checked-color);
color: @icon-picker-checked-color; color: var(--icon-picker-checked-color);
} }
.layui-iconpicker-list li .layui-icon { .layui-iconpicker-list li .layui-icon {

View File

@ -1,12 +1,6 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@input-border-radius: var(--input-border-radius);
@input-border-color: var(--input-border-color);
:root { :root {
--input-border-radius: @global-border-radius; --input-border-radius: var(--global-border-radius);
--input-border-color: @global-neutral-color-3; --input-border-color: var(--global-neutral-color-3);
} }
.layui-input { .layui-input {
@ -27,8 +21,8 @@
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
display: inline-flex; display: inline-flex;
border-color: @input-border-color; border-color: var(--input-border-color);
border-radius: @input-border-radius; border-radius: var(--input-border-radius);
} }
.layui-input-prefix { .layui-input-prefix {

View File

@ -1,8 +1,5 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@border-color: #eee; @border-color: #eee;
@hover-border-color: @global-primary-color; @hover-border-color: var(--global-primary-color);
@lg: 40px; @lg: 40px;
@lg-wdith: 200px; @lg-wdith: 200px;
@lg-right: 20px; @lg-right: 20px;
@ -51,7 +48,7 @@
box-sizing: border-box; box-sizing: border-box;
border: 1px solid @border-color; border: 1px solid @border-color;
border-color: @border-color; border-color: @border-color;
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
overflow: hidden; overflow: hidden;
.set-size(@lg-wdith, @lg, @lg-right); .set-size(@lg-wdith, @lg, @lg-right);
margin-left: 5px; margin-left: 5px;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-layout { .layui-layout {
flex: 1; flex: 1;
display: flex; display: flex;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-line { .layui-line {
&-horizontal { &-horizontal {
position: relative; position: relative;
@ -9,7 +6,7 @@
min-width: 100%; min-width: 100%;
max-width: 100%; max-width: 100%;
margin: 10px 0; margin: 10px 0;
border-bottom: var(--layui-line-border-width) var(--layui-line-border-style) @global-neutral-color-5; border-bottom: var(--layui-line-border-width) var(--layui-line-border-style) var(--global-neutral-color-5);
border-top-style: none; border-top-style: none;
border-left-style: none; border-left-style: none;
border-right-style: none; border-right-style: none;
@ -26,7 +23,7 @@
height: 1em; height: 1em;
margin: 0 8px; margin: 0 8px;
vertical-align: middle; vertical-align: middle;
border-left: var(--layui-line-border-width) var(--layui-line-border-style) @global-neutral-color-5; border-left: var(--layui-line-border-width) var(--layui-line-border-style) var(--global-neutral-color-5);
border-top-style: none; border-top-style: none;
border-bottom-style: none; border-bottom-style: none;
border-right-style: none; border-right-style: none;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-logo { .layui-logo {
left: 0; left: 0;
top: 0; top: 0;
@ -8,6 +5,6 @@
height: 60px; height: 60px;
line-height: 60px; line-height: 60px;
text-align: center; text-align: center;
color: @global-primary-color; color: var(--global-primary-color);
font-size: 16px; font-size: 16px;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-nav .layui-show.layui-anim-upbit .layui-show.layui-anim-upbit { .layui-nav .layui-show.layui-anim-upbit .layui-show.layui-anim-upbit {
top: 0px; top: 0px;
left: calc(100% + 5px); left: calc(100% + 5px);
@ -62,7 +59,7 @@
top: 0; top: 0;
width: 0; width: 0;
height: 3px; height: 3px;
background-color: @global-checked-color; background-color: var(--global-checked-color);
transition: all 0.2s; transition: all 0.2s;
-webkit-transition: all 0.2s; -webkit-transition: all 0.2s;
pointer-events: none; pointer-events: none;
@ -211,13 +208,13 @@
.layui-nav-tree .layui-nav-bar { .layui-nav-tree .layui-nav-bar {
width: 5px; width: 5px;
height: 0; height: 0;
background-color: @global-primary-color; background-color: var(--global-primary-color);
} }
.layui-nav-tree .layui-this, .layui-nav-tree .layui-this,
.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this,
.layui-nav-tree .layui-this > a:hover { .layui-nav-tree .layui-this > a:hover {
background-color: @global-primary-color; background-color: var(--global-primary-color);
color: #fff; color: #fff;
} }
@ -293,14 +290,14 @@
.layui-nav-tree.inverted .layui-this, .layui-nav-tree.inverted .layui-this,
.layui-nav-tree.inverted .layui-this:hover { .layui-nav-tree.inverted .layui-this:hover {
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
margin: 0px 6px; margin: 0px 6px;
width: auto; width: auto;
} }
.layui-nav-tree.inverted .layui-this > a, .layui-nav-tree.inverted .layui-this > a,
.layui-nav-tree.inverted .layui-this:hover > a { .layui-nav-tree.inverted .layui-this:hover > a {
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
} }
.layui-nav-tree.inverted .layui-this > a { .layui-nav-tree.inverted .layui-this > a {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-laypage { .layui-laypage {
display: inline-block; display: inline-block;
*display: inline; *display: inline;
@ -33,7 +30,7 @@
.layui-laypage input, .layui-laypage input,
.layui-laypage select, .layui-laypage select,
.layui-laypage span { .layui-laypage span {
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
} }
.layui-laypage a, .layui-laypage a,
@ -52,7 +49,7 @@
} }
.layui-laypage a:hover { .layui-laypage a:hover {
color: @global-primary-color; color: var(--global-primary-color);
} }
.layui-laypage em { .layui-laypage em {
@ -84,7 +81,7 @@
padding: 1px; padding: 1px;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: @global-primary-color; background-color: var(--global-primary-color);
} }
.layui-laypage-em { .layui-laypage-em {
@ -154,7 +151,7 @@
.layui-laypage input:focus, .layui-laypage input:focus,
.layui-laypage select:focus { .layui-laypage select:focus {
border-color: @global-primary-color !important; border-color: var(--global-primary-color) !important;
} }
.layui-laypage button { .layui-laypage button {

View File

@ -1,19 +1,13 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@panel-border-color: var(--panel-border-color);
@panel-border-radius: var(--panel-border-radius);
:root { :root {
--panel-border-color: @global-neutral-color-3; --panel-border-color: var(--global-neutral-color-3);
--panel-border-radius: @global-border-radius; --panel-border-radius: var(--global-border-radius);
} }
.layui-panel { .layui-panel {
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
border-radius: @panel-border-radius; border-radius: var(--panel-border-radius);
border-color: @panel-border-color; border-color: var(--panel-border-color);
background-color: #fff; background-color: #fff;
} }

View File

@ -1,5 +1,3 @@
@import (reference) "../../theme/variable.less";
// 主题颜色 // 主题颜色
// 浅色 --> 默认使用 // 浅色 --> 默认使用
@ligh-background: #FFF; @ligh-background: #FFF;

View File

@ -1,11 +1,8 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-progress { .layui-progress {
position: relative; position: relative;
height: 6px; height: 6px;
border-radius: 20px; border-radius: 20px;
background-color: @global-neutral-color-3; background-color: var(--global-neutral-color-3);
} }
.layui-progress-bar { .layui-progress-bar {
@ -17,7 +14,7 @@
height: 6px; height: 6px;
border-radius: 20px; border-radius: 20px;
text-align: right; text-align: right;
background-color: @global-checked-color; background-color: var(--global-checked-color);
transition: all 0.3s; transition: all 0.3s;
-webkit-transition: all 0.3s; -webkit-transition: all 0.3s;
} }

View File

@ -1,21 +1,15 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@block-default-color: var(--block-default-color);
@block-border-radius: var(--block-border-radius);
:root { :root {
--block-default-color: @global-checked-color; --block-default-color: var(--global-checked-color);
--block-border-radius: @global-border-radius; --block-border-radius: var(--global-border-radius);
} }
.layui-quote { .layui-quote {
padding: 15px; padding: 15px;
line-height: 1.6; line-height: 1.6;
margin-bottom: 10px; margin-bottom: 10px;
border-left: 5px solid @block-default-color; border-left: 5px solid var(--block-default-color);
border-radius: @block-border-radius; border-radius: var(--block-border-radius);
background-color: @global-neutral-color-1; background-color: var(--global-neutral-color-1);
} }
.layui-quote-nm { .layui-quote-nm {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-form-radio, .layui-form-radio,
.layui-form-radio * { .layui-form-radio * {
display: inline-block; display: inline-block;
@ -22,19 +19,19 @@
.layui-form-radio > i { .layui-form-radio > i {
margin-right: 8px; margin-right: 8px;
font-size: 22px; font-size: 22px;
color: @global-neutral-color-8; color: var(--global-neutral-color-8);
} }
.layui-form-radio:hover *, .layui-form-radio:hover *,
.layui-form-radioed, .layui-form-radioed,
.layui-form-radioed > i { .layui-form-radioed > i {
color: @global-checked-color; color: var(--global-checked-color);
} }
.layui-radio-disabled > i { .layui-radio-disabled > i {
color: @global-neutral-color-3 !important; color: var(--global-neutral-color-3) !important;
} }
.layui-radio-disabled * { .layui-radio-disabled * {
color: @global-neutral-color-8 !important; color: var(--global-neutral-color-8) !important;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-rate, .layui-rate,
.layui-rate * { .layui-rate * {
display: inline-block; display: inline-block;

View File

@ -1,28 +1,30 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.result { .result {
text-align: center; text-align: center;
} }
.result .success svg { .result .success svg {
color: #32c682; color: #32c682;
text-align: center; text-align: center;
margin-top: 40px; margin-top: 40px;
} }
.result .failure svg { .result .failure svg {
color: #f56c6c; color: #f56c6c;
text-align: center; text-align: center;
margin-top: 40px; margin-top: 40px;
} }
.result .title { .result .title {
margin-top: 25px; margin-top: 25px;
} }
.result .desc { .result .desc {
margin-top: 25px; margin-top: 25px;
width: 60%; width: 60%;
margin-left: 20%; margin-left: 20%;
color: rgba(0, 0, 0, 0.45); color: rgba(0, 0, 0, 0.45);
} }
.result .content { .result .content {
margin-top: 20px; margin-top: 20px;
width: 80%; width: 80%;
@ -30,8 +32,9 @@
background-color: white; background-color: white;
margin-left: 10%; margin-left: 10%;
} }
.result .extra { .result .extra {
padding-top: 10px; padding-top: 10px;
border-top: 1px whitesmoke solid; border-top: 1px whitesmoke solid;
margin-top: 25px; margin-top: 25px;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-water-ripples-container { .layui-water-ripples-container {
position: relative; position: relative;
display: inline-block; display: inline-block;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-row:after, .layui-row:after,
.layui-row:before { .layui-row:before {
content: ""; content: "";

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.scrollbar-box { .scrollbar-box {
height: 100%; height: 100%;
overflow: hidden !important; overflow: hidden !important;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
dl.layui-anim-upbit > dd input[type="checkbox"] { dl.layui-anim-upbit > dd input[type="checkbox"] {
display: none; display: none;
} }
@ -80,7 +77,7 @@ dl.layui-anim-upbit > dd .layui-form-checkbox,
margin-top: -3px; margin-top: -3px;
cursor: pointer; cursor: pointer;
border-width: 6px; border-width: 6px;
border-top-color: @global-neutral-color-8; border-top-color: var(--global-neutral-color-8);
border-top-style: solid; border-top-style: solid;
transition: all 0.3s; transition: all 0.3s;
-webkit-transition: all 0.3s; -webkit-transition: all 0.3s;
@ -94,11 +91,11 @@ dl.layui-anim-upbit > dd .layui-form-checkbox,
padding: 5px 0; padding: 5px 0;
z-index: 899; z-index: 899;
min-width: 100%; min-width: 100%;
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
max-height: 300px; max-height: 300px;
overflow-y: auto; overflow-y: auto;
background-color: #fff; background-color: #fff;
border-radius: @global-border-radius; border-radius: var(--global-border-radius);
box-sizing: border-box; box-sizing: border-box;
box-shadow: 1px 1px 4px rgb(0 0 0 / 8%); box-shadow: 1px 1px 4px rgb(0 0 0 / 8%);
} }
@ -122,7 +119,7 @@ dl.layui-anim-upbit > dd .layui-form-checkbox,
} }
.layui-form-select dl dd:hover { .layui-form-select dl dd:hover {
background-color: @global-neutral-color-2; background-color: var(--global-neutral-color-2);
-webkit-transition: 0.5s all; -webkit-transition: 0.5s all;
transition: 0.5s all; transition: 0.5s all;
} }
@ -137,8 +134,8 @@ dl.layui-anim-upbit > dd .layui-form-checkbox,
} }
.layui-form-select dl dd.layui-this { .layui-form-select dl dd.layui-this {
background-color: @global-neutral-color-2; background-color: var(--global-neutral-color-2);
color: @global-checked-color; color: var(--global-checked-color);
font-weight: 700; font-weight: 700;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-side { .layui-side {
overflow: auto; overflow: auto;
overflow-x: hidden; overflow-x: hidden;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.lay-skeleton { .lay-skeleton {
.lay-skeleton-item { .lay-skeleton-item {
height: 16px; height: 16px;

View File

@ -1,7 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
// 横向样式
.layui-slider-v { .layui-slider-v {
width: 100%; width: 100%;
height: 18px; height: 18px;
@ -19,9 +15,9 @@
.layui-slider-btn-v { .layui-slider-btn-v {
width: 12px; width: 12px;
height: 12px; height: 12px;
background-color: @global-back-color; background-color: var(--global-back-color);
position: absolute; position: absolute;
border: 2px solid @global-primary-color; border: 2px solid var(--global-primary-color);
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
left: 0%; left: 0%;
@ -34,7 +30,7 @@
position: absolute; position: absolute;
top: 6px; top: 6px;
left: 0; left: 0;
background-color: @global-primary-color; background-color: var(--global-primary-color);
z-index: 1; z-index: 1;
} }
@ -57,7 +53,7 @@
} }
.layui-slider-disabled-rate { .layui-slider-disabled-rate {
background-color: @global-primary-color !important; background-color: var(--global-primary-color) !important;
} }
// 纵向样式 // 纵向样式
@ -75,9 +71,9 @@
.layui-slider-vertical-btn { .layui-slider-vertical-btn {
width: 12px; width: 12px;
height: 12px; height: 12px;
background-color: @global-back-color; background-color: var(--global-back-color);
position: absolute; position: absolute;
border: 2px solid @global-primary-color; border: 2px solid var(--global-primary-color);
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
bottom: 0%; bottom: 0%;
@ -91,7 +87,7 @@
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 7px; left: 7px;
background-color: @global-primary-color; background-color: var(--global-primary-color);
z-index: 1; z-index: 1;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.lay-split-panel { .lay-split-panel {
height: 100%; height: 100%;
display: flex; display: flex;
@ -19,7 +16,7 @@
height: 100%; height: 100%;
width: 3px; width: 3px;
border: 1px #eeeeee solid; border: 1px #eeeeee solid;
background-color: @global-neutral-color-1; background-color: var(--global-neutral-color-1);
border-left: none; border-left: none;
border-right: none; border-right: none;
cursor: col-resize; cursor: col-resize;
@ -51,7 +48,7 @@
height: 3px; height: 3px;
cursor: row-resize; cursor: row-resize;
border: 1px #eeeeee solid; border: 1px #eeeeee solid;
background-color: @global-neutral-color-1; background-color: var(--global-neutral-color-1);
border-top: none; border-top: none;
border-bottom: none; border-bottom: none;
&:before { &:before {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@width-height-pace: 24px; @width-height-pace: 24px;
@step-color: @step-success-color; @step-color: @step-success-color;
@step-fail-color: #ff5722; @step-fail-color: #ff5722;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-form-switch { .layui-form-switch {
position: relative; position: relative;
height: 22px; height: 22px;
@ -9,7 +6,7 @@
padding: 0 4px; padding: 0 4px;
border-radius: 20px; border-radius: 20px;
cursor: pointer; cursor: pointer;
background-color: @global-neutral-color-6; background-color: var(--global-neutral-color-6);
-webkit-transition: 0.1s linear; -webkit-transition: 0.1s linear;
transition: 0.1s linear; transition: 0.1s linear;
} }
@ -44,8 +41,8 @@
} }
.layui-form-onswitch { .layui-form-onswitch {
border-color: @global-checked-color; border-color: var(--global-checked-color);
background-color: @global-checked-color; background-color: var(--global-checked-color);
} }
.layui-form-onswitch span { .layui-form-onswitch span {
@ -62,24 +59,24 @@
.layui-switch-disabled[lay-skin="primary"] span { .layui-switch-disabled[lay-skin="primary"] span {
background: 0 0 !important; background: 0 0 !important;
color: @global-neutral-color-8 !important; color: var(--global-neutral-color-8) !important;
} }
.layui-switch-disabled[lay-skin="primary"]:hover i { .layui-switch-disabled[lay-skin="primary"]:hover i {
border-color: @global-neutral-color-6; border-color: var(--global-neutral-color-6);
} }
.layui-switch-disabled, .layui-switch-disabled,
.layui-switch-disabled i { .layui-switch-disabled i {
border-color: @global-neutral-color-3 !important; border-color: var(--global-neutral-color-3) !important;
} }
.layui-switch-disabled span { .layui-switch-disabled span {
background-color: @global-neutral-color-3 !important; background-color: var(--global-neutral-color-3) !important;
} }
.layui-switch-disabled em { .layui-switch-disabled em {
color: @global-neutral-color-6 !important; color: var(--global-neutral-color-6) !important;
} }
.layui-switch-disabled:hover i { .layui-switch-disabled:hover i {

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-tab { .layui-tab {
margin: 10px 0; margin: 10px 0;
text-align: left !important; text-align: left !important;
@ -26,7 +23,7 @@
} }
.layui-tab-card .layui-tab-head { .layui-tab-card .layui-tab-head {
background-color: @global-neutral-color-1; background-color: var(--global-neutral-color-1);
} }
.layui-tab-title { .layui-tab-title {
@ -89,11 +86,11 @@
.layui-tab-title.is-right { .layui-tab-title.is-right {
border-left: 1px solid @global-neutral-color-3; border-left: 1px solid var(--global-neutral-color-3);
} }
.layui-tab-title.is-left { .layui-tab-title.is-left {
border-right: 1px solid @global-neutral-color-3; border-right: 1px solid var(--global-neutral-color-3);
} }
.layui-tab-title.is-right .layui-this { .layui-tab-title.is-right .layui-this {
@ -125,12 +122,12 @@
} }
.layui-tab-title.is-left .layui-this:after { .layui-tab-title.is-left .layui-this:after {
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
border-right-color: #FFF; border-right-color: #FFF;
} }
.layui-tab-title.is-right .layui-this:after { .layui-tab-title.is-right .layui-this:after {
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
border-left-color: #FFF; border-left-color: #FFF;
} }
@ -139,21 +136,21 @@
} }
.layui-tab-brief>.layui-tab-head>.layui-tab-title .layui-this { .layui-tab-brief>.layui-tab-head>.layui-tab-title .layui-this {
color: @global-primary-color; color: var(--global-primary-color);
} }
.layui-tab-brief>.layui-tab-head>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-head>.layui-tab-more li.layui-this:after,
.layui-tab-brief>.layui-tab-head>.layui-tab-title .layui-this:after { .layui-tab-brief>.layui-tab-head>.layui-tab-title .layui-this:after {
border: none; border: none;
border-radius: 0; border-radius: 0;
border-bottom: 2px solid @global-checked-color; border-bottom: 2px solid var(--global-checked-color);
} }
.layui-tab-brief>.layui-tab-head.is-right>.layui-tab-title{ .layui-tab-brief>.layui-tab-head.is-right>.layui-tab-title{
border-left: 1px solid @global-neutral-color-3; border-left: 1px solid var(--global-neutral-color-3);
} }
.layui-tab-brief>.layui-tab-head.is-left>.layui-tab-title { .layui-tab-brief>.layui-tab-head.is-left>.layui-tab-title {
border-right: 1px solid @global-neutral-color-3; border-right: 1px solid var(--global-neutral-color-3);
} }
.layui-tab-brief[overflow]>.layui-tab-head>.layui-tab-title .layui-this:after { .layui-tab-brief[overflow]>.layui-tab-head>.layui-tab-title .layui-this:after {
@ -164,7 +161,7 @@
.layui-tab-brief > .layui-tab-head.is-left > .layui-tab-title .layui-this:after { .layui-tab-brief > .layui-tab-head.is-left > .layui-tab-title .layui-this:after {
border: none; border: none;
border-radius: 0; border-radius: 0;
border-right: 2px solid @global-checked-color; border-right: 2px solid var(--global-checked-color);
margin-left: 1px; margin-left: 1px;
} }
@ -172,7 +169,7 @@
.layui-tab-brief > .layui-tab-head.is-right > .layui-tab-title .layui-this:after { .layui-tab-brief > .layui-tab-head.is-right > .layui-tab-title .layui-this:after {
border: none; border: none;
border-radius: 0; border-radius: 0;
border-left: 2px solid @global-checked-color; border-left: 2px solid var(--global-checked-color);
margin-right: 1px; margin-right: 1px;
} }
@ -195,22 +192,22 @@
} }
.layui-tab-card>.layui-tab-head>.layui-tab-title.is-top .layui-this:after { .layui-tab-card>.layui-tab-head>.layui-tab-title.is-top .layui-this:after {
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
border-bottom-color: #fff; border-bottom-color: #fff;
} }
.layui-tab-card>.layui-tab-head>.layui-tab-title.is-bottom .layui-this:after { .layui-tab-card>.layui-tab-head>.layui-tab-title.is-bottom .layui-this:after {
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
border-top-color: #fff; border-top-color: #fff;
} }
.layui-tab-card>.layui-tab-head>.layui-tab-title.is-left .layui-this:after { .layui-tab-card>.layui-tab-head>.layui-tab-title.is-left .layui-this:after {
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
border-right-color: #fff; border-right-color: #fff;
} }
.layui-tab-card>.layui-tab-head>.layui-tab-title.is-right .layui-this:after { .layui-tab-card>.layui-tab-head>.layui-tab-title.is-right .layui-this:after {
border: 1px solid @global-neutral-color-3; border: 1px solid var(--global-neutral-color-3);
border-left-color: #fff; border-left-color: #fff;
} }
@ -224,7 +221,7 @@
.layui-tab-card>.layui-tab-more .layui-this { .layui-tab-card>.layui-tab-more .layui-this {
background: 0 0; background: 0 0;
color: @global-checked-color; color: var(--global-checked-color);
} }
.layui-tab-card>.layui-tab-more .layui-this:after { .layui-tab-card>.layui-tab-more .layui-this:after {
@ -266,7 +263,7 @@
} }
.layui-tab-more li.layui-this:after { .layui-tab-more li.layui-this:after {
border-bottom-color: @global-neutral-color-3; border-bottom-color: var(--global-neutral-color-3);
border-radius: 2px; border-radius: 2px;
} }
@ -291,7 +288,7 @@
top: 1px; top: 1px;
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
color: @global-neutral-color-8; color: var(--global-neutral-color-8);
transition: all 0.2s; transition: all 0.2s;
-webkit-transition: all 0.2s; -webkit-transition: all 0.2s;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-table-col-special { .layui-table-col-special {
width: 34px; width: 34px;
} }
@ -31,7 +28,7 @@
.layui-table-total, .layui-table-total,
.layui-table-total tr, .layui-table-total tr,
.layui-table[lay-even] tr:nth-child(even) { .layui-table[lay-even] tr:nth-child(even) {
background-color: @global-neutral-color-1; background-color: var(--global-neutral-color-1);
} }
.layui-table td, .layui-table td,

View File

@ -1,12 +1,6 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@textarea-border-radius: var(--textarea-border-radius);
@textarea-border-color: var(--textarea-border-color);
:root { :root {
--textarea-border-radius: @global-border-radius; --textarea-border-radius: var(--global-border-radius);
--textarea-border-color: @global-neutral-color-3; --textarea-border-color: var(--global-neutral-color-3);
} }
.layui-textarea { .layui-textarea {
@ -14,8 +8,8 @@
border-style: solid; border-style: solid;
background-color: #fff; background-color: #fff;
color: rgba(0, 0, 0, 0.85); color: rgba(0, 0, 0, 0.85);
border-radius: @textarea-border-radius; border-radius: var(--textarea-border-radius);
border-color: @textarea-border-color; border-color: var(--textarea-border-color);
display: block; display: block;
width: 100%; width: 100%;
height: auto; height: auto;

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-timeline { .layui-timeline {
padding-left: 5px; padding-left: 5px;
} }
@ -19,7 +16,7 @@
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
background-color: #fff; background-color: #fff;
color: @global-checked-color; color: var(--global-checked-color);
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;

View File

@ -1,10 +1,5 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@transfer-box-border-radius: var(--transfer-box-border-radius);
:root { :root {
--transfer-box-border-radius: @global-border-radius; --transfer-box-border-radius: var(--global-border-radius);
} }
.layui-transfer .layui-btn + .layui-btn { .layui-transfer .layui-btn + .layui-btn {
@ -24,7 +19,7 @@
border-width: 1px; border-width: 1px;
width: 200px; width: 200px;
height: 360px; height: 360px;
border-radius: @transfer-box-border-radius; border-radius: var(--transfer-box-border-radius);
background-color: #fff; background-color: #fff;
} }

View File

@ -1,6 +1,3 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
.layui-tree { .layui-tree {
line-height: 22px; line-height: 22px;
} }

View File

@ -1,17 +1,13 @@
@import (reference) "../../theme/variable.less";
@import (reference) "../../theme/public.less";
@import "./cropper.min.css"; @import "./cropper.min.css";
.layui-upload-file { .layui-upload-file {
// display: none !important;
opacity: 0.01; opacity: 0.01;
position: relative; position: relative;
filter: Alpha(opacity=1); filter: Alpha(opacity=1);
cursor: pointer; cursor: pointer;
} }
.layui-upload-btn-box{ .layui-upload-btn-box {
position:relative; position: relative;
overflow: hidden; overflow: hidden;
} }
.layui-upload-drag, .layui-upload-drag,
@ -37,7 +33,7 @@
.layui-upload-drag { .layui-upload-drag {
position: relative; position: relative;
padding: 30px; padding: 30px;
border: 1px dashed @global-neutral-color-4; border: 1px dashed var(--global-neutral-color-4);
background-color: #fff; background-color: #fff;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
@ -46,14 +42,14 @@
.layui-upload-drag .layui-icon { .layui-upload-drag .layui-icon {
font-size: 50px; font-size: 50px;
color: @global-primary-color; color: var(--global-primary-color);
} }
.layui-upload-drag[lay-over] { .layui-upload-drag[lay-over] {
border-color: @global-primary-color; border-color: var(--global-primary-color);
} }
.layui-upload-drag-draging{ .layui-upload-drag-draging {
border-color: @global-primary-color; border-color: var(--global-primary-color);
} }
.layui-upload-iframe { .layui-upload-iframe {
@ -82,27 +78,27 @@
opacity: 0.01; opacity: 0.01;
filter: Alpha(opacity=1); filter: Alpha(opacity=1);
} }
.layui-upload-file-disabled{ .layui-upload-file-disabled {
cursor:not-allowed !important; cursor: not-allowed !important;
} }
.layui-btn-container .layui-upload-choose { .layui-btn-container .layui-upload-choose {
padding-left: 0; padding-left: 0;
} }
.layui-upload-drag-disable{ .layui-upload-drag-disable {
opacity:0.8; opacity: 0.8;
z-index:1; z-index: 1;
cursor: not-allowed; cursor: not-allowed;
} }
._lay_upload_img{ ._lay_upload_img {
display: block; display: block;
max-width: 100%; max-width: 100%;
} }
.layui-upload-list-disabled{ .layui-upload-list-disabled {
width:auto; width: auto;
height:auto; height: auto;
pointer-events: none !important; pointer-events: none !important;
background-color: #fbfbfb!important; background-color: #fbfbfb !important;
filter: opacity(0.9); filter: opacity(0.9);
} }

View File

@ -129,7 +129,7 @@ a:hover {
.layui-disabled, .layui-disabled,
.layui-disabled:hover { .layui-disabled:hover {
color: @global-neutral-color-6 !important; color: var(--global-neutral-color-6) !important;
cursor: not-allowed !important; cursor: not-allowed !important;
} }
@ -170,7 +170,7 @@ a:hover {
.layui-tab-card, .layui-tab-card,
.layui-tab-title, .layui-tab-title,
.layui-tab-title .layui-this:after { .layui-tab-title .layui-this:after {
border-color: @global-neutral-color-3; border-color: var(--global-neutral-color-3);
} }
.layui-form input[type="checkbox"], .layui-form input[type="checkbox"],

View File

@ -1,35 +1,3 @@
@global-primary-color: var(--global-primary-color);
@global-normal-color: var(--global-normal-color);
@global-warm-color: var(--global-warm-color);
@global-danger-color: var(--global-danger-color);
@global-checked-color: var(--global-checked-color);
@global-border-radius: var(--global-border-radius);
@global-fore-color: var(--global-fore-color);
@global-back-color: var(--global-back-color);
@global-neutral-color-1: var(--global-neutral-color-1);
@global-neutral-color-2: var(--global-neutral-color-2);
@global-neutral-color-3: var(--global-neutral-color-3);
@global-neutral-color-4: var(--global-neutral-color-4);
@global-neutral-color-5: var(--global-neutral-color-5);
@global-neutral-color-6: var(--global-neutral-color-6);
@global-neutral-color-7: var(--global-neutral-color-7);
@global-neutral-color-8: var(--global-neutral-color-8);
:root { :root {
--global-primary-color: #009688; --global-primary-color: #009688;