Commit 53519ab5 authored by 刘安琪's avatar 刘安琪

根据设计图覆盖tabs样式

parent 77cb409d
...@@ -2,11 +2,6 @@ ...@@ -2,11 +2,6 @@
@import "common/var"; @import "common/var";
@include b(tabs) { @include b(tabs) {
border: 1px solid #D7D8D9;
border-radius: 3px;
> .el-tabs__content {
padding: 0 8px 8px 8px;
}
@include e(header) { @include e(header) {
padding: 0; padding: 0;
position: relative; position: relative;
...@@ -15,12 +10,12 @@ ...@@ -15,12 +10,12 @@
@include e(active-bar) { @include e(active-bar) {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 0;
height: 2px; height: 2px;
background-color: $--color-primary; background-color: $--color-primary;
z-index: 1; z-index: 1;
transition: transform .3s cubic-bezier(.645,.045,.355,1); transition: transform .3s cubic-bezier(.645,.045,.355,1);
list-style: none; list-style: none;
padding:0 16px;
} }
@include e(new-tab) { @include e(new-tab) {
float: right; float: right;
...@@ -55,7 +50,7 @@ ...@@ -55,7 +50,7 @@
left: 0; left: 0;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 1px; height: 2px;
background-color: $--border-color-light; background-color: $--border-color-light;
z-index: $--index-normal; z-index: $--index-normal;
} }
...@@ -82,6 +77,7 @@ ...@@ -82,6 +77,7 @@
left: 0; left: 0;
} }
@include e(nav) { @include e(nav) {
border: none !important;
white-space: nowrap; white-space: nowrap;
position: relative; position: relative;
transition: transform .3s; transition: transform .3s;
...@@ -98,16 +94,21 @@ ...@@ -98,16 +94,21 @@
} }
} }
@include e(item) { @include e(item) {
padding: 0 24px; padding: 0 20px;
height: 48px; height: 40px;
box-sizing: border-box; box-sizing: border-box;
line-height: 48px; line-height: 40px;
display: inline-block; display: inline-block;
list-style: none; list-style: none;
font-size: 16px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: $--color-text-regular; color: $--color-text-primary;
position: relative; position: relative;
border: 1px solid $--color-default-text-plain;
margin-left: 20px;
border-radius: 4px 4px 0 0;
background: #E6E8ED;
&:focus, &:focus:active { &:focus, &:focus:active {
outline: none; outline: none;
} }
...@@ -135,6 +136,7 @@ ...@@ -135,6 +136,7 @@
@include when(active) { @include when(active) {
color: $--color-primary; color: $--color-primary;
background: $--color-white;
} }
&:hover { &:hover {
...@@ -181,11 +183,8 @@ ...@@ -181,11 +183,8 @@
} }
> .el-tabs__header .el-tabs__item { > .el-tabs__header .el-tabs__item {
border-bottom: 1px solid transparent; border-bottom: 1px solid transparent;
border-left: 1px solid $--border-color-light;
transition: color .3s cubic-bezier(.645,.045,.355,1), padding .3s cubic-bezier(.645,.045,.355,1); transition: color .3s cubic-bezier(.645,.045,.355,1), padding .3s cubic-bezier(.645,.045,.355,1);
&:first-child {
border-left: none;
}
&.is-closable { &.is-closable {
&:hover { &:hover {
padding-left: 13px; padding-left: 13px;
...@@ -259,14 +258,14 @@ ...@@ -259,14 +258,14 @@
} }
} }
@include m((top, bottom)) { @include m((top, bottom)) {
// .el-tabs__item.is-top:nth-child(2), .el-tabs__item.is-top:nth-child(2),
// .el-tabs__item.is-bottom:nth-child(2) { .el-tabs__item.is-bottom:nth-child(2) {
// padding-left: 0; padding-left: 0;
// } }
// .el-tabs__item.is-top:last-child, .el-tabs__item.is-top:last-child,
// .el-tabs__item.is-bottom:last-child { .el-tabs__item.is-bottom:last-child {
// padding-right: 0; padding-right: 0;
// } }
&.el-tabs--border-card, &.el-tabs--card, &.el-tabs--border-card, &.el-tabs--card,
.el-tabs--left, .el-tabs--right { .el-tabs--left, .el-tabs--right {
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment