UNPKG

@ionic/core

Version:

Base components for Ionic

36 lines (32 loc) • 717 B
:host { /** * @prop --background: Background of the segment button */ --ripple-color: currentColor; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: flex; position: relative; align-items: stretch; justify-content: center; width: 100%; background: var(--background); font-family: var(--ion-font-family, inherit); text-align: center; contain: paint; user-select: none; } :host(.segment-scrollable) { justify-content: start; width: auto; overflow-x: auto; } :host(.segment-scrollable::-webkit-scrollbar) { display: none; } :host { --background: transparent; } :host(.segment-scrollable) ::slotted(ion-segment-button) { min-width: auto; }