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

/* ===== folderMenus.css ================================================
  == Icons for menus which represent mail folder.
  ======================================================================= */

.folderMenuItem::part(icon),
.folderMenuItem > .menu-iconic-left > .menu-iconic-icon {
  -moz-context-properties: fill, stroke;
  fill: color-mix(in srgb, currentColor 20%, transparent);
  stroke: currentColor;
}

/* ::::: Folder icons for menus   ::::: */

/* Folders */
.folderMenuItem {
  list-style-image: var(--icon-folder);
}

/* Newsgroup */
.folderMenuItem[ServerType="nntp"] {
  list-style-image: var(--icon-newsletter);
}

/* Feed folder */
.folderMenuItem[IsFeedFolder="true"] {
  list-style-image: var(--icon-folder-rss);
}

/* Special folders */

.folderMenuItem[SpecialFolder="Inbox"] {
  list-style-image: var(--icon-inbox);
}

.folderMenuItem[SpecialFolder="Sent"] {
  list-style-image: var(--icon-sent);
}

.folderMenuItem[SpecialFolder="Outbox"] {
  list-style-image: var(--icon-outbox);
}

.folderMenuItem[SpecialFolder="Drafts"] {
  list-style-image: var(--icon-draft);
}

.folderMenuItem[SpecialFolder="Templates"] {
  list-style-image: var(--icon-template);
}

.folderMenuItem[SpecialFolder="Junk"] {
  list-style-image: var(--icon-spam);
}

.folderMenuItem[SpecialFolder="Trash"] {
  list-style-image: var(--icon-trash);
}

.folderMenuItem[SpecialFolder="Archive"] {
  list-style-image: var(--icon-archive);
}

.folderMenuItem[SpecialFolder="Virtual"] {
  list-style-image: var(--icon-folder-filter);

}

/* IMAP/POP server */
.folderMenuItem[IsServer="true"] {
  list-style-image: var(--icon-mail);
}

/* IMAP/POP secure server */
.folderMenuItem[IsServer="true"][ServerType="imap"][IsSecure="true"],
.folderMenuItem[IsServer="true"][ServerType="pop3"][IsSecure="true"] {
  list-style-image: var(--icon-mail-secure);
}

/* Local server */
.folderMenuItem[IsServer="true"][ServerType="none"] {
  list-style-image: var(--icon-folder);
}

/* News server */
.folderMenuItem[IsServer="true"][ServerType="nntp"] {
  list-style-image: var(--icon-globe);
}

/** Secure news server */
.folderMenuItem[IsServer="true"][ServerType="nntp"][IsSecure="true"] {
  list-style-image: var(--icon-globe-secure);
}

/* Feed server */
.folderMenuItem[IsServer="true"][ServerType="rss"] {
  list-style-image: var(--icon-rss);
}
