/**
 * 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.
 */

.sidebar {
  /* max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem)); */
  overflow-y: auto;
  /* position: sticky; */
  /* top: calc(var(--ifm-navbar-height) + 2rem); */
  background-color: var(--ifm-color-gray-0);
  padding: 1rem;
}

html[data-theme=dark] .sidebar {
  background-color: var(--ifm-color-gray-900);
}

.categories {
  margin-bottom: 1rem;
}

.sidebarItemTitle {
  font-size: var(--ifm-h3-font-size);
  font-weight: var(--ifm-font-weight-bold);
}

.sidebarItemList {
  list-style: none;
  font-size: 0.9rem;
  padding-left: 0;
  margin-bottom: 0;
}

.sidebarItem {
  margin-top: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ifm-color-gray-200);

  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme=dark] .sidebarItem {
  border-color: var(--ifm-color-gray-800);
}

.sidebarItem:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebarItemLink {
  color: var(--ifm-font-color-base);
}
.sidebarItemLink:hover {
  text-decoration: none;
}
.sidebarItemLinkActive {
  color: var(--ifm-color-primary);
}

@media only screen and (max-width: 996px) {
  .sidebar {
    margin-top: 2rem;
  }
}
