@import "../../themes/ionic.globals";

// Segment
// --------------------------------------------------

:host {
  /**
   * @prop --background: Background of the segment button
   */
  --ripple-color: currentColor;

  @include font-smoothing();

  display: flex;

  position: relative;

  align-items: stretch;
  justify-content: center;

  width: 100%;

  background: var(--background);

  font-family: $font-family-base;

  text-align: center;

  contain: paint;

  user-select: none;
}


// Segment: Scrollable
// --------------------------------------------------

:host(.segment-scrollable) {
  justify-content: start;

  width: auto;

  overflow-x: auto;
}

:host(.segment-scrollable::-webkit-scrollbar) {
  display: none;
}
