2015-03-28 00:00:09 +01:00
|
|
|
/**
|
|
|
|
* @provides phui-inline-comment-view-css
|
|
|
|
*/
|
|
|
|
|
2015-05-04 21:21:21 +02:00
|
|
|
.differential-diff td.anchor-target {
|
|
|
|
background: {$lightyellow};
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* In the document, the anchor is positioned inside the inline comment, but
|
|
|
|
this makes the browser jump into the comment so the top isn't visible.
|
|
|
|
Instead, artificially position it a bit above the comment so we'll jump a
|
|
|
|
bit before the comment. This allows us to see the entire comment (and
|
|
|
|
generally the commented-on lines, at least in the case of one or two-line
|
|
|
|
comments) after the jump.
|
|
|
|
*/
|
|
|
|
.differential-inline-comment-anchor {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
margin-top: -72px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-content {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment,
|
|
|
|
.differential-inline-comment-edit {
|
|
|
|
font: {$basefont};
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: normal;
|
|
|
|
border-radius: 3px;
|
2017-05-16 19:57:30 +02:00
|
|
|
margin: 8px 12px;
|
2020-05-14 21:49:29 +02:00
|
|
|
background: {$page.content};
|
|
|
|
border: 1px solid {$blueborder};
|
2017-05-16 19:57:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.device .differential-inline-comment {
|
|
|
|
margin: 4px;
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
2015-03-28 02:30:09 +01:00
|
|
|
.inline-state-is-draft {
|
|
|
|
border: 1px dashed {$greyborder};
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-head {
|
|
|
|
font-weight: bold;
|
|
|
|
color: {$darkbluetext};
|
2015-07-01 20:32:32 +02:00
|
|
|
padding: 4px 5px 4px 8px;
|
2020-05-14 21:49:29 +02:00
|
|
|
|
|
|
|
background: {$lightbluebackground};
|
|
|
|
border-bottom: 1px solid {$blueborder};
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-content {
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
2015-03-28 02:30:09 +01:00
|
|
|
.inline-state-is-draft .differential-inline-comment-head {
|
|
|
|
border-bottom: 1px dashed {$lightgreyborder};
|
2015-03-28 00:00:09 +01:00
|
|
|
background-color: {$lightgreybackground};
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Tighten up spacing on replies */
|
|
|
|
.differential-inline-comment.inline-comment-is-reply {
|
2017-05-16 19:57:30 +02:00
|
|
|
margin-top: 0;
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment .inline-head-right {
|
|
|
|
float: right;
|
2015-06-29 23:42:29 +02:00
|
|
|
padding-right: 4px;
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment .inline-head-right .button {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment .inline-head-left {
|
|
|
|
float: left;
|
2015-07-01 20:32:32 +02:00
|
|
|
padding: 4px;
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.device-phone .differential-inline-comment .inline-head-left {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-phone .differential-inline-comment .inline-head-right {
|
2015-08-17 02:53:02 +02:00
|
|
|
margin: 12px 0 4px 4px;
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.device-phone .differential-inline-comment .inline-head-right .mml {
|
|
|
|
margin: 0 4px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* - Sythetic Comment ---------------------------------------------------------
|
|
|
|
|
|
|
|
Comments left by our robot overlords.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.differential-inline-comment.differential-inline-comment-synthetic {
|
|
|
|
border: 1px solid {$blue};
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.differential-inline-comment-synthetic
|
|
|
|
.differential-inline-comment-head {
|
|
|
|
border-bottom: 1px solid {$blueborder};
|
|
|
|
background-color: {$lightblue};
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.differential-inline-comment-synthetic
|
|
|
|
.differential-inline-comment-head {
|
|
|
|
padding-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
2015-04-21 00:06:20 +02:00
|
|
|
/* - Ghost Comment ------------------------------------------------------------
|
|
|
|
|
|
|
|
Comments from older or newer versions of the changeset.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.differential-inline-comment.inline-comment-ghost {
|
|
|
|
border: 1px solid {$lightgreyborder};
|
|
|
|
opacity: 0.75;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.inline-comment-ghost
|
|
|
|
.differential-inline-comment-head {
|
|
|
|
border-bottom: 1px solid {$lightgreyborder};
|
|
|
|
background-color: {$lightgreybackground};
|
|
|
|
}
|
|
|
|
|
2015-05-01 16:06:02 +02:00
|
|
|
/* - New/Edit Inline Comment --------------------------------------------------
|
|
|
|
|
|
|
|
Styles for when you are creating or editing an inline comment.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.differential-inline-comment .done-label {
|
|
|
|
display: inline-block;
|
|
|
|
color: {$sh-yellowicon};
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.inline-state-is-draft .done-label,
|
|
|
|
.differential-inline-comment.inline-comment-ghost .done-label {
|
2015-04-21 00:06:20 +02:00
|
|
|
color: {$lightgreytext};
|
|
|
|
}
|
2015-03-28 00:00:09 +01:00
|
|
|
|
|
|
|
/* - New/Edit Inline Comment --------------------------------------------------
|
|
|
|
|
|
|
|
Styles for when you are creating or editing an inline comment.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.differential-inline-comment-edit-body .aphront-form-input {
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit {
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit-buttons {
|
|
|
|
padding: 8px 0 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit-buttons button {
|
|
|
|
float: right;
|
|
|
|
margin-left: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit-title {
|
|
|
|
font-weight: bold;
|
|
|
|
color: {$darkbluetext};
|
|
|
|
padding: 4px 0 12px;
|
2015-06-26 18:33:03 +02:00
|
|
|
font-size: {$biggerfontsize};
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit {
|
|
|
|
background-color: {$lightgreybackground};
|
|
|
|
border: 1px solid {$lightgreyborder};
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit .remarkup-assist-textarea {
|
|
|
|
border-left-color: {$lightgreyborder};
|
|
|
|
border-right-color: {$lightgreyborder};
|
|
|
|
border-bottom-color: {$greyborder};
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit .remarkup-assist-bar {
|
|
|
|
border-left-color: {$lightgreyborder};
|
|
|
|
border-right-color: {$lightgreyborder};
|
|
|
|
border-top-color: {$lightgreyborder};
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit .aphront-form-control-textarea {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* - Action Buttons -----------------------------------------------------------
|
|
|
|
|
|
|
|
Reply, Edit, Delete, View, Button Bars...
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2015-06-29 23:42:29 +02:00
|
|
|
.differential-inline-comment .differential-inline-done-label {
|
2017-07-19 23:38:55 +02:00
|
|
|
border-color: {$gentle.highlight.border};
|
|
|
|
color: {$bluetext};
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
2015-03-28 02:30:09 +01:00
|
|
|
.differential-inline-comment.inline-state-is-draft
|
2015-03-28 00:00:09 +01:00
|
|
|
.differential-inline-done-label,
|
2015-03-28 02:30:09 +01:00
|
|
|
.differential-inline-comment.inline-state-is-draft
|
2015-05-01 16:06:02 +02:00
|
|
|
.button.simple,
|
|
|
|
.differential-inline-comment.inline-comment-ghost
|
2015-03-28 00:00:09 +01:00
|
|
|
.button.simple {
|
|
|
|
color: {$lightgreytext};
|
|
|
|
}
|
|
|
|
|
|
|
|
/* - Done Button --------------------------------------------------------------
|
|
|
|
|
|
|
|
Default colors, hovers, checked styles for the Done Button.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.differential-inline-done-label {
|
|
|
|
border: 1px solid {$sh-yellowborder};
|
|
|
|
border-radius: 3px;
|
|
|
|
display: inline-block;
|
2015-06-29 23:42:29 +02:00
|
|
|
padding: 3px 8px 4px;
|
2015-03-28 00:00:09 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-done-label .differential-inline-done {
|
|
|
|
margin: 0 6px 0 0;
|
|
|
|
display: inline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.inline-is-done
|
|
|
|
.differential-inline-done-label {
|
2017-07-17 20:08:17 +02:00
|
|
|
background-color: {$page.content};
|
2015-03-28 00:00:09 +01:00
|
|
|
border-color: {$lightblueborder};
|
2015-03-28 02:30:09 +01:00
|
|
|
color: {$sky};
|
2015-03-28 00:00:09 +01:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-desktop .differential-inline-comment.inline-is-done
|
|
|
|
.differential-inline-done-label:hover {
|
2017-07-17 20:08:17 +02:00
|
|
|
background-color: {$page.content};
|
2015-03-28 00:00:09 +01:00
|
|
|
color: {$sky};
|
|
|
|
}
|
|
|
|
|
2015-03-28 02:30:09 +01:00
|
|
|
.differential-inline-comment.inline-is-done .differential-inline-comment-head
|
2015-05-01 16:06:02 +02:00
|
|
|
.button-done {
|
2015-03-28 02:30:09 +01:00
|
|
|
color: {$sky};
|
|
|
|
}
|
|
|
|
|
2015-03-28 00:00:09 +01:00
|
|
|
.differential-inline-comment.inline-is-done {
|
2020-05-14 21:49:29 +02:00
|
|
|
border-color: {$thingreyborder};
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.inline-is-done
|
2017-07-17 20:08:17 +02:00
|
|
|
.differential-inline-comment-head {
|
2015-03-28 00:00:09 +01:00
|
|
|
background-color: {$lightgreybackground};
|
2020-05-14 21:49:29 +02:00
|
|
|
border-bottom-color: {$thingreyborder};
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.inline-is-done .differential-inline-comment-head
|
2015-03-28 02:30:09 +01:00
|
|
|
.button.simple {
|
2015-03-28 00:00:09 +01:00
|
|
|
border-color: {$lightgreyborder};
|
|
|
|
color: {$lightgreytext};
|
|
|
|
}
|
|
|
|
|
2015-03-28 02:30:09 +01:00
|
|
|
.differential-inline-comment.inline-is-done .differential-inline-comment-head
|
|
|
|
.differential-inline-done-label {
|
|
|
|
color: {$sky};
|
2017-07-17 20:08:17 +02:00
|
|
|
background-color: {$page.content};
|
2015-03-28 02:30:09 +01:00
|
|
|
border-color: {$sky};
|
|
|
|
}
|
|
|
|
|
|
|
|
/* - Inline State is Draft ----------------------------------------------------
|
2015-03-28 00:00:09 +01:00
|
|
|
|
|
|
|
The Unsubmitted state of the comment / done checkbox styles.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.differential-inline-comment .inline-draft-text {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-03-28 02:30:09 +01:00
|
|
|
.differential-inline-comment.inline-state-is-draft .inline-draft-text {
|
2015-04-21 00:06:20 +02:00
|
|
|
display: inline-block;
|
2015-03-28 00:00:09 +01:00
|
|
|
}
|
|
|
|
|
2015-03-28 02:30:09 +01:00
|
|
|
.inline-state-is-draft .differential-inline-done-label {
|
|
|
|
border-style: dashed;
|
|
|
|
}
|
|
|
|
|
2015-03-28 00:00:09 +01:00
|
|
|
|
|
|
|
/* - Undo ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
A wild undo box appears!
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.differential-inline-undo {
|
|
|
|
padding: 8px;
|
2017-05-16 22:03:45 +02:00
|
|
|
margin: 4px 12px;
|
2015-03-28 00:00:09 +01:00
|
|
|
text-align: center;
|
|
|
|
background: {$sh-yellowbackground};
|
|
|
|
border: 1px solid {$sh-yellowborder};
|
|
|
|
color: {$darkgreytext};
|
|
|
|
font: {$basefont};
|
2015-06-26 18:33:03 +02:00
|
|
|
font-size: {$normalfontsize};
|
2015-03-28 00:00:09 +01:00
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-undo a {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-04-30 20:20:29 +02:00
|
|
|
|
|
|
|
/* - Spooky Ghost UI -----------------------------------------------------------
|
|
|
|
|
|
|
|
Hide your codez.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.inline-comment-ghost .differential-inline-comment-head {
|
|
|
|
padding-left: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ghost-icon {
|
2016-02-15 06:29:56 +01:00
|
|
|
background: rgba({$alphagrey},.07);
|
2015-04-30 20:20:29 +02:00
|
|
|
float: left;
|
2015-05-01 16:06:02 +02:00
|
|
|
padding: 2px 4px 2px 2px;
|
2015-04-30 20:20:29 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ghost-icon .phui-icon-view {
|
2015-05-04 20:59:04 +02:00
|
|
|
padding: 8px 7px;
|
2015-07-01 20:32:32 +02:00
|
|
|
font-size: 16px;
|
2015-04-30 20:20:29 +02:00
|
|
|
color: {$lightbluetext};
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-desktop .ghost-icon .phui-icon-view:hover {
|
2015-07-01 20:32:32 +02:00
|
|
|
color: {$fire};
|
2015-04-30 20:20:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.inline-comment-ghost
|
|
|
|
.differential-inline-comment-head {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment.inline-comment-ghost
|
2015-05-01 16:06:02 +02:00
|
|
|
.differential-inline-done-label,
|
|
|
|
.differential-inline-comment.inline-comment-ghost {
|
2015-04-30 20:20:29 +02:00
|
|
|
border-color: {$lightgreyborder};
|
|
|
|
color: {$lightgreytext};
|
|
|
|
}
|
Allow inline comments to be individually hidden
Summary:
Ref T7447. Implements per-viewer comment hiding. Once a comment is obsolete or uninteresting, you can hide it completely.
This is sticky per-user.
My hope is that this will strike a better balance between concerns than some of the other approaches (conservative porting, summarization, hide-all).
Specifically, this adds a new action here:
{F435621}
Clicking it completely collapses the comment into a small icon on the previous line, and saves the comment state as hidden for you:
{F435626}
You can click the icon to reveal all hidden comments below the line.
Test Plan:
- Hid comments.
- Showed comments.
- Created, edited, deleted and submitted comments.
- Used Diffusion comments (hiding is not implemented there yet, but I'd plan to bring it there eventually if it works out in Differential).
Reviewers: btrahan, chad
Reviewed By: btrahan
Subscribers: jparise, yelirekim, epriestley
Maniphest Tasks: T7447
Differential Revision: https://secure.phabricator.com/D13009
2015-05-27 19:28:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* - Hiding Inlines ------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2017-05-09 21:09:45 +02:00
|
|
|
.reveal-inline {
|
Allow inline comments to be individually hidden
Summary:
Ref T7447. Implements per-viewer comment hiding. Once a comment is obsolete or uninteresting, you can hide it completely.
This is sticky per-user.
My hope is that this will strike a better balance between concerns than some of the other approaches (conservative porting, summarization, hide-all).
Specifically, this adds a new action here:
{F435621}
Clicking it completely collapses the comment into a small icon on the previous line, and saves the comment state as hidden for you:
{F435626}
You can click the icon to reveal all hidden comments below the line.
Test Plan:
- Hid comments.
- Showed comments.
- Created, edited, deleted and submitted comments.
- Used Diffusion comments (hiding is not implemented there yet, but I'd plan to bring it there eventually if it works out in Differential).
Reviewers: btrahan, chad
Reviewed By: btrahan
Subscribers: jparise, yelirekim, epriestley
Maniphest Tasks: T7447
Differential Revision: https://secure.phabricator.com/D13009
2015-05-27 19:28:38 +02:00
|
|
|
color: {$lightbluetext};
|
2017-05-09 21:09:45 +02:00
|
|
|
margin: 4px 0;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-hidden .reveal-inline {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-hidden .differential-inline-comment {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-summary {
|
2017-05-16 19:57:30 +02:00
|
|
|
background: {$lightgreybackground};
|
|
|
|
padding: 2px 16px;
|
|
|
|
color: {$lightgreytext};
|
2017-05-09 21:09:45 +02:00
|
|
|
display: none;
|
2017-05-16 19:57:30 +02:00
|
|
|
font: {$basefont};
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device .differential-inline-summary {
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 4px;
|
2017-05-09 21:09:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.inline-hidden .differential-inline-summary {
|
|
|
|
display: block;
|
Allow inline comments to be individually hidden
Summary:
Ref T7447. Implements per-viewer comment hiding. Once a comment is obsolete or uninteresting, you can hide it completely.
This is sticky per-user.
My hope is that this will strike a better balance between concerns than some of the other approaches (conservative porting, summarization, hide-all).
Specifically, this adds a new action here:
{F435621}
Clicking it completely collapses the comment into a small icon on the previous line, and saves the comment state as hidden for you:
{F435626}
You can click the icon to reveal all hidden comments below the line.
Test Plan:
- Hid comments.
- Showed comments.
- Created, edited, deleted and submitted comments.
- Used Diffusion comments (hiding is not implemented there yet, but I'd plan to bring it there eventually if it works out in Differential).
Reviewers: btrahan, chad
Reviewed By: btrahan
Subscribers: jparise, yelirekim, epriestley
Maniphest Tasks: T7447
Differential Revision: https://secure.phabricator.com/D13009
2015-05-27 19:28:38 +02:00
|
|
|
}
|
|
|
|
|
2017-05-09 21:09:45 +02:00
|
|
|
.reveal-inline span.phui-icon-view {
|
Allow inline comments to be individually hidden
Summary:
Ref T7447. Implements per-viewer comment hiding. Once a comment is obsolete or uninteresting, you can hide it completely.
This is sticky per-user.
My hope is that this will strike a better balance between concerns than some of the other approaches (conservative porting, summarization, hide-all).
Specifically, this adds a new action here:
{F435621}
Clicking it completely collapses the comment into a small icon on the previous line, and saves the comment state as hidden for you:
{F435626}
You can click the icon to reveal all hidden comments below the line.
Test Plan:
- Hid comments.
- Showed comments.
- Created, edited, deleted and submitted comments.
- Used Diffusion comments (hiding is not implemented there yet, but I'd plan to bring it there eventually if it works out in Differential).
Reviewers: btrahan, chad
Reviewed By: btrahan
Subscribers: jparise, yelirekim, epriestley
Maniphest Tasks: T7447
Differential Revision: https://secure.phabricator.com/D13009
2015-05-27 19:28:38 +02:00
|
|
|
color: {$lightbluetext};
|
|
|
|
}
|
|
|
|
|
2017-05-09 21:09:45 +02:00
|
|
|
.reveal-inline:hover span.phui-icon-view {
|
Allow inline comments to be individually hidden
Summary:
Ref T7447. Implements per-viewer comment hiding. Once a comment is obsolete or uninteresting, you can hide it completely.
This is sticky per-user.
My hope is that this will strike a better balance between concerns than some of the other approaches (conservative porting, summarization, hide-all).
Specifically, this adds a new action here:
{F435621}
Clicking it completely collapses the comment into a small icon on the previous line, and saves the comment state as hidden for you:
{F435626}
You can click the icon to reveal all hidden comments below the line.
Test Plan:
- Hid comments.
- Showed comments.
- Created, edited, deleted and submitted comments.
- Used Diffusion comments (hiding is not implemented there yet, but I'd plan to bring it there eventually if it works out in Differential).
Reviewers: btrahan, chad
Reviewed By: btrahan
Subscribers: jparise, yelirekim, epriestley
Maniphest Tasks: T7447
Differential Revision: https://secure.phabricator.com/D13009
2015-05-27 19:28:38 +02:00
|
|
|
color: {$darkbluetext};
|
|
|
|
}
|
2015-06-29 23:42:29 +02:00
|
|
|
|
|
|
|
.inline-button-divider {
|
2016-02-15 06:29:56 +01:00
|
|
|
border-left: 1px solid rgba({$alphagrey},.25);
|
2015-06-29 23:42:29 +02:00
|
|
|
margin-left: 8px;
|
|
|
|
}
|
2015-07-01 20:32:32 +02:00
|
|
|
|
|
|
|
.differential-inline-comment-synthetic .inline-button-divider {
|
|
|
|
border: none;
|
|
|
|
}
|
2020-05-14 21:49:29 +02:00
|
|
|
|
|
|
|
.inline-comment-element .differential-inline-comment-head {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-comment-selected .inline-comment-element {
|
|
|
|
border-color: {$yellow};
|
|
|
|
background: {$gentle.highlight.background};
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-comment-selected .inline-comment-element
|
|
|
|
.differential-inline-comment-head {
|
|
|
|
background: {$lightyellow};
|
|
|
|
border-color: {$yellow};
|
|
|
|
}
|
2020-05-19 23:50:47 +02:00
|
|
|
|
|
|
|
.inline-suggestion {
|
|
|
|
display: none;
|
|
|
|
margin: 0 -8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.has-suggestion .inline-suggestion {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.differential-inline-comment-edit-buttons button.inline-button-left {
|
|
|
|
float: left;
|
|
|
|
margin: 0 6px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-suggestion-table {
|
|
|
|
table-layout: fixed;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
background: {$greybackground};
|
|
|
|
border-width: 1px 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: {$lightgreyborder};
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea.inline-suggestion-input {
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.inline-suggestion-line-cell {
|
|
|
|
text-align: right;
|
|
|
|
background: {$darkgreybackground};
|
|
|
|
width: 36px;
|
|
|
|
color: {$greytext};
|
|
|
|
border-right: 1px solid {$lightgreyborder};
|
|
|
|
}
|
|
|
|
|
2020-05-20 18:01:23 +02:00
|
|
|
.inline-suggestion-table td.inline-suggestion-input-cell {
|
|
|
|
padding: 8px 4px;
|
2020-05-19 23:50:47 +02:00
|
|
|
}
|
|
|
|
|
2020-05-20 18:01:23 +02:00
|
|
|
.inline-suggestion-table td.inline-suggestion-text-cell {
|
|
|
|
/* This is attempting to align the text in the textarea with the text on
|
|
|
|
the surrounding context lines. */
|
|
|
|
padding: 0 8px 0 11px;
|
2020-05-19 23:50:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.inline-suggestion-view {
|
2020-05-20 18:01:23 +02:00
|
|
|
padding: 4px 0;
|
2020-05-19 23:50:47 +02:00
|
|
|
white-space: pre-wrap;
|
2020-05-20 18:01:23 +02:00
|
|
|
background: {$lightgreybackground};
|
2020-05-19 23:50:47 +02:00
|
|
|
margin: 0 -12px 8px;
|
|
|
|
border-width: 1px 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: {$lightgreyborder};
|
|
|
|
}
|
2020-05-20 18:01:23 +02:00
|
|
|
|
|
|
|
.diff-1up-simple-table {
|
|
|
|
width: 100%;
|
|
|
|
table-layout: fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diff-1up-simple-table > tbody > tr > td {
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
|
|
|
}
|