note_form.scss 2.53 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
/**
 * Note Form
 */

.comment-btn {
  @extend .btn-create;
}
.reply-btn {
  @extend .btn-primary;
}
.diff-file .diff-content {
  tr.line_holder:hover {
    &> td.line_content {
      background: $hover !important;
      border-color: darken($hover, 10%) !important;
    }
    &> td.new_line,
    &> td.old_line {
      background: darken($hover, 4%) !important;
      border-color: darken($hover, 10%) !important;
    }
  }

  tr.line_holder:hover > td .line_note_link {
    opacity: 1.0;
    filter: alpha(opacity=100);
  }
}
.diff-file,
.discussion {
  .new_note {
    margin: 0;
    border: none;
  }
}
.new_note {
  display: none;
}

.new_note, .edit_note {
  .buttons {
    margin-top: 8px;
43
    margin-bottom: 3px;
44 45 46 47 48 49 50 51
  }

  .note-preview-holder {
    > p {
      overflow-x: auto;
    }
  }

52 53 54 55
  img {
    max-width: 100%;
  }

56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
  .note_text {
    width: 100%;
  }
}

/* loading indicator */
.notes-busy {
  margin: 18px;
}

.note-image-attach {
  @extend .col-md-4;
  margin-left: 45px;
  float: none;
}

.common-note-form {
  margin: 0;
74
  background: #F7F8FA;
75 76 77
  padding: $gl-padding;
  margin-left: -$gl-padding;
  margin-right: -$gl-padding;
78 79
  border-right: 1px solid #ECEEF1;
  border-top: 1px solid #ECEEF1;
80
  margin-bottom: -$gl-padding;
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
}

.note-form-actions {
  background: #F9F9F9;

  .note-form-option {
    margin-top: 8px;
    margin-left: 30px;
    @extend .pull-left;
  }

  .js-notify-commit-author {
    float: left;
  }

  .write-preview-btn {
    // makes the "absolute" position for links relative to this
    position: relative;

    // preview/edit buttons
    > a {
      position: absolute;
      right: 5px;
      top: 8px;
    }
  }
}

.note-edit-form {
  display: none;
111
  font-size: 15px;
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147

  .form-actions {
    padding-left: 20px;

    .btn-save {
      float: left;
    }

    .note-form-option {
      float: left;
      padding: 2px 0 0 25px;
    }
  }
}

.js-note-attachment-delete {
  display: none;
}

.parallel-comment {
  padding: 6px;
}

.error-alert > .alert {
  margin-top: 5px;
  margin-bottom: 5px;
}

.discussion-body,
.diff-file {
  .notes .note {
    border-color: #ddd;
    padding: 10px 15px;
  }

  .discussion-reply-holder {
148
    background: $background-color;
149
    padding: 10px 15px;
150
    border-top: 1px solid $border-color;
151 152 153 154 155 156 157 158 159 160 161 162
  }
}

.discussion-notes-count {
  font-size: 16px;
}

.edit_note {
  .markdown-area {
    min-height: 140px;
  }
  .note-form-actions {
163
    background: transparent;
164 165
  }
}
166 167 168 169

.comment-hints {
  color: #999;
  background: #FFF;
170
  padding: 7px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
171
  margin-top: -11px;
172
  border: 1px solid $border-color;
173 174
  font-size: 13px;
}