/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.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 Adblock Plus.
 *
 * The Initial Developer of the Original Code is
 * Wladimir Palant.
 * Portions created by the Initial Developer are Copyright (C) 2006-2008
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * ***** END LICENSE BLOCK ***** */

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

#abp-status:not([disabled="true"]) *
{
	cursor: pointer;
}
#abp-status:not([disabled="true"]):hover
{
	text-decoration: underline;
}
#abp-status[deactivated]
{
	color: #999999;
}
#abp-status[whitelisted]
{
	color: #008000;
}
#abp-status label {
	display: none;
}

toolbar[iconsize="small"] #abp-toolbarbutton,
#PersonalToolbar #abp-toolbarbutton,
#abp-status image {
	list-style-image: url("abp-status-16.png");
	-moz-image-region: rect(0px, 16px, 16px, 0px);
}
toolbar[iconsize="small"] #abp-toolbarbutton[deactivated],
#PersonalToolbar #abp-toolbarbutton[deactivated],
#abp-status[deactivated] image {
	-moz-image-region: rect(16px, 16px, 32px, 0px);
}
toolbar[iconsize="small"] #abp-toolbarbutton[whitelisted],
#PersonalToolbar #abp-toolbarbutton[whitelisted],
#abp-status[whitelisted] image {
	-moz-image-region: rect(32px, 16px, 48px, 0px);
}
toolbar[iconsize="small"] #abp-toolbarbutton[disabled="true"],
#PersonalToolbar #abp-toolbarbutton[disabled="true"],
#abp-status[disabled="true"] image {
	-moz-image-region: rect(48px, 16px, 64px, 0px);
}

#abp-toolbar-popup {
	list-style-image: none;
}

toolbox[vertical="true"] toolbar #abp-toolbarbutton dropmarker {
	display: none !important;
}

menuitem[default="true"] {
	font-weight: bold;
}

#abp-toolbarbutton {
	list-style-image: url("abp-status.png");
	-moz-image-region: rect(0px, 24px, 24px, 0px);
	width: auto;
}
#abp-toolbarbutton[deactivated] {
	-moz-image-region: rect(24px, 24px, 48px, 0px);
}
#abp-toolbarbutton[whitelisted] {
	-moz-image-region: rect(48px, 24px, 72px, 0px);
}
#abp-toolbarbutton[disabled="true"] {
	-moz-image-region: rect(72px, 24px, 96px, 0px);
}

#abp-tooltip {
	max-width: none;
}

#abp-tooltip label {
	font-weight: bold;
	margin-bottom: 0px;
}

#abp-tooltip description:not([hidden="true"])+label {
	margin-top: 10px;
}

#abp-sidebar-title {
	padding-left: 4px;
}

#abp-sidebar-toolbar {
		display: -moz-box !important;
		visibility: visible !important;
}

#abp-sidebar-close {
	padding: 4px 2px;
	border-style: none !important;
	-moz-user-focus: normal;
	list-style-image: url("findbar/close.png");
	-moz-appearance: none;
	-moz-image-region: rect(0px, 16px, 16px, 0px);
}

#abp-sidebar-close:hover {
	-moz-image-region: rect(0px, 32px, 16px, 16px);
}

#abp-sidebar-close:hover:active {
	-moz-image-region: rect(0px, 48px, 16px, 32px);
}
