2019-07-29 16:40:11 +08:00
|
|
|
@import './mixins/mixins.scss';
|
2019-09-17 19:21:07 +08:00
|
|
|
@import './themes/vars.scss';
|
2019-07-29 16:40:11 +08:00
|
|
|
|
|
|
|
@include b(tab) {
|
|
|
|
width: 100%;
|
2019-09-02 18:30:53 +08:00
|
|
|
border-radius: 4px;
|
2019-09-02 23:24:23 +08:00
|
|
|
&.n-tab--scroll {
|
|
|
|
&.n-tab--card-type {
|
|
|
|
.n-tab-label:first-child {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
&.n-tab--line-type {
|
2019-09-02 23:24:23 +08:00
|
|
|
.n-tab-nav {
|
|
|
|
.n-tab-nav__scroll-button {
|
|
|
|
padding-bottom: 4px;
|
|
|
|
}
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
.n-tab-label {
|
|
|
|
box-sizing: border-box;
|
2019-09-02 23:24:23 +08:00
|
|
|
padding-bottom: 7px;
|
2019-09-04 16:06:07 +08:00
|
|
|
vertical-align: bottom;
|
|
|
|
.n-tab-label__label {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
&:hover {
|
|
|
|
.n-tab-label__label {
|
|
|
|
color: #63E2B7;
|
2019-08-01 17:15:29 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 36px;
|
2019-08-05 20:06:51 +08:00
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
&.n-tab-label--active {
|
|
|
|
.n-tab-label__label {
|
2019-08-05 20:06:51 +08:00
|
|
|
color: #63E2B7;
|
|
|
|
}
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
&.n-tab-label--disabled {
|
|
|
|
.n-tab-label__label {
|
|
|
|
color: rgba(255,255,255,0.3);
|
2019-08-05 20:06:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
&.n-tab--card-type {
|
|
|
|
background-color: rgba(57, 63, 87, 1);
|
|
|
|
padding-top: 6px;
|
2019-09-02 23:24:23 +08:00
|
|
|
.n-tab-nav {
|
|
|
|
.n-tab-nav__scroll-button.n-tab-nav__scroll-button--left {
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
.n-tab-nav__scroll-button.n-tab-nav__scroll-button--right {
|
|
|
|
margin-left: 4px;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 19:30:47 +08:00
|
|
|
.n-tab-label {
|
2019-09-02 18:30:53 +08:00
|
|
|
margin-left: -1px;
|
2019-08-14 19:30:47 +08:00
|
|
|
box-sizing: border-box;
|
2019-09-02 18:30:53 +08:00
|
|
|
height: 34px;
|
|
|
|
line-height: 34px;
|
|
|
|
padding: 0 16px;
|
|
|
|
position: relative;
|
2019-09-04 16:06:07 +08:00
|
|
|
vertical-align: bottom;
|
|
|
|
.n-tab-label__label {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
.n-tab-label__corner {
|
|
|
|
position: absolute;
|
|
|
|
height: 4px;
|
|
|
|
width: 4px;
|
|
|
|
bottom: 0;
|
|
|
|
&.n-tab-label__corner--left {
|
|
|
|
left: -4px;
|
|
|
|
}
|
|
|
|
&.n-tab-label__corner--right {
|
|
|
|
right: -4px;
|
|
|
|
}
|
|
|
|
svg {
|
|
|
|
display: block;
|
|
|
|
path {
|
|
|
|
fill: rgba(75, 81, 106, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 19:30:47 +08:00
|
|
|
&:hover {
|
|
|
|
.n-tab-label__label {
|
|
|
|
color: #63E2B7;
|
2019-08-05 20:06:51 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
&:first-child {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
2019-08-14 19:30:47 +08:00
|
|
|
&:not(:last-child) {
|
2019-09-02 18:30:53 +08:00
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
|
|
width: 1px;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 6px;
|
|
|
|
bottom: 6px;
|
|
|
|
}
|
2019-08-14 19:30:47 +08:00
|
|
|
}
|
|
|
|
&.n-tab-label--active {
|
2019-09-02 18:30:53 +08:00
|
|
|
background-color: rgba(75, 81, 106, 1);
|
|
|
|
border-top-left-radius: 4px;
|
|
|
|
border-top-right-radius: 4px;
|
2019-08-14 19:30:47 +08:00
|
|
|
.n-tab-label__label {
|
|
|
|
font-size: 16px;
|
2019-08-05 20:06:51 +08:00
|
|
|
color: #63E2B7;
|
|
|
|
}
|
2019-09-02 18:30:53 +08:00
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-08-05 20:06:51 +08:00
|
|
|
}
|
2019-08-14 19:30:47 +08:00
|
|
|
&.n-tab-label--disabled {
|
|
|
|
.n-tab-label__label {
|
|
|
|
color: rgba(255,255,255,0.3);
|
2019-08-05 20:06:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-30 10:59:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-14 19:30:47 +08:00
|
|
|
@include b(tab-nav) {
|
2019-09-02 18:30:53 +08:00
|
|
|
display: flex;
|
2019-08-14 19:30:47 +08:00
|
|
|
.n-tab-nav__scroll {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2019-09-02 23:24:23 +08:00
|
|
|
.n-tab-nav__scroll-button {
|
|
|
|
font-size: 20px;
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
align-self: center;
|
|
|
|
cursor: pointer;
|
|
|
|
&.n-tab-nav__scroll-button--disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
color: rgba(255, 255, 255 ,.3);
|
|
|
|
}
|
|
|
|
&.n-tab-nav__scroll-button--left {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
&.n-tab-nav__scroll-button--right {
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 19:30:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@include b(tab-label-wrapper) {
|
|
|
|
display: inline-block;
|
2019-10-10 22:38:29 +08:00
|
|
|
font-weight: 700;
|
2019-08-14 19:30:47 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
position: relative;
|
|
|
|
@include b(tab-label-bar) {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 2px;
|
|
|
|
height: 2px;
|
|
|
|
background-color: #63E2B7;
|
|
|
|
border-radius: 1px;
|
|
|
|
transition: left .2s $default-cubic-bezier, max-width .2s $default-cubic-bezier;
|
|
|
|
}
|
|
|
|
@include b(tab-label) {
|
|
|
|
cursor: pointer;
|
2019-09-02 23:24:23 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2019-08-14 19:30:47 +08:00
|
|
|
&.n-tab-label--disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2019-09-02 23:24:23 +08:00
|
|
|
.n-tab-label__close {
|
|
|
|
color: rgba(255, 255, 255, 0.5);
|
|
|
|
margin-left: 8px;
|
|
|
|
font-size: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
height: 20px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-08-14 19:30:47 +08:00
|
|
|
.n-tab-label__label {
|
2019-09-02 23:24:23 +08:00
|
|
|
transition: color .3s $default-cubic-bezier;
|
2019-08-14 19:30:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-30 10:59:21 +08:00
|
|
|
@include b(tab-panel) {
|
|
|
|
width: 100%;
|
2019-08-14 19:30:47 +08:00
|
|
|
margin-top: 7px;
|
2019-09-02 18:30:53 +08:00
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
border-bottom-right-radius: 4px;
|
|
|
|
&.n-tab-panel--card-type {
|
|
|
|
margin-top: 0px;
|
|
|
|
padding: 12px 26px 16px 26px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: rgba(75,81,106,1);
|
|
|
|
}
|
2019-07-29 16:40:11 +08:00
|
|
|
}
|