antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
82 lines (81 loc) • 1.73 kB
CSS
.adm-jumbo-tabs {
--gap: 8px;
position: relative;
}
.adm-jumbo-tabs-header {
position: relative;
border-bottom: solid 1px var(--adm-border-color);
}
.adm-jumbo-tabs-tab-list {
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
position: relative;
overflow-x: scroll;
padding: 0 var(--gap);
scrollbar-width: none;
}
.adm-jumbo-tabs-tab-list::-webkit-scrollbar {
display: none;
}
.adm-jumbo-tabs-tab-wrapper {
flex: auto;
padding: 0 calc(var(--gap) / 2);
text-align: center;
}
.adm-jumbo-tabs-tab {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
width: min-content;
margin: 0 auto;
padding: 12px 0;
cursor: pointer;
font-size: 17px;
white-space: nowrap;
}
.adm-jumbo-tabs-tab-title {
line-height: 24px;
padding: 0 4px;
}
.adm-jumbo-tabs-tab-description {
width: min-content;
padding: 0 8px;
border-radius: 10px;
color: var(--adm-color-weak);
font-size: var(--adm-font-size-main);
background-color: #f5f5f5;
}
.adm-jumbo-tabs-tab-active {
color: var(--adm-color-primary);
}
.adm-jumbo-tabs-tab-active .adm-jumbo-tabs-tab-description {
color: #fff;
background-color: var(--adm-color-primary);
}
.adm-jumbo-tabs-tab-disabled {
opacity: 0.5;
cursor: not-allowed;
}
.adm-jumbo-tabs-content {
padding: 12px;
}
.adm-jumbo-tabs-header-mask {
position: absolute;
top: 0;
bottom: 0;
z-index: 1;
width: 30px;
height: 100%;
pointer-events: none;
}
.adm-jumbo-tabs-header-mask-left {
left: 0;
background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}
.adm-jumbo-tabs-header-mask-right {
right: 0;
background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}