/*border*/
@use "sass:list";
.last-b-none:last-child{border-bottom:none;}
// .bts-20-f2{border-top: 20px solid #f2f2f2;}

$defaultBorderColorUnit: #{'#'};

@mixin border($dir,$color,$size,$type:solid) {
  @if $dir == d {
    .b#{$dir}s-#{$size}-#{$color}{border:$defaultBorderColorUnit+#{$color} #{$size}px #{$type};}
  }
  @else if $dir == l{
    .b#{$dir}s-#{$size}-#{$color}{border-left:$defaultBorderColorUnit+#{$color} #{$size}px #{$type};}
  }
  @else if $dir == t{
    .b#{$dir}s-#{$size}-#{$color}{border-top:$defaultBorderColorUnit+#{$color} #{$size}px #{$type};}
  }
  @else if $dir == r{
    .b#{$dir}s-#{$size}-#{$color}{border-right:$defaultBorderColorUnit+#{$color} #{$size}px #{$type};}
  }
  @else if $dir == b{
    .b#{$dir}s-#{$size}-#{$color}{border-bottom:$defaultBorderColorUnit+#{$color} #{$size}px #{$type};}
  }
  
}

/*
  增加需要的数值
  (dir color size type)
*/
$defaultBorderArray:(d eb6100 1 solid)(d 00a58f 1 solid)(d ddd 1 solid)(d fff 1 solid)(t ddd 1 solid)(l ddd 1 solid)(r ddd 1 solid)(b ddd 1 solid)
                    (d eee 1 solid)(t eee 1 solid)(l eee 1 solid)(r eee 1 solid)(b eee 1 solid)
                    (d ff9393 2 solid)(t f6f6f6 20 solid)
                    (t f9f9f9 20 solid)(b fff 1 solid)(b f8f4df 1 solid)(t f2f2f2 20 solid)(d ffe3af 1 solid)(t f6b37f 1 solid)(d f6b07d 1 solid);

@each $i in $defaultBorderArray{
  @include border(list.nth($i, 1),list.nth($i, 2),list.nth($i, 3),list.nth($i, 4))
}