/** * Notes */ ul.notes { display: block; list-style: none; margin: 0px; padding: 0px; .discussion-header, .note-header { @extend .cgray; padding-top: 5px; padding-bottom: 15px; .avatar { float: left; margin-right: 10px; } .discussion-last-update, .note-last-update { font-style: italic; } .note-author { color: $style_color; font-weight: bold; &:hover { color: $primary_color; } } } .discussion { padding: 8px 0; overflow: hidden; display: block; position:relative; .discussion-body { margin-left: 50px; .diff_file, .discussion-hidden, .notes { @extend .borders; background-color: #F9F9F9; } .diff_file .notes { /* reset */ background: inherit; border: none; @include box-shadow(none); } .discussion-hidden .note { @extend .cgray; padding: 8px; text-align: center; } .notes .note { border-color: #ddd; padding: 8px; } .reply-btn { margin-top: 8px; } } } .note { padding: 8px 0; overflow: hidden; display: block; position:relative; p { color: $style_color; } .avatar { margin-top: 3px; } .attachment { font-size: 16px; margin-top: -20px; .icon-attachment { @extend .icon-paper-clip; font-size: 24px; position: relative; text-align: right; top: 6px; } } .note-body { margin-left: 45px; padding-top: 5px; } .note-header { padding-bottom: 5px; } } // paint top or bottom borders depending on notes direction &:not(.reversed) .note, &:not(.reversed) .discussion { border-bottom: 1px solid #eee; } &.reversed .note, &.reversed .discussion { border-top: 1px solid #eee; } } .diff_file .notes_holder { font-family: $sansFontFamily; font-size: 13px; line-height: 18px; td { border: 1px solid #ddd; border-left: none; &.notes_line { text-align: center; padding: 10px 0; } &.notes_content { background-color: $white; border-width: 1px 0; padding-top: 0; } } .reply-btn { margin-top: 8px; } } /** * Discussion/Note Actions */ .discussion, .note { &.note:hover { .note-actions { display: block; } } .discussion-header:hover { .discussion-actions { display: block; } } .discussion-actions, .note-actions { display: none; float: right; [class^="icon-"], [class*="icon-"] { font-size: 16px; line-height: 16px; vertical-align: middle; } a { @extend .cgray; &:hover { color: $primary_color; &.danger { @extend .cred; } } } } } .diff_file .note .note-actions { right: 0; top: 0; } // TODO: start cleaup .issue_notes, .wiki_notes { .note_content { float: left; width: 400px; } } /* for loading indicator */ .notes-status { margin: 18px; } p.notify_controls input{ margin: 5px; } p.notify_controls span{ font-weight: 700; } // TODO: end cleaup /** * line note button on the side of diffs */ .diff_file tr.line_holder { .add-diff-note { background: url("diff_note_add.png") no-repeat left 0; height: 22px; margin-left: -65px; position: absolute; width: 22px; z-index: 10; // "hide" it by default opacity: 0.0; filter: alpha(opacity=0); &:hover { opacity: 1.0; filter: alpha(opacity=100); } } // "show" the icon also if we just hover somwhere over the line &:hover > td { background: $hover !important; .add-diff-note { opacity: 1.0; filter: alpha(opacity=100); } } } /** * Note Forms */ .comment-btn, .reply-btn { @extend .save-btn; } .diff_file, .discussion { .new_note { margin: 8px 5px 8px 0; } } .new_note { display: none; .buttons { float: left; margin-top: 8px; } .note_options { h6 { line-height: 32px; padding-right: 15px; } } .note_text_and_preview { // makes the "absolute" position for links relative to this position: relative; // preview/edit buttons > a { font-size: 24px; padding: 4px; position: absolute; right: 0; } .note_preview { background: #f5f5f5; border: 1px solid #ddd; @include border-radius(4px); min-height: 80px; padding: 4px 6px; } .note_text { font-size: 14px; height: 80px; width: 98.6%; } } // TODO: start cleanup .attachments { position: relative; width: 350px; height: 50px; overflow: hidden; margin:0 0 5px !important; .input_file { .file_name { line-height: 30px; width: 240px; height: 28px; overflow: hidden; } .file_upload { position: absolute; right:14px; top:7px; } .input-file { width: 260px; height: 41px; float: right; } } } .input-file { font: 500px monospace; opacity:0; filter: alpha(opacity=0); position: absolute; z-index: 1; top:0; right:0; padding:0; margin: 0; } // TODO: end cleanup }