<commit_before>@import (reference) "../defs.less";


@img_base: '../../images';
@djblets_img_base: '../../../djblets/images';


/****************************************************************************
 * Review-specific macros
 ****************************************************************************/

/* Keep the label from shifting when the pencil icon is hidden/shown. */
.inline-editor-label() {
  display: block;
  line-height: 16px;
  vertical-align: top;
}

.rich-text-loading() {
  color: transparent;
  background: white url("@{img_base}/spinner.gif") no-repeat @box-padding @box-padding;
}

.review-comments-inline() {
  &.draft {
    dt label a {
      color: #4e9a06;
    }
  }

  dl {
    dt {
      label {
        .inline-editor-label();

        a {
          color: #AB5603;
          font-size: 1.1em;
          font-weight: bold;
          text-decoration: none;
        }
      }

      span {
        color: #487858;
        font-weight: normal;
      }
    }
  }
}


/****************************************************************************
 * Actions
 ****************************************************************************/
.actions-container {
  background: @review-request-action-bg;
  border-bottom: 1px @review-request-action-border-color solid;
  float: right;
  width: 100%;
  .border-radius(@box-inner-border-radius @box-inner-border-radius 0 0);

  &>ul {
    min-height: 2em;
  }
}


.actions {
  float: right;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;

  a {
    color: black;
    cursor: pointer;
    display: block;
    text-decoration: none;
    padding: 6px 10px;

    border-left: 1px @review-request-action-border-color solid;
  }

  img {
    vertical-align: middle;
  }

  li {
    float: left;
    margin: 0;
    padding: 0;

    &:hover {
      background-color: @review-request-action-hover-bg;
    }

    &:active {
      background-color: @review-request-action-active-bg;
    }

    &.has-menu {
      &:hover > ul {
        visibility: visible;
        .opacity(100);
      }

      > ul {
        display: block !important;
        visibility: hidden;
        z-index: @z-index-menu;
        .opacity(0);
        .transition(visibility 0.1s, opacity 0.1s;);
      }
    }

    &.primary {
      background-color: @review-request-action-primary-bg;
    }

    &.primary:hover {
      background-color: @review-request-action-primary-hover-bg;
    }

    &.primary:active {
      background-color: @review-request-action-primary-active-bg;
    }
  }

  .menu {
    background: @review-request-action-menu-bg;
    border: 1px @review-request-action-menu-border-color solid;
    float: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: @z-index-menu;
    .border-radius(0 0 @box-border-radius @box-border-radius);
    .box-shadow(@box-shadow);

    li {
      background: @review-request-action-bg;
      border: 0;
      float: none;
      margin: 0;
      padding: 0;

      &:last-child {
        .border-radius(0 0 @box-border-radius @box-border-radius);
      }

      &:hover {
        background-color: @review-request-action-menu-item-hover-bg;
      }

      a {
        color: black;
        border: 0;
        display: block;
        margin: 0;
        padding: 8px 10px;
        text-decoration: none;
      }
    }
  }
}

.actions>li:last-child {
  .border-radius(0 @box-inner-border-radius 0 0);
}


/****************************************************************************
 * Code Mirror
 ****************************************************************************/
.CodeMirror {
  border: @textarea-border;
  height: auto;
  margin: @textarea-editor-margin;

  .CodeMirror-lines {
    padding: @textarea-editor-padding;
  }

  .CodeMirror-scroll {
    overflow-y: hidden;
    overflow-x: auto;
  }

  pre {
    padding: 0;
  }

  .cm-header {
    color: black;
  }

  .cm-comment {
    color: #4444cc;
  }

  .cm-variable-2 {
    color: black;
  }
}


/****************************************************************************
 * Review Request Box
 ****************************************************************************/
.markdown-info {
  color: blue;
  font-size: 8pt;
  font-weight: normal;
  float: right;
  line-height: 25px;
  margin-right: 0.5em;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.review-request {
  /*
   * Any changes to this need to be reflected in _resizeLayout in
   * reviewRequestEditorView.js
   */
  @details-width: 300px;

  background-color: #fefadf;
  background-image: url('@{img_base}/review_request_box_top_bg.png');

  label {
    color: @review-request-label-color;
    font-weight: bold;
  }

  noscript form {
    margin: 10px 5px 5px 5px;
    text-align: right;
  }

  textarea {
    border: @textarea-border;
    height: 1.5em;
    overflow: hidden;
  }

  .box-inner {
    background-image: url('@{img_base}/review_request_box_bottom_bg.png');
  }

  .content {
    padding: @box-padding;
    position: relative;

    &.sliding {
      margin-top: -5px;
    }

    img {
      border: none;
    }

    .editable.loading {
      .rich-text-loading();
    }

    .field-container {
      position: relative;

      &>pre {
        .pre-wrap;
        background-color: #FFFFFF;
        border: @textarea-border;
        margin: @textarea-editor-margin;
        padding: @textarea-editor-padding;
      }
    }
  }

  .content-divider {
    border-top: 1px #C2C1B0 solid;
  }

  .inline-editor-form {
    &.summary-editor {
      margin-top: -2px;
      margin-left: -3px;
    }

    input[type='text']:not(:focus) {
      .box-shadow(0px 0px 4px rgba(255, 0, 0, .75));
    }
  }

  .main {
    clear: both;
    padding: 0;
  }

  #required-field-legend {
    color: darkRed;
    font-weight: bold;
    padding: @box-padding;
  }

  .controls {
    list-style: none;
    margin: 0;
    padding: 0 8px 4px 8px;
    text-align: right;

    a {
      color: black;
      text-decoration: none;

      &:hover {
        color: #0000C0;
      }
    }

    li {
      display: inline;
      padding-left: 8px;
    }

    .rb-icon {
      vertical-align: bottom;
    }
  }

  .header {
    padding: @box-padding;
  }

  .star {
    float: left;
    margin-right: 10px;
  }

  #review_request_details {
    border-spacing: 0px;
    float: right;
    width: @details-width;
    padding: @box-padding;

    a {
      color: @review-request-link-color;
      text-decoration: none;
    }

    th {
      color: #39350b;
      font-weight: bold;
      text-align: left;
      white-space: nowrap;
    }

    tbody {
      td, th {
        padding: 0;
        vertical-align: top;
      }

      th, td .field {
        padding-top: 3px;
      }

      td {
        padding-left: 1em;

        span {
          display: inline-block;
          margin-right: 4px;
          word-wrap: break-word;
        }

        .editicon {
          margin-left: 0;
        }
      }

      th {
        padding-bottom: 1.5em;
        padding-left: 1em;
        text-align: right;
        white-space: nowrap;
      }
    }

    thead {
      &.first-fieldset th {
        padding-top: 0;
      }

      th {
        color: @review-request-label-color;
        font-size: 120%;
        padding: 2em 0 1em 0;
      }
    }

    #target_people .inactive {
      text-decoration: line-through;
    }

    .buttons {
      display: block;
      margin-bottom: 1em;
      padding: 6px 0 0 0;

      input {
        font-size: 11px;
      }
    }
  }

  #review_request_extra {
    clear: both;

    h3 {
      color: @review-request-label-color;
      font-size: 120%;
      margin: 0;
      padding: 0;
    }

    label.textarea-label {
      display: block;
      min-height: 16px;

      img {
        vertical-align: middle;
      }
    }
  }

  #review_request_main {
    margin-right: @details-width;
    position: relative;

    label {
      font-size: 120%;
    }
  }

  #review-request-warning {
    background-color: @review-request-warning-bg;
    border: 1px solid @review-request-warning-border-color;
    display: none;
    font-weight: bold;
    padding: 5px;
    text-align: center;
  }

  #diff_revision {
    font-weight: bold;
    text-align: right;
    vertical-align: bottom;
  }

  #status {
    color: #39350b;
    margin: 5px 0;
  }

  #summary_wrapper {
    @line-height: 2.6em;

    line-height: @line-height;
    padding: 0;

    label, #field_summary {
      font-size: 14px;
    }

    label {
      margin-right: 0.5em;
    }

    .rb-icon-edit {
      vertical-align: text-bottom;
    }

    #field_summary {
      display: inline;

      a {
        color: black;
        text-decoration: none;
      }
    }
  }

  .actions-container {
    .star {
      margin: 5px 0 0 5px;
    }
  }

  #updated_time, #created_time {
    text-align: right;
    vertical-align: bottom;
  }

  .editicon {
    text-decoration: none;
  }

  .required-flag {
    color: @required-flag-color;
    font-size: 10px;
    font-weight: bold;
    padding: 0 2px;
  }
}

#review_request_form {
  input[type='text'], textarea {
    width: 400px;
  }
}


/****************************************************************************
 * Review UIs
 ****************************************************************************/
.review-ui-box {
  &.has-review-ui-box-content .actions-container {
    .border-radius(@box-inner-border-radius @box-inner-border-radius 0 0);

    .actions > li:last-child {
      .border-radius(0 @box-inner-border-radius 0 0);
    }
  }

  .actions-container {
    .border-radius(@box-inner-border-radius);

    .actions > li:last-child {
      .border-radius(0 @box-inner-border-radius @box-inner-border-radius 0);
    }
  }

  .review-ui-box-content {
    clear: both;
    padding: 0;
  }

  .review-ui-header {
    border-bottom: 1px @diff-file-border-color solid;
    #gradient > .vertical-three-colors(#FFFFFF, @diff-file-color, 50%,
                                       @diff-file-color);

    h1 {
      margin: 0;
      padding: 8px;
      font-size: 10pt;
    }
  }
}


/****************************************************************************
 * Reviews
 ****************************************************************************/

.box {
  &.collapsed {
    .body {
      display: none;
    }

    .banner {
      margin-bottom: 0;
    }
  }

  .collapse-button {
    border: 1px #333333 solid;
    cursor: pointer;
    float: left;
    margin-right: 0.5em;
    margin-top: -1px;
    padding: 0;
  }
}

.review {
  .box {
    background-color: #e9edf5;
    background-image: url('@{img_base}/review_box_top_bg.png');
  }

  .banner {
    margin-top: 10px;

    &.floating {
      border-top: 0;
      margin-top: 0;
    }
  }

  .body {
    background-color: #FAFAFA;
    border: 1px #AAAAAA solid;
    clear: both;
    margin: 5px;
    padding: 10px;

    pre {
      .pre-wrap;
    }

    .comment-text:target {
      background-color: #E7EDF3;
      border: 1px solid @dark-blue;
      padding: 1em;
    }

    .body_top, .body_bottom {
      margin: 0;
    }
  }

  .box-inner {
    background-image: url('@{img_base}/review_box_bottom_bg.png') !important;
    min-height: 32px;
  }

  .controls {
    list-style: none;
    margin: 0;
    padding: 0 8px 4px 8px;
    text-align: right;

    a {
      text-decoration: none;
    }

    li {
      display: inline;
    }
  }

  .comments, .review-comments {
    border: 0;

    dd {
      margin-bottom: 20px;
    }

    dt thead th {
      font-weight: normal;
    }

    .filename a {
      color: black;
      font-weight: bold;
    }

    .file-attachment {
      background: #F0F0F0;
      border: 1px #C0C0C0 solid;
      padding: 5px;

      .file-attachment-comment-header {
        font-size: 120%;
        white-space: nowrap;

        a {
          text-decoration: none;
        }

        img {
          padding-right: 10px;
          vertical-align: middle;
        }

        .caption {
          color: black;
          margin: 5px 0 0 32px;
        }

        .filename {
          color: black;
          font-weight: bold;
          margin: 0;
          vertical-align: middle;
        }
      }

      .thumbnail {
        margin-top: 0.5em;
      }
    }

    .screenshot {
      background: #F0F0F0;
      border: 1px #C0C0C0 solid;
      font-size: 120%;

      img {
        padding: 5px;
      }

      .filename {
        display: block;
        margin: 0;
        padding: 5px 10px;
      }
    }
  }

  .header {
    padding: 2px 4px 4px 4px;

    a {
      color: black;
      text-decoration: none;
    }
  }

  .reviewer {
    float: left;
    font-weight: bold;
    padding-top: 2px;

    a {
      position: relative;
    }
  }

  .posted_time {
    text-align: right;
    padding-top: 2px;
  }

  .reply-comments {
    margin: 20px 0 0 0;
    padding: 0;

    &>li {
      display: inline;

      .review-comments-inline();

      dl {
        border-left: 2px #D0D0D0 solid;

        /*
         * Set a border-bottom to prevent a bug in IE where, without a
         * border-bottom, the content of the dl will shift left by the
         * border-left size for every following item.
         */
        border-bottom: 1px #FAFAFA solid;
        margin: 0;
        padding: 5px;

        dd {
          margin-left: 10px;
        }
      }
    }
  }

  .shipit {
    background: #aeff60;
    border: 1px #888888 solid;
    font-weight: bold;
    left: -10px;
    margin-bottom: 8px;
    padding: 4px 8px;
    position: relative;
    width: 4.5em;
    top: -8px;
    .border-radius(@box-border-radius 0 @box-border-radius 0);

    &.with-issues {
      border: 1px darken(@issue-opened-bg, 70%) solid;
      color: #205003;
      width: 11em;
      #gradient > .vertical-three-colors(@issue-opened-bg, @issue-opened-bg, 25%,
                                         darken(@issue-opened-bg, 30%));
    }
  }
}

.sidebyside.loading {
  /* Helps us better keep the size, as long as the comment is within a chunk. */
  padding: 2px 2px 1px 2px;
  width: 100%;

  tbody {
    background: #F3F3F3 url("@{img_base}/spinner.gif") no-repeat center center;

    td {
      padding: 1em;
    }
  }
}


/****************************************************************************
 * Change Descriptions
 ****************************************************************************/
#field_changedescription {
  .pre-wrap;
  background-color: @textarea-editor-background;
  border: @textarea-border;
  margin: @textarea-editor-margin;
  padding: @textarea-editor-padding;

  &.loading {
    .rich-text-loading();
  }
}

.changedesc {
  &.box {
    background-color: #fefadf;
    background-image: url('@{img_base}/review_request_box_top_bg.png');
  }

  .body {
    clear: both;
    padding: @box-padding;

    &>ul {
      list-style: none;
      margin: 1em 0 1em 0;
      padding: 0;

      &>li {
        margin: 3em 0 0 0;

        &:first-child {
          margin-top: 0;
        }
      }
    }

    a {
      color: default;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }

    /* Field labels */
    h3 {
      color: @review-request-label-color;
      font-size: 110%;
      margin: 1em 0 0.5em 0;
      padding: 0;

      &.status {
        /* Add some separation between this and the other fields. */
        margin-bottom: 2em;

        &:last-child {
          /*
           * If it's the last child, we don't want that separation, or it'll
           * have an odd amount of extra space.
           */
          margin-bottom: 0.5em;
        }

        .value {
          color: black;
          font-weight: normal;
        }
      }
    }

    /* Used in the textarea field diffs and the Change Summary section. */
    > pre {
      background-color: #FFFFFF;
      border: @textarea-border;
      padding: @textarea-editor-padding;
      font-size: 9pt;
      .pre-wrap;
    }

    /*
     * File attachment/screenshot change lists.
     *
     * These differ from the other field change lists in that they have
     * mini-section labels underneath for each file.
     */
    .caption-changed {
      margin: 2em 0 0 2em;
      padding: 0;

      a {
        /* Treat the link like a field. */
        font-weight: bold;
      }

      td, th {
        vertical-align: top;
      }

      td {
        padding-left: 1em;
      }

      th {
        text-align: right;
      }
    }

    /* Displays changes for field values, with "-" and "+" markers. */
    .changed {
      border: @textarea-border;
      border-collapse: collapse;
      display: inline-block;
      margin: 0;
      padding: 0;
      vertical-align: top;

      a {
        color: blue;
        text-decoration: none;

        &:first-child {
          margin-left: 0;
        }

        &:hover {
          text-decoration: underline;
        }
      }

      td, th {
        font-family: @textarea-font-family;
        padding: 0.3em 0.6em;
      }

      td {
        background: #FEFEFE;
      }

      .new-value .marker {
        background: @diff-insert-linenum-color;
      }

      .old-value .marker {
        background: @diff-delete-linenum-color;
      }
    }

    /* The "Change Summary" section. */
    .changedesc-text {
      margin-bottom: 2em;

      &:last-child {
        margin-bottom: 0;
      }
    }

    /* The diff for text areas. */
    .diffed-text-area {
      background: white;
      border: @textarea-border;
      border-collapse: collapse;
      padding: 0;
      width: 100%;

      a {
        text-decoration: underline;
      }

      pre {
        background: none;
        border: 0;
        margin: 0;
        padding: 0;
        .pre-wrap;
      }

      td {
        font-family: @textarea-font-family;
        padding: 2px 4px;
        vertical-align: top;
        .pre-wrap;
      }

      .delete {
        .line {
          background: @diff-delete-color;
        }

        /* The '-' or '+' marker. */
        .marker {
          color: #990000;
          background: @diff-delete-linenum-color;
        }
      }

      .insert {
        .line {
          background: @diff-insert-color;
        }

        /* The '-' or '+' marker. */
        .marker {
          background: @diff-insert-linenum-color;
        }
      }

      .line {
        width: 100%;

        /*
         * Make sure any images in the Markdown-rendered text are kept
         * small, but with the correct aspect ratio.
         */
        img {
          width: auto;
          max-height: 100px;
        }
      }

      /* The '-' or '+' marker. */
      .marker {
        background: #F9F9F9;
        font-family: @textarea-font-family;
        font-size: @textarea-font-size;
        font-weight: bold;
        text-align: center;
      }

      .replace-new {
        .line {
          background: @diff-insert-color;

          .hl {
            background: desaturate(darken(@diff-insert-color, 15%), 30%);
          }
        }

        /* The '-' or '+' marker. */
        .marker {
          background: @diff-insert-linenum-color;
        }
      }

      .replace-old {
        .line {
          background: @diff-delete-color;

          .hl {
            background: desaturate(darken(@diff-delete-color, 10%), 20%);
          }
        }

        /* The '-' or '+' marker. */
        .marker {
          background: @diff-delete-linenum-color;
        }
      }
    }

    /* Styling for the "Diff" field updates. */
    .diff-changes {
      .line-counts {
        margin-left: 0.5em;

        .delete-count {
          color: @diff-delete-line-count-color;
        }

        .insert-count {
          color: @diff-insert-line-count-color;
        }
      }
    }

    /* Styles for the file listing for the "Diff" field. */
    .diff-index {
      margin-bottom: 0;

      .diff-file-icon {
        min-width: 20px;
        min-height: 20px;
      }

      .diff-file-info {
        /* Compensate for the lack of diff-chunks-cell column. */
        width: 100%;
      }
    }

    .primary-fields {
      h3:first-child {
        margin-top: 2em;
      }
    }

    /*
     * Secondary fields are in more of a Field: Value display, with the
     * fields lining up.
     */
    .secondary-fields {
      width: 100%;

      h3 {
        margin: 2px 1em 0 0;
        padding: 0;
        text-align: right;
      }

      &>tbody>tr {
        &>td,
        &>th {
          padding: 0.5em 0;
          vertical-align: top;
          white-space: nowrap;
        }

        &>td {
          /*
           * Between this and the white-space: nowrap above, the field labels
           * will end up taking the minimum size without wrapping, and the
           * rest of the width will be given to the value.
           */
          width: 100%;

          &>p {
            /*
             * If the field value is rendered inside a <p>, make sure it
             * aligns with the field label.
             *
             * Note that the label has a larger font than this, so we can't
             * reuse the same pixel value. We have to bump it.
             */
            &:first-child {
              margin-top: 3px;
            }

            /* Don't take up more room than we need in the last <p>. */
            &:last-child {
              margin-bottom: 0;
            }
          }
        }
      }
    }
  }

  .box-inner {
    background-image: url('@{img_base}/review_request_box_bottom_bg.png') !important;
    min-height: 32px;
  }

  .header {
    padding: 2px 4px 4px 4px;

    a {
      color: black;
      text-decoration: none;
    }

    b {
      float: left;
      font-weight: bold;
    }

    .reviewer {
      padding-top: 2px;
    }

    .posted_time {
      text-align: right;
    }
  }
}


/****************************************************************************
 * Updates Bubble
 ****************************************************************************/

#updates-bubble {
  background: #FFF1AB;
  border: 1px #666666 solid;
  bottom: 1px;
  font-size: 110%;
  padding: 0.8em;
  position: fixed;
  right: 1px;

  a, a:visited {
    color: #0000CC;
    text-decoration: none;
  }

  #updates-bubble-buttons {
    margin-left: 2em;
  }
}


/****************************************************************************
 * Review Form
 ****************************************************************************/
#review-form {
  overflow: auto;
  padding: 10px;

  .add-link {
    font-size: 110%;

    &:visited {
      color: @link-color;
    }
  }

  label {
    color: black;
    font-weight: bold;
    margin-top: 10px;
  }

  dt label {
    color: #AB5603;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
  }

  .comment-text-field > .edit-field {
    margin: 1em 0;

    .comment-text-field {
      label {
        .inline-editor-label();
      }
    }
  }

  .spinner {
    background: url("@{img_base}/spinner.gif") no-repeat center center;
    height: 16px;
    margin: 3em auto;
  }

  #review-form-comments {
    background: none;

    pre {
      .pre-wrap;
    }

    .comments {
      list-style: none;
      margin: 0;
      padding: 0;

      > li {
        margin: 2em 0;
        padding: 0;

        .edit-fields {
          margin-left: 2em;
        }

      }
    }

    .review-comments-inline();

    dd {
      margin: 0;
    }
  }
}


/****************************************************************************
 * Uploaded files
 ****************************************************************************/
.file-container {
  float: left;

  &.editing .file {
    .border-radius(@box-border-radius @box-border-radius 0 0);

    .file-caption-container {
      padding-left: 0;
      padding-right: 0;

      .file-caption {
        text-overflow: initial;
      }
    }
  }

  .file {
    @file-attachment-bg: white;
    @file-attachment-width: 300px;
    @file-attachment-border-color: #CCCCCC;

    background-color: #FEFEFE;
    border: 1px @file-attachment-border-color solid;
    display: block;
    position: relative;
    margin: 0 1.5em 1.5em 0;
    max-width: @file-attachment-width;
    width: @file-attachment-width;
    .border-radius(@box-border-radius);
    .box-shadow(@box-shadow);

    .actions {
      li {
        line-height: 16px;

        &:last-child a {
          .border-radius(0 @box-inner-border-radius 0 0);
        }

        &:hover {
          background: transparent;
        }

        .file-attachment-menu {
          border: 1px @file-attachment-border-color solid;
          float: none;
          list-style: none;
          margin: -1px 0 0;
          padding: 0;
          position: absolute;
          right: -1px;
          z-index: @z-index-menu;
          .border-radius(0 0 @box-border-radius @box-border-radius);
          .box-shadow(none);
<commit_msg>Fix a misalignment in the file attachment caption editor.<commit_after>@import (reference) "../defs.less";


@img_base: '../../images';
@djblets_img_base: '../../../djblets/images';


/****************************************************************************
 * Review-specific macros
 ****************************************************************************/

/* Keep the label from shifting when the pencil icon is hidden/shown. */
.inline-editor-label() {
  display: block;
  line-height: 16px;
  vertical-align: top;
}

.rich-text-loading() {
  color: transparent;
  background: white url("@{img_base}/spinner.gif") no-repeat @box-padding @box-padding;
}

.review-comments-inline() {
  &.draft {
    dt label a {
      color: #4e9a06;
    }
  }

  dl {
    dt {
      label {
        .inline-editor-label();

        a {
          color: #AB5603;
          font-size: 1.1em;
          font-weight: bold;
          text-decoration: none;
        }
      }

      span {
        color: #487858;
        font-weight: normal;
      }
    }
  }
}


/****************************************************************************
 * Actions
 ****************************************************************************/
.actions-container {
  background: @review-request-action-bg;
  border-bottom: 1px @review-request-action-border-color solid;
  float: right;
  width: 100%;
  .border-radius(@box-inner-border-radius @box-inner-border-radius 0 0);

  &>ul {
    min-height: 2em;
  }
}


.actions {
  float: right;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;

  a {
    color: black;
    cursor: pointer;
    display: block;
    text-decoration: none;
    padding: 6px 10px;

    border-left: 1px @review-request-action-border-color solid;
  }

  img {
    vertical-align: middle;
  }

  li {
    float: left;
    margin: 0;
    padding: 0;

    &:hover {
      background-color: @review-request-action-hover-bg;
    }

    &:active {
      background-color: @review-request-action-active-bg;
    }

    &.has-menu {
      &:hover > ul {
        visibility: visible;
        .opacity(100);
      }

      > ul {
        display: block !important;
        visibility: hidden;
        z-index: @z-index-menu;
        .opacity(0);
        .transition(visibility 0.1s, opacity 0.1s;);
      }
    }

    &.primary {
      background-color: @review-request-action-primary-bg;
    }

    &.primary:hover {
      background-color: @review-request-action-primary-hover-bg;
    }

    &.primary:active {
      background-color: @review-request-action-primary-active-bg;
    }
  }

  .menu {
    background: @review-request-action-menu-bg;
    border: 1px @review-request-action-menu-border-color solid;
    float: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: @z-index-menu;
    .border-radius(0 0 @box-border-radius @box-border-radius);
    .box-shadow(@box-shadow);

    li {
      background: @review-request-action-bg;
      border: 0;
      float: none;
      margin: 0;
      padding: 0;

      &:last-child {
        .border-radius(0 0 @box-border-radius @box-border-radius);
      }

      &:hover {
        background-color: @review-request-action-menu-item-hover-bg;
      }

      a {
        color: black;
        border: 0;
        display: block;
        margin: 0;
        padding: 8px 10px;
        text-decoration: none;
      }
    }
  }
}

.actions>li:last-child {
  .border-radius(0 @box-inner-border-radius 0 0);
}


/****************************************************************************
 * Code Mirror
 ****************************************************************************/
.CodeMirror {
  border: @textarea-border;
  height: auto;
  margin: @textarea-editor-margin;

  .CodeMirror-lines {
    padding: @textarea-editor-padding;
  }

  .CodeMirror-scroll {
    overflow-y: hidden;
    overflow-x: auto;
  }

  pre {
    padding: 0;
  }

  .cm-header {
    color: black;
  }

  .cm-comment {
    color: #4444cc;
  }

  .cm-variable-2 {
    color: black;
  }
}


/****************************************************************************
 * Review Request Box
 ****************************************************************************/
.markdown-info {
  color: blue;
  font-size: 8pt;
  font-weight: normal;
  float: right;
  line-height: 25px;
  margin-right: 0.5em;
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.review-request {
  /*
   * Any changes to this need to be reflected in _resizeLayout in
   * reviewRequestEditorView.js
   */
  @details-width: 300px;

  background-color: #fefadf;
  background-image: url('@{img_base}/review_request_box_top_bg.png');

  label {
    color: @review-request-label-color;
    font-weight: bold;
  }

  noscript form {
    margin: 10px 5px 5px 5px;
    text-align: right;
  }

  textarea {
    border: @textarea-border;
    height: 1.5em;
    overflow: hidden;
  }

  .box-inner {
    background-image: url('@{img_base}/review_request_box_bottom_bg.png');
  }

  .content {
    padding: @box-padding;
    position: relative;

    &.sliding {
      margin-top: -5px;
    }

    img {
      border: none;
    }

    .editable.loading {
      .rich-text-loading();
    }

    .field-container {
      position: relative;

      &>pre {
        .pre-wrap;
        background-color: #FFFFFF;
        border: @textarea-border;
        margin: @textarea-editor-margin;
        padding: @textarea-editor-padding;
      }
    }
  }

  .content-divider {
    border-top: 1px #C2C1B0 solid;
  }

  .inline-editor-form {
    &.summary-editor {
      margin-top: -2px;
      margin-left: -3px;
    }

    input[type='text']:not(:focus) {
      .box-shadow(0px 0px 4px rgba(255, 0, 0, .75));
    }
  }

  .main {
    clear: both;
    padding: 0;
  }

  #required-field-legend {
    color: darkRed;
    font-weight: bold;
    padding: @box-padding;
  }

  .controls {
    list-style: none;
    margin: 0;
    padding: 0 8px 4px 8px;
    text-align: right;

    a {
      color: black;
      text-decoration: none;

      &:hover {
        color: #0000C0;
      }
    }

    li {
      display: inline;
      padding-left: 8px;
    }

    .rb-icon {
      vertical-align: bottom;
    }
  }

  .header {
    padding: @box-padding;
  }

  .star {
    float: left;
    margin-right: 10px;
  }

  #review_request_details {
    border-spacing: 0px;
    float: right;
    width: @details-width;
    padding: @box-padding;

    a {
      color: @review-request-link-color;
      text-decoration: none;
    }

    th {
      color: #39350b;
      font-weight: bold;
      text-align: left;
      white-space: nowrap;
    }

    tbody {
      td, th {
        padding: 0;
        vertical-align: top;
      }

      th, td .field {
        padding-top: 3px;
      }

      td {
        padding-left: 1em;

        span {
          display: inline-block;
          margin-right: 4px;
          word-wrap: break-word;
        }

        .editicon {
          margin-left: 0;
        }
      }

      th {
        padding-bottom: 1.5em;
        padding-left: 1em;
        text-align: right;
        white-space: nowrap;
      }
    }

    thead {
      &.first-fieldset th {
        padding-top: 0;
      }

      th {
        color: @review-request-label-color;
        font-size: 120%;
        padding: 2em 0 1em 0;
      }
    }

    #target_people .inactive {
      text-decoration: line-through;
    }

    .buttons {
      display: block;
      margin-bottom: 1em;
      padding: 6px 0 0 0;

      input {
        font-size: 11px;
      }
    }
  }

  #review_request_extra {
    clear: both;

    h3 {
      color: @review-request-label-color;
      font-size: 120%;
      margin: 0;
      padding: 0;
    }

    label.textarea-label {
      display: block;
      min-height: 16px;

      img {
        vertical-align: middle;
      }
    }
  }

  #review_request_main {
    margin-right: @details-width;
    position: relative;

    label {
      font-size: 120%;
    }
  }

  #review-request-warning {
    background-color: @review-request-warning-bg;
    border: 1px solid @review-request-warning-border-color;
    display: none;
    font-weight: bold;
    padding: 5px;
    text-align: center;
  }

  #diff_revision {
    font-weight: bold;
    text-align: right;
    vertical-align: bottom;
  }

  #status {
    color: #39350b;
    margin: 5px 0;
  }

  #summary_wrapper {
    @line-height: 2.6em;

    line-height: @line-height;
    padding: 0;

    label, #field_summary {
      font-size: 14px;
    }

    label {
      margin-right: 0.5em;
    }

    .rb-icon-edit {
      vertical-align: text-bottom;
    }

    #field_summary {
      display: inline;

      a {
        color: black;
        text-decoration: none;
      }
    }
  }

  .actions-container {
    .star {
      margin: 5px 0 0 5px;
    }
  }

  #updated_time, #created_time {
    text-align: right;
    vertical-align: bottom;
  }

  .editicon {
    text-decoration: none;
  }

  .required-flag {
    color: @required-flag-color;
    font-size: 10px;
    font-weight: bold;
    padding: 0 2px;
  }
}

#review_request_form {
  input[type='text'], textarea {
    width: 400px;
  }
}


/****************************************************************************
 * Review UIs
 ****************************************************************************/
.review-ui-box {
  &.has-review-ui-box-content .actions-container {
    .border-radius(@box-inner-border-radius @box-inner-border-radius 0 0);

    .actions > li:last-child {
      .border-radius(0 @box-inner-border-radius 0 0);
    }
  }

  .actions-container {
    .border-radius(@box-inner-border-radius);

    .actions > li:last-child {
      .border-radius(0 @box-inner-border-radius @box-inner-border-radius 0);
    }
  }

  .review-ui-box-content {
    clear: both;
    padding: 0;
  }

  .review-ui-header {
    border-bottom: 1px @diff-file-border-color solid;
    #gradient > .vertical-three-colors(#FFFFFF, @diff-file-color, 50%,
                                       @diff-file-color);

    h1 {
      margin: 0;
      padding: 8px;
      font-size: 10pt;
    }
  }
}


/****************************************************************************
 * Reviews
 ****************************************************************************/

.box {
  &.collapsed {
    .body {
      display: none;
    }

    .banner {
      margin-bottom: 0;
    }
  }

  .collapse-button {
    border: 1px #333333 solid;
    cursor: pointer;
    float: left;
    margin-right: 0.5em;
    margin-top: -1px;
    padding: 0;
  }
}

.review {
  .box {
    background-color: #e9edf5;
    background-image: url('@{img_base}/review_box_top_bg.png');
  }

  .banner {
    margin-top: 10px;

    &.floating {
      border-top: 0;
      margin-top: 0;
    }
  }

  .body {
    background-color: #FAFAFA;
    border: 1px #AAAAAA solid;
    clear: both;
    margin: 5px;
    padding: 10px;

    pre {
      .pre-wrap;
    }

    .comment-text:target {
      background-color: #E7EDF3;
      border: 1px solid @dark-blue;
      padding: 1em;
    }

    .body_top, .body_bottom {
      margin: 0;
    }
  }

  .box-inner {
    background-image: url('@{img_base}/review_box_bottom_bg.png') !important;
    min-height: 32px;
  }

  .controls {
    list-style: none;
    margin: 0;
    padding: 0 8px 4px 8px;
    text-align: right;

    a {
      text-decoration: none;
    }

    li {
      display: inline;
    }
  }

  .comments, .review-comments {
    border: 0;

    dd {
      margin-bottom: 20px;
    }

    dt thead th {
      font-weight: normal;
    }

    .filename a {
      color: black;
      font-weight: bold;
    }

    .file-attachment {
      background: #F0F0F0;
      border: 1px #C0C0C0 solid;
      padding: 5px;

      .file-attachment-comment-header {
        font-size: 120%;
        white-space: nowrap;

        a {
          text-decoration: none;
        }

        img {
          padding-right: 10px;
          vertical-align: middle;
        }

        .caption {
          color: black;
          margin: 5px 0 0 32px;
        }

        .filename {
          color: black;
          font-weight: bold;
          margin: 0;
          vertical-align: middle;
        }
      }

      .thumbnail {
        margin-top: 0.5em;
      }
    }

    .screenshot {
      background: #F0F0F0;
      border: 1px #C0C0C0 solid;
      font-size: 120%;

      img {
        padding: 5px;
      }

      .filename {
        display: block;
        margin: 0;
        padding: 5px 10px;
      }
    }
  }

  .header {
    padding: 2px 4px 4px 4px;

    a {
      color: black;
      text-decoration: none;
    }
  }

  .reviewer {
    float: left;
    font-weight: bold;
    padding-top: 2px;

    a {
      position: relative;
    }
  }

  .posted_time {
    text-align: right;
    padding-top: 2px;
  }

  .reply-comments {
    margin: 20px 0 0 0;
    padding: 0;

    &>li {
      display: inline;

      .review-comments-inline();

      dl {
        border-left: 2px #D0D0D0 solid;

        /*
         * Set a border-bottom to prevent a bug in IE where, without a
         * border-bottom, the content of the dl will shift left by the
         * border-left size for every following item.
         */
        border-bottom: 1px #FAFAFA solid;
        margin: 0;
        padding: 5px;

        dd {
          margin-left: 10px;
        }
      }
    }
  }

  .shipit {
    background: #aeff60;
    border: 1px #888888 solid;
    font-weight: bold;
    left: -10px;
    margin-bottom: 8px;
    padding: 4px 8px;
    position: relative;
    width: 4.5em;
    top: -8px;
    .border-radius(@box-border-radius 0 @box-border-radius 0);

    &.with-issues {
      border: 1px darken(@issue-opened-bg, 70%) solid;
      color: #205003;
      width: 11em;
      #gradient > .vertical-three-colors(@issue-opened-bg, @issue-opened-bg, 25%,
                                         darken(@issue-opened-bg, 30%));
    }
  }
}

.sidebyside.loading {
  /* Helps us better keep the size, as long as the comment is within a chunk. */
  padding: 2px 2px 1px 2px;
  width: 100%;

  tbody {
    background: #F3F3F3 url("@{img_base}/spinner.gif") no-repeat center center;

    td {
      padding: 1em;
    }
  }
}


/****************************************************************************
 * Change Descriptions
 ****************************************************************************/
#field_changedescription {
  .pre-wrap;
  background-color: @textarea-editor-background;
  border: @textarea-border;
  margin: @textarea-editor-margin;
  padding: @textarea-editor-padding;

  &.loading {
    .rich-text-loading();
  }
}

.changedesc {
  &.box {
    background-color: #fefadf;
    background-image: url('@{img_base}/review_request_box_top_bg.png');
  }

  .body {
    clear: both;
    padding: @box-padding;

    &>ul {
      list-style: none;
      margin: 1em 0 1em 0;
      padding: 0;

      &>li {
        margin: 3em 0 0 0;

        &:first-child {
          margin-top: 0;
        }
      }
    }

    a {
      color: default;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }

    /* Field labels */
    h3 {
      color: @review-request-label-color;
      font-size: 110%;
      margin: 1em 0 0.5em 0;
      padding: 0;

      &.status {
        /* Add some separation between this and the other fields. */
        margin-bottom: 2em;

        &:last-child {
          /*
           * If it's the last child, we don't want that separation, or it'll
           * have an odd amount of extra space.
           */
          margin-bottom: 0.5em;
        }

        .value {
          color: black;
          font-weight: normal;
        }
      }
    }

    /* Used in the textarea field diffs and the Change Summary section. */
    > pre {
      background-color: #FFFFFF;
      border: @textarea-border;
      padding: @textarea-editor-padding;
      font-size: 9pt;
      .pre-wrap;
    }

    /*
     * File attachment/screenshot change lists.
     *
     * These differ from the other field change lists in that they have
     * mini-section labels underneath for each file.
     */
    .caption-changed {
      margin: 2em 0 0 2em;
      padding: 0;

      a {
        /* Treat the link like a field. */
        font-weight: bold;
      }

      td, th {
        vertical-align: top;
      }

      td {
        padding-left: 1em;
      }

      th {
        text-align: right;
      }
    }

    /* Displays changes for field values, with "-" and "+" markers. */
    .changed {
      border: @textarea-border;
      border-collapse: collapse;
      display: inline-block;
      margin: 0;
      padding: 0;
      vertical-align: top;

      a {
        color: blue;
        text-decoration: none;

        &:first-child {
          margin-left: 0;
        }

        &:hover {
          text-decoration: underline;
        }
      }

      td, th {
        font-family: @textarea-font-family;
        padding: 0.3em 0.6em;
      }

      td {
        background: #FEFEFE;
      }

      .new-value .marker {
        background: @diff-insert-linenum-color;
      }

      .old-value .marker {
        background: @diff-delete-linenum-color;
      }
    }

    /* The "Change Summary" section. */
    .changedesc-text {
      margin-bottom: 2em;

      &:last-child {
        margin-bottom: 0;
      }
    }

    /* The diff for text areas. */
    .diffed-text-area {
      background: white;
      border: @textarea-border;
      border-collapse: collapse;
      padding: 0;
      width: 100%;

      a {
        text-decoration: underline;
      }

      pre {
        background: none;
        border: 0;
        margin: 0;
        padding: 0;
        .pre-wrap;
      }

      td {
        font-family: @textarea-font-family;
        padding: 2px 4px;
        vertical-align: top;
        .pre-wrap;
      }

      .delete {
        .line {
          background: @diff-delete-color;
        }

        /* The '-' or '+' marker. */
        .marker {
          color: #990000;
          background: @diff-delete-linenum-color;
        }
      }

      .insert {
        .line {
          background: @diff-insert-color;
        }

        /* The '-' or '+' marker. */
        .marker {
          background: @diff-insert-linenum-color;
        }
      }

      .line {
        width: 100%;

        /*
         * Make sure any images in the Markdown-rendered text are kept
         * small, but with the correct aspect ratio.
         */
        img {
          width: auto;
          max-height: 100px;
        }
      }

      /* The '-' or '+' marker. */
      .marker {
        background: #F9F9F9;
        font-family: @textarea-font-family;
        font-size: @textarea-font-size;
        font-weight: bold;
        text-align: center;
      }

      .replace-new {
        .line {
          background: @diff-insert-color;

          .hl {
            background: desaturate(darken(@diff-insert-color, 15%), 30%);
          }
        }

        /* The '-' or '+' marker. */
        .marker {
          background: @diff-insert-linenum-color;
        }
      }

      .replace-old {
        .line {
          background: @diff-delete-color;

          .hl {
            background: desaturate(darken(@diff-delete-color, 10%), 20%);
          }
        }

        /* The '-' or '+' marker. */
        .marker {
          background: @diff-delete-linenum-color;
        }
      }
    }

    /* Styling for the "Diff" field updates. */
    .diff-changes {
      .line-counts {
        margin-left: 0.5em;

        .delete-count {
          color: @diff-delete-line-count-color;
        }

        .insert-count {
          color: @diff-insert-line-count-color;
        }
      }
    }

    /* Styles for the file listing for the "Diff" field. */
    .diff-index {
      margin-bottom: 0;

      .diff-file-icon {
        min-width: 20px;
        min-height: 20px;
      }

      .diff-file-info {
        /* Compensate for the lack of diff-chunks-cell column. */
        width: 100%;
      }
    }

    .primary-fields {
      h3:first-child {
        margin-top: 2em;
      }
    }

    /*
     * Secondary fields are in more of a Field: Value display, with the
     * fields lining up.
     */
    .secondary-fields {
      width: 100%;

      h3 {
        margin: 2px 1em 0 0;
        padding: 0;
        text-align: right;
      }

      &>tbody>tr {
        &>td,
        &>th {
          padding: 0.5em 0;
          vertical-align: top;
          white-space: nowrap;
        }

        &>td {
          /*
           * Between this and the white-space: nowrap above, the field labels
           * will end up taking the minimum size without wrapping, and the
           * rest of the width will be given to the value.
           */
          width: 100%;

          &>p {
            /*
             * If the field value is rendered inside a <p>, make sure it
             * aligns with the field label.
             *
             * Note that the label has a larger font than this, so we can't
             * reuse the same pixel value. We have to bump it.
             */
            &:first-child {
              margin-top: 3px;
            }

            /* Don't take up more room than we need in the last <p>. */
            &:last-child {
              margin-bottom: 0;
            }
          }
        }
      }
    }
  }

  .box-inner {
    background-image: url('@{img_base}/review_request_box_bottom_bg.png') !important;
    min-height: 32px;
  }

  .header {
    padding: 2px 4px 4px 4px;

    a {
      color: black;
      text-decoration: none;
    }

    b {
      float: left;
      font-weight: bold;
    }

    .reviewer {
      padding-top: 2px;
    }

    .posted_time {
      text-align: right;
    }
  }
}


/****************************************************************************
 * Updates Bubble
 ****************************************************************************/

#updates-bubble {
  background: #FFF1AB;
  border: 1px #666666 solid;
  bottom: 1px;
  font-size: 110%;
  padding: 0.8em;
  position: fixed;
  right: 1px;

  a, a:visited {
    color: #0000CC;
    text-decoration: none;
  }

  #updates-bubble-buttons {
    margin-left: 2em;
  }
}


/****************************************************************************
 * Review Form
 ****************************************************************************/
#review-form {
  overflow: auto;
  padding: 10px;

  .add-link {
    font-size: 110%;

    &:visited {
      color: @link-color;
    }
  }

  label {
    color: black;
    font-weight: bold;
    margin-top: 10px;
  }

  dt label {
    color: #AB5603;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
  }

  .comment-text-field > .edit-field {
    margin: 1em 0;

    .comment-text-field {
      label {
        .inline-editor-label();
      }
    }
  }

  .spinner {
    background: url("@{img_base}/spinner.gif") no-repeat center center;
    height: 16px;
    margin: 3em auto;
  }

  #review-form-comments {
    background: none;

    pre {
      .pre-wrap;
    }

    .comments {
      list-style: none;
      margin: 0;
      padding: 0;

      > li {
        margin: 2em 0;
        padding: 0;

        .edit-fields {
          margin-left: 2em;
        }

      }
    }

    .review-comments-inline();

    dd {
      margin: 0;
    }
  }
}


/****************************************************************************
 * Uploaded files
 ****************************************************************************/
.file-container {
  float: left;

  &.editing .file {
    .border-radius(@box-border-radius @box-border-radius 0 0);

    .file-caption-container {
      padding-left: 0;
      padding-right: 0;

      .file-caption {
        text-overflow: initial;
      }
    }
  }

  .file {
    @file-attachment-bg: white;
    @file-attachment-width: 300px;
    @file-attachment-border-color: #CCCCCC;

    background-color: #FEFEFE;
    border: 1px @file-attachment-border-color solid;
    display: block;
    position: relative;
    margin: 0 1.5em 1.5em 0;
    max-width: @file-attachment-width;
    width: @file-attachment-width;
    .border-radius(@box-border-radius);
    .box-shadow(@box-shadow);
    .box-sizing(border-box);

    .actions {
      li {
        line-height: 16px;

        &:last-child a {
          .border-radius(0 @box-inner-border-radius 0 0);
        }

        &:hover {
          background: transparent;
        }

        .file-attachment-menu {
          border: 1px @file-attachment-border-color solid;
          float: none;
          list-style: none;
          margin: -1px 0 0;
          padding: 0;
          position: absolute;
          right: -1px;
          z-index: @z-index-menu;
          .border-radius(0 0 @box-border-radius @box-border-radius);
          .box-shadow(none);

{'fraction_non_alphanumeric': 0.18302631842690772, 'fraction_numerical': 0.02052556675820321, 'mean_word_length': 1.7397034596375618, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7140562', 'n_tokens_mistral': 17454, 'n_tokens_neox': 15833, 'n_words': 3471}