.slidepanel-expand{
  padding :  50px 5px 4px 15px;
}

@-webkit-keyframes slide-width-full{
  0% { left : $slidepanel-full-size; }
  100% { left : $slidepanel-full-left; }
}
@keyframes slide-width-full{
  0% { left : $slidepanel-full-size; }
  100% { left : $slidepanel-full-left; }
}
@-webkit-keyframes slide-width-full-close{
  0% { left : $slidepanel-full-left; }
  100% { left : $slidepanel-full-size; }
}
@keyframes slide-width-full-close{
  0% { left : $slidepanel-full-left; }
  100% { left : $slidepanel-full-size; }
}

@-webkit-keyframes slide-width-medium{
  0% { left : $slidepanel-full-size; }
  100% { left : $slidepanel-medium-left; }
}
@keyframes slide-width-medium{
  0% { left : $slidepanel-full-size; }
  100% { left : $slidepanel-medium-left; }
}
@-webkit-keyframes slide-width-medium-close{
  0% { left : $slidepanel-medium-left; }
  100% { left : $slidepanel-full-size; }
}
@keyframes slide-width-medium-close{
  0% { left : $slidepanel-medium-left; }
  100% { left : $slidepanel-full-size; }
}

@-webkit-keyframes slide-width-small{
  0% { left : $slidepanel-full-size; }
  100% { left : $slidepanel-small-left; }
}
@keyframes slide-width-small{
  0% { left : $slidepanel-full-size; }
  100% { left : $slidepanel-small-left; }
}
@-webkit-keyframes slide-width-small-close{
  0% { left : $slidepanel-small-left; }
  100% { left : $slidepanel-full-size; }
}
@keyframes slide-width-small-close{
  0% { left : $slidepanel-small-left; }
  100% { left : $slidepanel-full-size; }
}


.slidepanels{
  height: 100%;
  position: fixed;
  top: 0;
  left: 150%;
  background-color: $slidepanel-background-color;
  z-index: 1000;
  overflow : hidden;

  .top-bar{
    height: $slidepanel-topbar-height;
    line-height: $slidepanel-topbar-line-height;
    font-size: $slidepanel-topbar-font-size;
    background-color: $slidepanel-topbar-background-color;
    color: $slidepanel-topbar-text-color;
    padding-left: $slidepanel-topbar-padding-left;
    font-weight: $slidepanel-topbar-font-weight;

    .actions{
      float: right;
      padding-right: 20px;
    }
  }

  &.full{
    width : $slidepanel-full-size;
    &.animate-open{
      animation : slide-width-full 0.1s;
      -webkit-animation : slide-width-full 0.1s;
    }
    &.animate-close{
      animation : slide-width-full-close 0.1s;
      -webkit-animation : slide-width-full-close 0.1s;
    }
    &.isOpen{
      left : $slidepanel-full-left;
    }
  }

  &.medium{
    width : $slidepanel-medium-size;
    &.animate-open{
      animation : slide-width-medium 0.1s;
      -webkit-animation : slide-width-medium 0.1s;
    }
    &.animate-close{
      animation : slide-width-medium-close 0.1s;
      -webkit-animation : slide-width-medium-close 0.1s;
    }
    &.isOpen{
      left : $slidepanel-medium-left;
    }
  }

  &.small{
    width : $slidepanel-small-size;
    &.animate-open{
      animation : slide-width-small 0.1s;
      -webkit-animation : slide-width-small 0.1s;
    }
    &.animate-close{
      animation : slide-width-small-close 0.1s;
      -webkit-animation : slide-width-small-close 0.1s;
    }
    &.isOpen{
      left : $slidepanel-small-left;
    }
  }

  .subpanel{
    position : absolute;
    top : 0;
    right: 0;
    bottom: 0;
    background-color : #e9e9e9;
    height : 100%;
    left: 100%;
    z-index: 5;

    &.animate-open{
      animation : slide-widthMax 0.1s;
      -webkit-animation : slide-widthMax 0.1s;
    }
    &.animate-close{
      animation : slide-widthMax-close 0.1s;
      -webkit-animation : slide-widthMax-close 0.1s;
    }
    &.isOpen{
      left: 0;
    }
  }

  .placeholder{
    position : absolute;
    height : 100%;
    width : 36px;
    border-right : 1px solid #888;
    background-color : #cecece;
    z-index: 6;

    &:hover{
      cursor : pointer;
    }
  }

  //.titleHolder{
  //  //writing-mode : tb-rl;
  //  .rotate(270deg);
  //  white-space : nowrap;
  //  color   : #888;
  //  font-family  : Open Sans , arial;
  //  font-size : 20px;
  //}

  .empty {
    color: #ddd;
  }

  .slidepanel-close {
    color: color('shades', 'white');
    transition: all .1s linear;
    text-decoration: none;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    height: $slidepanel-topbar-height;
    width: $slidepanel-topbar-height;
    line-height: $slidepanel-topbar-line-height;
    text-align: center;
    vertical-align: middle;
    background-color: $slidepanel-close-background-color;
    border: none;

    i {
      line-height: $slidepanel-topbar-line-height;
    }

    &:hover {
      background-color: $slidepanel-close-hover-background-color;
    }
  }

  // partie formulaire des slidePanels
  .slidepanel-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: $slidepanel-topbar-height;
  }

  @media #{$medium-and-down} {
    width: 100% !important;

    &.animate-open{
      animation : slide-widthHigh 0.1s !important;
      -webkit-animation : slide-widthHigh 0.1s !important;
    }
    &.animate-close{
      animation : slide-widthHigh-close 0.1s !important;
      -webkit-animation : slide-widthHigh-close 0.1s !important;
    }
    &.isOpen{
      left : 0 !important;
    }
  }
}

.slidepanel-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: $slidepanel-fade-background-color;
  opacity: $slidepanel-fade-opacity;
}

.panel-form {
  height: 100%;
  form {
    height: 100%;
    position: relative;

    .form-content {
      overflow: auto;
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: $slidepanel-bottom-buttons-height;
    }

    .form-validate {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: $slidepanel-bottom-buttons-height;
      padding: 0;
    }
  }
}