Browse Source

🔧 Add less variables for Tabs[type="card"]

pull/17697/head
afc163 5 years ago
parent
commit
c15c0fc199
  1. 2
      components/style/themes/default.less
  2. 6
      components/tabs/style/card-style.less
  3. 12
      components/tabs/style/index.less

2
components/style/themes/default.less

@ -490,6 +490,8 @@
@tabs-highlight-color: @primary-color;
@tabs-hover-color: @primary-5;
@tabs-active-color: @primary-7;
@tabs-card-gutter: 2px;
@tabs-card-tab-active-border-top: 2px solid transparent;
// BackTop
// ---

6
components/tabs/style/card-style.less

@ -14,7 +14,7 @@
&&-card &-card-bar &-tab {
height: @tabs-card-height;
margin: 0;
margin-right: 2px;
margin-right: @tabs-card-gutter;
padding: 0 16px;
line-height: @tabs-card-height - 2px;
background: @tabs-card-head-background;
@ -28,6 +28,10 @@
background: @component-background;
border-color: @border-color-split;
border-bottom: @border-width-base solid @component-background;
&::before {
border-top: @tabs-card-tab-active-border-top;
}
}
&&-card &-card-bar &-tab-disabled {
color: @tabs-card-active-color;

12
components/tabs/style/index.less

@ -181,6 +181,18 @@
cursor: pointer;
transition: color 0.3s @ease-in-out;
&::before {
position: absolute;
top: -1px;
left: 0;
width: 100%;
border-top: 2px solid transparent;
border-radius: @border-radius-base @border-radius-base 0 0;
transition: all 0.3s;
content: '';
pointer-events: none;
}
&:last-child {
margin-right: 0;
}

Loading…
Cancel
Save