//
// Admin Page - Media Manager
// --------------------------------------------------

@mediaWidth : 206px;

.mediaManager .panel {
  clear : left;
}
.mediaManager .panel .panel-body {
  position : relative;
}

// Media type form
.mediaTypeForm {
  margin-bottom : 15px;
}

// Media form (and media grid)
.mediaForm {
  margin : 0;
  > .btn-toolbar {
    position : absolute; 
    top      : 15px;
    right    : 15px;

  }
  
  .form-controls {
    position : relative;
    width    : 180px;
    margin   : 10px auto @line-height-pixels;
  }
}
.mediaGrid {
  position : relative;

  .media.ui-sortable-placeholder {
    background-color : fade(#000, 10);
    .border-radius(3px);
  }
}

// Customization of bootstraps media component styles
.media {
  position         : relative; 
  float            : left;
  margin           : 0 5px 10px;
  background-color : #fff;

  img {
    width  : 196px;
    height : 87px;
  }
  .btn-group {
    display    : block;
    position   : absolute;
    right      : 5px;
    bottom     : 5px;
    left       : 5px;
    text-align : center;
    background : fade(#000, 80);
    .opacity(0);
    .transition(opacity .2s linear);
  }
  .btn-group .btn.btn-link {
    text-shadow : 0 -1px 0 #000;
    color       : #fff;
    .border-radius(0);
  }
  .btn-group .btn.active {
    text-shadow      : 0 -1px 0 fade(#000, 50);
    background-color : @brandColor;
  }
  .thumbnail { margin-bottom: 0 }
  &:hover {
    .btn-group { .opacity(100) }
  }
}

@media screen and (min-width: 980px) and (max-width: 1155px)
{
  .mediaForm {
    width : (@mediaWidth * 4);
  }
}

@media screen and (min-width: 980px) and (max-width: 1155px)
{
  .mediaForm {
    width : (@mediaWidth * 5);
  }
}

@media screen and (min-width: 1400px)
{
  .mediaForm {
    width : (@mediaWidth * 6);
  }
}