/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

:root {
  --ifm-button-group-spacing: 2px;
}

.button-group {
  display: inline-flex;
  gap: var(--ifm-button-group-spacing);

  & > .button {
    &:not(:first-child) {
      border-bottom-left-radius: 0;
      border-top-left-radius: 0;
    }

    &:not(:last-child) {
      border-bottom-right-radius: 0;
      border-top-right-radius: 0;
    }
  }

  &--block {
    display: flex;
    justify-content: stretch;

    & > .button {
      flex-grow: 1;
    }
  }
}
