@import "flive-vars";

// simple icon size
.icon-xs {
  @include iconFontSize('xs')
}
.icon-sm {
  @include iconFontSize('sm')
}
.icon-md {
  @include iconFontSize('md')
}
.icon-lg {
  @include iconFontSize('lg')
}
.icon-auto {
  @include iconFontSize('auto')
}

// circle style
.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border-width: 1px;
  border-style: solid;
  line-height: 1em;
  font-weight: normal;
  position: relative;
  z-index: 3;
  text-align: center;
  overflow: hidden;
  width: 2em;
  height: 2em;
  margin: 0 auto;
}

// circle icon size
.circle-xs {
  @include iconFontSize('xs')
}
.circle-sm {
  @include iconFontSize('sm')
}
.circle-md {
  @include iconFontSize('md')
}
.circle-lg {
  @include iconFontSize('lg')
}
.circle-auto {
  @include iconFontSize('auto')
}

.circle-wrapper {
  display: inline-block;
}

.icon, .icon i {
  // display: flex;
  text-decoration: none;
  &:before {
    font-family: "flive-ui";
    font-style: normal;
    font-weight: normal;
    speak: none;

    display: inline-block;
    text-decoration: inherit;
    text-align: center;
    /* opacity: .8; */

    /* For safety - reset parent styles, that can break glyph codes*/
    font-variant: normal;
    text-transform: none;

    /* fix buttons height, for twitter bootstrap */
    line-height: 1em;

    /* Animation center compensation - margins should be symmetric */
    /* remove if not needed */
    // margin-left: .2em;

    /* you can be more comfortable with increased icons size */
    /* font-size: 120%; */

    /* Font smoothing. That was taken from TWBS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Uncomment for 3D effect */
    /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
  }
}

.icon-doc:before { content: '\e800'; } /* '' */
.icon-app-launcher:before { content: '\e801'; } /* '' */
.icon-sigfox:before { content: '\e802'; } /* '' */
.icon-trash:before { content: '\e803'; } /* '' */
.icon-certification:before { content: '\e804'; } /* '' */
.icon-eye:before { content: '\e805'; } /* '' */
.icon-eye-off:before { content: '\e806'; } /* '' */
.icon-ok-circle:before { content: '\e807'; } /* '' */
.icon-world:before { content: '\e808'; } /* '' */
.icon-ok-ellipsis:before { content: '\e809'; } /* '' */
.icon-attach:before { content: '\e80a'; } /* '' */
.icon-link:before { content: '\e80b'; } /* '' */
.icon-briefcase:before { content: '\e80c'; } /* '' */
.icon-sdr-dongle:before { content: '\e80d'; } /* '' */
.icon-technical-quickstart:before { content: '\e80e'; } /* '' */
.icon-mail:before { content: '\e80f'; } /* '' */
.icon-location:before { content: '\e810'; } /* '' */
.icon-resize-cover:before { content: '\e811'; } /* '' */
.icon-resize-contain:before { content: '\e812'; } /* '' */
.icon-search:before { content: '\e813'; } /* '' */
.icon-phone:before { content: '\e814'; } /* '' */
.icon-signal:before { content: '\e815'; } /* '' */
.icon-certificate-outline:before { content: '\e816'; } /* '' */
.icon-derived-device:before { content: '\e817'; } /* '' */
.icon-integrator:before { content: '\e818'; } /* '' */
.icon-chat:before { content: '\e819'; } /* '' */
.icon-soc:before { content: '\e81a'; } /* '' */
.icon-software-partner:before { content: '\e81b'; } /* '' */
.icon-export:before { content: '\e81c'; } /* '' */
.icon-kit-maker:before { content: '\e81d'; } /* '' */
.icon-solution:before { content: '\e81e'; } /* '' */
.icon-solution-provider:before { content: '\e81f'; } /* '' */
.icon-kit:before { content: '\e820'; } /* '' */
.icon-help-circled:before { content: '\e821'; } /* '' */
.icon-chip-maker:before { content: '\e822'; } /* '' */
.icon-manufacturer:before { content: '\e823'; } /* '' */
.icon-tech-hub:before { content: '\e824'; } /* '' */
.icon-transceiver:before { content: '\e825'; } /* '' */
.icon-consulting-company:before { content: '\e826'; } /* '' */
.icon-consulting:before { content: '\e827'; } /* '' */
.icon-module-maker:before { content: '\e828'; } /* '' */
.icon-utilities:before { content: '\e829'; } /* '' */
.icon-module:before { content: '\e82a'; } /* '' */
.icon-na:before { content: '\e82b'; } /* '' */
.icon-contact:before { content: '\e82c'; } /* '' */
.icon-design-house:before { content: '\e82d'; } /* '' */
.icon-bat2:before { content: '\e82e'; } /* '' */
.icon-platform-provider:before { content: '\e82f'; } /* '' */
.icon-platform:before { content: '\e830'; } /* '' */
.icon-device-maker:before { content: '\e831'; } /* '' */
.icon-design:before { content: '\e832'; } /* '' */
.icon-device:before { content: '\e833'; } /* '' */
.icon-bat1:before { content: '\e834'; } /* '' */
.icon-bat3:before { content: '\e835'; } /* '' */
.icon-bat4:before { content: '\e836'; } /* '' */
.icon-logout:before { content: '\e837'; } /* '' */
.icon-target:before { content: '\e838'; } /* '' */
.icon-distributor:before { content: '\e839'; } /* '' */
.icon-attention:before { content: '\e83a'; } /* '' */
.icon-mcu:before { content: '\e83b'; } /* '' */
.icon-microchip:before { content: '\e83c'; } /* '' */
.icon-external-link:before { content: '\e83d'; } /* '' */
.icon-plus:before { content: '\e83e'; } /* '' */
.icon-webhook:before { content: '\e83f'; } /* '' */
.icon-service:before { content: '\e840'; } /* '' */
.icon-arrows-cw:before { content: '\e841'; } /* '' */
.icon-trophy:before { content: '\e842'; } /* '' */
.icon-award:before { content: '\e843'; } /* '' */
.icon-edit:before { content: '\e845'; } /* '' */
.icon-development:before { content: '\e846'; } /* '' */
.icon-industrialization:before { content: '\e847'; } /* '' */
.icon-library:before { content: '\e848'; } /* '' */
.icon-start:before { content: '\e849'; } /* '' */
.icon-study:before { content: '\e84a'; } /* '' */
.icon-antenna:before { content: '\e84c'; } /* '' */
.icon-led:before { content: '\e84d'; } /* '' */
.icon-down:before { content: '\e84e'; } /* '' */
.icon-left:before { content: '\e84f'; } /* '' */
.icon-right:before { content: '\e850'; } /* '' */
.icon-up:before { content: '\e851'; } /* '' */
.icon-resize-full:before { content: '\e852'; } /* '' */
.icon-resize-small:before { content: '\e853'; } /* '' */
.icon-account:before { content: '\e854'; } /* '' */
.icon-basket:before { content: '\e855'; } /* '' */
.icon-card:before { content: '\e856'; } /* '' */
.icon-antenna-designer:before { content: '\e857'; } /* '' */
.icon-refdesign:before { content: '\e858'; } /* '' */
.icon-wrench:before { content: '\e859'; } /* '' */
.icon-sigfox-operator:before { content: '\e85e'; } /* '' */
.icon-test-house:before { content: '\e860'; } /* '' */
.icon-security-expert:before { content: '\e861'; } /* '' */
.icon-secure-element:before { content: '\e862'; } /* '' */
.icon-company:before { content: '\e863'; } /* '' */
.icon-cloud-platform-provider:before { content: '\e864'; } /* '' */
.icon-different-device:before { content: '\e86c'; } /* '' */
.icon-cloud-platform:before { content: '\e86d'; } /* '' */
.icon-similar-device:before { content: '\e86e'; } /* '' */
.icon-new-device:before { content: '\e86f'; } /* '' */
.icon-several-devices:before { content: '\e870'; } /* '' */
.icon-flash:before { content: '\e871'; } /* '' */
.icon-push-notification:before { content: '\e880'; } /* '' */
.icon-sensit-mail:before { content: '\e881'; } /* '' */
.icon-sms:before { content: '\e882'; } /* '' */
.icon-notification:before { content: '\e883'; } /* '' */
.icon-timeline:before { content: '\e884'; } /* '' */
.icon-chart:before { content: '\e885'; } /* '' */
.icon-time:before { content: '\e886'; } /* '' */
.icon-configuration:before { content: '\e896'; } /* '' */
.icon-sensit-add:before { content: '\e8d6'; } /* '' */
.icon-sensit-device-3:before { content: '\e8d7'; } /* '' */
.icon-sensit-help:before { content: '\e8d8'; } /* '' */
.icon-sensit-vibration:before { content: '\e92f'; } /* '' */
.icon-sensit-temperature:before { content: '\e930'; } /* '' */
.icon-sensit-magnet:before { content: '\e931'; } /* '' */
.icon-sensit-light:before { content: '\e932'; } /* '' */
.icon-sensit-humidity:before { content: '\e933'; } /* '' */
.icon-sensit-door:before { content: '\e934'; } /* '' */
.icon-sensit-button:before { content: '\e935'; } /* '' */
.icon-sensit-standby:before { content: '\e936'; } /* '' */
.icon-user:before { content: '\f061'; } /* '' */
.icon-doc-text:before { content: '\f0f6'; } /* '' */
.icon-bank:before { content: '\f19c'; } /* '' */
.icon-battery:before { content: '\f240'; } /* '' */
.icon-usb:before { content: '\f287'; } /* '' */
.icon-slack:before { content: '\f198'; } /* '' */

.icon-card:before {
  /*
    /!\ don't remove !
  */
  font-size: 0.8em;
}
.icon-new-device,
.icon-several-devices {
  &:before {
    font-size: 1.5em;
  }
}
.icon-several-devices  {
  &:before {
    position: relative;
    top: 0.03em;
  }
}
.icon-similar-device,
.icon-different-device {
  &:before {
    font-size: 1.9em;
  }
}
.icon-different-device,
.icon-derived-device  {
  &:before {
    position: relative;
    top: 0.05em;
  }
}
.icon-derived-device {
  &:before {
    font-size: 1.85em;
  }
}
.icon-sigfox-id {
  -webkit-font-smoothing: antialiased;
  padding: 0.01em 0.2em 0.2em 0.2em;
  border-radius: 0.25em;
  white-space: nowrap;
  border: 0.05em solid;
  display: inline-block;
  line-height: 0.28em;
  &:before, &:after {
    display: inline !important;
    font-style: normal;
    font-family: $title-font-family;
    font-size: 0.4em;
  }
  &:before {
    font-weight: 500;
    content: 'sigfox';
    margin-right: 0.2em;
  }
  &:after {
    font-weight: 100;
    content: 'id';
  }
}
.icon-close {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: 1em;
  height: 1em;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  &:before, &:after {
    margin: -.05em;
    position: absolute;
    content: "";
    border-left: 0.1em solid;
    height: 1em;
    top: 0;
  }
  &:before {
    right: 0.5em;
    transform: rotate(45deg);
  }
  &:after {
    left: 0.5em;
    transform: rotate(-45deg);
  }
}
.icon-signal-1,
.icon-signal-2,
.icon-signal-3,
.icon-signal-4 {
  font-size: 1em;
  position: relative;
  width: 1.25em;
  height: 0.8em;
  display: inline-block;
  &:before, i:before, i:after, &:after {
    content: "";
    border-left: 0.2em solid;
    display: block;
    position: absolute;
    bottom: 0;
    opacity: 0.4;
  }
  &:before {
    height: 25%;
    left: 0.05em;
  }
  i {
    font-size: 1em;
    &:before {
      left: 0.36em;
      height: 50%;
    }
    &:after {
      left: 0.67em;
      height: 75%;
    }
  }
  &:after {
    left: 0.99em;
    height: 100%;
  }
}
.icon-signal-1 {
  &:before {
    opacity: 1;
  }
}
.icon-signal-2 {
  &:before, i:before {
    opacity: 1;
  }
}
.icon-signal-3 {
  &:before, i:before, i:after {
    opacity: 1;
  }
}
.icon-signal-4 {
  &:before, i:before, i:after, &:after {
    opacity: 1;
  }
}
