/*****************************************************************************
 * Open MCT Web, Copyright (c) 2014-2015, United States Government
 * as represented by the Administrator of the National Aeronautics and Space
 * Administration. All rights reserved.
 *
 * Open MCT Web is licensed under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 *
 * Open MCT Web includes source code licensed under additional open source
 * licenses. See the Open Source Licenses file (LICENSES.md) included with
 * this source code distribution or the Licensing information page available
 * at runtime from the About dialog for additional information.
 *****************************************************************************/
.filter,
.t-filter {
	input.filter,
	input.t-filter-input {
		@include subdued-input();
	}
	input.t-filter-input {
		height: $formInputH;
		width: 200px;
		&:not(.ng-dirty) {
//			TO-DO: Update compass install to support this
//			@include input-placeholder {
//				color: rgba(#fff, 0.3);
//				font-style: italic;
//			}
		}
		&:not(.ng-dirty) + .t-a-clear {
			display: none;
		}
	}
	.icon.ui-symbol {
		@include border-radius($controlCr);
		display: inline-block;
		font-size: 1.3em;
		height: $formInputH;
		line-height: $formInputH;
		padding: 0px 5px;
		vertical-align: middle;
		&:hover {
			background: rgba(white, 0.1);
		}
	}
	.s-a-clear.ui-symbol {
		$mgn: 4.5px;
		$d: $formInputH - $mgn * 2;
		$cb: #fff;
		$cf: #333;
		@include border-radius($controlCr);
		@include box-sizing(border-box);
		@include opacity(0.2);
		background: $cb;
		color: $cf;
		display: block;
		position: absolute;
		height: $d; width: $d;
		line-height: $d;
		margin-top: $d * -0.5;
		overflow: hidden;
		padding-top: 1px;
		right: $mgn; top: 50%;
		text-align: center;
		z-index: 5;
		&:hover {
			@include opacity(0.6);
			background-color: $colorKey;
		}
	}
//	&:not(ng-dirty)
}

.l-filter {
	// Holds an input and a clear button
	display:inline-block;
	position: relative;
}

.top-bar {
	input.filter {
		$h: $ueTopBarH;
		$ip: 10px;
		font-size: .9em;
		height: $h;
		line-height: $h;
		margin-right: $interiorMargin;
		padding-left: $ip;
		padding-right: $ip;
		vertical-align: top;
	}
	.icon-filter {
		font-size: 1.4em;
	}
}