// ====
// Components
// ====


// --
// breadcrumbs

ul.ht-breadcrumb{
  padding: 0 ;
  margin: 0;
  font-size: 0;
  border-radius: 2px;
  @media (max-width: $screen-sm-max){
    white-space: nowrap;
    overflow: auto;
    overflow: overlay;
  }
  li{
    a,span{
      display: block;
      &:hover, &:active, &:focus, &:visited{
        text-decoration: none;
      }
      // @extend .ht-lowercasebf;
    }
    a{
      
    }
    span{
      display: block;
    }
  }
  & > li{
    position: relative;
    display: inline-block;
    vertical-align: top;
    padding: 0 24px 0 0;
    line-height: 16px;
    font-size: 12px;
    & > a,
    & > span{
      position: relative;
      padding: 9px 0;
      line-height: 16px;
      font-size: 12px;
      color: $grey700;
      max-width: 240px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      z-index: 110;
    }
    &:after{
      content: "/";
      display: block;
      position: absolute;
      top: 9px; right: 0;
      width: 24px;
      line-height: 16px;
      text-align: center;
      color: $grey400;
    }
    &:last-child:after{
      display: none;
    }
    ul{
      display: none;
    }
    &.active{
      color: $grey600;
      & > a,
      & > span{
        color: $grey600;
      }
    }
    ul{
      display: none;;
      position: absolute;
      top: 100%; left: -4px;
      // margin-top: -4px;
      padding: 4px;
      min-width: calc(100% - 12px);
      background-color: #fff;
      z-index: 100;
      // border: 1px solid #eaeaea;
      box-shadow: 0 2px 5px 0 rgba(#000,.12);
      &[class$="columns"]{
        @include column-gap(8px);
      }
      li{
        display: block;
        line-height: 16px;
        a{
          display: block;
          padding: 4px 12px 4px 8px;
          line-height: 16px;
          font-size: 12px;
          color: $grey700;
          // one line
          max-width: 200px;
          text-overflow: ellipsis;
          white-space: nowrap;
          overflow: hidden;
          &:hover{
            color: $green500;
          }
        }
      }
    }
    &:hover{
      & > a{
        color: $grey600;
        &:hover{
          color: $green500;
        }
      }
    }
    @media (min-width: $screen-md-min){
      &:hover{
        ul{
          display: block;
        }
      }
      &.has-inner-ul{
        & > a{
          &:after{
            content: "";
            display: none;
            position: absolute;
            bottom: -1px; left: 50%;
            margin-left: -8px;
            z-index: 105;
            width: 16px;
            height: 10px;
            background-image: url('../img/dropdown-arrow.png');
            background-repeat: no-repeat;
            background-attachment: 0 0;
          }
        }
        &:hover{
          & > a{
            &:after{
              display: block;
            }
          }
        }
      }
    }
  }
}


// ---------
// meta Inline

.ht-meta-inline{
  font-size: 0;
  line-height: 16px;
  & > span{
    display: inline-block;
    vertical-align: top;
    line-height: 16px;
    font-size: 12px;
    &:after{
      content: "\2022";
      display: inline-block;
      vertical-align: top;
      padding: 2px 6px 0;
      line-height: 14px;
      font-size: 10px;
      color: $grey400;
    }
    &:last-child{
      &:after{
        display: none;
      }
    }
  }
}

.ht-loading{
  height: 48px;
  background-image: url(../img/loading.svg);
  background-position: center center;
  background-size: 48px 48px;
  background-repeat: no-repeat;
  &.xxs-size{
    height: 16px;
    background-size: 16px 16px;
  }
  &.xs-size{
    height: 24px;
    background-size: 24px 24px;
  }
  &.sm-size{
    height: 36px;
    background-size: 36px 36px;
  }
  &.lg-size{
    height: 60px;
    background-size: 60px 60px;
  }
  &.xl-size{
    height: 72px;
    background-size: 72px 72px;
  }
}

.color-primary{
  color: $color-primary;
}
.color-primary_text{
  color: $color-primary_text;
}

.back-to-top-btn{
  display: block;
  position: fixed;
  z-index: 500;
  bottom: 12px; right: 12px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 20px;
  text-align: center;
  color: #fff;
  background-color: $color-primary;
  opacity: 0;
  outline: none;
  border: 0;
  border-radius: 2px;
  padding: 0;
  @include transition(opacity .2s ease-in-out);
  &.show-up{
    opacity: .7;
    &:hover{
      opacity: 1;
    }
    &:active{
      opacity: .9;
    }
  }
}
.flex-on-sm-up{
  @media (max-width: $screen-xs-max){
    display: block;
  }
}





