zp-bee
Version:
zp-bee,是一款基于 Dumi,由 React + TypeScript 开发的组件库 🎉。
67 lines (62 loc) • 1.11 kB
text/less
@import '../../style/themes/default.less';
.tab-wrap {
position: relative;
width: 100%;
height: 100%;
}
.tab-title-wrap {
display: block;
width: 100%;
height: 40px;
padding: 0;
white-space: nowrap;
border-bottom: 1px solid #d8dae2;
.tab-title {
display: inline-block;
height: 40px;
margin: 0 24px;
cursor: pointer;
div {
position: relative;
display: inline-block;
height: 40px;
color: #666;
font-size: 16px;
line-height: 40px;
text-align: center;
user-select: none;
}
&:hover {
div {
color: rgba(23, 85, 192, 0.8);
}
}
}
.tab-active {
div {
color: #1755c0;
&::after {
position: absolute;
bottom: 0;
left: 50%;
display: block;
width: 130%;
height: 3px;
background: #1755c0;
transform: translateX(-50%);
content: '';
}
}
}
}
.tab-item-wrap {
width: 100%;
height: calc(~'100% - 76px');
overflow-y: auto;
.tab-item {
display: none;
}
.tab-show {
display: block;
}
}