2015-04-26 12:48:37 +05:30
|
|
|
/**
|
|
|
|
* Notes
|
|
|
|
*/
|
|
|
|
|
|
|
|
@-webkit-keyframes targe3-note {
|
2016-06-02 11:05:42 +05:30
|
|
|
from { background: #fffff0; }
|
|
|
|
50% { background: #ffffd3; }
|
|
|
|
to { background: #fffff0; }
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
ul.notes {
|
|
|
|
display: block;
|
|
|
|
list-style: none;
|
2016-06-02 11:05:42 +05:30
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.timeline-icon {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-content {
|
|
|
|
margin-left: 55px;
|
|
|
|
|
|
|
|
&.timeline-content-form {
|
|
|
|
@media (max-width: $screen-sm-max) {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-created-ago, .note-updated-at {
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
.system-note {
|
|
|
|
font-size: 14px;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
2016-06-02 11:05:42 +05:30
|
|
|
background: #fdfdfd;
|
2015-09-25 12:07:36 +05:30
|
|
|
|
|
|
|
.timeline-icon {
|
|
|
|
.avatar {
|
|
|
|
visibility: hidden;
|
2016-08-24 12:49:21 +05:30
|
|
|
|
|
|
|
.discussion-body & {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
2015-09-25 12:07:36 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
.discussion-body {
|
|
|
|
padding-top: 15px;
|
|
|
|
}
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.discussion {
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
2016-06-02 11:05:42 +05:30
|
|
|
position: relative;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.note {
|
|
|
|
display: block;
|
2016-06-02 11:05:42 +05:30
|
|
|
position: relative;
|
|
|
|
border-bottom: 1px solid $table-border-gray;
|
|
|
|
|
|
|
|
&.is-editting {
|
|
|
|
.note-header,
|
|
|
|
.note-text,
|
|
|
|
.edited-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-edit-form {
|
|
|
|
display: block;
|
2016-06-16 23:09:34 +05:30
|
|
|
|
|
|
|
&.current-note-edit-form + .note-awards {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.note-body {
|
|
|
|
overflow: auto;
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.note-text {
|
|
|
|
overflow: auto;
|
|
|
|
word-wrap: break-word;
|
|
|
|
@include md-typography;
|
|
|
|
|
2016-06-22 15:30:34 +05:30
|
|
|
// Reset ul style types since we're nested inside a ul already
|
|
|
|
@include bulleted-list;
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
ul.task-list {
|
|
|
|
ul:not(.task-list) {
|
|
|
|
padding-left: 1.3em;
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.note-awards {
|
|
|
|
.js-awards-block {
|
|
|
|
padding: 2px;
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.award-control {
|
|
|
|
font-size: 13px;
|
|
|
|
padding: 2px 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.note-header {
|
|
|
|
padding-bottom: 3px;
|
2016-06-16 23:09:34 +05:30
|
|
|
padding-right: 20px;
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2016-06-22 15:30:34 +05:30
|
|
|
|
|
|
|
@media (max-width: $screen-xs-min) {
|
|
|
|
.inline {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2016-06-16 23:09:34 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.note-emoji-button {
|
|
|
|
.fa-spinner {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-loading {
|
|
|
|
.fa-smile-o {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fa-spinner {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Diff code in discussion view
|
|
|
|
.discussion-body .diff-file {
|
|
|
|
.diff-header > span {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
.line_content {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-file .notes_holder {
|
|
|
|
font-family: $regular_font;
|
|
|
|
|
|
|
|
td {
|
2016-06-02 11:05:42 +05:30
|
|
|
border: 1px solid $table-border-gray;
|
2015-04-26 12:48:37 +05:30
|
|
|
border-left: none;
|
|
|
|
|
|
|
|
&.notes_line {
|
2016-06-02 11:05:42 +05:30
|
|
|
vertical-align: middle;
|
2015-04-26 12:48:37 +05:30
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
2016-06-02 11:05:42 +05:30
|
|
|
background: $background-color;
|
2016-02-05 20:25:01 +05:30
|
|
|
color: $text-color;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
&.notes_line2 {
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
|
|
|
border-left: 1px solid #ddd !important;
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
&.notes_content {
|
2016-06-02 11:05:42 +05:30
|
|
|
background-color: $background-color;
|
2015-04-26 12:48:37 +05:30
|
|
|
border-width: 1px 0;
|
2016-06-02 11:05:42 +05:30
|
|
|
padding: 0;
|
2015-04-26 12:48:37 +05:30
|
|
|
vertical-align: top;
|
2016-06-02 11:05:42 +05:30
|
|
|
white-space: normal;
|
|
|
|
|
|
|
|
&.parallel {
|
2015-04-26 12:48:37 +05:30
|
|
|
border-width: 1px;
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
.notes {
|
|
|
|
background-color: $white-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
a code {
|
|
|
|
top: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-header,
|
|
|
|
.note-header {
|
2016-06-16 23:09:34 +05:30
|
|
|
position: relative;
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $gl-link-color;
|
|
|
|
text-decoration: none;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
.author_link {
|
|
|
|
color: $gl-gray;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-headline-light,
|
|
|
|
.discussion-headline-light {
|
|
|
|
color: $notes-light-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-headline-light {
|
|
|
|
a {
|
|
|
|
color: $gl-link-color;
|
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Actions for Discussions/Notes
|
|
|
|
*/
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.discussion-actions,
|
|
|
|
.note-actions {
|
|
|
|
float: right;
|
|
|
|
margin-left: 10px;
|
|
|
|
color: $notes-action-color;
|
|
|
|
}
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.note-actions {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2016-06-22 15:30:34 +05:30
|
|
|
|
|
|
|
.note-action-button {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.discussion-actions {
|
|
|
|
@media (max-width: $screen-md-max) {
|
|
|
|
float: none;
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
.note-action-button {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.note-action-button {
|
|
|
|
display: inline-block;
|
2016-06-16 23:09:34 +05:30
|
|
|
margin-left: 0;
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
margin-left: 10px;
|
|
|
|
line-height: 24px;
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.fa {
|
|
|
|
color: $notes-action-color;
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
font-size: 17px;
|
|
|
|
}
|
|
|
|
|
2016-09-29 09:46:39 +05:30
|
|
|
&:hover {
|
|
|
|
.danger-highlight {
|
|
|
|
color: $gl-text-red;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-09-29 09:46:39 +05:30
|
|
|
.link-highlight {
|
|
|
|
color: $gl-link-color;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
.discussion-toggle-button {
|
|
|
|
line-height: 20px;
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
margin-right: 3px;
|
|
|
|
font-size: 10px;
|
|
|
|
line-height: 18px;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-role {
|
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
|
|
|
display: inline-block;
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
|
|
|
color: $notes-role-color;
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 20px;
|
|
|
|
border: 1px solid $notes-role-border-color;
|
|
|
|
border-radius: $border-radius-base;
|
|
|
|
}
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.diff-file .note .note-actions {
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Line note button on the side of diffs
|
|
|
|
*/
|
|
|
|
|
|
|
|
.diff-file tr.line_holder {
|
|
|
|
@mixin show-add-diff-note {
|
2016-06-02 11:05:42 +05:30
|
|
|
display: inline-block;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.add-diff-note {
|
|
|
|
margin-top: -4px;
|
|
|
|
@include border-radius(40px);
|
2016-06-02 11:05:42 +05:30
|
|
|
background: #fff;
|
2015-04-26 12:48:37 +05:30
|
|
|
padding: 4px;
|
|
|
|
font-size: 16px;
|
|
|
|
color: $gl-link-color;
|
2016-06-02 11:05:42 +05:30
|
|
|
margin-left: -56px;
|
2015-04-26 12:48:37 +05:30
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
|
|
|
width: 32px;
|
|
|
|
// "hide" it by default
|
2016-06-02 11:05:42 +05:30
|
|
|
display: none;
|
2015-04-26 12:48:37 +05:30
|
|
|
&:hover {
|
|
|
|
background: $gl-info;
|
2016-06-02 11:05:42 +05:30
|
|
|
color: #fff;
|
2015-04-26 12:48:37 +05:30
|
|
|
@include show-add-diff-note;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// "show" the icon also if we just hover somewhere over the line
|
|
|
|
&:hover > td {
|
|
|
|
.add-diff-note {
|
|
|
|
@include show-add-diff-note;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
.disabled-comment {
|
|
|
|
margin-left: -$gl-padding-top;
|
|
|
|
margin-right: -$gl-padding-top;
|
|
|
|
background-color: $gray-light;
|
|
|
|
border-radius: $border-radius-base;
|
|
|
|
border: 1px solid $border-gray-normal;
|
|
|
|
color: $note-disabled-comment-color;
|
|
|
|
line-height: 200px;
|
|
|
|
|
|
|
|
.disabled-comment-text {
|
|
|
|
line-height: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $gl-link-color;
|
|
|
|
}
|
|
|
|
}
|
2016-09-13 17:45:13 +05:30
|
|
|
|
|
|
|
.line-resolve-all-container {
|
|
|
|
.btn-group {
|
|
|
|
margin-top: -1px;
|
|
|
|
margin-left: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-next-btn {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-resolve-all {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 5px 10px;
|
|
|
|
background-color: $background-color;
|
|
|
|
border: 1px solid $border-color;
|
|
|
|
border-radius: $border-radius-default;
|
|
|
|
|
|
|
|
&.has-next-btn {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-resolve-btn {
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-resolve-text {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-resolve-btn {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
padding: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
outline: 0;
|
|
|
|
|
|
|
|
&.is-disabled {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.is-disabled):hover,
|
|
|
|
&:not(.is-disabled):focus,
|
|
|
|
&.is-active {
|
|
|
|
color: $gl-text-green;
|
|
|
|
|
|
|
|
svg path {
|
|
|
|
fill: $gl-text-green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
position: relative;
|
|
|
|
color: $notes-action-color;
|
|
|
|
|
|
|
|
path {
|
|
|
|
fill: $notes-action-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.discussion-next-btn {
|
|
|
|
svg {
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
path {
|
|
|
|
fill: $gray-darkest;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|