1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 16:30:59 +01:00

Misc Diffusion/Differential CSS tweaks

Summary: Various tweaks and fixes. Adds a File Contents view in Diffusion, normalizes spaces, colors.

Test Plan: tested differential and diffusion in my sandbox.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T3952

Differential Revision: https://secure.phabricator.com/D7325
This commit is contained in:
Chad Little 2013-10-16 13:09:12 -07:00
parent 314673f4f6
commit 89d35b98c8
7 changed files with 58 additions and 65 deletions

View file

@ -1031,7 +1031,7 @@ celerity_register_resource_map(array(
), ),
'differential-changeset-view-css' => 'differential-changeset-view-css' =>
array( array(
'uri' => '/res/f8fc5deb/rsrc/css/application/differential/changeset-view.css', 'uri' => '/res/0e780c41/rsrc/css/application/differential/changeset-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -1109,7 +1109,7 @@ celerity_register_resource_map(array(
), ),
'differential-revision-history-css' => 'differential-revision-history-css' =>
array( array(
'uri' => '/res/bb29e0e8/rsrc/css/application/differential/revision-history.css', 'uri' => '/res/13b4c17b/rsrc/css/application/differential/revision-history.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -1136,7 +1136,7 @@ celerity_register_resource_map(array(
), ),
'diffusion-commit-view-css' => 'diffusion-commit-view-css' =>
array( array(
'uri' => '/res/b445944e/rsrc/css/application/diffusion/commit-view.css', 'uri' => '/res/a48ea65a/rsrc/css/application/diffusion/commit-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -1154,7 +1154,7 @@ celerity_register_resource_map(array(
), ),
'diffusion-source-css' => 'diffusion-source-css' =>
array( array(
'uri' => '/res/072800bb/rsrc/css/application/diffusion/diffusion-source.css', 'uri' => '/res/f4a2f867/rsrc/css/application/diffusion/diffusion-source.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -4383,7 +4383,7 @@ celerity_register_resource_map(array(
'uri' => '/res/pkg/4ccfeb47/darkconsole.pkg.js', 'uri' => '/res/pkg/4ccfeb47/darkconsole.pkg.js',
'type' => 'js', 'type' => 'js',
), ),
'f5d1e7d3' => '7cd7e387' =>
array( array(
'name' => 'differential.pkg.css', 'name' => 'differential.pkg.css',
'symbols' => 'symbols' =>
@ -4402,7 +4402,7 @@ celerity_register_resource_map(array(
11 => 'differential-local-commits-view-css', 11 => 'differential-local-commits-view-css',
12 => 'inline-comment-summary-css', 12 => 'inline-comment-summary-css',
), ),
'uri' => '/res/pkg/f5d1e7d3/differential.pkg.css', 'uri' => '/res/pkg/7cd7e387/differential.pkg.css',
'type' => 'css', 'type' => 'css',
), ),
'5e9e5c4e' => '5e9e5c4e' =>
@ -4433,7 +4433,7 @@ celerity_register_resource_map(array(
'uri' => '/res/pkg/5e9e5c4e/differential.pkg.js', 'uri' => '/res/pkg/5e9e5c4e/differential.pkg.js',
'type' => 'js', 'type' => 'js',
), ),
'c8ce2d88' => '270f4eb4' =>
array( array(
'name' => 'diffusion.pkg.css', 'name' => 'diffusion.pkg.css',
'symbols' => 'symbols' =>
@ -4441,7 +4441,7 @@ celerity_register_resource_map(array(
0 => 'diffusion-commit-view-css', 0 => 'diffusion-commit-view-css',
1 => 'diffusion-icons-css', 1 => 'diffusion-icons-css',
), ),
'uri' => '/res/pkg/c8ce2d88/diffusion.pkg.css', 'uri' => '/res/pkg/270f4eb4/diffusion.pkg.css',
'type' => 'css', 'type' => 'css',
), ),
96909266 => 96909266 =>
@ -4522,21 +4522,21 @@ celerity_register_resource_map(array(
'aphront-tokenizer-control-css' => 'a4e76ef8', 'aphront-tokenizer-control-css' => 'a4e76ef8',
'aphront-tooltip-css' => 'a4e76ef8', 'aphront-tooltip-css' => 'a4e76ef8',
'aphront-typeahead-control-css' => 'a4e76ef8', 'aphront-typeahead-control-css' => 'a4e76ef8',
'differential-changeset-view-css' => 'f5d1e7d3', 'differential-changeset-view-css' => '7cd7e387',
'differential-core-view-css' => 'f5d1e7d3', 'differential-core-view-css' => '7cd7e387',
'differential-inline-comment-editor' => '5e9e5c4e', 'differential-inline-comment-editor' => '5e9e5c4e',
'differential-local-commits-view-css' => 'f5d1e7d3', 'differential-local-commits-view-css' => '7cd7e387',
'differential-results-table-css' => 'f5d1e7d3', 'differential-results-table-css' => '7cd7e387',
'differential-revision-add-comment-css' => 'f5d1e7d3', 'differential-revision-add-comment-css' => '7cd7e387',
'differential-revision-comment-css' => 'f5d1e7d3', 'differential-revision-comment-css' => '7cd7e387',
'differential-revision-comment-list-css' => 'f5d1e7d3', 'differential-revision-comment-list-css' => '7cd7e387',
'differential-revision-history-css' => 'f5d1e7d3', 'differential-revision-history-css' => '7cd7e387',
'differential-revision-list-css' => 'f5d1e7d3', 'differential-revision-list-css' => '7cd7e387',
'differential-table-of-contents-css' => 'f5d1e7d3', 'differential-table-of-contents-css' => '7cd7e387',
'diffusion-commit-view-css' => 'c8ce2d88', 'diffusion-commit-view-css' => '270f4eb4',
'diffusion-icons-css' => 'c8ce2d88', 'diffusion-icons-css' => '270f4eb4',
'global-drag-and-drop-css' => 'a4e76ef8', 'global-drag-and-drop-css' => 'a4e76ef8',
'inline-comment-summary-css' => 'f5d1e7d3', 'inline-comment-summary-css' => '7cd7e387',
'javelin-aphlict' => 'adee86d9', 'javelin-aphlict' => 'adee86d9',
'javelin-behavior' => '3e3be199', 'javelin-behavior' => '3e3be199',
'javelin-behavior-aphlict-dropdown' => 'adee86d9', 'javelin-behavior-aphlict-dropdown' => 'adee86d9',
@ -4615,7 +4615,7 @@ celerity_register_resource_map(array(
'phabricator-action-list-view-css' => 'a4e76ef8', 'phabricator-action-list-view-css' => 'a4e76ef8',
'phabricator-application-launch-view-css' => 'a4e76ef8', 'phabricator-application-launch-view-css' => 'a4e76ef8',
'phabricator-busy' => 'adee86d9', 'phabricator-busy' => 'adee86d9',
'phabricator-content-source-view-css' => 'f5d1e7d3', 'phabricator-content-source-view-css' => '7cd7e387',
'phabricator-core-css' => 'a4e76ef8', 'phabricator-core-css' => 'a4e76ef8',
'phabricator-crumbs-view-css' => 'a4e76ef8', 'phabricator-crumbs-view-css' => 'a4e76ef8',
'phabricator-drag-and-drop-file-upload' => '5e9e5c4e', 'phabricator-drag-and-drop-file-upload' => '5e9e5c4e',
@ -4633,7 +4633,7 @@ celerity_register_resource_map(array(
'phabricator-notification' => 'adee86d9', 'phabricator-notification' => 'adee86d9',
'phabricator-notification-css' => 'a4e76ef8', 'phabricator-notification-css' => 'a4e76ef8',
'phabricator-notification-menu-css' => 'a4e76ef8', 'phabricator-notification-menu-css' => 'a4e76ef8',
'phabricator-object-selector-css' => 'f5d1e7d3', 'phabricator-object-selector-css' => '7cd7e387',
'phabricator-phtize' => 'adee86d9', 'phabricator-phtize' => 'adee86d9',
'phabricator-prefab' => 'adee86d9', 'phabricator-prefab' => 'adee86d9',
'phabricator-project-tag-css' => '49898640', 'phabricator-project-tag-css' => '49898640',

View file

@ -297,11 +297,14 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController {
$corpus = phutil_tag( $corpus = phutil_tag(
'div', 'div',
array( array(
'style' => 'padding: 0 2em;',
'id' => $id, 'id' => $id,
), ),
$corpus_table); $corpus_table);
$corpus = id(new PHUIObjectBoxView())
->setHeaderText('File Contents')
->appendChild($corpus);
Javelin::initBehavior('load-blame', array('id' => $id)); Javelin::initBehavior('load-blame', array('id' => $id));
} }

View file

@ -129,7 +129,11 @@ final class DiffusionCommitController extends DiffusionController {
$message = $engine->markupText($message); $message = $engine->markupText($message);
$property_list->invokeWillRenderEvent(); $property_list->invokeWillRenderEvent();
$property_list->addTextContent( $property_list->setActionList($headsup_actions);
$detail_list = new PHUIPropertyListView();
$detail_list->addSectionHeader(pht('Description'));
$detail_list->addTextContent(
phutil_tag( phutil_tag(
'div', 'div',
array( array(
@ -137,11 +141,11 @@ final class DiffusionCommitController extends DiffusionController {
), ),
$message)); $message));
$content[] = $top_anchor; $content[] = $top_anchor;
$property_list->setActionList($headsup_actions);
$object_box = id(new PHUIObjectBoxView()) $object_box = id(new PHUIObjectBoxView())
->setHeader($headsup_view) ->setHeader($headsup_view)
->addPropertyList($property_list); ->addPropertyList($property_list)
->addPropertyList($detail_list);
$content[] = $object_box; $content[] = $object_box;
} }

View file

@ -5,7 +5,7 @@
.differential-changeset { .differential-changeset {
position: relative; position: relative;
margin: 0; margin: 0;
padding: 16px 0; padding-top: 32px;
} }
.differential-diff { .differential-diff {
@ -268,7 +268,7 @@ td.cov-X {
} }
.differential-inline-comment-synthetic .differential-inline-comment-head { .differential-inline-comment-synthetic .differential-inline-comment-head {
border-bottom: 1px solid {$thinblueborder}; border-bottom: 1px solid {$blueborder};
} }
@ -303,7 +303,7 @@ td.cov-X {
.differential-property-table { .differential-property-table {
width: auto; width: auto;
margin: .75em auto; margin: 12px auto;
background: #e3e3e3; background: #e3e3e3;
} }
@ -367,8 +367,7 @@ td.cov-X {
} }
.differential-inline-comment-edit-buttons { .differential-inline-comment-edit-buttons {
padding: 5px 0 0 0; padding: 4px 0 0 0;
} }
.differential-inline-comment-edit-buttons button { .differential-inline-comment-edit-buttons button {

View file

@ -8,13 +8,10 @@
border-spacing: 1px; border-spacing: 1px;
} }
.differential-revision-history-table th { .differential-revision-history-table th,
color: {$greytext};
padding: 4px 6px;
}
.differential-revision-history-table td { .differential-revision-history-table td {
padding: 4px 6px; color: {$darkbluetext};
padding: 4px 8px;
} }
.differential-revision-history-table td { .differential-revision-history-table td {
@ -22,10 +19,9 @@
} }
.differential-revision-history-table tr.alt { .differential-revision-history-table tr.alt {
background: #dcdcdc; background: {$greybackground};
} }
.differential-revision-history-table td.revhistory-desc { .differential-revision-history-table td.revhistory-desc {
width: 100%; width: 100%;
white-space: normal; white-space: normal;
@ -41,7 +37,7 @@
.differential-revision-history-table td.revhistory-old, .differential-revision-history-table td.revhistory-old,
.differential-revision-history-table td.revhistory-new { .differential-revision-history-table td.revhistory-new {
padding: 0em 1.5em; padding: 0 16px;
text-align: center; text-align: center;
} }
@ -65,21 +61,18 @@
text-align: center; text-align: center;
} }
.differential-revision-history-table td.diff-differ-submit { .differential-revision-history-table td.diff-differ-submit {
text-align: right; text-align: right;
border-bottom: none; border-bottom: none;
padding: 8px 0px 4px 0px; padding: 8px 0 4px 0;
} }
.differential-revision-history-table td.diff-differ-submit button { .differential-revision-history-table td.diff-differ-submit button {
margin-left: 1em; margin-left: 12px;
} }
.differential-revision-history-table td.diff-differ-submit label { .differential-revision-history-table td.diff-differ-submit label {
font-weight: bold; font-weight: bold;
padding-right: .25em; padding-right: 4px;
color: {$darkgreytext}; color: {$darkgreytext};
} }

View file

@ -2,10 +2,6 @@
* @provides diffusion-commit-view-css * @provides diffusion-commit-view-css
*/ */
.diffusion-commit-message {
padding: 8px;
}
.diffusion-comment-list { .diffusion-comment-list {
margin: 2em; margin: 2em;
} }

View file

@ -3,7 +3,6 @@
*/ */
.diffusion-source { .diffusion-source {
margin: 1em 0 2em;
width: 100%; width: 100%;
font-family: "Monaco", Consolas, monospace; font-family: "Monaco", Consolas, monospace;
font-size: 10px; font-size: 10px;
@ -17,11 +16,9 @@
.diffusion-source th { .diffusion-source th {
text-align: right; text-align: right;
vertical-align: top; vertical-align: top;
background: #eeeeee; background: {$lightgreybackground};
color: {$lightgreytext}; color: {$bluetext};
border-style: solid; border-right: 1px solid {$thinblueborder};
border-width: 0px 1px;
border-color: #eeeeee #999999 #eeeeee #dddddd;
font-size: 11px; font-size: 11px;
} }
@ -46,7 +43,7 @@
} }
.diffusion-blame-link { .diffusion-blame-link {
min-width: 25px; min-width: 28px;
} }
.diffusion-rev-link { .diffusion-rev-link {
@ -61,13 +58,14 @@
.diffusion-rev-link a, .diffusion-rev-link a,
.diffusion-author-link a, .diffusion-author-link a,
.diffusion-line-link a { .diffusion-line-link a {
font-weight: bold; color: {$darkbluetext};
} }
.diffusion-rev-link a, .diffusion-rev-link a,
.diffusion-author-link span, .diffusion-author-link span,
.diffusion-author-link a { .diffusion-author-link a {
margin: 0 8px; margin: 2px 8px 0;
display: block;
} }
.diffusion-blame-link a, .diffusion-blame-link a,