// $Id: tiki-bootstrap_overrides.less 55452 2015-05-17 11:38:13Z chibaguy $
// Override or add to specific default Bootstrap styles

// Obey the non-fixed width!
//body:not(.fixed_width) .page-header > div > div {
//  width: auto !important;
//}
body:not(.fixed_width) .container {
	padding-left: 15px;
	padding-right: 15px;
	width: auto;
}

//body:not(.fixed_width) .row {
//  margin-left: 0;
//  margin-right: 0;
//}
//body:not(.fixed_width) .row-middle {
//  margin-top: 0 !important;
//}

legend + p,
legend + .form-group {
	margin-top: 20px;
}

.tiki .page-header {
	border-bottom: none;
	margin: auto;
	padding-bottom: 0;
}

.topbar .navbar {
	margin-bottom: 0;
	border: none;
}

body.tiki.navbar-padding {
	padding-top: @navbar-fixed-height;
}

.panel-body ul.nav {
	overflow: visible;
}

.panel.panel-nocolor,
.panel-nocolor,
.panel-nocolor > .panel-heading,
.panel-nocolor > .panel-body,
.panel-nocolor > .panel-footer {
	border: none;
	background: transparent;
}

.tiki .popover {
	max-width: inherit;
}

.tiki .media-overflow-visible,
.tiki .media-overflow-visible .media-body {
	overflow: visible;
}

// Not an override per se, but useful to counteract the negative margins on form.form-horizontal and so provide side whitespace (emulates a .col grid div and the only instance so far is on tiki-editpage.tpl).
.padding-side-md {
	padding-left: 15px;
	padding-right: 15px;
}

//@media (min-width: @screen-md-min) {
.tiki .col-md-3 .table-responsive,
.tiki .col-md-4 .table-responsive,
.tiki .col-md-5 .table-responsive,
.tiki .col-md-6 .table-responsive,
.tiki .col-md-7 .table-responsive,
.tiki .col-md-8 .table-responsive,
.tiki .col-md-9 .table-responsive {
	width: 100%;
	margin-bottom: 15px;
	overflow-y: hidden;
	overflow-x: auto;
	-ms-overflow-style: -ms-autohiding-scrollbar;
	border: 1px solid @panel-default-border;
	-webkit-overflow-scrolling: touch;
}

.tiki .table-responsive > .table {
	margin-bottom: 0;
	// Ensure the content doesn't wrap
	> thead,
	> tbody,
	> tfoot {
		> tr {
			> th,
			> td {
				white-space: normal;
			}
		}
	}
}

//}

.layout_social,
.layout_social_modules,
.layout_fixed_top_modules {
	a.navbar-brand img {
		display: inline;
	}
	.navbar-inverse a {
		color: @navbar-inverse-link-color;
		&:hover {
			color: @navbar-inverse-link-hover-color;
			text-decoration: none;
		}
	}
	.navbar-inverse .sitetitle a {
		color: @navbar-inverse-brand-color;
		&:hover {
			color: @navbar-inverse-brand-hover-color;
			text-decoration: none;
		}
	}
	h1.sitetitle {
		font-size: 1.8rem;
		margin-top: 10px;
		margin-bottom: 0;
	}
	h1.sitetitle,
	.sitesubtitle {
		display: inline-block
	}

	#topbar_modules {
		display: inline-block;
	}
}

.layout_social_modules,
.layout_fixed_top_modules {
	#topbar_modules {
		display: block;
	}
}

.header_outer.navbar {
	margin-bottom: 0;
}

.navbar-fixed-top,
#navbar-collapse-social {
	.navbar {
		margin-bottom: 0;
		min-height: 32px;
	}
}
