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
|
|
|
|
2016-02-29 10:45:49 -05:00
|
|
|
.timeline-icon {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-content {
|
2016-02-29 10:55:50 -05:00
|
|
|
margin-left: 55px;
|
2016-02-29 10:45:49 -05:00
|
|
|
}
|
|
|
|
|
2016-02-29 11:01:28 -05:00
|
|
|
.note_created_ago, .note-updated-at {
|
2016-02-29 10:49:48 -05:00
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2015-09-08 10:11:41 -04:00
|
|
|
.system-note {
|
|
|
|
font-size: 14px;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
2015-10-05 15:18:21 -04:00
|
|
|
background: #FDFDFD;
|
2015-09-08 10:11:41 -04:00
|
|
|
|
|
|
|
.timeline-icon {
|
|
|
|
.avatar {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-12-02 14:53:50 -05:00
|
|
|
.discussion-header,
|
|
|
|
.note-header {
|
|
|
|
@extend .cgray;
|
|
|
|
|
2014-09-25 11:52:33 -04:00
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2012-12-02 14:53:50 -05:00
|
|
|
.avatar {
|
|
|
|
float: left;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-last-update,
|
|
|
|
.note-last-update {
|
2014-03-26 04:55:04 -04:00
|
|
|
&:before {
|
|
|
|
content: "\00b7";
|
|
|
|
}
|
2015-05-14 06:18:19 -04:00
|
|
|
|
|
|
|
a {
|
2015-09-08 04:12:14 -04:00
|
|
|
color: $gl-gray;
|
2015-05-14 06:18:19 -04:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
2013-01-17 15:35:45 -05:00
|
|
|
.author {
|
2015-09-08 04:12:14 -04:00
|
|
|
color: #4c4e54;
|
|
|
|
margin-right: 3px;
|
|
|
|
|
2012-12-02 14:53:50 -05:00
|
|
|
&:hover {
|
2015-03-06 23:02:34 -05:00
|
|
|
color: $gl-link-color;
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
|
|
|
}
|
2014-12-02 04:31:57 -05:00
|
|
|
.author-username {
|
|
|
|
}
|
2015-05-12 06:16:34 -04:00
|
|
|
|
|
|
|
.note-role {
|
|
|
|
float: right;
|
2015-05-14 06:18:19 -04:00
|
|
|
margin-top: 1px;
|
2015-05-12 06:16:34 -04:00
|
|
|
border: 1px solid #bbb;
|
|
|
|
background-color: transparent;
|
2015-09-08 03:58:43 -04:00
|
|
|
color: $gl-gray;
|
2015-05-12 06:16:34 -04:00
|
|
|
}
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
|
|
|
|
2015-10-16 03:31:35 -04:00
|
|
|
.discussion-body {
|
|
|
|
padding-top: 15px;
|
|
|
|
}
|
|
|
|
|
2012-12-02 14:53:50 -05:00
|
|
|
.discussion {
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
position:relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.note {
|
|
|
|
display: block;
|
|
|
|
position:relative;
|
2015-07-09 15:10:59 -04:00
|
|
|
|
2012-12-02 14:53:50 -05:00
|
|
|
.note-body {
|
2014-12-29 15:59:08 -05:00
|
|
|
overflow: auto;
|
2015-07-09 15:10:59 -04:00
|
|
|
|
2015-01-18 22:03:50 -05:00
|
|
|
.note-text {
|
|
|
|
overflow: auto;
|
|
|
|
word-wrap: break-word;
|
|
|
|
@include md-typography;
|
2015-02-16 16:09:17 -05:00
|
|
|
|
2015-07-09 15:10:59 -04:00
|
|
|
// Reset ul style types since we're nested inside a ul already
|
|
|
|
& > ul {
|
|
|
|
list-style-type: disc;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style-type: circle;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style-type: square;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-08 16:53:48 -05:00
|
|
|
ul.task-list {
|
|
|
|
ul:not(.task-list) {
|
|
|
|
padding-left: 1.3em;
|
2015-04-29 20:36:12 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-03 09:29:27 -04:00
|
|
|
hr {
|
2015-07-27 17:32:56 -04:00
|
|
|
// Darken 'whitesmoke' a bit to make it more visible in note bodies
|
|
|
|
border-color: darken(#F5F5F5, 8%);
|
2015-04-03 09:29:27 -04:00
|
|
|
margin: 10px 0;
|
2015-02-16 16:09:17 -05:00
|
|
|
}
|
2015-01-18 22:03:50 -05:00
|
|
|
}
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
2015-07-09 15:10:59 -04:00
|
|
|
|
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 {
|
2015-12-22 11:11:02 -05:00
|
|
|
border-bottom: 1px solid $border-color;
|
2014-05-24 04:11:45 -04:00
|
|
|
}
|
2012-12-02 14:53:50 -05:00
|
|
|
}
|
|
|
|
}
|
2012-11-17 18:41:30 -05:00
|
|
|
|
2015-03-14 14:20:40 -04:00
|
|
|
// Diff code in discussion view
|
2015-03-26 02:21:13 -04:00
|
|
|
.discussion-body .diff-file {
|
|
|
|
.diff-header > span {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
.line_content {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2015-03-14 14:20:40 -04:00
|
|
|
}
|
|
|
|
|
2014-02-24 02:43:45 -05:00
|
|
|
.diff-file .notes_holder {
|
2014-12-10 18:51:54 -05:00
|
|
|
font-family: $regular_font;
|
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 {
|
2016-02-29 11:02:57 -05:00
|
|
|
vertical-align: middle;
|
2012-11-20 11:46:55 -05:00
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
2014-08-15 09:29:25 -04:00
|
|
|
background: #FFF;
|
2016-01-25 05:42:47 -05:00
|
|
|
color: $text-color;
|
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;
|
2014-09-12 12:43:44 -04:00
|
|
|
&.parallel{
|
|
|
|
border-width: 1px;
|
|
|
|
}
|
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 {
|
|
|
|
.discussion-actions,
|
|
|
|
.note-actions {
|
|
|
|
float: right;
|
2015-05-14 06:18:19 -04:00
|
|
|
margin-left: 10px;
|
2012-12-02 14:53:50 -05:00
|
|
|
|
|
|
|
a {
|
2015-05-12 06:16:34 -04:00
|
|
|
margin-left: 5px;
|
2015-09-08 03:58:43 -04:00
|
|
|
color: $gl-gray;
|
2015-05-14 06:18:19 -04:00
|
|
|
|
|
|
|
i.fa {
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 16px;
|
|
|
|
}
|
2012-12-02 14:53:50 -05:00
|
|
|
|
|
|
|
&:hover {
|
2015-05-14 06:18:19 -04:00
|
|
|
@extend .cgray;
|
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 {
|
2014-09-19 10:16:45 -04:00
|
|
|
@mixin show-add-diff-note {
|
|
|
|
filter: alpha(opacity=100);
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
|
|
|
|
2012-11-20 11:46:55 -05:00
|
|
|
.add-diff-note {
|
2014-12-22 13:36:15 -05:00
|
|
|
margin-top: -4px;
|
|
|
|
@include border-radius(40px);
|
|
|
|
background: #FFF;
|
|
|
|
padding: 4px;
|
|
|
|
font-size: 16px;
|
2015-03-06 23:02:34 -05:00
|
|
|
color: $gl-link-color;
|
2014-12-22 13:36:15 -05:00
|
|
|
margin-left: -60px;
|
2012-11-21 17:18:12 -05:00
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
2015-03-09 21:25:32 -04:00
|
|
|
width: 32px;
|
2012-11-21 17:18:12 -05:00
|
|
|
|
2014-12-22 13:36:15 -05:00
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
2012-11-21 17:18:12 -05:00
|
|
|
// "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 {
|
2015-03-09 21:25:32 -04:00
|
|
|
background: $gl-info;
|
2014-12-22 13:36:15 -05:00
|
|
|
color: #FFF;
|
2014-09-19 10:16:45 -04:00
|
|
|
@include show-add-diff-note;
|
2012-11-20 11:46:55 -05:00
|
|
|
}
|
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 {
|
|
|
|
.add-diff-note {
|
2014-09-19 10:16:45 -04:00
|
|
|
@include show-add-diff-note;
|
2012-07-27 04:22:05 -04:00
|
|
|
}
|
2012-07-10 13:15:33 -04:00
|
|
|
}
|
2012-02-13 17:20:23 -05:00
|
|
|
}
|