cc-ui-plus
Version:
79 lines (78 loc) • 1.44 kB
CSS
.cc-tabs {
position: relative;
}
.cc-tabs.is-disabled {
opacity: 0.8;
cursor: not-allowed;
}
.cc-tabs__wrap {
overflow: hidden;
position: relative;
display: flex;
}
.cc-tabs__icon-left {
position: absolute;
cursor: pointer;
line-height: 44px;
font-size: 12px;
left: 0;
z-index: 100;
}
.cc-tabs__icon-right {
position: absolute;
cursor: pointer;
line-height: 44px;
font-size: 12px;
right: 0;
z-index: 100;
}
.cc-tabs__label {
display: flex;
align-items: center;
margin-bottom: 16px;
position: relative;
white-space: nowrap;
transition: all 0.3s linear;
}
.cc-tabs__label::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background-color: #eee;
z-index: 100;
}
.cc-tabs__label-item {
position: relative;
box-sizing: border-box;
flex-shrink: 1;
padding: 0 20px;
line-height: 32px;
cursor: pointer;
font-size: var(--cc-text-base);
display: flex;
vertical-align: middle;
}
.cc-tabs__active-bar {
position: absolute;
bottom: 0;
left: 0;
height: 2px;
background-color: var(--cc-color-primary);
z-index: 101;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-tabs--card {
border-left: 1px solid #e4e7ed;
border-top: 1px solid #e4e7ed;
}
.cc-tabs--card.cc-tabs__label-item:last-child {
border-right: 1px solid #e4e7ed;
}
.cc-tabs__close-btn {
position: relative;
top: 3px;
margin-left: 6px;
}