From bdba124e6e85a708e090e37acc5e8d8dd28a997c Mon Sep 17 00:00:00 2001 From: morning-star <26325820+Sight-wcg@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:04:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(tab):=20tab=20=E5=87=BA=E7=8E=B0=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E6=8C=89=E9=92=AE=E6=97=B6=EF=BC=8C=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E5=8D=A1=E5=BA=95=E8=BE=B9=E6=A1=86=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8=20(#2387)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/css/layui.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/css/layui.css b/src/css/layui.css index 5a9b954c..ef075c35 100644 --- a/src/css/layui.css +++ b/src/css/layui.css @@ -1369,14 +1369,15 @@ body .layui-table-tips .layui-layer-content{background: none; padding: 0; box-sh /** Tab 选项卡 **/ .layui-tab{margin: 10px 0; text-align: left !important;} .layui-tab[overflow]>.layui-tab-title{overflow: hidden;} -.layui-tab .layui-tab-title{position: relative; left: 0; height: 40px; white-space: nowrap; font-size: 0; border-bottom-width: 1px; border-bottom-style: solid; transition: all .2s; -webkit-transition: all .2s;} +.layui-tab .layui-tab-title{position: relative; left: 0; height: 40px; white-space: nowrap; font-size: 0; transition: all .2s; -webkit-transition: all .2s;} +.layui-tab .layui-tab-title:after{content: ""; border-bottom-color: #eee; border-bottom-width: 1px; border-style: none none solid; bottom: 0; left: 0; right: auto; top: auto; pointer-events: none; position: absolute; width: 100%; z-index: 8;} .layui-tab .layui-tab-title li{display: inline-block; *display: inline; *zoom: 1; vertical-align: middle; font-size: 14px; transition: all .2s; -webkit-transition: all .2s;} .layui-tab .layui-tab-title li{position: relative; line-height: 40px; min-width: 65px; margin: 0; padding: 0 15px; text-align: center; cursor: pointer;} .layui-tab .layui-tab-title li a{display: block; padding: 0 15px; margin: 0 -15px;} .layui-tab-title .layui-this{color: #000;} -.layui-tab-title .layui-this:after{position: absolute; left:0; top: 0; content: ""; width:100%; height: 41px; border-width: 1px; border-bottom-width: 2px; border-style: solid; border-bottom-color: #fff; border-radius: 2px 2px 0 0; box-sizing: border-box; pointer-events: none;} -.layui-tab-bar{position: absolute; right: 0; top: 0; z-index: 10; width: 30px; height: 39px; line-height: 39px; border-width: 1px; border-style: solid; border-radius: 2px; text-align: center; background-color: #fff; cursor: pointer;} +.layui-tab-title .layui-this:after{position: absolute; left:0; top: 0; content: ""; width:100%; height: 40px; border-width: 1px; border-bottom-width: 1px; border-style: solid; border-bottom-color: #fff; border-radius: 2px 2px 0 0; box-sizing: border-box; pointer-events: none; z-index: 9;} +.layui-tab-bar{box-sizing: border-box; position: absolute; right: 0; top: 0; z-index: 10; width: 30px; height: 40px; line-height: 40px; border-width: 1px; border-style: solid; border-radius: 2px; text-align: center; background-color: #fff; cursor: pointer;} .layui-tab-bar .layui-icon{position: relative; display: inline-block; top: 3px; transition: all .3s; -webkit-transition: all .3s;} .layui-tab-item{display: none;} .layui-tab-more{padding-right: 30px; height: auto !important; white-space: normal !important;} @@ -1392,7 +1393,6 @@ body .layui-table-tips .layui-layer-content{background: none; padding: 0; box-sh /* Tab 简洁风格 */.layui-tab-brief > .layui-tab-title .layui-this{color: #16baaa;} .layui-tab-brief > .layui-tab-title .layui-this:after ,.layui-tab-brief > .layui-tab-more li.layui-this:after{border: none; border-radius: 0; border-bottom: 2px solid #16b777;} -.layui-tab-brief[overflow] > .layui-tab-title .layui-this:after{top: -1px;} /* Tab 卡片风格 */.layui-tab-card{border-width: 1px; border-style: solid; border-radius: 2px; box-shadow: 0 2px 5px 0 rgba(0,0,0,.1);} .layui-tab-card > .layui-tab-title{background-color: #fafafa;}