/*
 * This Source Code is subject to the terms of the Mozilla Public License
 * version 2.0 (the "License"). You can obtain a copy of the License at
 * http://mozilla.org/MPL/2.0/.
 */

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

#abp-status
{
	cursor: pointer;
}

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

#abp-toolbar-popup {
	list-style-image: none;
	-moz-image-region: rect(0px, 0px, 0px, 0px);
}

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

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

#abp-toolbarbutton,
#abp-site-info {
	list-style-image: url("abp-status.png");
	-moz-image-region: rect(0px, 24px, 24px, 0px);
}
#abp-toolbarbutton[abpstate="disabled"],
#abp-toolbarbutton[abpstate="whitelisted"],
#abp-site-info[abpstate="disabled"],
#abp-site-info[abpstate="disabled_site"] {
	-moz-image-region: rect(24px, 24px, 48px, 0px);
}

/* Hack: force the label to be displayed below icon for type="menu" */
#abp-toolbarbutton[type="menu"]
{
	-moz-box-orient: horizontal;
}
toolbar[mode="full"] #abp-toolbarbutton[type="menu"]
{
	-moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-vertical");
}

/* Thunderbird-specific toolbar icon styles */
#header-view-toolbar > #abp-toolbarbutton
{
	-moz-appearance: dualbutton;
	padding: 0px !important;
}

/* Hide toolbar icon text in Thunderbird to save space */
#header-view-toolbar > #abp-toolbarbutton .toolbarbutton-text
{
	display: none;
}

/* SeaMonkey expects the icon to be rather large, add margin */
#mail-toolbox #abp-toolbarbutton .toolbarbutton-icon
{
	margin-top: 5px;
}

#abp-status-image {
	margin-left: 10px;
	margin-right: 10px;
}

#abp-site-info .pageaction-image {
	width: 32px;
	height: 32px;
	padding: 4px;
}

#abp-toolbarbutton > toolbarbutton {
	/* Argh, Songbird defines image region directly on the anonymous toolbarbutton element */
	-moz-image-region: inherit !important;
}

#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("close.png");
	-moz-appearance: none;
	-moz-image-region: rect(0px, 14px, 14px, 0px);
}

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

#abp-sidebar-close:hover:active {
	-moz-image-region: rect(0px, 42px, 14px, 28px);
}

.abp-contributebutton
{
	margin-top: 20px;
}

.abp-contributebutton-btn
{
	font-size: 80%;
	margin-left: 40px;
	margin-right: 40px;
}

.abp-contributebutton-close
{
	border-style: none !important;
	-moz-user-focus: normal;
	list-style-image: url("close.png");
	-moz-appearance: none;
	-moz-image-region: rect(0px, 14px, 14px, 0px);
}

.abp-contributebutton-close:hover
{
	-moz-image-region: rect(0px, 28px, 14px, 14px);
}
