/*
	BOOTSTRAP OVERRIDE RULES
	Please do not add the .fuelux namespace wrapper class.
 */

@import '../reference-imports.less';

// Dropdown button
//
.btn-dropdown {
	text-align: left;
	//padding + border = 5px
	border: 1px solid @gray74;
	padding: 4px 7px 4px 7px;
	#gradient > .gradient-bg(@gray99, @gray87);

	&:active,
	&.active,
	&:focus {
		background: @gray93;
		.box-shadow(inset 0 1px 1px fade(@true-black, 20%));
	}
	&.btn-sm {
		//padding + border = 3px
		padding: 2px 8px;
	}
	&.btn-lg {
		padding: 6px 7px;
	}
}

//keeps caret in dropdown buttons to the right
.dropdown > .btn > .caret {
			margin-top: 4px;
			float: right;
}

//keeps text to the left
.btn-dropdown-text {
	float: left;
	margin-right: 5px;
}

// Dropdown menu
//
.dropdown-menu {
	.box-shadow(0 0 3px @gray67);
	font-size: @font-size-base; // ~11px
	border-radius: 4px;
	padding: 2px;
	border: solid 1px @gray80;

	// Links within the dropdown menu
	> li > a {
		padding: 2px 9px;
		border-radius: 4px;
		color: @gray47;

		&:hover {
			background-color: @nav-link-hover-bg;
			color: @menu-text-hover;
		}
	}

	// Divider within the menu
	.divider {
		margin: 5px 0;
		background-color: @gray93;
	}
}

.dropdown-menu-inverse {
	@dropdown-menu-inverse-offset: 20px;
	@dropdown-menu-inverse-arrow-height: 12px;

	font-size: @font-size-base; // ~11px
	border-radius: 6px;
	padding: 6px 0px;
	background: @gray13;
	border: 0;
	box-shadow: none;

	// Links within the dropdown menu
	> li > a {
		padding: 4px 9px;
		border-radius: 0;
		color: @true-white;
		line-height: 1.5;

		&:hover,
		&:focus {
			background-color: @gray33;
			color: @true-white;
		}
	}

	// Divider within the menu
	.divider {
		margin: 5px 0;
		background-color: @gray33;
	}

	.fuelux-icon {
		width: 10px;
		height: 10px;
		margin-top: -1px;
		margin-bottom: -1px;
	}

	&.pull-right {
		#fuelux-mctheme.transform-translate( 0, (@popover-arrow-width - (@popover-arrow-width / 5)) );
		right: -@dropdown-menu-inverse-offset;

		.dropup & {
			#fuelux-mctheme.transform-translate( 0, (-@popover-arrow-width + (@popover-arrow-width / 5)) );
		}

		&:after {
			position: absolute;
			display: block;
			width: 0;
			height: 0;
			border-color: transparent;
			border-style: solid;
			border-width: @popover-arrow-width;
			content: "";
			right: (@popover-arrow-width + @dropdown-menu-inverse-offset - 7px);
			margin-left: -@popover-arrow-width;
			border-top-width: 0;
			border-bottom-color: @gray13;
			top: -@popover-arrow-width;

			.dropup & {
				top: auto;
				bottom: -@popover-arrow-width;
				border-bottom-width: 0;
				border-top-width: @popover-arrow-width;
				border-top-color: @gray13;
			}
		}

		&:before {
			width: 100%;
			background-color: transparent;
			height: @dropdown-menu-inverse-arrow-height;
			content: "";
			position: absolute;
			top: -@dropdown-menu-inverse-arrow-height;

			.dropup & {
				bottom: -@dropdown-menu-inverse-arrow-height;
				top: auto;
			}
		}

	}
}

.dropdown-menu-inverse-alt {
	font-size: @font-size-base; // ~11px
	padding: 6px 0px;
	background: @gray13;
	border: 0;
	box-shadow: none;

	// Links within the dropdown menu
	> li > a {
		padding: 4px 9px;
		border-radius: 0;
		color: @true-white;
		line-height: 1.5;

		&:hover {
			background-color: @gray33;
			color: @true-white;
		}
	}

	// Divider within the menu
	.divider {
		margin: 5px 0;
		background-color: @gray33;
	}

	//.action-item 
	.fuelux-icon {
		width: 10px;
		height: 10px;
		margin-top: -1px;
		margin-bottom: -1px;
	}

}

.dropdown-header {
	font-size: 10px; //header size is 1px smaller than the text size
	padding: 2px 9px;
}