/**
 * 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-toc-border-color: var(--ifm-color-emphasis-300);
  --ifm-toc-link-color: var(--ifm-color-content-secondary);
  --ifm-toc-padding-vertical: 0.5rem;
  --ifm-toc-padding-horizontal: 0.5rem;
}

.table-of-contents {
  font-size: 0.8rem;
  margin-bottom: 0;
  padding: var(--ifm-toc-padding-vertical) 0;

  @media print {
    display: none;
  }

  &,
  ul {
    list-style: none;
    padding-left: var(--ifm-toc-padding-horizontal);
  }

  li {
    margin: var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal);
  }

  &__left-border {
    border-left: 1px solid var(--ifm-toc-border-color);
  }

  &__link {
    color: var(--ifm-toc-link-color);
    display: block;

    &:hover,
    &:hover code,
    &--active,
    &--active code {
      color: var(--ifm-color-primary);
      text-decoration: none;
    }
  }
}
