/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Tweaks to the bootstrap theme
--------------------------------- */

/** MSKINS-191 Added to ensure the breadcrumb version bar is displayed correctly. */
.breadcrumb {
  margin-bottom: 0px;
}

/** MSKINS-191 Added for the sidebar to ensure the menu items get the same style as the original look. */
#sidebarList{
  padding-left: 1rem;
  padding-right: 1rem;
}

/** MSKINS-191 Added for the sidebar to ensure the menu items get the same style as the original look. */
#sidebarList > .nav > li > a {
    font-size: 14px;
    padding: 5px;
    text-transform: none;
}

/** MSKINS-191 Added for the sidebar so pills take up the bar width rather than act as buttons. */
#sidebarList > .nav > .nav-header > .nav-tabs > li {
  float: none;
}

/** MSKINS-191 Added for the sidebar to ensure the menu items get the same style as the original look. */
#sidebarList > .nav > .nav-header > .nav-tabs > li > a {
  font-size: 14px;
  font-weight: normal;
  padding: 5px;
  text-transform: none;
}

/** MSKINS-191 added since nav-header isn't styled in >2.8, this recreates the sidebar section title layout. */
#sidebarList > .nav > li.nav-header {
  font-size: 11px;
  font-weight: bold;
  line-height: 20px;
  margin-top: 9px;
  text-transform: uppercase;
}

/** MSKINS-191 added since nav-header isn't styled in >2.8, this recreates the sidebar section title layout. */
#sidebarList> .nav > .nav-header > a {
  font-size: 11px;
  font-weight: bold;
  line-height: 20px;
  margin-top: 9px;
  padding: 0px;
  text-transform: uppercase;
}

/** MSKINS-191 Added to restore line numbers to every line in the pretty print statement. */
li.L0, li.L1, li.L2, li.L3,
li.L5, li.L6, li.L7, li.L8 {
  list-style-type: decimal !important;
}

/* MSKINS-191 Added for submenu in responsive small screens */
.dropdown-submenu {
  position: relative;
}
/* MSKINS-191 Added for submenu in responsive small screens */
.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

/* MSKINS-191 Added for submenu in responsive small screens */
.navbar-nav li:hover > ul.submenu {
  display: block;
}

/* MSKINS-191 Added for submenu in responsive small screens */
@media all and (min-width: 992px) {
  .dropdown-menu li{
    position: relative;
  }
  .dropdown-menu .submenu{
    display: none;
  	position: absolute;
  	right:100%; left:auto;
  }
  .dropdown-menu .submenu-left{
  	right:100%; top:-7px;
  }
}

/*
 * Declare different heights because we have used
 * rem and that is a function of text height and
 * screen width changes the text height (and the
 * required height of the box).
 */
 @media only screen and (max-width: 576px) {
  ul.navbar_suffix_menu {
    display: none;
  }
  nav.navbar_suffix_menu {
    display: none;
  }
}

@media only screen and (min-width: 576px) {
  a.navbar_collapse_menu {
    display: none;
  }
}