/**
 * 
 * 04. Icons
 * 
 */

@import '../vendor/ionicons/ionicons-variables';


/** 04.01 Ion icons  **/
%ion {
  display: inline-block;
  font-family: $ionicons-font-family;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  text-rendering: auto;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

%icon-ws-before {
  @extend %ion;
}

.icon-ws-arrow-left, .icon-ws-arrow-right {
  width: 100%;
  display: inline-block;
  text-align: center;
  color: $color-dark-gray;

  &:before {
    @extend %ion;
  }

  .dark-controls & {
    color: $color-light-gray;
  }
}

.icon-ws-arrow-left:before  { content: $ionicon-var-ios-arrow-left; }
.icon-ws-arrow-right:before { content: $ionicon-var-ios-arrow-right; }


/** 04.02 Loading spinners  **/
%loading-spinner {
  @include animation(rotate-shrk 0.7s linear 0s infinite);
  width: 20px; 
  height: 20px;
  border: 3px solid #fff;
  border-right-color: transparent !important;
  border-radius: 50%;
  display: inline-block;
}

.shrk-loader {
  display: none;
  &:after {
    content: "";
    position: relative;
    display: block;
    border-top-color: rgba(255, 255, 255, 0) !important;
    border-bottom-color: rgba(255, 255, 255, 0) !important;
    border-color: #1A1A1A;
    border-style: solid;
    border-width: 3px;
    width: 80px;
    height: 80px;
    border-radius: 80px;
    @include animation('rotate-shrk 0.25s linear infinite');
  }
}

.shrk-loader.small:after {
  width: 20px;
  height: 20px;
  border-radius: 20px;
}

#shrk-full-page-spinner {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  display: none;
  @include transition(opacity $duration-opacity $fn-cubic);
  .shrk-loader {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    text-align: -webkit-center;
    text-align: -moz-center;
  }
}

// Setup spinners animation
@include keyframes(rotate-shrk) {
  0% {    @include transform(rotate(0deg));   }
  100% {  @include transform(rotate(360deg)); }
}
