/* ***** 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 the SeaMonkey internet suite code.
 *
 * The Initial Developer of the Original Code is
 * the SeaMonkey project at mozilla.org.
 * Portions created by the Initial Developer are Copyright (C) 2008
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Robert Kaiser <kairo@kairo.at>
 *   Markus Stange <mstange@themasta.com>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either of 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");

/* Note to themers:
   On rows and all cells, those properties for download states are available:
   active, inactive, resumable, paused, downloading, finished, failed, canceled, blocked
*/

#clearListButton {
  -moz-appearance: none;
  -moz-box-orient: vertical;
  -moz-box-align: center;
  text-shadow: 0 1px rgba(255, 255, 255, 0.4);
  padding: 0;
  margin: 2px 4px 0 4px;
  min-height: 20px;
  min-width: 0;
  border: 1px solid rgba(59, 59, 59, 0.9);
  border-radius: 3px;
  box-shadow: 0 1px rgba(255, 255, 255, 0.4);
  background-color: #B5B5B5;
  background-image: -moz-linear-gradient(top, #FFFFFF, #ADADAD);
}

#clearListButton:active:hover:not([disabled="true"]) {
  background-image: none;
  box-shadow: inset rgba(0, 0, 0, 0.3) 0 -6px 10px, inset #000000 0 1px 3px, inset rgba(0, 0, 0, 0.2) 0 1px 3px, 0 1px rgba(255, 255, 255, .4);
}

#clearListButton[disabled="true"],
#clearListButton:-moz-window-inactive {
  color: #7C7C7C !important; /* remove this when we support click-through */
  border-color: rgba(146, 146, 146, 0.84);
  background-image: -moz-linear-gradient(top, #FFFFFF, #CCCCCC);
}

treechildren::-moz-tree-image {
  -moz-margin-start: -1px;
}

treechildren::-moz-tree-image(Name) {
  -moz-margin-end: 2px;
}

#ActionPlay {
  list-style-image: url("chrome://communicator/skin/downloads/downloadButtons.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

treechildren::-moz-tree-image(ActionPlay, downloading, resumable),
#pauseButton {
  /* pause */
  list-style-image: url("chrome://communicator/skin/downloads/downloadButtons.png");
  -moz-image-region: rect(0px, 48px, 16px, 32px);
}

treechildren::-moz-tree-image(ActionPlay, paused, resumable),
#resumeButton {
  /* resume */
  list-style-image: url("chrome://communicator/skin/downloads/downloadButtons.png");
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

treechildren::-moz-tree-image(ActionPlay, failed),
treechildren::-moz-tree-image(ActionPlay, canceled),
#retryButton {
  /* retry */
  list-style-image: url("chrome://communicator/skin/downloads/downloadButtons.png");
  -moz-image-region: rect(0px, 64px, 16px, 48px);
}

#ActionStop {
  list-style-image: url("chrome://communicator/skin/downloads/downloadButtons.png");
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

treechildren::-moz-tree-image(ActionStop, active),
#cancelButton {
  /* cancel */
  list-style-image: url("chrome://communicator/skin/downloads/downloadButtons.png");
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

treechildren::-moz-tree-image(ActionStop, inactive) {
  /* remove */
  list-style-image: url("chrome://communicator/skin/downloads/dl-remove.png");
  -moz-image-region: auto;
}

/* There's no way this will look like a native progressbar, but we can at least
   try to mimic the aqua, graphite and non-active colors. */
treechildren::-moz-tree-progressmeter {
  background: url("chrome://communicator/skin/downloads/progressBg.png") repeat-x;
  color: rgba(0, 115, 255, 0.5);
  border: none;
  padding-bottom: 1px;
  margin-top: 3px;
}

treechildren:-moz-system-metric(mac-graphite-theme)::-moz-tree-progressmeter {
  color: rgba(43, 71, 106, 0.5);
}

treechildren:-moz-window-inactive::-moz-tree-progressmeter {
  color: rgba(0, 0, 0, 0.1);
}

/* progress dialogs */

#dlProgressWindow {
  padding: 14px;
}

/* focusable label, focus ring like .link-text but not a link */
#fileName, #fileSource {
  border: 1px solid transparent;
  /* 1px is used for border, make margins smaller by that */
  margin-top: 0px;
  margin-bottom: 1px;
  -moz-margin-start: 5px;
  -moz-margin-end: 4px;
}

#fileName:focus,
#fileSource:focus {
  border: 1px dotted -moz-DialogText;
}

#fileName {
  font-weight: bold;
  margin-bottom: 6px;
}

.mini-button {
  -moz-appearance: none;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
}

.mini-button > .button-box {
  -moz-appearance: none;
  padding: 0 !important;
}

#progressBox {
  margin-top: 6px;
  margin-bottom: 6px;
}
