.btn-control-bar {
  height : $btn-control-bar-height;
  position: relative;
  padding: 0;

  .btn-control {
    @extend .truncate;

    border: none;
    color: color('shades', 'white');
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: $slidepanel-bottom-buttons-height;
    height: 100%;
    width: 100%;
    border-radius: 0;
    transition: all .1s linear;
    font-weight: $btn-control-font-weight;
    font-size: $btn-control-font-size;

    // quatres elements
    &:nth-child(1):nth-last-child(4),
    &:nth-child(2):nth-last-child(3),
    &:nth-child(3):nth-last-child(2),
    &:nth-child(4):nth-last-child(1){
      float: left;
      width: percentage(1/4);
    }

    // trois éléments
    &:nth-child(1):nth-last-child(3),
    &:nth-child(2):nth-last-child(2),
    &:nth-child(3):nth-last-child(1) {
      float: left;
      width: percentage(1/3);
    }

    // deux éléments
    &:nth-child(1):nth-last-child(2),
    &:nth-child(2):nth-last-child(1) {
      float: left;
      width: percentage(1/2);
    }

    @each $color_name, $color in $colors {
      @if $color_name != 'shades' {
        &.#{$color_name} {
          background-color: color($color_name, $colors-control-base-level) !important;
          &:hover {
            background-color: color($color_name, $colors-control-hover-level) !important;
          }
        }
      }
    }

    &.disabled, &:disabled, &.disabled:hover, &:disabled {
      background-color: $button-disabled-background !important;
      color: $button-disabled-color !important;
    }
  }
}