Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15360699
D12171.id29245.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
29 KB
Referenced Files
None
Subscribers
None
D12171.id29245.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -7,10 +7,10 @@
*/
return array(
'names' => array(
- 'core.pkg.css' => '02ae106f',
+ 'core.pkg.css' => '7ee59d2c',
'core.pkg.js' => '75599122',
'darkconsole.pkg.js' => '8ab24e01',
- 'differential.pkg.css' => '217276e8',
+ 'differential.pkg.css' => '36d39ed2',
'differential.pkg.js' => 'e324301d',
'diffusion.pkg.css' => '591664fa',
'diffusion.pkg.js' => 'bfc0737b',
@@ -54,9 +54,10 @@
'rsrc/css/application/countdown/timer.css' => '86b7b0a0',
'rsrc/css/application/dashboard/dashboard.css' => '17937d22',
'rsrc/css/application/diff/inline-comment-summary.css' => 'eb5f8e8c',
- 'rsrc/css/application/differential/add-comment.css' => 'c478bcaa',
- 'rsrc/css/application/differential/changeset-view.css' => 'c5d1e738',
+ 'rsrc/css/application/differential/add-comment.css' => 'c47f8c40',
+ 'rsrc/css/application/differential/changeset-view.css' => '0bd1634b',
'rsrc/css/application/differential/core.css' => '7ac3cabc',
+ 'rsrc/css/application/differential/phui-inline-comment.css' => '330e088b',
'rsrc/css/application/differential/results-table.css' => '181aa9d9',
'rsrc/css/application/differential/revision-comment.css' => '48186045',
'rsrc/css/application/differential/revision-history.css' => '0e8eb855',
@@ -124,7 +125,7 @@
'rsrc/css/phui/phui-action-list.css' => '9ee9910a',
'rsrc/css/phui/phui-action-panel.css' => '3ee9afd5',
'rsrc/css/phui/phui-box.css' => '7b3a2eed',
- 'rsrc/css/phui/phui-button.css' => '57eaddc9',
+ 'rsrc/css/phui/phui-button.css' => '53f55a72',
'rsrc/css/phui/phui-crumbs-view.css' => '594d719e',
'rsrc/css/phui/phui-document.css' => '0f83a7df',
'rsrc/css/phui/phui-feed-story.css' => 'c9f3a0b5',
@@ -520,11 +521,11 @@
'conpherence-thread-manager' => 'bb928342',
'conpherence-update-css' => '1099a660',
'conpherence-widget-pane-css' => '1979ee8c',
- 'differential-changeset-view-css' => 'c5d1e738',
+ 'differential-changeset-view-css' => '0bd1634b',
'differential-core-view-css' => '7ac3cabc',
'differential-inline-comment-editor' => 'b3412377',
'differential-results-table-css' => '181aa9d9',
- 'differential-revision-add-comment-css' => 'c478bcaa',
+ 'differential-revision-add-comment-css' => 'c47f8c40',
'differential-revision-comment-css' => '48186045',
'differential-revision-history-css' => '0e8eb855',
'differential-revision-list-css' => 'f3c47d33',
@@ -772,7 +773,7 @@
'phui-action-header-view-css' => '89c497e7',
'phui-action-panel-css' => '3ee9afd5',
'phui-box-css' => '7b3a2eed',
- 'phui-button-css' => '57eaddc9',
+ 'phui-button-css' => '53f55a72',
'phui-calendar-css' => '8675968e',
'phui-calendar-day-css' => 'de035c8a',
'phui-calendar-list-css' => 'c1d0ca59',
@@ -789,6 +790,7 @@
'phui-image-mask-css' => '5a8b09c8',
'phui-info-panel-css' => '27ea50a1',
'phui-info-view-css' => 'c6f0aef8',
+ 'phui-inline-comment-view-css' => '330e088b',
'phui-list-view-css' => '2e25ebfb',
'phui-object-box-css' => 'd68ce5dc',
'phui-object-item-list-view-css' => '9db65899',
diff --git a/src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php b/src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
--- a/src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
+++ b/src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
@@ -63,16 +63,12 @@
public function render() {
+ require_celerity_resource('phui-inline-comment-view-css');
$inline = $this->inlineComment;
- $start = $inline->getLineNumber();
- $length = $inline->getLineLength();
- if ($length) {
- $end = $start + $length;
- $line = 'Lines '.number_format($start).'-'.number_format($end);
- } else {
- $line = 'Line '.number_format($start);
- }
+ $classes = array(
+ 'differential-inline-comment',
+ );
$metadata = array(
'id' => $inline->getID(),
@@ -105,40 +101,51 @@
$is_synthetic = true;
}
- $is_draft = false;
- if ($inline->isDraft() && !$is_synthetic) {
- $links[] = pht('Not Submitted Yet');
- $is_draft = true;
+ $draft_text = null;
+ if (!$is_synthetic) {
+ // This display is controlled by CSS
+ $draft_text = id(new PHUITagView())
+ ->setType(PHUITagView::TYPE_SHADE)
+ ->setName(pht('Unsubmitted Draft'))
+ ->setShade(PHUITagView::COLOR_RED)
+ ->addClass('mml inline-draft-text');
}
-
- // TODO: This stuff is nonfinal, just making it do something.
if ($inline->getHasReplies()) {
- $links[] = pht('Has Reply');
- $classes[] = 'inline-has-reply';
+ $classes[] = 'differential-inline-comment-has-reply';
}
if ($inline->getReplyToCommentPHID()) {
- $links[] = pht('Is Reply');
+ $classes[] = 'differential-inline-comment-is-reply';
}
+ $action_buttons = new PHUIButtonBarView();
+ $action_buttons->addClass('mml');
+ $nextprev = null;
if (!$this->preview) {
- $links[] = javelin_tag(
- 'a',
- array(
- 'href' => '#',
- 'mustcapture' => true,
- 'sigil' => 'differential-inline-prev',
- ),
- pht('Previous'));
-
- $links[] = javelin_tag(
- 'a',
- array(
- 'href' => '#',
- 'mustcapture' => true,
- 'sigil' => 'differential-inline-next',
- ),
- pht('Next'));
+ $nextprev = new PHUIButtonBarView();
+ $nextprev->addClass('mml');
+ $upimage = id(new PHUIIconView())
+ ->setIconFont('fa-chevron-up');
+ $up = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setColor(PHUIButtonView::SIMPLE)
+ ->setTitle(pht('Previous'))
+ ->setIcon($upimage)
+ ->addSigil('differential-inline-prev')
+ ->setMustCapture(true);
+
+ $downimage = id(new PHUIIconView())
+ ->setIconFont('fa-chevron-down');
+ $down = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setColor(PHUIButtonView::SIMPLE)
+ ->setTitle(pht('Previous'))
+ ->setIcon($downimage)
+ ->addSigil('differential-inline-next')
+ ->setMustCapture(true);
+
+ $nextprev->addButton($up);
+ $nextprev->addButton($down);
if ($this->allowReply) {
@@ -149,14 +156,14 @@
// file/line information, and synthetic comments don't have an inline
// comment ID.
- $links[] = javelin_tag(
- 'a',
- array(
- 'href' => '#',
- 'mustcapture' => true,
- 'sigil' => 'differential-inline-reply',
- ),
- pht('Reply'));
+ $reply_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setColor(PHUIButtonView::SIMPLE)
+ ->setIconFont('fa-reply')
+ ->setTitle(pht('Reply'))
+ ->addSigil('differential-inline-reply')
+ ->setMustCapture(true);
+ $action_buttons->addButton($reply_button);
}
}
@@ -165,40 +172,44 @@
$anchor_name = 'inline-'.$inline->getID();
if ($this->editable && !$this->preview) {
- $links[] = javelin_tag(
- 'a',
- array(
- 'href' => '#',
- 'mustcapture' => true,
- 'sigil' => 'differential-inline-edit',
- ),
- pht('Edit'));
- $links[] = javelin_tag(
- 'a',
- array(
- 'href' => '#',
- 'mustcapture' => true,
- 'sigil' => 'differential-inline-delete',
- ),
- pht('Delete'));
+ $edit_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setColor(PHUIButtonView::SIMPLE)
+ ->setIconFont('fa-pencil')
+ ->setTitle(pht('Edit'))
+ ->addSigil('differential-inline-edit')
+ ->setMustCapture(true);
+ $action_buttons->addButton($edit_button);
+
+ $delete_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setColor(PHUIButtonView::SIMPLE)
+ ->setIconFont('fa-trash-o')
+ ->setTitle(pht('Delete'))
+ ->addSigil('differential-inline-delete')
+ ->setMustCapture(true);
+ $action_buttons->addButton($delete_button);
+
} else if ($this->preview) {
$links[] = javelin_tag(
'a',
array(
+ 'class' => 'button simple',
'meta' => array(
'anchor' => $anchor_name,
),
'sigil' => 'differential-inline-preview-jump',
),
pht('Not Visible'));
- $links[] = javelin_tag(
- 'a',
- array(
- 'href' => '#',
- 'mustcapture' => true,
- 'sigil' => 'differential-inline-delete',
- ),
- pht('Delete'));
+
+ $delete_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setColor(PHUIButtonView::SIMPLE)
+ ->setTitle(pht('Delete'))
+ ->setIconFont('fa-trash-o')
+ ->addSigil('differential-inline-delete')
+ ->setMustCapture(true);
+ $action_buttons->addButton($delete_button);
}
if (!$is_synthetic) {
@@ -229,7 +240,7 @@
$classes[] = 'inline-state-is-draft';
}
- $links[] = javelin_tag(
+ $done_input = javelin_tag(
'input',
array(
'type' => 'checkbox',
@@ -238,15 +249,16 @@
'class' => 'differential-inline-done',
'sigil' => 'differential-inline-done',
));
- }
-
- if ($links) {
- $links = phutil_tag(
- 'span',
- array('class' => 'differential-inline-comment-links'),
- phutil_implode_html(" \xC2\xB7 ", $links));
- } else {
- $links = null;
+ $done_button = phutil_tag(
+ 'label',
+ array(
+ 'class' => 'differential-inline-done-label '.
+ ($this->getCanMarkDone() ? null : 'done-is-disabled'),
+ ),
+ array(
+ $done_input,
+ pht('Done'),
+ ));
}
$content = $this->markupEngine->getOutput(
@@ -266,7 +278,7 @@
'');
}
- if ($is_draft) {
+ if ($inline->isDraft() && !$is_synthetic) {
$classes[] = 'differential-inline-comment-unsaved-draft';
}
if ($is_synthetic) {
@@ -280,10 +292,28 @@
$author = $handles[$inline->getAuthorPHID()]->getName();
}
- $line = phutil_tag(
- 'span',
- array('class' => 'differential-inline-comment-line'),
- $line);
+ $group_left = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'inline-head-left',
+ ),
+ array(
+ $author,
+ $draft_text,
+ ));
+
+ $group_right = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'inline-head-right',
+ ),
+ array(
+ $anchor,
+ $links,
+ $nextprev,
+ $action_buttons,
+ $done_button,
+ ));
$markup = javelin_tag(
'div',
@@ -293,13 +323,9 @@
'meta' => $metadata,
),
array(
- phutil_tag_div('differential-inline-comment-head', array(
- $anchor,
- $links,
- ' ',
- $line,
- ' ',
- $author,
+ phutil_tag_div('differential-inline-comment-head grouped', array(
+ $group_left,
+ $group_right,
)),
phutil_tag_div(
'differential-inline-comment-content',
diff --git a/src/infrastructure/diff/view/PHUIDiffInlineCommentEditView.php b/src/infrastructure/diff/view/PHUIDiffInlineCommentEditView.php
--- a/src/infrastructure/diff/view/PHUIDiffInlineCommentEditView.php
+++ b/src/infrastructure/diff/view/PHUIDiffInlineCommentEditView.php
@@ -122,7 +122,7 @@
private function renderBody() {
$buttons = array();
- $buttons[] = phutil_tag('button', array(), pht('Ready'));
+ $buttons[] = phutil_tag('button', array(), pht('Attach Draft'));
$buttons[] = javelin_tag(
'button',
array(
@@ -148,11 +148,10 @@
$edit = phutil_tag(
'div',
array(
- 'class' => 'differential-inline-comment-edit-buttons',
+ 'class' => 'differential-inline-comment-edit-buttons grouped',
),
array(
$buttons,
- phutil_tag('div', array('style' => 'clear: both'), ''),
));
return javelin_tag(
diff --git a/src/view/phui/PHUIButtonBarView.php b/src/view/phui/PHUIButtonBarView.php
--- a/src/view/phui/PHUIButtonBarView.php
+++ b/src/view/phui/PHUIButtonBarView.php
@@ -14,7 +14,7 @@
}
protected function getTagName() {
- return 'div';
+ return 'span';
}
protected function getTagContent() {
diff --git a/src/view/phui/PHUIButtonView.php b/src/view/phui/PHUIButtonView.php
--- a/src/view/phui/PHUIButtonView.php
+++ b/src/view/phui/PHUIButtonView.php
@@ -22,6 +22,7 @@
private $tag = 'button';
private $dropdown;
private $icon;
+ private $iconFont;
private $href = null;
private $title = null;
private $disabled;
@@ -86,6 +87,13 @@
return $this;
}
+ public function setIconFont($icon) {
+ $icon = id(new PHUIIconView())
+ ->setIconFont($icon);
+ $this->setIcon($icon);
+ return $this;
+ }
+
protected function getTagName() {
return $this->tag;
}
diff --git a/webroot/rsrc/css/application/differential/add-comment.css b/webroot/rsrc/css/application/differential/add-comment.css
--- a/webroot/rsrc/css/application/differential/add-comment.css
+++ b/webroot/rsrc/css/application/differential/add-comment.css
@@ -3,6 +3,15 @@
*/
#inline-comment-preview {
- margin-left: 60px;
- width: 550px;
+ margin-left: 62px;
+ width: 640px;
+}
+
+#inline-comment-preview .differential-inline-comment {
+ margin: 12px 0;
+}
+
+#inline-comment-preview
+ .differential-inline-comment + .differential-inline-comment {
+ margin: 0 0 12px 0;
}
diff --git a/webroot/rsrc/css/application/differential/changeset-view.css b/webroot/rsrc/css/application/differential/changeset-view.css
--- a/webroot/rsrc/css/application/differential/changeset-view.css
+++ b/webroot/rsrc/css/application/differential/changeset-view.css
@@ -52,11 +52,11 @@
}
.differential-diff td {
- vertical-align: top;
- white-space: pre-wrap;
- word-wrap: break-word;
- padding: 0 8px 1px;
- line-height: 16px;
+ vertical-align: top;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ padding: 0 8px 1px;
+ line-height: 16px;
}
.device .differential-diff td {
@@ -69,20 +69,20 @@
}
.differential-diff th {
- text-align: right;
- padding: 2px 6px 0px 0px;
- vertical-align: top;
- background: {$lightbluebackground};
- color: {$bluetext};
- cursor: pointer;
- border-right: 1px solid {$thinblueborder};
- overflow: hidden;
-
- -moz-user-select: -moz-none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- user-select: none;
+ text-align: right;
+ padding: 2px 6px 0px 0px;
+ vertical-align: top;
+ background: {$lightbluebackground};
+ color: {$bluetext};
+ cursor: pointer;
+ border-right: 1px solid {$thinblueborder};
+ overflow: hidden;
+
+ -moz-user-select: -moz-none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
}
.differential-diff th.selected {
@@ -244,9 +244,9 @@
}
.differential-meta-notice {
- border-top: 1px solid {$yellow};
- border-bottom: 1px solid {$yellow};
- background-color: {$lightyellow};
+ border-top: 1px solid {$blue};
+ border-bottom: 1px solid {$blue};
+ background-color: {$lightblue};
padding: 12px;
}
@@ -275,225 +275,6 @@
box-sizing: border-box;
}
-.differential-inline-comment,
-.differential-inline-comment-edit {
- background: #ffffee;
- border: 1px solid #ccccaa;
- font: {$basefont};
- font-size: 12px;
- margin: 6px 0px;
- padding: 8px 10px;
- width: 100%;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- overflow: hidden;
- white-space: normal;
-}
-
-.differential-inline-comment-edit .aphront-form-control-textarea {
- padding: 0;
-}
-
-.differential-inline-comment-unsaved-draft {
- background: #f1f1f1;
- border: 1px dashed {$greytext};
-}
-
-.differential-inline-comment-head {
- font-weight: bold;
- color: #333333;
- border-bottom: 1px solid rgba(204,204,170,0.37);
- padding-bottom: 4px;
- margin-bottom: 8px;
-}
-
-.differential-inline-comment-unsaved-draft .differential-inline-comment-head {
- border-bottom: 1px solid #aaaaaa;
-}
-
-.differential-inline-comment-synthetic {
- background: {$lightblue};
- border: 1px solid {$blue};
-}
-
-.differential-inline-comment-synthetic .differential-inline-comment-head {
- border-bottom: 1px solid {$blueborder};
-}
-
-
-.differential-inline-comment-links,
-.differential-inline-comment-line {
- font-weight: normal;
- font-style: italic;
- color: {$greytext};
- float: right;
- white-space: nowrap;
-}
-
-.differential-inline-comment-links {
- margin-left: 8px;
- font-style: normal;
-}
-
-input.differential-inline-done[type="checkbox"] {
- margin: 0;
- display: inline;
- cursor: pointer;
-}
-
-input.differential-inline-done[disabled="disabled"] {
- cursor: auto;
-}
-
-
-.differential-inline-comment-edit-body .aphront-form-input {
- margin: 0;
- width: 100%;
-}
-
-.differential-changeset-buttons {
- float: right;
- margin-right: 16px;
-}
-
-.device-phone .differential-changeset-buttons {
- float: none;
- margin: 0 0 8px 4px;
-}
-
-.differential-changeset-buttons a.button {
- margin-left: 8px;
-}
-
-.differential-property-table {
- margin: 12px;
- background: {$lightgreybackground};
- border: 1px solid {$lightblueborder};
- border-bottom: 1px solid {$blueborder};
-}
-
-.differential-property-table td em {
- color: {$lightgreytext};
-}
-
-.differential-property-table td.oval {
- background: #ffd0d0;
- width: 50%;
-}
-
-.differential-property-table td.nval {
- background: #d0ffd0;
- width: 50%;
-}
-
-.differential-inline-undo {
- padding: 4px;
- text-align: center;
- background: {$lightyellow};
- border: 1px solid {$yellow};
- margin: 3px 0 1px;
- color: {$darkgreytext};
- font: {$basefont};
- font-size: 12px;
-}
-
-.differential-inline-undo a {
- font-weight: bold;
-}
-
-.differential-inline-comment-edit {
- padding: 10px;
-}
-
-.differential-inline-comment-edit-buttons {
- padding: 4px 0 0 0;
-}
-
-.differential-inline-comment-edit-buttons button {
- float: right;
- margin-left: 6px;
-}
-
-.differential-inline-comment-edit-title {
- font-weight: bold;
- color: #333333;
- padding-bottom: 2px;
- margin-bottom: 6px;
-}
-
-/* When the inline editor is active, disable all the other inline comment links
- on the page ("Edit", "Reply", "Delete", etc). The goal here is to prevent
- issues where you open up multiple editors and run into problems with
- assumptions about modalness. They are disabled explicitly by the JS, but
- render them in a disabled state as well.
-*/
-.inline-editor-active .differential-inline-comment-links a,
-.inline-editor-active .differential-inline-comment-links a:hover,
-.inline-editor-active .differential-inline-comment-links a:active {
- color: {$lightgreytext};
- cursor: normal;
- text-decoration: none;
-}
-
-tr.differential-inline-hidden {
- display: none;
-}
-
-tr.differential-inline-loading {
- opacity: 0.5;
-}
-
-
-/* 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-loading {
- border-top: 1px solid {$yellow};
- border-bottom: 1px solid {$yellow};
- background-color: {$lightyellow};
- padding: 12px;
- text-align: center;
-}
-
-.differential-collapse-undo {
- background: #FFE;
- color: #000;
- padding: 1em 0em;
- border: 1px solid #CCA;
- text-align: center;
- background-color: #FFE;
-}
-
-.differential-collapse-undo a {
- font-weight: bold;
-}
-
-.differential-file-icon-header .phui-icon-view {
- display: inline-block;
- margin: 0 6px 2px 0;
- vertical-align: middle;
- font-size: 14px;
-}
-
-.device-phone .differential-file-icon-header .phui-icon-view {
- display: none;
-}
-
-.inline-is-done {
- opacity: 0.75;
-}
-
-.inline-state-is-draft input.differential-inline-done[type="checkbox"] {
- /* TODO: Possibly style this. */
+.differential-diff .inline .right3 {
+ padding: 8px 12px;
}
diff --git a/webroot/rsrc/css/application/differential/phui-inline-comment.css b/webroot/rsrc/css/application/differential/phui-inline-comment.css
new file mode 100644
--- /dev/null
+++ b/webroot/rsrc/css/application/differential/phui-inline-comment.css
@@ -0,0 +1,316 @@
+/**
+ * @provides phui-inline-comment-view-css
+ */
+
+.differential-inline-comment,
+.differential-inline-comment-edit {
+ background: #fff;
+ border: 1px solid {$sh-yellowborder};
+ font: {$basefont};
+ margin: 0;
+ width: 100%;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+ box-sizing: border-box;
+ overflow: hidden;
+ white-space: normal;
+ border-radius: 3px;
+}
+
+.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;
+}
+
+.differential-inline-comment-unsaved-draft {
+ border: 1px solid {$lightgreyborder};
+}
+
+.differential-inline-comment-head {
+ font-weight: bold;
+ color: {$darkbluetext};
+ border-bottom: 1px solid {$sh-lightyellowborder};
+ padding: 4px 5px 2px 12px;
+ background-color: {$sh-yellowbackground};
+}
+
+.differential-inline-comment.inline-is-done {
+ border-color: {$lightgreyborder};
+}
+
+.differential-inline-comment.inline-is-done .differential-inline-comment-head {
+ background-color: {$lightgreybackground};
+ border-bottom-color: {$lightgreyborder};
+}
+
+.differential-inline-comment.inline-is-done .differential-inline-comment-head
+ .button.simple,
+.differential-inline-comment.inline-is-done .differential-inline-comment-head
+ .differential-inline-done-label {
+ border-color: {$lightgreyborder};
+ color: {$lightgreytext};
+}
+
+.differential-inline-comment.inline-is-done .differential-inline-comment-head
+ .button.simple .phui-icon-view {
+ color: {$lightgreytext};
+ }
+
+.differential-inline-comment-content {
+ padding: 12px;
+}
+
+.differential-inline-comment-unsaved-draft .differential-inline-comment-head {
+ border-bottom: 1px solid {$lightgreyborder};
+ background-color: {$lightgreybackground};
+}
+
+.differential-inline-comment-synthetic {
+ background: {$lightblue};
+ border: 1px solid {$blue};
+}
+
+.differential-inline-comment-synthetic .differential-inline-comment-head {
+ border-bottom: 1px solid {$blueborder};
+}
+
+.differential-inline-comment .inline-head-right {
+ float: right;
+}
+
+.differential-inline-comment .inline-head-right .button {
+ vertical-align: top;
+}
+
+.differential-inline-comment .inline-head-left {
+ float: left;
+ padding: 5px 0;
+}
+
+input.differential-inline-done[disabled="disabled"] {
+ cursor: auto;
+}
+
+.differential-inline-comment-edit-body .aphront-form-input {
+ margin: 0;
+ width: 100%;
+}
+
+.differential-changeset-buttons {
+ float: right;
+ margin-right: 16px;
+}
+
+.device-phone .differential-changeset-buttons {
+ float: none;
+ margin: 0 0 8px 4px;
+}
+
+.differential-changeset-buttons a.button {
+ margin-left: 8px;
+}
+
+.differential-property-table {
+ margin: 12px;
+ background: {$lightgreybackground};
+ border: 1px solid {$lightblueborder};
+ border-bottom: 1px solid {$blueborder};
+}
+
+.differential-property-table td em {
+ color: {$lightgreytext};
+}
+
+.differential-property-table td.oval {
+ background: #ffd0d0;
+ width: 50%;
+}
+
+.differential-property-table td.nval {
+ background: #d0ffd0;
+ width: 50%;
+}
+
+.differential-inline-undo {
+ padding: 8px;
+ text-align: center;
+ background: {$sh-yellowbackground};
+ border: 1px solid {$sh-yellowborder};
+ margin: 4px 0;
+ color: {$darkgreytext};
+ font: {$basefont};
+ font-size: 13px;
+ border-radius: 3px;
+}
+
+.differential-inline-undo a {
+ font-weight: bold;
+}
+
+.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;
+ font-size: 14px;
+}
+
+.differential-inline-comment-unsaved-draft .phui-button-bar .button {
+ border-color: {$lightgreyborder};
+}
+
+.differential-inline-comment-unsaved-draft .phui-button-bar .phui-icon-view {
+ color: {$lightgreytext};
+}
+
+tr.differential-inline-hidden {
+ display: none;
+}
+
+tr.differential-inline-loading {
+ opacity: 0.5;
+}
+
+
+/* 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-loading {
+ border-top: 1px solid {$yellow};
+ border-bottom: 1px solid {$yellow};
+ background-color: {$lightyellow};
+ padding: 12px;
+ text-align: center;
+}
+
+.differential-collapse-undo {
+ color: {$darkbluetext};
+ padding: 12px;
+ border: 1px solid {$blue};
+ text-align: center;
+ background-color: {$lightblue};
+}
+
+.differential-collapse-undo a {
+ font-weight: bold;
+}
+
+.differential-file-icon-header .phui-icon-view {
+ display: inline-block;
+ margin: 0 6px 2px 0;
+ vertical-align: middle;
+ font-size: 14px;
+}
+
+.device-phone .differential-file-icon-header .phui-icon-view {
+ display: none;
+}
+
+.differential-inline-comment .differential-inline-done-label,
+.differential-inline-comment .button.simple {
+ border-color: {$sh-yellowborder};
+ color: {$sh-yellowicon};
+}
+
+.differential-inline-comment .button.simple .phui-icon-view {
+ color: {$sh-yellowicon};
+}
+
+.differential-inline-comment.differential-inline-comment-unsaved-draft
+ .differential-inline-done-label,
+.differential-inline-comment.differential-inline-comment-unsaved-draft
+ .button.simple {
+ border-color: {$lightgreyborder};
+ color: {$lightgreytext};
+}
+
+.differential-inline-comment.differential-inline-comment-unsaved-draft
+ .button.simple .phui-icon-view {
+ color: {$lightgreytext};
+}
+
+.differential-inline-comment-unsaved-draft a.button.simple:hover {
+ border-color: {$lightgreyborder};
+ color: {$sky};
+}
+
+.differential-inline-comment .differential-inline-done-label:hover {
+ background-color: #fff;
+ color: {$sky};
+}
+
+.differential-inline-comment
+ .differential-inline-done-label.done-is-disabled:hover {
+ background-color: transparent;
+ color: {$sh-yellowicon};
+ cursor: auto;
+}
+
+.differential-inline-comment
+ .differential-inline-done-label.done-is-disabled {
+ border-color: {$sh-lightyellowborder};
+ color: {$sh-yellowborder};
+}
+
+.differential-inline-done-label {
+ border: 1px solid {$sh-lightyellowborder};
+ border-radius: 3px;
+ display: inline-block;
+ overflow: hidden;
+ margin-left: 8px;
+ padding: 3px 8px 4px;
+ cursor: pointer;
+}
+
+.differential-inline-done-label .differential-inline-done {
+ margin: 0 6px 0 0;
+ display: inline;
+ cursor: pointer;
+}
+
+.differential-inline-comment .inline-draft-text {
+ display: none;
+}
+
+.differential-inline-comment.differential-inline-comment-unsaved-draft
+ .inline-draft-text {
+ display: inline-block;
+}
diff --git a/webroot/rsrc/css/phui/phui-button.css b/webroot/rsrc/css/phui/phui-button.css
--- a/webroot/rsrc/css/phui/phui-button.css
+++ b/webroot/rsrc/css/phui/phui-button.css
@@ -132,6 +132,11 @@
background-image: none;
border-bottom-color: {$darkblueborder};
box-shadow: none;
+ text-decoration: none;
+}
+
+a.button.simple .phui-icon-view {
+ border: none;
}
a.button.simple.phuix-dropdown-open {
@@ -299,7 +304,7 @@
}
.phui-button-bar .button .phui-icon-view {
- left: 12px;
+ left: 9px;
}
.button.has-icon .phui-button-text {
@@ -332,7 +337,7 @@
.phui-button-bar a.button.has-icon {
display: inline-block;
height: 16px;
- width: 12px;
+ width: 6px;
}
.phui-button-bar .phui-button-bar-first {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 12, 9:38 AM (6 d, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7581922
Default Alt Text
D12171.id29245.diff (29 KB)
Attached To
Mode
D12171: Revamp inline commenting UI
Attached
Detach File
Event Timeline
Log In to Comment