/*
	jQuery.mmenu searchfield addon CSS
*/

@import "../inc/variables";

.mm-search,
.mm-search input
{
	@include mm_vendor-prefix( "box-sizing", border-box );
}
.mm-list 
{
	> li.mm-search
	{
		padding: $mm_padding;
		margin-top: -( $mm_padding * 2 );
	}
	> li.mm-subtitle + li.mm-search
	{
		margin-top: 0;
	}
}
div.mm-panel > div.mm-search
{
	padding: 0 0 $mm_padding 0;
}
.mm-menu.mm-hasheader .mm-list > li.mm-search
{
	margin-top: 0;
}
.mm-search
{

	background: inherit;
	width: 100%;
	padding: $mm_padding;
	position: relative;
	top: 0;
	z-index: 2;

	input
	{		
		border: none;
		border-radius: $mm_searchfieldHeight;
		font: inherit;
		font-size: $mm_fontSize;
		line-height: $mm_searchfieldHeight;
		outline: none;
		display: block;
		width: 100%;
		height: $mm_searchfieldHeight;
		margin: 0;
		padding: 0 $mm_padding;
	}
}
.mm-menu
{
	li.mm-nosubresults > a.mm-subopen
	{
		display: none;
	
		+ a, 
		+ span
		{
			padding-right: 10px;
		}
	}
	.mm-noresults
	{
		text-align: center;
		font-size: round( $mm_fontSize * 1.5 );
		display: none;
		padding: ( $mm_btnSize * 1.5 ) 0;
		
		&:after
		{
			border: none;
		}
	}
	&.mm-noresults .mm-noresults
	{
		display: block;
	}

	&.mm-hassearch 
	{
		> .mm-panel
		{
			padding-top: $mm_searchHeight + ( $mm_padding * 3 );
		}
		&.mm-ismenu
		{
			> .mm-panel
			{
				padding-top: $mm_searchHeight + $mm_padding;
			}
		}
	}
}

@include mm_colors_search;