diff --git a/src/layouts/default/multitabs/index.less b/src/layouts/default/multitabs/index.less index da898226248e4dc6e4bbc57316c30a616c74d2c3..59674aab24373148b077135e91312899e49a0327 100644 --- a/src/layouts/default/multitabs/index.less +++ b/src/layouts/default/multitabs/index.less @@ -7,19 +7,6 @@ height: @multiple-height; } - // .ant-tabs:not(.ant-tabs-card) { - // .ant-tabs-nav-container { - // height: @multiple-height; - // background: @white; - // } - - // .ant-tabs-tab { - // font-size: 14px; - // line-height: 1.5515; - // background: @white; - // } - // } - .ant-tabs.ant-tabs-card { .ant-tabs-card-bar { height: @multiple-height; @@ -39,14 +26,21 @@ line-height: calc(@multiple-height - 2px); color: @text-color-call-out; background: @white; - border: 1px solid @border-color-shallow-dark; - border-radius: 4px 4px 0 0; + border: 1px solid darken(@border-color-light, 6%); + border-radius: 2px 2px 0 0; transition: none; .ant-tabs-close-x { + // display: none; color: inherit; } + &:hover { + .ant-tabs-close-x { + display: block; + } + } + > div { display: flex; justify-content: center; @@ -72,7 +66,7 @@ &:hover::before { transform: scaleX(1); - transition: transform 0.4s ease; + transition: transform 0.3s ease; transform-origin: bottom left; } } @@ -80,14 +74,13 @@ .ant-tabs-tab-active { height: calc(@multiple-height - 3px); color: @white; - // background: @primary-color; background: linear-gradient( 118deg, - rgba(@primary-color, 0.8), + rgba(@primary-color, 0.7), rgba(@primary-color, 1) ) !important; border: 0; - box-shadow: 0 0 6px 1px rgba(@primary-color, 0.4); + box-shadow: 0 0 6px 1px rgba(@primary-color, 0.7); &::before { display: none; diff --git a/src/layouts/default/multitabs/index.tsx b/src/layouts/default/multitabs/index.tsx index 9cceb7e31958db6aa72ead6f6b6e01fdcc587556..09c7c5212e195adb66e221faa3aac991ed63986d 100644 --- a/src/layouts/default/multitabs/index.tsx +++ b/src/layouts/default/multitabs/index.tsx @@ -148,6 +148,7 @@ export default defineComponent({