/*
Theme Name: Docs
Text Domain: docs
Version: 1.0.4
Requires at least: 4.7
Requires PHP: 5.2.4
Description: Simple documentation theme for wordpress. Will detect headers and create menu's.
Author URI: https://spring.nl
Theme URI: https://spring.nl/
*/

@import './assets/css/vars.css';
@import './assets/css/reset.css';
@import './assets/css/document.css';
@import './assets/css/elements.css';
@import './assets/css/helpers.css';

.site-logo img {
  width: 200px;
}

.header-inner {
  padding: 2.15rem 0;
}

#docs {
  display: flex;
  /* padding: 20px; */
  font-size: 16px;
  line-height: 1.8;
  color: #1e1e1e;
  /* padding-top: 5rem; */
  padding-top: 75px;
  /* justify-content: space-between; */
}

#docs p {
  line-height: 1.8;
  font-family: "Roboto", sans-serif;
}

#docs #sidebar {
  padding: 3rem;
  padding-top: 40px;
  padding-left: 4rem;
  border-left: 1px solid var(--subtile);
  flex: 0 0 250px;
  position: -webkit-sticky;
  position: sticky;
  top: 75px;
  height: calc(100vh - 75px);
  overflow-y:scroll;
  margin-left: 50px;
}

#docs #sidebar > ul {
  padding-bottom: 3rem;
  list-style: none;
}

#docs #sidebar > ul > li {
  margin-left: 0;
}

#docs #sidebar ul:first-of-type {
  margin: 0;
}

#docs #page {
  flex: 1 1 auto;
  min-height: 150vh;
}

#site-header {
  border-bottom: 1px solid var(--subtile);
  position: fixed;
  width: 100%;
  z-index: 99;
  top: 0;
  height: 68px;
}

#site-header .header-inner {
  display: flex;
  align-items: center;
}

.header-navigation-wrapper2 {
  margin-left: auto;
}

@media screen and (max-width: 767px) {
  #docs #sidebar {
    order: 0;
    width: 100%;
    position: relative;
    margin-left: 0;
    top: 20px;
    flex: 1 1 auto;
    height: auto;
  }

  .header-inner {
    /* padding: 1rem 0; */
  }

  ul.primary-menu {
    flex-wrap: nowrap;
  }

  .primary-menu > li.menu-item-has-children > a {
    margin-right: 0rem !important;
    white-space: nowrap !important;
  }

  #page {
    order: 1;
  }

  #docs {
    flex-direction: column;
  }
}