
/*	Removes the "Home" button in the MkDocs theme, leaving a small margin instead.
	Uses the attribute selector to prevent "nav navbar-nav navbar-right" to be affected.
	The inmediate child selector (>) ensures no nested menus are affected.
	The mkdocs.yml file should have the thin space code for fallback: - "&#8201;": index.md
*/

[class='nav navbar-nav'] > li:first-child
	{
	display: none;
	}

[class='nav navbar-nav']
	{
	margin-left: 15px;
	}


/*	Hides the prev, next and github links when browser width is between 992 and 1200px.
	Leaves Search visible only.
*/

@media (min-width: 992px) and (max-width: 1199px)
	{
	.nav.navbar-nav.navbar-right li:last-child,
	.nav.navbar-nav.navbar-right li:nth-last-child(2)
	/*
	EDY: This must be removed for leaving Search visible when disabling GitHub repo in the yml.
	,
	.nav.navbar-nav.navbar-right li:nth-last-child(3) */
		{
		display: none;
		}
	}


/*	Hides the entire right navbar, including the search button, below 992px.
	Will reappear in the menu below 768px.
*/

@media (min-width: 768px) and (max-width: 991px)
	{
	.nav.navbar-nav.navbar-right
		{
		display: none;
		}
	}


/*	Top-Down mobile menu:
	- Hides the GitHub link.
	- Moves the Search, Next, Prev links to the right.
	- Fixes the max height of the nav menu for preventing scrollbar when everything is folded.
	- Sub-menu links too close together, increased line height.
*/

@media (max-width: 767px)
	{
	.nav.navbar-nav.navbar-right li:last-child
		{
		display: none;
		}

	.nav.navbar-nav.navbar-right
		{
		text-align: right;
		margin-right: 15px;
		}

	.navbar-collapse
		{
		max-height: 345px;
		}

	.navbar-nav .open .dropdown-menu > li > a
		{
    	line-height: 30px;
		padding-left: 40px;
		}
	}


/* Links too close at menu and sidebar
*/

.dropdown-menu > li > a
	{
	padding: 6px 20px;
	}


.bs-sidebar .nav > li > a
	{
	padding: 7px 20px;
	}


/* Prevent blockquotes to be giant-sized. Also makes them italic.
*/

blockquote p
	{
	font-size: inherit;
	font-style: italic;
	}


/*	Add a margin after an UL inside an OL (Bootstrap leaves no margin)
	Example: http://vehiclephysics.com/user-guide/vehicle-creation/
*/

ol ul
	{
	margin-bottom: 10px;
	}


/*	Reduce the giant size of the upper and lower margins of the nav in compressed mode
	(when it's not displayed as sidebar)
*/

.bs-sidenav
	{
    margin-top: 10px;
    margin-bottom: 10px;
	}


/*	H5 in bold
	(it's barely perceptible as header now)
*/

h5, .h5
	{
	font-weight: bold;
	}


/* 	Fix exagerated padding at the bottom of the content column (was 100px)
*/

div.col-md-9
	{
	padding-bottom: 40px;
	}


/*	Prevent source code wordwrap
*/

pre code
	{
    white-space: pre;
	}

p
	{
	margin-top: 1em;
	margin-bottom: 1em;
	}
