// stylelint-disable property-blacklist, declaration-no-important

//
// Border
//

.border         { border: $border-width solid $border-color !important; }
.border-top     { border-top: $border-width solid $border-color !important; }
.border-right   { 
  @if($rtl==false){
    border-right: $border-width solid $border-color !important; 
  }
  @if($rtl==true){
    border-left: $border-width solid $border-color !important; 
  }
}
.border-bottom  { border-bottom: $border-width solid $border-color !important; }
.border-left    { 
  @if($rtl==false){
    border-left: $border-width solid $border-color !important; 
  }
  @if($rtl==true){
    border-right: $border-width solid $border-color !important; 
  }
}

.border-0        { border: 0 !important; }
.border-top-0    { border-top: 0 !important; }
.border-right-0  { 
  @if($rtl==false){
    border-right: 0 !important; 
  }
  @if($rtl==true){
    border-left: 0 !important; 
  }
}
.border-bottom-0 { border-bottom: 0 !important; 
}
.border-left-0   { 
  @if($rtl==false){
    border-left: 0 !important; 
  }
  @if($rtl==true){
    border-right: 0 !important; 
  }
}

@each $color, $value in $theme-colors {
  .border-#{$color} {
    border-color: $value !important;
  }
}

.border-white {
  border-color: $white !important;
}

//
// Border-radius
//

.rounded-sm {
  border-radius: $border-radius-sm !important;
}

.rounded {
  border-radius: $border-radius !important;
}

.rounded-top {
  border-top-left-radius: $border-radius !important;
  border-top-right-radius: $border-radius !important;
}

.rounded-right {
  @if($rtl==false){
    border-top-right-radius: $border-radius !important;
    border-bottom-right-radius: $border-radius !important;
  }
  @if($rtl==true){
    border-top-left-radius: $border-radius !important;
    border-bottom-left-radius: $border-radius !important;
  }
}

.rounded-bottom {
  border-bottom-right-radius: $border-radius !important;
  border-bottom-left-radius: $border-radius !important;
}

.rounded-left {
  @if($rtl==false){
    border-top-left-radius: $border-radius !important;
    border-bottom-left-radius: $border-radius !important;
  }
  @if($rtl==true){
    border-top-right-radius: $border-radius !important;
    border-bottom-right-radius: $border-radius !important;
  }
}

.rounded-lg {
  border-radius: $border-radius-lg !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-pill {
  border-radius: $rounded-pill !important;
}

.rounded-0 {
  border-radius: 0 !important;
}
