#app-container {
  background-color: var(--ls-primary-background-color, #fff);
  position: relative;
}

#root {
  > div {
    color: var(--ls-primary-text-color, #24292e);
    font-size: var(--ls-page-text-size);
  }
}

#app-container {
    flex: 0 0 100%;
    transition: all 200ms ease-in 0s;
}

#main-content-container {
    font-size: 1em;
    padding: 1rem;
}

#left-sidebar {
  width: 240px;
  height: 100%;
  top: 0;
  left: -240px;
  position: absolute;
  z-index: 11;
  opacity: 0;
  transition: all 0.25s;
  -webkit-transition: all 0.25s;
  background-color: #002b36;

  .enter {
    opacity: 1;
    left: 0;
  }
}

#left-bar {
  background-color: var(--ls-primary-background-color);

  > .head-wrap {
    background-color: var(--ls-search-background-color);
  }

  .close-panel-btn {
    color: var(--ls-active-primary-color);
  }

  .left-sidebar-inner {
    padding-right: 15px;
  }

  nav > a {
    color: var(--ls-icon-color);
  }
}

.settings-modal {
  margin: -15px;
}

.cp__sidebar-main-layout {
  background-color: var(--ls-primary-background-color);
}

.cp__sidebar-main-content {
  max-width: var(--ls-main-content-max-width);
  flex: 1;

  h1.title {
    padding-right: 15px;
  }
}

.cp__sidebar-help {
  &-docs {
    @apply ml-2 mt-1;

    td {
      word-break: break-all;
    }

    th {
      width: 80%;
    }
  }

  &-btn {
    @apply font-bold fixed bottom-4
    rounded-full h-8 w-8 flex items-center justify-center font-bold
    opacity-70 hover:opacity-100;

    user-select: none;
    cursor: help;
    right: 24px;
    background-color: var(--ls-secondary-background-color);
  }
}

.cp__right-sidebar {
  z-index: var(--ls-z-index-level-1);
  transition: width 0.3s;
  background-color: var(--ls-secondary-background-color, #d8e1e8);

  &.closed {
    width: 0 !important;
  }

  &.open {
    width: var(--ls-right-sidebar-width);
  }

  &-scollable {
    min-height: 100%;
    overflow-y: scroll;
  }

  &-inner {
    padding-top: 0;
    position: relative;

    .resizer {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 4px;
      user-select: none;
      cursor: col-resize !important;
    }
  }

  &-settings {
    @apply flex flex-row;
    margin: -15px;
    margin-bottom: 0;
    margin-top: 0;
    overflow: auto;

    &-btn {
      display: block;
      padding: 13px 5px;
      white-space: nowrap;
    }
  }

  &-topbar {
      position: sticky;
      position: -webkit-sticky;
      top: 0;
      left: 0;
      right: 0;
      background-color: var(--ls-secondary-background-color, #d8e1e8);
      z-index: 999;
  }

  .page {
    margin-top: 0;
  }

  .non-block-editor textarea,
  pre,
  pre.code {
    background: var(--ls-right-sidebar-code-bg-color);
  }

  pre.CodeMirror-line {
    background: #fff;
  }

  .references {
    margin-left: 12px;
  }

  .sidebar-item {
    padding-top: 24px;
    padding-bottom: 24px;
    margin-bottom: 8px;

    .close {
      transform: scale(0.8);
      transition: transform 0.1s;

      &:hover {
        transform: scale(1);
      }
    }
  }
}

.cp__sidebar-main-content[data-is-full-width='true'] {
  max-width: 100vw;
}

.cp__sidebar-main-content[data-is-global-graph-pages='true'] {
  padding: 0;
}
