// styles that apply to the popup that appears when you show the edit history of a post

@import "common/foundation/variables";
@import "common/foundation/mixins";

.modal.history-modal {
  .modal-inner-container {
    min-width: 960px;
    min-height: 500px;
  }
  #revision-controls {
    float: left;
    .btn[disabled]:hover {
      color: $primary_text_color;
    }
  }
  #display-modes {
    text-align: right;
    .btn-primary {
      float: none;
    }
  }
  #revision-details {
    background-color: lighten($secondary_background_color, 76%);
    padding: 5px;
    margin-top: 10px;
  }
  #revisions {
    word-wrap: break-word;
  }
  img {
    max-width: 670px;
    height: auto;
  }
  .inline-diff {
    width: 670px;
  }
  .markdown {
    font-family: monospace;
    font-size: 12px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0px;
    td {
      width: 50%;
      vertical-align: top;
      max-width: 440px;
      word-wrap: break-word;
      white-space: pre-wrap;
    }
  }
  .span8, .markdown {
    img {
      max-width: 400px;
    }
  }
  ins, .diff-ins {
    code, img {
      border: 2px solid $success_border_color;
    }
    img {
      opacity: .75;
      filter: alpha(opacity=75);
    }
    a {
      color: $success_text_color;
      text-decoration: none;
    }
  }
  img.diff-ins, code.diff-ins {
    border: 2px solid $success_text_color;
  }
  img.diff-ins {
    opacity: .75;
    filter: alpha(opacity=75);
  }
  .diff-ins {
    background: $success_background_color;
  }
  ins {
    color: $success_text_color;
    background: $success_background_color;
  }
  del, .diff-del {
    code, img {
      border: 2px solid $warning_border_color;
    }
    img {
      opacity: .5;
      filter: alpha(opacity=50);
    }
    a {
      color: $warning_text_color;
      text-decoration: none;
    }
  }
  img.diff-del, code.diff-del {
    border: 2px solid $warning_border_color;
  }
  img.diff-del {
    opacity: .5;
    filter: alpha(opacity=50);
  }
  .diff-del {
    background: $warning_background_color;
  }
  del {
    color: $warning_text_color;
    background: $warning_background_color;
  }
  span.date {
    font-weight: bold;
  }
  span.edit-reason {
    background-color: $highlight_background_color;
    padding: 3px 5px 5px 5px;
  }
  .modal-header {
    height: 42px;
  }
}
