/*
 * Styling for namespace tabs (page, discussion) and views (read, edit, view history, watch and other actions)
 */

/* Navigation Labels */
div.vectorTabs h5,
div.vectorMenu h5 span {
	display: none;
}

/* Namespaces and Views */
div.vectorTabs {
	/* @noflip */
	float: left;
	height: 2.5em;
	background-image: url( images/tab-break.png );
	background-position: bottom left;
	background-repeat: no-repeat;
	padding-left: 1px;

	.metrolook-nav-directionality & {
		float: left;
	}

	ul {
		/* @noflip */
		float: left;
		height: 100%;
		list-style-type: none;
		list-style-image: none;
		margin: 0;
		padding: 0;
		background-image: url( images/tab-break.png );
		background-position: right bottom;
		background-repeat: no-repeat;

		.metrolook-nav-directionality & {
			float: left;
		}

		li {
			/* @noflip */
			float: left;
			line-height: 14px;
			/* For IE6, overridden later to display:block by modern browsers */
			display: inline-block;
			height: 100%;
			margin: 0;
			padding: 0;
			background: transparent;
			background-image: url( images/tab-normal-fade.png );
			background-position: bottom left;
			background-repeat: repeat-x;
			white-space: nowrap;

			.metrolook-nav-directionality & {
				float: left;
			}
		}

		/* IGNORED BY IE6 which doesn't support child selector */
		> li {
			display: block;
		}
	}

	li {
		&.new {
			a,
			a:visited{
				color: #a55858;
			}
		}

		&.selected {
			background-image: url( images/tab-current-fade.png );
			a,
			a:visited{
				color: #fff;
				text-decoration: none;
			}
		}

		&.icon {
			a {
				background-position: bottom right;
				background-repeat: no-repeat;
			}
		}

		a {
			/* For IE6, overridden later to display:block by modern browsers */
			display: inline-block;
			height: 2.1em;
			padding-left: 0.8em;
			padding-right: 0.8em;
			color: #fff;
			cursor: pointer;
			font-size: 0.8em;
			text-decoration: none;
		}

		/* Ignored by IE6 which doesn't support child selector */
		> a {
			display: block;
		}
	}

	a:hover {
			background: #9F6F40;
	}

	span {
		display: inline-block;
		background-image: url( images/tab-break.png );
		background-position: bottom right;
		background-repeat: no-repeat;

		a  {
			/* For IE6, overridden later to display:block by modern browsers */
			display: inline-block;
			padding-top: 1em;
		}

		/* Ignored by IE6 which doesn't support child selector */
		> a {
			/* @noflip */
			float: left;
			display: block;

			.metrolook-nav-directionality & {
				float: left;
			}
		}
	}
}

/* Variants and Actions */
div.vectorMenu {
	/* @noflip */
	direction: ltr;
	/* @noflip */
	float: left;
	padding-left: 5px;
	padding-right: 5px;
	cursor: pointer;
	z-index:10;

	.metrolook-nav-directionality & {
		float: left;
	}
}

#mw-head div.vectorMenu h5 {
	/* @noflip */
	float: left;
	background-image: url( images/tab-break.png );
	background-repeat: no-repeat;
	background-position: bottom right;
	font-size: 1em;
	height: 2.5em;
	padding-right: 1px;
	margin-right: -1px;

	.metrolook-nav-directionality & {
		float: left;
	}
}

div.vectorMenu h5 span {
	display: inline-block;
	width: 24px;
	height: 2em;
	background-color: #CF8B54;
	background-image: url( images/arrow-down-icon.svg );
	background-position: 30% 30%;
	background-repeat: no-repeat;
}
div.vectorMenu:hover h5 span {
	background-color: #9F6F40;
}
div.vectorMenu:hover {
	background-color: #9F6F40;
}

div.vectorMenuFocus h5 span {
	background-image: url( images/arrow-down-focus-icon.svg );
	background-position: 100% 60%;
}

div.vectorMenu div.menu {
	display: none;
	clear: both;
	text-align: left;
}

/* Enable forcing showing of the menu for accessibility */
div.vectorMenu:hover div.menu,
div.vectorMenu.menuForceShow div.menu,
div.vectorMenu:hover h5 a div.menu {
	display: block;
}

div.vectorMenu ul {
	position: absolute;
	background-color: white;
	border: solid 2px #CF8B54;
	border-top-width: 0;
	list-style-type: none;
	list-style-image: none;
	padding: 0;
	padding-top:5px;
	margin: 0;
	margin-left: -6px;
	text-align: left;
	z-index: 2;
}

/* Fixes old versions of FireFox */
div.vectorMenu ul,
x:-moz-any-link {
	min-width: 5em;
}

/* Returns things back to normal in modern versions of FireFox */
div.vectorMenu ul,
x:-moz-any-link,
x:default {
	min-width: 0;
}

div.vectorMenu li {
	padding: 0;
	margin: 0;
	text-align: left;
	line-height: 1em;
}

/* OVERRIDDEN BY COMPLIANT BROWSERS */
div.vectorMenu li a {
	display: inline-block;
	padding: 0.5em;
	padding-left: 1em;
	padding-right: 2.5em;
	white-space: nowrap;
	color: #333;
	cursor: pointer;
	font-size: 0.8em;
	text-decoration:none;
}
div.vectorMenu li a:hover {
	background-color: #f3f3f3;
}
/* IGNORED BY IE6 */
div.vectorMenu li > a {
	display: block;
}

div.vectorMenu li.selected a,
div.vectorMenu li.selected a:visited {
	color: #333;
	text-decoration: none;
}

// Expand vectorMenu as basic tabs in IE6
// (IE6 doesn't support :hover on DIV)
* html div.vectorMenu div.menu {
	display: block;
	position: static;
	border: 0;
}
* html #mw-head div.vectorMenu h5 {
	display: none;
}
* html div.vectorMenu li {
	float: left;
	line-height: 1.125em;
	border-right: 1px solid #a7d7f9;
}
* html div.vectorMenu li a {
	padding-top: 1.25em;
}

@import 'watchstar.less';
