165 lines
2.7 KiB
Plaintext
165 lines
2.7 KiB
Plaintext
|
|
@primary: #1677ff;
|
||
|
|
|
||
|
|
.pageTabsMain {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
overflow-x: auto;
|
||
|
|
overflow-y: hidden;
|
||
|
|
|
||
|
|
&::-webkit-scrollbar {
|
||
|
|
height: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabItem {
|
||
|
|
position: relative;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
height: 100%;
|
||
|
|
user-select: none;
|
||
|
|
transition: all 0.15s ease;
|
||
|
|
padding: 0 8px 0 14px;
|
||
|
|
|
||
|
|
&:global(:not(.dragging)) {
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
&:not(.tabItemActive) {
|
||
|
|
&:hover {
|
||
|
|
> .divider {
|
||
|
|
opacity: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
& + .tabItem {
|
||
|
|
> .divider {
|
||
|
|
opacity: 0;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
&.tabItemActive {
|
||
|
|
z-index: 2;
|
||
|
|
|
||
|
|
& + .tabItem {
|
||
|
|
> .divider {
|
||
|
|
opacity: 0 !important;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabTitle {
|
||
|
|
color: @primary;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabBg {
|
||
|
|
&.tabBgActive {
|
||
|
|
.tabBgInner {
|
||
|
|
background-color: fade(@primary, 8%);
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabBgCurveBefore,
|
||
|
|
.tabBgCurveAfter {
|
||
|
|
fill: fade(@primary, 8%);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
&:not(.tabItemActive) {
|
||
|
|
.tabTitleCon:hover {
|
||
|
|
background-color: rgba(0, 0, 0, 0.06);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.divider {
|
||
|
|
position: absolute;
|
||
|
|
left: 7px;
|
||
|
|
top: 50%;
|
||
|
|
z-index: 0;
|
||
|
|
width: 1px;
|
||
|
|
height: 16px;
|
||
|
|
background-color: #e8e8e8;
|
||
|
|
transform: translateY(-50%);
|
||
|
|
transition: opacity 0.15s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabBg {
|
||
|
|
position: absolute;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
z-index: -1;
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
padding: 0 calc(7px - 1px);
|
||
|
|
transition: opacity 0.15s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabBgInner {
|
||
|
|
height: 100%;
|
||
|
|
border-radius: 7px 7px 0 0;
|
||
|
|
transition:
|
||
|
|
background-color 0.15s,
|
||
|
|
margin 0.15s,
|
||
|
|
border-radius 0.15s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabBgCurveBefore {
|
||
|
|
position: absolute;
|
||
|
|
left: -1px;
|
||
|
|
bottom: 0;
|
||
|
|
fill: transparent;
|
||
|
|
transition: fill 0.15s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabBgCurveAfter {
|
||
|
|
position: absolute;
|
||
|
|
right: -1px;
|
||
|
|
bottom: 0;
|
||
|
|
fill: transparent;
|
||
|
|
transition: fill 0.15s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabClose {
|
||
|
|
flex-shrink: 0;
|
||
|
|
width: 16px;
|
||
|
|
height: 16px;
|
||
|
|
line-height: 16px;
|
||
|
|
font-size: 10px;
|
||
|
|
text-align: center;
|
||
|
|
margin-right: 12px;
|
||
|
|
color: rgba(0, 0, 0, 0.45);
|
||
|
|
border-radius: 50%;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.15s;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
color: rgba(0, 0, 0, 0.85);
|
||
|
|
background-color: rgba(0, 0, 0, 0.06);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabTitleCon {
|
||
|
|
height: 28px;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
border-radius: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tabTitle {
|
||
|
|
position: relative;
|
||
|
|
z-index: 2;
|
||
|
|
flex: 1;
|
||
|
|
min-width: 0;
|
||
|
|
padding: 2px 8px;
|
||
|
|
font-size: 13px;
|
||
|
|
color: rgba(0, 0, 0, 0.65);
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
}
|
||
|
|
}
|