/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/**
 * Line up the actions menu with action labels above and below it.
 * Equalize the distance from the left side of the action box to the left side
 * of the icon for both the menu and the non-menu versions of the action box.
 * Also make sure the labels are the same distance away from the icons.
 */
.actionsMenu {
  -moz-margin-start: -2px;
  margin-top: 0;
  margin-bottom: -1px;
}

.typeIcon,
.actionIcon {
  margin: 0px 3px;
}

richlistitem label {
  -moz-margin-start: 1px;
  margin-top: 2px;
}

richlistitem {
  min-height: 22px;
}

richlistitem[appHandlerIcon="ask"],
menuitem[appHandlerIcon="ask"] {
  list-style-image: url("chrome://messenger/skin/preferences/alwaysAsk.png");
}

richlistitem[appHandlerIcon="save"],
menuitem[appHandlerIcon="save"] {
  list-style-image: url("chrome://messenger/skin/preferences/saveFile.png");
}

richlistitem[appHandlerIcon="plugin"],
menuitem[appHandlerIcon="plugin"] {
  list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric-16.png");
}

.actionsMenu .menulist-icon {
  -moz-margin-end: 1px;
}

.actionsMenu > menupopup > menuitem > .menu-iconic-left {
  -moz-padding-start: 3px;
  -moz-padding-end: 1px;
}

.shortDetails {
  text-align: right;
  color: GrayText;
}

richlistbox:focus .shortDetails.selected {
  color: inherit;
}


.cloudfileAccount {
  padding: 4px;
}

.cloudfileAccount description{
  padding-left: 3px;
}

/**
 * Used by the outgoing attachment manager
 */
.cloudfileAccount[state="connecting"],
.cloudfileAccount[state="waiting-to-connect"] {
  list-style-image: url("chrome://global/skin/icons/loading_16.png") !important;
}

.cloudfileAccount[state="auth-error"],
.cloudfileAccount[state="no-connection"] {
  list-style-image: url("chrome://global/skin/icons/error-16.png") !important;
}

.cloudfileAccount .typeIcon {
  max-height: 16px;
  max-width: 16px;
  margin-top: 3px;
  margin-bottom: 3px;
}

#authMessage {
  text-align: center;
  padding: 0px 80px;
}

#authImage {
  list-style-image: url("chrome://messenger/skin/preferences/auth-error.png");
  width: 200px;
  height: 200px;
}

#cloudFileToggleAndThreshold {
  padding-bottom: 6px;
}

#cloudFileLoadingSpinner {
  width: 16px;
  height: 16px;
  list-style-image: url("chrome://global/skin/icons/loading_16.png");
}
