/* 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/. */

/* styles for the attachment list */

.attachmentcell-icon {
  padding: 1px;
}

.attachmentcell-name,
.attachmentcell-size {
  padding-top: 1px;
}

.attachmentcell-size {
  color: GrayText;
}

attachmentlist[orient="horizontal"] > attachmentitem {
  pointer-events: none;
}

attachmentlist[orient="horizontal"] .attachmentcell-icon,
attachmentlist[orient="horizontal"] .attachmentcell-nameselection {
  pointer-events: auto;
}

attachmentlist:focus > attachmentitem[selected="true"][current="true"] .attachmentcell-nameselection {
  outline: 1px dotted #F3D982;
}

attachmentlist:focus > attachmentitem[current="true"] .attachmentcell-nameselection {
  outline: 1px dotted;
  outline-offset: -1px;
}

attachmentitem[selected="true"] .attachmentcell-nameselection {
  background-color: -moz-CellHighlight;
  color: -moz-CellHighlightText;
}

attachmentlist:focus > attachmentitem[selected="true"] .attachmentcell-nameselection {
  background-color: Highlight;
  color: HighlightText;
}

attachmentlist:focus > attachmentitem[selected="true"] .attachmentcell-icon {
  filter: url("chrome://messenger/skin/imageFilters.svg#selected-focus");
}
