2012-02-26 17:41:53 -05:00
|
|
|
/**
|
|
|
|
* Notes
|
|
|
|
*/
|
2013-05-16 12:15:26 -04:00
|
|
|
|
2014-01-01 13:53:44 -05:00
|
|
|
@-webkit-keyframes targe3-note {
|
2013-05-16 12:15:26 -04:00
|
|
|
from { background:#fffff0; }
|
|
|
|
50% { background:#ffffd3; }
|
|
|
|
to { background:#fffff0; }
|
|
|
|
}
|
|
|
|
|
2012-11-17 18:41:30 -05:00
|
|
|
ul.notes {
|
2012-11-23 11:33:43 -05:00
|
|
|
display: block;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
2012-12-02 14:53:50 -05:00
|
|
|
|
|
|
|
.discussion-header,
|
|
|
|
.note-header {
|
|
|
|
@extend .cgray;
|
|
|
|
padding-top: 5px;
|
|
|
|
padding-bottom: 15px;
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-last-update,
|
|
|
|
.note-last-update {
|
2014-03-26 04:55:04 -04:00
|
|
|
&:before {
|
|
|
|
content: "\00b7";
|
|
|
|
}
|
|
|
|
font-size: 13px;
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
2013-01-17 15:35:45 -05:00
|
|
|
.author {
|
2014-03-26 04:55:04 -04:00
|
|
|
color: #555;
|
2012-12-02 14:53:50 -05:00
|
|
|
font-weight: bold;
|
2014-03-26 04:55:04 -04:00
|
|
|
font-size: 14px;
|
2012-12-02 14:53:50 -05:00
|
|
|
&:hover {
|
2014-06-02 07:13:35 -04:00
|
|
|
color: $link_hover_color;
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion {
|
2014-06-24 15:19:35 -04:00
|
|
|
padding: 10px 0;
|
2012-12-02 14:53:50 -05:00
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
position:relative;
|
2014-06-24 15:19:35 -04:00
|
|
|
border-bottom: 1px solid #EEE;
|
2012-12-02 14:53:50 -05:00
|
|
|
|
|
|
|
.discussion-body {
|
|
|
|
margin-left: 50px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.note {
|
|
|
|
display: block;
|
|
|
|
position:relative;
|
|
|
|
p { color: $style_color; }
|
|
|
|
|
|
|
|
.avatar {
|
2014-08-15 04:14:58 -04:00
|
|
|
margin: 0;
|
2012-11-21 21:20:41 -05:00
|
|
|
}
|
|
|
|
.attachment {
|
2013-01-15 04:12:17 -05:00
|
|
|
font-size: 14px;
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
|
|
|
.note-body {
|
2013-03-04 14:34:26 -05:00
|
|
|
@include md-typography;
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
|
|
|
.note-header {
|
2014-04-09 14:20:54 -04:00
|
|
|
padding-bottom: 3px;
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
2014-05-24 04:11:45 -04:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
|
|
|
|
2013-05-16 12:15:26 -04:00
|
|
|
.note:target {
|
|
|
|
-webkit-animation:target-note 2s linear;
|
|
|
|
background: #fffff0;
|
|
|
|
}
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
2012-11-17 18:41:30 -05:00
|
|
|
|
2014-02-24 02:43:45 -05:00
|
|
|
.diff-file .notes_holder {
|
2012-11-17 18:41:30 -05:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 18px;
|
2014-01-01 14:42:42 -05:00
|
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
2012-11-17 18:41:30 -05:00
|
|
|
|
2012-11-20 11:46:55 -05:00
|
|
|
td {
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-left: none;
|
|
|
|
|
|
|
|
&.notes_line {
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
2013-11-27 04:29:52 -05:00
|
|
|
background: #eee;
|
2012-11-20 11:46:55 -05:00
|
|
|
}
|
2013-10-09 16:22:37 -04:00
|
|
|
&.notes_line2 {
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
|
|
|
border-left: 1px solid #ddd !important;
|
|
|
|
}
|
2012-11-20 11:46:55 -05:00
|
|
|
&.notes_content {
|
2013-12-30 16:53:16 -05:00
|
|
|
background-color: #fff;
|
2012-11-20 11:46:55 -05:00
|
|
|
border-width: 1px 0;
|
|
|
|
padding-top: 0;
|
2014-04-24 04:49:01 -04:00
|
|
|
vertical-align: top;
|
2012-11-20 11:46:55 -05:00
|
|
|
}
|
2012-11-17 18:41:30 -05:00
|
|
|
}
|
|
|
|
}
|
2012-12-02 14:53:50 -05:00
|
|
|
|
|
|
|
/**
|
2012-12-03 15:43:17 -05:00
|
|
|
* Actions for Discussions/Notes
|
2012-12-02 14:53:50 -05:00
|
|
|
*/
|
2012-12-03 15:43:17 -05:00
|
|
|
|
2012-12-02 14:53:50 -05:00
|
|
|
.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 {
|
2014-06-02 07:13:35 -04:00
|
|
|
color: $link_hover_color;
|
2012-12-02 14:53:50 -05:00
|
|
|
&.danger { @extend .cred; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-02-24 02:43:45 -05:00
|
|
|
.diff-file .note .note-actions {
|
2012-12-02 14:53:50 -05:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2011-11-12 06:04:43 -05:00
|
|
|
}
|
|
|
|
|
2012-09-12 20:12:44 -04:00
|
|
|
|
2012-11-20 11:46:55 -05:00
|
|
|
/**
|
2012-12-03 15:43:17 -05:00
|
|
|
* Line note button on the side of diffs
|
2012-11-20 11:46:55 -05:00
|
|
|
*/
|
2012-12-03 15:43:17 -05:00
|
|
|
|
2014-02-24 02:43:45 -05:00
|
|
|
.diff-file tr.line_holder {
|
2012-11-20 11:46:55 -05:00
|
|
|
.add-diff-note {
|
2014-03-06 04:05:00 -05:00
|
|
|
background: image-url("diff_note_add.png") no-repeat left 0;
|
2012-11-21 17:18:12 -05:00
|
|
|
height: 22px;
|
|
|
|
margin-left: -65px;
|
|
|
|
position: absolute;
|
|
|
|
width: 22px;
|
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
// "hide" it by default
|
2012-11-20 11:46:55 -05:00
|
|
|
opacity: 0.0;
|
|
|
|
filter: alpha(opacity=0);
|
2012-02-13 17:20:23 -05:00
|
|
|
|
2012-11-20 11:46:55 -05:00
|
|
|
&:hover {
|
|
|
|
opacity: 1.0;
|
|
|
|
filter: alpha(opacity=100);
|
|
|
|
}
|
2012-02-13 17:20:23 -05:00
|
|
|
}
|
2012-07-27 04:22:05 -04:00
|
|
|
|
2013-03-17 15:46:54 -04:00
|
|
|
// "show" the icon also if we just hover somewhere over the line
|
2012-11-20 11:46:55 -05:00
|
|
|
&:hover > td {
|
|
|
|
background: $hover !important;
|
|
|
|
|
|
|
|
.add-diff-note {
|
|
|
|
opacity: 1.0;
|
|
|
|
filter: alpha(opacity=100);
|
2012-07-27 04:22:05 -04:00
|
|
|
}
|
2012-07-10 13:15:33 -04:00
|
|
|
}
|
2012-02-13 17:20:23 -05:00
|
|
|
}
|
|
|
|
|
2012-11-20 11:46:55 -05:00
|
|
|
/**
|
2012-12-03 15:43:17 -05:00
|
|
|
* Note Form
|
2012-11-20 11:46:55 -05:00
|
|
|
*/
|
|
|
|
|
2013-01-29 15:18:19 -05:00
|
|
|
.comment-btn {
|
2013-01-29 15:29:21 -05:00
|
|
|
@extend .btn-create;
|
2013-01-29 15:18:19 -05:00
|
|
|
}
|
2012-12-02 14:43:39 -05:00
|
|
|
.reply-btn {
|
2013-01-29 15:29:21 -05:00
|
|
|
@extend .btn-primary;
|
2012-11-20 11:46:55 -05:00
|
|
|
}
|
2014-02-24 02:43:45 -05:00
|
|
|
.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;
|
|
|
|
}
|
2013-04-21 04:20:56 -04:00
|
|
|
}
|
2014-02-24 02:43:45 -05:00
|
|
|
|
|
|
|
tr.line_holder:hover > td .line_note_link {
|
|
|
|
opacity: 1.0;
|
|
|
|
filter: alpha(opacity=100);
|
2013-04-21 04:20:56 -04:00
|
|
|
}
|
|
|
|
}
|
2014-02-24 02:43:45 -05:00
|
|
|
.diff-file,
|
2012-12-02 14:47:09 -05:00
|
|
|
.discussion {
|
|
|
|
.new_note {
|
2013-12-26 02:44:18 -05:00
|
|
|
margin: 0;
|
|
|
|
border: none;
|
2012-12-02 14:47:09 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.new_note {
|
2012-12-02 14:43:39 -05:00
|
|
|
display: none;
|
2012-12-02 14:47:09 -05:00
|
|
|
.buttons {
|
|
|
|
float: left;
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
2012-12-03 16:34:50 -05:00
|
|
|
.clearfix {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2014-05-24 06:06:44 -04:00
|
|
|
|
|
|
|
.note-preview-holder,
|
|
|
|
.note_text {
|
|
|
|
background: #FFF;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
min-height: 100px;
|
|
|
|
padding: 5px;
|
|
|
|
font-size: 14px;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-preview-holder {
|
|
|
|
> p {
|
|
|
|
overflow-x: auto;
|
2012-12-02 14:47:09 -05:00
|
|
|
}
|
2014-05-24 06:06:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.note_text {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.nav-tabs {
|
|
|
|
margin-bottom: 0;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
li a,
|
|
|
|
li.active a {
|
2013-01-14 18:52:25 -05:00
|
|
|
border: 1px solid #DDD;
|
2012-12-02 14:43:39 -05:00
|
|
|
}
|
2012-11-20 11:46:55 -05:00
|
|
|
}
|
2012-12-03 15:43:17 -05:00
|
|
|
}
|
2012-11-20 11:46:55 -05:00
|
|
|
|
2012-12-03 15:43:17 -05:00
|
|
|
/* loading indicator */
|
|
|
|
.notes-busy {
|
|
|
|
margin: 18px;
|
2012-12-02 14:43:39 -05:00
|
|
|
}
|
2013-01-15 04:12:17 -05:00
|
|
|
|
|
|
|
.note-image-attach {
|
2013-12-30 17:36:31 -05:00
|
|
|
@extend .col-md-4;
|
2013-01-15 04:12:17 -05:00
|
|
|
@extend .thumbnail;
|
|
|
|
margin-left: 45px;
|
2014-02-19 20:32:42 -05:00
|
|
|
float: none;
|
2013-01-15 04:12:17 -05:00
|
|
|
}
|
2013-01-31 04:22:06 -05:00
|
|
|
|
2013-03-28 09:39:18 -04:00
|
|
|
.common-note-form {
|
|
|
|
margin: 0;
|
|
|
|
background: #F9F9F9;
|
2014-05-24 04:11:45 -04:00
|
|
|
padding: 5px;
|
2013-03-28 09:39:18 -04:00
|
|
|
border: 1px solid #DDD;
|
|
|
|
}
|
|
|
|
|
2013-01-31 04:22:06 -05:00
|
|
|
.note-form-actions {
|
|
|
|
background: #F9F9F9;
|
|
|
|
height: 45px;
|
|
|
|
|
|
|
|
.note-form-option {
|
2013-11-27 04:14:42 -05:00
|
|
|
margin-top: 8px;
|
2013-03-28 09:39:18 -04:00
|
|
|
margin-left: 30px;
|
2013-01-31 04:22:06 -05:00
|
|
|
@extend .pull-left;
|
2013-03-19 03:38:33 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.js-notify-commit-author {
|
|
|
|
float: left;
|
2013-01-31 04:22:06 -05:00
|
|
|
}
|
2014-05-23 04:22:00 -04:00
|
|
|
|
|
|
|
.write-preview-btn {
|
|
|
|
// makes the "absolute" position for links relative to this
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
// preview/edit buttons
|
|
|
|
> a {
|
|
|
|
position: absolute;
|
|
|
|
right: 5px;
|
|
|
|
top: 8px;
|
|
|
|
}
|
|
|
|
}
|
2013-01-31 04:22:06 -05:00
|
|
|
}
|
2013-06-26 10:32:34 -04:00
|
|
|
|
|
|
|
.note-edit-form {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
.note_text {
|
|
|
|
border: 1px solid #DDD;
|
|
|
|
box-shadow: none;
|
|
|
|
font-size: 14px;
|
|
|
|
height: 80px;
|
2014-01-30 06:33:29 -05:00
|
|
|
width: 100%;
|
2013-06-26 10:32:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
2013-10-09 16:22:37 -04:00
|
|
|
|
|
|
|
.parallel-comment {
|
|
|
|
padding: 6px;
|
2013-11-27 04:14:42 -05:00
|
|
|
}
|
2014-05-23 04:22:00 -04:00
|
|
|
|
|
|
|
.error-alert > .alert {
|
|
|
|
margin-top: 5px;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
2014-06-24 15:19:35 -04:00
|
|
|
|
|
|
|
.discussion-body,
|
|
|
|
.diff-file {
|
|
|
|
.notes .note {
|
|
|
|
border-color: #ddd;
|
|
|
|
padding: 10px 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-reply-holder {
|
|
|
|
background: #f9f9f9;
|
|
|
|
padding: 10px 15px;
|
|
|
|
border-top: 1px solid #DDD;
|
|
|
|
}
|
|
|
|
}
|