mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
204 lines
4.4 KiB
SCSS
204 lines
4.4 KiB
SCSS
@import './mixins/mixins.scss';
|
|
@import './theme/default.scss';
|
|
|
|
@include b(tab) {
|
|
width: 100%;
|
|
border-radius: 9px;
|
|
.n-tab--label-add {
|
|
display: none;
|
|
font-size: 24px;
|
|
margin-right: 8px;
|
|
}
|
|
.n-tab--label_addable {
|
|
.n-tab--label-add {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
&.n-tab_card {
|
|
// background-color: rgb(75, 81, 106);
|
|
padding-top: 6px;
|
|
padding-bottom: 16px;
|
|
.n-tab--label {
|
|
padding: 0 8px;
|
|
// margin-bottom: 12px;
|
|
.n-tab--label-item:not(:last-child) {
|
|
margin-right: 6px;
|
|
}
|
|
.n-tab--label-content {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 16px;
|
|
border: none;
|
|
color: #ffffff;
|
|
background-color: rgba(255, 255, 255, .1);
|
|
border-radius: 6px 6px 0 0;
|
|
.n-tab--label-delete {
|
|
color: #F2F2F4;
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
.n-tab--label-item_active {
|
|
.n-tab--label-content {
|
|
color: #50E3C2;
|
|
background-color: rgba(71, 228, 194, 0.1);
|
|
}
|
|
}
|
|
.n-tab--label-item_disabled {
|
|
pointer-events: none;
|
|
.n-tab--label-content {
|
|
opacity: 0.25;
|
|
background-color: rgba(255, 255, 255, .1);
|
|
}
|
|
.n-tab--label-delete {
|
|
opacity: 0.2;
|
|
}
|
|
}
|
|
.n-tab--label-text:hover {
|
|
color: #50E3C2;
|
|
}
|
|
.n-tab--label-delete:hover {
|
|
color: #63E2B7;
|
|
}
|
|
}
|
|
.n-tab--slot-panel {
|
|
padding: 12px 24px 16px;
|
|
}
|
|
.n-tab--slot {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
&.n-tab_board {
|
|
background-color: rgb(23, 29, 51);
|
|
.n-tab--label {
|
|
border-bottom: 1px solid rgba(255, 255, 255, .3);
|
|
.n-tab--label-item:not(:last-child) {
|
|
margin-right: 3px;
|
|
}
|
|
.n-tab--label-content {
|
|
display: flex;
|
|
align-items: center;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 6px 6px 0 0;
|
|
border: 1px solid rgba(255, 255, 255, .5);
|
|
background-color: rgba(255, 255, 255, .1);
|
|
color: #ffffff;
|
|
.n-tab--label-delete {
|
|
color: #F2F2F4;
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
.n-tab--label-item_active {
|
|
.n-tab--label-content {
|
|
color: #63E2B7;
|
|
border-color: #63E2B7;
|
|
border-bottom: none;
|
|
background: rgb(23, 29, 51);
|
|
}
|
|
&:after {
|
|
display: block;
|
|
content: '';
|
|
width: 100%;
|
|
height: 1px;
|
|
background-color: #171D33;
|
|
}
|
|
}
|
|
.n-tab--label-item_disabled {
|
|
pointer-events: none;
|
|
.n-tab--label-content {
|
|
opacity: 0.3;
|
|
}
|
|
.n-tab--label-delete {
|
|
opacity: 0.2;
|
|
}
|
|
}
|
|
.n-tab--label-text:hover {
|
|
color: #50E3C2;
|
|
}
|
|
.n-tab--label-delete:hover {
|
|
color: #63E2B7;
|
|
}
|
|
}
|
|
.n-tab--slot-panel {
|
|
padding: 13px 4px 16px 16px;
|
|
border-radius: 0px 0px 9px 9px;
|
|
}
|
|
.n-tab--slot {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
&.n-tab--line-type {
|
|
.n-tab-label {
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
padding: 0 0 8px 0;
|
|
&:hover {
|
|
.n-tab-label__label {
|
|
color: #63E2B7;
|
|
}
|
|
}
|
|
&:not(:last-child) {
|
|
margin-right: 36px;
|
|
}
|
|
&.n-tab-label--active {
|
|
.n-tab-label__label {
|
|
font-size: 16px;
|
|
color: #63E2B7;
|
|
}
|
|
}
|
|
&.n-tab-label--disabled {
|
|
.n-tab-label__label {
|
|
color: rgba(255,255,255,0.3);
|
|
}
|
|
}
|
|
}
|
|
.n-tab--slot {
|
|
// margin: 12px 24px 16px;
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include b(tab-nav) {
|
|
.n-tab-nav__scroll {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
@include b(tab-label-wrapper) {
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
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;
|
|
&.n-tab-label--disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
.n-tab-label__label {
|
|
transition: color .2s $default-cubic-bezier;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include b(tab-panel) {
|
|
width: 100%;
|
|
margin-top: 7px;
|
|
} |