mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
214 lines
4.7 KiB
SCSS
214 lines
4.7 KiB
SCSS
@import './mixins/mixins.scss';
|
|
@import './theme/default.scss';
|
|
|
|
@include b(tab) {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 9px;
|
|
background-color: rgb(23, 29, 51);
|
|
.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--label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-weight: bold;
|
|
font-size: 15px;
|
|
.n-tab--label-delete {
|
|
display: inline-block;
|
|
font-size: 20px;
|
|
margin-left: 9px;
|
|
}
|
|
}
|
|
&.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_normal {
|
|
padding: 14px 23px 20px;
|
|
background-color: rgb(31, 38, 62);
|
|
.n-tab--label-add {
|
|
margin-right: -15px;
|
|
}
|
|
.n-tab--label {
|
|
padding-bottom: 8px;
|
|
.n-tab--label-item:not(:last-child) {
|
|
margin-right: 35px;
|
|
}
|
|
.n-tab--label-content {
|
|
display: flex;
|
|
align-items: center;
|
|
border: none;
|
|
padding-bottom: 8px;
|
|
color: #ffffff;
|
|
.n-tab--label-delete {
|
|
color: #F2F2F4;
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
.n-tab--label-item_active {
|
|
.n-tab--label-content {
|
|
color: #63E2B7;
|
|
border-bottom: 2px solid #63E2B7;
|
|
}
|
|
}
|
|
.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 {
|
|
// margin: 12px 24px 16px;
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include b(tab-panel) {
|
|
flex-shrink: 0;
|
|
width: 100%;
|
|
visibility: hidden;
|
|
transition: transform 0.2s;
|
|
height: 0;
|
|
&.n-tab-panel_active {
|
|
visibility: visible;
|
|
height: 100%;
|
|
}
|
|
} |