/* ***** BEGIN LICENSE BLOCK *****
 *   Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (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.mozilla.org/MPL/
 * 
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Status-4-Evar.
 *
 * The Initial Developer of the Original Code is 
 * Matthew Turnbull <sparky@bluefang-logic.com>.
 *
 * Portions created by the Initial Developer are Copyright (C) 2011
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *    Moonchild <moonchild@palemoon.org>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 * 
 * ***** END LICENSE BLOCK ***** */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");

/*
 * General styles
 */

#status4evar-status-widget,
#status4evar-progress-widget
{
	-moz-box-align: center;
}

[forcevisible="true"]
{
	visibility: visible !important;
}

#wrapper-status4evar-progress-widget progressmeter,
#wrapper-status4evar-download-button toolbarbutton
{
	visibility: visible;
}

#wrapper-status4evar-status-widget toolbaritem label
{
	background-color: rgba(0,0,0,0.2);
	padding: 2px 4px;
}

/*
 * Options button
 */

#status4evar-options-button
{
	list-style-image: url("chrome://status4evar/skin/pms24.png");
}

toolbar[iconsize="small"] #status4evar-options-button
{
	list-style-image: url("chrome://status4evar/skin/pms16.png");
}

/*
 * Download status
 */

#status4evar-download-button
{
	list-style-image: url("chrome://browser/skin/Toolbar.png");
}

toolbar[mode="icons"] #status4evar-download-button[forcelabel="true"],
toolbar[mode="text"] #status4evar-download-button
{
	-moz-box-orient: horizontal !important;
}

toolbar[mode="icons"] #status4evar-download-button[forcelabel="true"] > label
{
	display: -moz-box !important;
}

#status4evar-download-button .toolbarbutton-icon
{
	margin: 0px !important;
}

#status4evar-download-button .dl-progress-wrapper
{
	min-width: 6px;
}

#status4evar-download-button .dl-progress
{
	width: 6px;
	border: 1px solid gray;
}

toolbar[iconsize="small"] #status4evar-download-button .dl-progress-wrapper
{
	min-width: 4px;
}

toolbar[iconsize="small"] #status4evar-download-button .dl-progress
{
	width: 4px;
}

#status4evar-download-button[pmValue]:not([pmValue="100"]):not([pmValue="0"]) .dl-progress-bar
{
	border-top: 1px solid gray;
}

#status4evar-download-button .dl-progress-remainder,
#status4evar-download-button .dl-progress-bar
{
	background: #FFFFFF;
}

#status4evar-download-button[pmType$="unknown"] .dl-progress-bar
{
	background-image: url("chrome://status4evar/skin/pulse.png");
}

/*
 * Splitter
 */

splitter.status4evar-status-splitter
{
	-moz-appearance: splitter;
	border: none;
	background: transparent;
	position: relative;
}

splitter.status4evar-status-splitter:not(:hover)
{
	-moz-appearance: none;
}

/*
 * Location bar progress
 */

#urlbar-progress-alt:-moz-locale-dir(rtl)
{
	-moz-box-direction: reverse;
}

#urlbar-progress-alt
{
	margin: 0px;
	-moz-appearance: none;
	min-height: 0px;
	height: 3px;
	border: none;
	background-color: transparent;
}

#urlbar[pmpack="center"] #urlbar-progress-alt
{
	-moz-box-flex: 1;
}

#urlbar:not([pmpack="center"]) #urlbar-progress-alt > *
{
	border-top: 1px solid rgba(0,0,0,.1);
	border-bottom: 1px solid rgba(0,0,0,.1);
}

#urlbar-container:not([combined]) #urlbar:not([pmpack="begin"]) #urlbar-progress-alt,
#urlbar-container:not([combined]) #urlbar:not([pmpack="begin"]) #urlbar-progress-alt > *
{
	border-bottom-right-radius: 3px;
}

#urlbar-container:not([combined]) #urlbar:not([pmpack="end"]) #urlbar-progress-alt,
#urlbar-container:not([combined]) #urlbar:not([pmpack="end"]) #urlbar-progress-alt > *
{
	border-top-right-radius: 3px;
}

/*
 * General progress
 */

#urlbar-progress-alt > *,
#status4evar-progress-bar[s4estyle="true"] > *
{
	border: none;
}

#urlbar-progress-alt > .progress-remainder,
#status4evar-progress-bar > .progress-remainder
{
	background-image: none;
	background-color: transparent;
}

#urlbar[s4estyle="true"] > #urlbar-progress-alt > .progress-bar,
#status4evar-progress-bar[s4estyle="true"] > .progress-bar
{
	border-right: 1px solid rgba(0,0,0,.2);
}

#urlbar[s4estyle="true"] > #urlbar-progress-alt[value="0"] > .progress-bar,
#urlbar[s4estyle="true"] > #urlbar-progress-alt[value="100"] > .progress-bar,
#status4evar-progress-bar[s4estyle="true"][value="0"] > .progress-bar,
#status4evar-progress-bar[s4estyle="true"][value="100"] > .progress-bar
{
	border-right: none;
}

/*
 * Location bar status
 */

.urlbar-over-link-box:-moz-locale-dir(rtl)
{
	-moz-box-direction: reverse;
}

.urlbar-input-layer[overlinkstate="fade-in"],
.urlbar-input-layer[overlinkstate="fade-in"] html|input.urlbar-input:-moz-placeholder,
.urlbar-over-link-layer[overlinkstate="fade-out"]
{
	-moz-transition-property: color;
	-moz-transition-duration: 150ms;
	color: transparent;
}

.urlbar-over-link-layer[overlinkstate="fade-in"],
.urlbar-input-layer[overlinkstate="fade-out"],
.urlbar-input-layer[overlinkstate="fade-out"] html|input.urlbar-input:-moz-placeholder
{
	-moz-transition-property: color;
	-moz-transition-duration: 150ms;
	-moz-transition-timing-function: cubic-bezier(0.0, 1.0, 1.0, 1.0);
}

.urlbar-over-link-box[overlinkstate="fade-in"]
{
	-moz-transition-property: opacity;
	-moz-transition-duration: 100ms;
	opacity: 1;
}

.urlbar-over-link-box[overlinkstate="fade-out"]
{
	-moz-transition-property: opacity;
	-moz-transition-duration: 100ms;
	-moz-transition-timing-function: cubic-bezier(0.0, 1.0, 1.0, 1.0);
	opacity: 0;
}

.urlbar-input-layer-children[overlinkstate="fade-in"]
{
	-moz-transition-property: opacity;
	-moz-transition-duration: 100ms;
	opacity: 0;
}

.urlbar-input-layer-children[overlinkstate="fade-out"]
{
	-moz-transition-property: opacity;
	-moz-transition-duration: 100ms;
	-moz-transition-timing-function: cubic-bezier(0.0, 1.0, 1.0, 1.0);
	opacity: 1;
}

.urlbar-input-layer[overlinkstate="showing"],
.urlbar-input-layer[overlinkstate="showing"] html|input.urlbar-input:-moz-placeholder
{
	color: transparent;
}

.urlbar-over-link-box[overlinkstate="showing"]
{
	opacity: 1;
}

.urlbar-input-layer-children[overlinkstate="showing"]
{
	opacity: 0;
}

.urlbar-over-link-layer:not([overlinkstate])
{
	color: transparent;
}

.urlbar-over-link-box:not([overlinkstate])
{
	opacity: 0;
}

.urlbar-origin-label
{
	padding-top: 0;
	padding-bottom: 0;
	-moz-padding-end: 0;
	margin: 0;
}

.urlbar-over-link-box
{
	padding-top: 0;
	padding-bottom: 0;
	-moz-padding-start: 18px;
	-moz-padding-end: 2px;
}

.urlbar-over-link-host-label,
.urlbar-over-link-path-label
{
	padding: 0;
	margin: 0;
}

#urlbar[s4esalign="left"] .urlbar-over-origin-box
{
	display: none;
}

#urlbar:not([s4esalign="left"]) .urlbar-over-link-box:-moz-locale-dir(ltr)
{
	background: url(chrome://status4evar/skin/urlbar-over-link-arrow.png) no-repeat left center;
}

#urlbar:not([s4esalign="left"]) .urlbar-over-link-box:-moz-locale-dir(rtl)
{
	background: url(chrome://status4evar/skin/urlbar-over-link-arrow-rtl.png) no-repeat right center;
}

/*
 * Status bar
 */

#status-bar > .statusbar-resizerpanel
{
	display: none !important;
}

