/* EMBL-EBI Icons for the Life Sciences
 * See documentation at https://www.ebi.ac.uk/style-lab/general/fonts/
 */

/* A set of generic utility icons.
 * - Contains icons from EBI-Social, EBI-Generic, EBI-Functional
 * - Adds non-redundant icons from Font Awesome
 * - EBI-Functional key mappings have not changed
 * See note at https://github.com/ebiwd/EBI-Icon-fonts/issues/22
*/
/*
 * Contains icon from Font Awesome Free 5 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 */
@font-face {
  font-family: 'EBI-Common';
  src:url('EBI-Common/fonts/EBI-Common.woff2') format('woff2'),
    url('EBI-Common/fonts/EBI-Common.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* Biological concepts and top-level icons (e.g. Services, Research, etc. */
@font-face {
  font-family: 'EBI-Conceptual';
  src:url('EBI-Conceptual/fonts/EBI-Conceptual.woff2') format('woff2'),
    url('EBI-Conceptual/fonts/EBI-Conceptual.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* Icons for commonly referenced species and orgamisms */
@font-face {
  font-family: 'EBI-Species';
  src:url('EBI-Species/fonts/EBI-Species.woff2') format('woff2'),
    url('EBI-Species/fonts/EBI-Species.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* Specific file formats */
@font-face {
  font-family: 'EBI-FileFormats';
  src:url('EBI-FileFormats/fonts/EBI-FileFormats.woff2') format('woff2'),
    url('EBI-FileFormats/fonts/EBI-FileFormats.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* Chemistry font */
@font-face {
  font-family: 'EBI-Chemistry';
  src:url('EBI-Chemistry/fonts/EBI-Chemistry.woff2') format('woff2'),
    url('EBI-Chemistry/fonts/EBI-Chemistry.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Generic, functional or activity-orientated icons */
/* !LEGACY! We recommend using EBI-Common
 * See note at https://github.com/ebiwd/EBI-Icon-fonts/issues/22
 */
@font-face {
  font-family: 'EBI-Functional';
  src:url('EBI-Functional/fonts/EBI-Functional.woff2') format('woff2'),
    url('EBI-Functional/fonts/EBI-Functional.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* Generic icons that can be used as decoration or emphasis */
/* !LEGACY! We recommend using EBI-Common
 * See note at https://github.com/ebiwd/EBI-Icon-fonts/issues/22
 */
@font-face {
  font-family: 'EBI-Generic';
  src:url('EBI-Generic/fonts/EBI-Generic.woff2') format('woff2'),
    url('EBI-Generic/fonts/EBI-Generic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* Icons for social media */
/* !LEGACY! We recommend using EBI-Common
 * See note at https://github.com/ebiwd/EBI-Icon-fonts/issues/22
 */
@font-face {
  font-family: 'EBI-SocialMedia';
  src:url('EBI-SocialMedia/fonts/EBI-SocialMedia.woff2') format('woff2'),
    url('EBI-SocialMedia/fonts/EBI-SocialMedia.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


/* General .icon support  */
.icon {
  text-decoration: none;
  font-style: normal;
  text-rendering: optimizeLegibility !important;
  background-size: contain;
  font-weight: 400;
}
input.icon-common,
.icon-common:before,
input.icon-conceptual,
.icon-conceptual:before,
input.icon-functional,
.icon-functional:before,
input.icon-generic,
.icon-generic:before,
input.icon-species,
.icon-species:before,
input.icon-socialmedia,
.icon-socialmedia:before,
input.icon-fileformats,
.icon-fileformats:before,
input.icon-chemistry,
.icon-chemistry:before {
  content: attr(data-icon);
  text-transform: none;
}
i.icon-common,
input.icon-common,
.icon-common:before {
  font-family: 'EBI-Common';
}
i.icon-conceptual,
input.icon-conceptual,
.icon-conceptual:before {
  font-family: 'EBI-Conceptual';
}
i.icon-functional,
input.icon-functional,
.icon-functional:before {
  font-family: 'EBI-Functional';
}
i.icon-generic,
input.icon-generic,
.icon-generic:before {
  font-family: 'EBI-Generic';
}
i.icon-species,
input.icon-species,
.icon-species:before {
  font-family: 'EBI-Species';
}
i.icon-socialmedia,
input.icon-socialmedia,
.icon-socialmedia:before {
  font-family: 'EBI-SocialMedia';
}
input.icon-fileformats,
.icon-fileformats:before {
  font-size: 123.1%;
  font-family: 'EBI-FileFormats';
}
i.icon-chemistry,
input.icon-chemistry,
.icon-chemistry:before {
  font-family: 'EBI-Chemistry';
}
/* icon utility class */
.icon.icon-spacer:before { padding-right: .5rem; }

include "EBI-Chemistry.css"
include "EBI-Common.css"
include "EBI-Conceptual.css"
include "EBI-FileFormats.css"
include "EBI-Functional.css"
include "EBI-Generic.css"
include "EBI-SocialMedia.css"
include "EBI-Species.css"

/* Don't speak icons that don't have aria-label
   https://github.com/ebiwd/EBI-Icon-fonts/issues/25
   */
@media speech {
  .icon.icon-common:not([aria-label]),
  .icon.icon-socialmedia:not([aria-label]),
  .icon.icon-species:not([aria-label]),
  .icon.icon-generic:not([aria-label]),
  .icon.icon-fileformats:not([aria-label]),
  .icon.icon-functional:not([aria-label]),
  .icon.icon-chemistry:not([aria-label]) {
    display:none;
  }
}
