UNPKG

antd-mobile

Version:
89 lines (76 loc) 1.75 kB
.adm-tabs { --title-font-size: var(--adm-font-size-9); --content-padding: 24px; --active-line-height: 4px; --active-line-border-radius: var(--active-line-height); --active-line-color: var(--adm-color-primary); --active-title-color: var(--adm-color-primary); position: relative; min-width: 0; } .adm-tabs-header { position: relative; border-bottom: solid 2px var(--adm-color-border); } .adm-tabs-tab-list { display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; position: relative; overflow-x: scroll; scrollbar-width: none; } .adm-tabs-tab-list::-webkit-scrollbar { display: none; } .adm-tabs-tab-wrapper { padding: 0 24px; } .adm-tabs-tab-wrapper-stretch { flex: auto; } .adm-tabs-tab { white-space: nowrap; padding: 16px 0 20px; width: -webkit-min-content; width: min-content; margin: 0 auto; font-size: var(--title-font-size); position: relative; cursor: pointer; } .adm-tabs-tab-active { color: var(--active-title-color); } .adm-tabs-tab-disabled { opacity: 0.5; cursor: not-allowed; } .adm-tabs-tab-line { position: absolute; bottom: 0; height: var(--active-line-height); background: var(--active-line-color); border-radius: var(--active-line-border-radius); } .adm-tabs-content { padding: var(--content-padding); } .adm-tabs-header-mask { position: absolute; top: 0; bottom: 0; z-index: 1; width: 60px; height: 100%; pointer-events: none; } .adm-tabs-header-mask-left { left: 0; background: linear-gradient(to right, var(--adm-color-background), rgba(255, 255, 255, 0)); } .adm-tabs-header-mask-right { right: 0; background: linear-gradient(to left, var(--adm-color-background), rgba(255, 255, 255, 0)); }