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

Social_Glyph Web Font - nucleoapp.com/
License - nucleoapp.com/license/

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

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

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

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

}

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

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

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

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

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

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

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

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

  > li {
    position: relative;
  }

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

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

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

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

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

@-webkit-keyframes g-icon-spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes g-icon-spin {
  0% {
    -moz-transform: rotate(0deg);
  }
  100% {
    -moz-transform: rotate(360deg);
  }
}
@keyframes g-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
-------------------------*/

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

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

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

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

@import "icons";
