ThinkAdmin/public/static/theme/css/_layout_2.less
Anyon 27ad3ff7ce feat(static): 同步 v8 前端静态资源
同步 v8 运行所需的公开静态资源与主题样式,保留目标仓库中需要跟踪的发布产物。

主要内容:

- 更新登录页、控制台主题、布局变量和短工具类样式。

- 同步 layui、ckeditor、editor、jquery area 等前端依赖文件。

- 移除 v6 admin/require 静态入口,改为 v8 static/system 资源组织。

- 保留测试依赖的 public/static/theme 编译结果,确保目标仓库可直接验证。
2026-05-08 15:30:57 +08:00

224 lines
4.0 KiB
Plaintext

@charset "UTF-8";
@import "_config.less";
// +----------------------------------------------------------------------
> .layui-layout-admin {
> .layui-side {
width: 260px;
display: block !important;
box-shadow: none !important;
background-color: @mainColor;
.layui-logo {
z-index: 3;
}
.layui-side-target {
display: block;
}
.layui-side-scroll {
display: flex !important;
box-sizing: border-box;
.layui-nav-child {
background: none !important;
}
.layui-side-icon {
width: 100px;
display: block;
background: @mainColor;
a {
height: 60px;
display: block;
font-size: 14px;
text-align: center;
line-height: 60px;
white-space: nowrap;
&:hover {
background-color: rgba(0, 0, 0, 0.1);;
}
.layui-icon, span {
color: #fff;
overflow: hidden;
max-width: 4em;
// margin-right: 5px;
text-overflow: ellipsis;
vertical-align: middle;
display: inline-block !important;
}
}
> .layui-this {
background: #fff;
a {
&:hover {
background-color: #fff;
}
.layui-icon, span {
color: @textColor;
}
}
}
}
.layui-side-tree {
flex: 1;
background-color: #fff;
> .layui-nav-tree {
width: unset !important;
}
.layui-nav-item {
background: none !important;
border-bottom-color: #fff;
a {
color: #333 !important;
background: none !important;
border-bottom: none !important;
&:hover {
color: @textColor;
}
}
.layui-this, &.layui-this {
> a {
color: @textColor;
background: none !important;
font-weight: bold !important;
&:hover {
background: none !important;
}
}
}
&ed > a {
color: #999 !important;
}
}
}
}
}
> .layui-body {
left: 260px;
> .think-page-body > .layui-card {
&:before {
top: 0;
left: 0;
bottom: 0;
z-index: 4;
content: '';
position: absolute;
box-shadow: @ShadowBodyRight;
}
> .layui-card-header {
left: 261px;
}
}
}
> .layui-header {
left: 260px;
background-color: @mainColor;
.layui-layout-left {
.layui-nav-item {
display: none !important;
}
}
.layui-nav-item {
&.layui-this > a {
color: #fff !important;
font-weight: bold;
}
> a {
color: #eee !important;
&:hover {
color: #fff !important;
background: none !important;
}
}
}
}
}
> .layui-layout-left-hide,
> .layui-layout-left-mini {
> .layui-side {
.layui-logo {
.headimg {
margin-right: 10px !important;
}
.headtxt {
display: inline-block !important;
}
}
.layui-side-target {
left: @iconWidth;
margin-left: -12px;
}
.layui-side-scroll .layui-side-icon {
width: @iconWidth;
display: block;
background: #098;
}
}
> .layui-body {
left: @iconWidth;
z-index: 333;
> .think-page-body > .layui-card > .layui-card-header {
left: @iconWidth+1;
}
}
> .layui-header {
left: 260px !important;
z-index: 334;
}
}
.help-label b,
.layui-tab-title .layui-this {
color: @mainColor
}
.layui-btn-group {
border-color: fade(@mainColor, 20%);
background-color: var(--ta-surface, #fff);
.layui-btn {
&:hover:not(.layui-btn-active) {
color: @mainColor;
background-color: fade(@mainColor, 10%);
}
&.layui-btn-active {
color: #fff;
background-color: @mainColor
}
}
}