/* --------------------------------

azarin-icon Web Font - nucleoapp.com/
License - nucleoapp.com/license/

-------------------------------- */
@import "variables";
@import "mixins";

@font-face {
  font-family: 'azarin-icon';
  src: url('#{$o-font-path}/azarin-icon.eot');
  src: url('#{$o-font-path}/azarin-icon.eot') format('embedded-opentype'),
    url('#{$o-font-path}/azarin-icon.woff2') format('woff2'),
    url('#{$o-font-path}/azarin-icon.woff') format('woff'),
    url('#{$o-font-path}/azarin-icon.ttf') format('truetype'),
    url('#{$o-font-path}/azarin-icon.svg') format('svg');
  font-weight: normal;
  font-style: normal;
}

/*------------------------
	base class definition
-------------------------*/

.o-icon {
  display: inline-block;
  font: normal normal normal #{$o-font-size-base}/1 'azarin-icon';
  font-size: inherit;
  speak: none;
  text-transform: none;
  /* Better Font Rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

/*------------------------
  change icon size
-------------------------*/

.o-icon.lg {
	font-size: 1.33333333em;
  	vertical-align: -16%;
}

.o-icon.x2 {
	font-size: 2em;
}

.o-icon.x3 {
	font-size: 3em;
}

/*----------------------------------
  add a square/circle background
-----------------------------------*/
.o-icon.square,
.o-icon.circle {
  padding: $o-padding-width;
  vertical-align: -16%;
  background-color: $o-background-color;
}

.o-icon.circle {
  border-radius: 50%;
}

/*------------------------
  list icons
-------------------------*/

.#{$o-css-prefix}-ul {
  padding-left: 0;
  margin-left: $o-li-width;
  list-style-type: none;

  > li {
    position: relative;
  }

  > li > .o-icon {
    position: absolute;
    left: -$o-li-width/2 - 0.5em;
    top: (2em / 14);
    text-align: center;

    &.lg {
      top: 0;
      left: -$o-li-width/2 - (4em / 14);
    }

    &.circle,
    &.square {
      top: (2em / 14) - $o-padding-width;
      left: -$o-li-width/2 - 0.5em - $o-padding-width;
    }
  }
}

/*------------------------
  spinning icons
-------------------------*/

.o-icon.spin {
  -webkit-animation: o-icon-spin 2s infinite linear;
  -moz-animation: o-icon-spin 2s infinite linear;
  animation: o-icon-spin 2s infinite linear;
}

@-webkit-keyframes o-icon-spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes o-icon-spin {
  0% {
    -moz-transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(360deg);
  }
}
@keyframes o-icon-spin {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/*------------------------
  rotated/flipped icons
-------------------------*/

.o-icon.rotate-90  {
	@include o-rotate(90deg, 1);
}

.o-icon.rotate-180 {
	@include o-rotate(180deg, 2);
}

.o-icon.rotate-270 {
	@include o-rotate(270deg, 3);
}

.o-icon.flip-y {
	@include o-flip(-1, 1, 0);
}
.o-icon.flip-x {
	@include o-flip(1, -1, 2);
}

@import "icons";
