@import "../../bootstrap/scss/_mixins.scss";
@import "../../bootstrap/scss/_variables.scss";
@import "../mixins.scss";
@import "../variables.scss";
@import "../variables.md.scss";
@mixin active-variant($parent, $bg, $color) {
  .nav-active-#{$parent}{
    .nav-link.active,
    .nav > li.active > a{
      color: $color !important;
      background-color: $bg !important;
    }
  }
}
@mixin color-variant($bg, $color) {
  color: $color;
  background-color: $bg;
  .lt{
    background-color: lighten($bg, $color-percent);
  }
  .dk{
    background-color: darken($bg, $color-percent);
  }
  .bg{
    background-color: $bg;
  }
}
@mixin color-variant-ribbon($bg, $color) {
  background-color: $bg;
  color: $color;
  &:hover, &:focus, &:active{
    background-color: darken($bg,8%);
    color: lighten($bg,60%);
  }
  &:after {
    border-right-color: darken($bg,8%);
  }
  &[class*="right ribbon"]:after {
    border-color: transparent;
    border-top-color: darken($bg,8%);
  }
}
@mixin color-variant-shadow($bg, $color) {
  i{
    box-shadow: 0 0 0 1px darken($bg, 5%);
  }
  &:hover,&:focus,&:active,&.active{
    color: $bg;
    i{
      &:before{
        background-color: $bg;
      }
    }
  }
}
@mixin border-wariant($parent, $bg){
  $color: mix($bg, #fff, 10%);
  .b-#{$parent}{
    border-color: $bg;
  }
  .b-t-#{$parent}{
    border-top-color: $bg;
  }
  .b-r-#{$color}{
    border-right-color: $bg;
  }
  .b-b-#{$parent}{
    border-bottom-color: $bg;
  }
  .b-l-#{$parent}{
    border-left-color: $bg;
  }
}
@mixin text-wariant($parent, $bg){
  a.#{$parent}:hover{
    background-color: darken($bg, $color-percent);
  }
  a.text-#{$parent}:hover{
    color: darken($bg, $color-percent);
  }
  .text-#{$parent},
  .text-#{$parent}-hover a:hover{
    color: $bg;
  }
}
@mixin btn-outline($color, $color-color){
  &:hover,
  &:focus{
    color: $color-color;
    background-color: $color;
  }
}



.skin {
  @include color-variant($danger, $danger-color);
}
.shadow-skin {
  @include color-variant-shadow($danger, $danger-color);
}
.ribbon-skin {
  @include color-variant-ribbon($danger, $danger-color);
}
@include border-wariant(skin, $danger);
@include text-wariant(skin, $danger);
.btn{
  &.b-skin,
  &.skin{
    @include btn-outline($danger, $danger-color);
  }
}
#logo{
  fill:$danger;
}
.pace .pace-progress {
  background: $danger;
}
.pace .pace-activity {
  border-top-color:  $danger;
  border-left-color: $danger;
}
@include media-breakpoint-up(lg) {
  ::-webkit-scrollbar-thumb:hover{
    background-color:$danger;
  }
  ::selection {
    background-color: $danger;
  }
}
@include active-variant(skin, $danger, $danger-color);
.tabsbtn{
  background-color: transparent;
  border: 1px solid $danger;
  color: $danger;
  &.active,
  &:hover,
  &:focus{
    background-color: $danger;
    color: $danger-color !important;
  }
}