UNPKG

antd-mobile

Version:

<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />

64 lines (63 loc) 1.32 kB
.adm-capsule-tabs { position: relative; } .adm-capsule-tabs-header { position: relative; padding: 12px 6px; border-bottom: solid 1px var(--adm-border-color); } .adm-capsule-tabs-tab-list { display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center; position: relative; overflow-x: scroll; scrollbar-width: none; } .adm-capsule-tabs-tab-list::-webkit-scrollbar { display: none; } .adm-capsule-tabs-tab-wrapper { flex: auto; padding: 0 6px; } .adm-capsule-tabs-tab { position: relative; padding: 8px 20px; margin: 0 auto; border-radius: 20px; cursor: pointer; font-size: 15px; text-align: center; white-space: nowrap; background-color: #f5f5f5; } .adm-capsule-tabs-tab-active { color: #fff; background-color: var(--adm-color-primary); } .adm-capsule-tabs-tab-disabled { opacity: 0.5; cursor: not-allowed; } .adm-capsule-tabs-content { padding: 12px; } .adm-capsule-tabs-header-mask { position: absolute; top: 0; bottom: 0; z-index: 1; width: 30px; height: 100%; pointer-events: none; } .adm-capsule-tabs-header-mask-left { left: 0; background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0)); } .adm-capsule-tabs-header-mask-right { right: 0; background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0)); }