/* ***** 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");

#aup-status *
{
  cursor: pointer;
}
#aup-status:hover
{
  text-decoration: underline;
}
#aup-status[proxyMode="disabled"]
{
  color: #999999;
}
#aup-status[proxyMode="global"]
{
  color: #008000;
}
#aup-status label {
  display: none;
}

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

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

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

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

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

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

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

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

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

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

#aup-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);
}

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

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