1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Clean up Login, Responsive Forms

Summary: Removes the panel-view on login and adds additonal responsive styles for mobile forms.

Test Plan: View in mobile browser, resize page.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4530
This commit is contained in:
Chad Little 2013-01-19 14:30:26 -08:00
parent 5815c7e51b
commit 117589c160
9 changed files with 95 additions and 52 deletions

View file

@ -611,7 +611,7 @@ celerity_register_resource_map(array(
), ),
'aphront-form-view-css' => 'aphront-form-view-css' =>
array( array(
'uri' => '/res/bdc0b393/rsrc/css/aphront/form-view.css', 'uri' => '/res/45162273/rsrc/css/aphront/form-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -638,7 +638,7 @@ celerity_register_resource_map(array(
), ),
'aphront-list-filter-view-css' => 'aphront-list-filter-view-css' =>
array( array(
'uri' => '/res/f6d419df/rsrc/css/aphront/list-filter-view.css', 'uri' => '/res/e783d6e1/rsrc/css/aphront/list-filter-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -656,7 +656,7 @@ celerity_register_resource_map(array(
), ),
'aphront-panel-view-css' => 'aphront-panel-view-css' =>
array( array(
'uri' => '/res/2bafebac/rsrc/css/aphront/panel-view.css', 'uri' => '/res/e4ad41d7/rsrc/css/aphront/panel-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -861,7 +861,7 @@ celerity_register_resource_map(array(
), ),
'herald-css' => 'herald-css' =>
array( array(
'uri' => '/res/5051f3ab/rsrc/css/application/herald/herald.css', 'uri' => '/res/2150a55d/rsrc/css/application/herald/herald.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -870,7 +870,7 @@ celerity_register_resource_map(array(
), ),
'herald-rule-editor' => 'herald-rule-editor' =>
array( array(
'uri' => '/res/3a2979de/rsrc/js/application/herald/HeraldRuleEditor.js', 'uri' => '/res/f35d7e23/rsrc/js/application/herald/HeraldRuleEditor.js',
'type' => 'js', 'type' => 'js',
'requires' => 'requires' =>
array( array(
@ -3229,7 +3229,7 @@ celerity_register_resource_map(array(
), array( ), array(
'packages' => 'packages' =>
array( array(
'7e7a7582' => '6191f287' =>
array( array(
'name' => 'core.pkg.css', 'name' => 'core.pkg.css',
'symbols' => 'symbols' =>
@ -3273,7 +3273,7 @@ celerity_register_resource_map(array(
36 => 'phabricator-object-item-list-view-css', 36 => 'phabricator-object-item-list-view-css',
37 => 'global-drag-and-drop-css', 37 => 'global-drag-and-drop-css',
), ),
'uri' => '/res/pkg/7e7a7582/core.pkg.css', 'uri' => '/res/pkg/6191f287/core.pkg.css',
'type' => 'css', 'type' => 'css',
), ),
'c90b892e' => 'c90b892e' =>
@ -3463,19 +3463,19 @@ celerity_register_resource_map(array(
'reverse' => 'reverse' =>
array( array(
'aphront-attached-file-view-css' => '2a1ed97f', 'aphront-attached-file-view-css' => '2a1ed97f',
'aphront-crumbs-view-css' => '7e7a7582', 'aphront-crumbs-view-css' => '6191f287',
'aphront-dialog-view-css' => '7e7a7582', 'aphront-dialog-view-css' => '6191f287',
'aphront-error-view-css' => '7e7a7582', 'aphront-error-view-css' => '6191f287',
'aphront-form-view-css' => '7e7a7582', 'aphront-form-view-css' => '6191f287',
'aphront-headsup-action-list-view-css' => 'ec01d039', 'aphront-headsup-action-list-view-css' => 'ec01d039',
'aphront-headsup-view-css' => '7e7a7582', 'aphront-headsup-view-css' => '6191f287',
'aphront-list-filter-view-css' => '7e7a7582', 'aphront-list-filter-view-css' => '6191f287',
'aphront-pager-view-css' => '7e7a7582', 'aphront-pager-view-css' => '6191f287',
'aphront-panel-view-css' => '7e7a7582', 'aphront-panel-view-css' => '6191f287',
'aphront-table-view-css' => '7e7a7582', 'aphront-table-view-css' => '6191f287',
'aphront-tokenizer-control-css' => '7e7a7582', 'aphront-tokenizer-control-css' => '6191f287',
'aphront-tooltip-css' => '7e7a7582', 'aphront-tooltip-css' => '6191f287',
'aphront-typeahead-control-css' => '7e7a7582', 'aphront-typeahead-control-css' => '6191f287',
'differential-changeset-view-css' => 'ec01d039', 'differential-changeset-view-css' => 'ec01d039',
'differential-core-view-css' => 'ec01d039', 'differential-core-view-css' => 'ec01d039',
'differential-inline-comment-editor' => 'ac53d36a', 'differential-inline-comment-editor' => 'ac53d36a',
@ -3489,7 +3489,7 @@ celerity_register_resource_map(array(
'differential-table-of-contents-css' => 'ec01d039', 'differential-table-of-contents-css' => 'ec01d039',
'diffusion-commit-view-css' => 'c8ce2d88', 'diffusion-commit-view-css' => 'c8ce2d88',
'diffusion-icons-css' => 'c8ce2d88', 'diffusion-icons-css' => 'c8ce2d88',
'global-drag-and-drop-css' => '7e7a7582', 'global-drag-and-drop-css' => '6191f287',
'inline-comment-summary-css' => 'ec01d039', 'inline-comment-summary-css' => 'ec01d039',
'javelin-aphlict' => 'c90b892e', 'javelin-aphlict' => 'c90b892e',
'javelin-behavior' => 'fbeded59', 'javelin-behavior' => 'fbeded59',
@ -3559,48 +3559,48 @@ celerity_register_resource_map(array(
'javelin-util' => 'fbeded59', 'javelin-util' => 'fbeded59',
'javelin-vector' => 'fbeded59', 'javelin-vector' => 'fbeded59',
'javelin-workflow' => 'fbeded59', 'javelin-workflow' => 'fbeded59',
'lightbox-attachment-css' => '7e7a7582', 'lightbox-attachment-css' => '6191f287',
'maniphest-task-summary-css' => '2a1ed97f', 'maniphest-task-summary-css' => '2a1ed97f',
'maniphest-transaction-detail-css' => '2a1ed97f', 'maniphest-transaction-detail-css' => '2a1ed97f',
'phabricator-busy' => 'c90b892e', 'phabricator-busy' => 'c90b892e',
'phabricator-content-source-view-css' => 'ec01d039', 'phabricator-content-source-view-css' => 'ec01d039',
'phabricator-core-buttons-css' => '7e7a7582', 'phabricator-core-buttons-css' => '6191f287',
'phabricator-core-css' => '7e7a7582', 'phabricator-core-css' => '6191f287',
'phabricator-crumbs-view-css' => '7e7a7582', 'phabricator-crumbs-view-css' => '6191f287',
'phabricator-directory-css' => '7e7a7582', 'phabricator-directory-css' => '6191f287',
'phabricator-drag-and-drop-file-upload' => 'ac53d36a', 'phabricator-drag-and-drop-file-upload' => 'ac53d36a',
'phabricator-dropdown-menu' => 'c90b892e', 'phabricator-dropdown-menu' => 'c90b892e',
'phabricator-file-upload' => 'c90b892e', 'phabricator-file-upload' => 'c90b892e',
'phabricator-filetree-view-css' => '7e7a7582', 'phabricator-filetree-view-css' => '6191f287',
'phabricator-flag-css' => '7e7a7582', 'phabricator-flag-css' => '6191f287',
'phabricator-form-view-css' => '7e7a7582', 'phabricator-form-view-css' => '6191f287',
'phabricator-header-view-css' => '7e7a7582', 'phabricator-header-view-css' => '6191f287',
'phabricator-jump-nav' => '7e7a7582', 'phabricator-jump-nav' => '6191f287',
'phabricator-keyboard-shortcut' => 'c90b892e', 'phabricator-keyboard-shortcut' => 'c90b892e',
'phabricator-keyboard-shortcut-manager' => 'c90b892e', 'phabricator-keyboard-shortcut-manager' => 'c90b892e',
'phabricator-main-menu-view' => '7e7a7582', 'phabricator-main-menu-view' => '6191f287',
'phabricator-menu-item' => 'c90b892e', 'phabricator-menu-item' => 'c90b892e',
'phabricator-nav-view-css' => '7e7a7582', 'phabricator-nav-view-css' => '6191f287',
'phabricator-notification' => 'c90b892e', 'phabricator-notification' => 'c90b892e',
'phabricator-notification-css' => '7e7a7582', 'phabricator-notification-css' => '6191f287',
'phabricator-notification-menu-css' => '7e7a7582', 'phabricator-notification-menu-css' => '6191f287',
'phabricator-object-item-list-view-css' => '7e7a7582', 'phabricator-object-item-list-view-css' => '6191f287',
'phabricator-object-selector-css' => 'ec01d039', 'phabricator-object-selector-css' => 'ec01d039',
'phabricator-paste-file-upload' => 'c90b892e', 'phabricator-paste-file-upload' => 'c90b892e',
'phabricator-prefab' => 'c90b892e', 'phabricator-prefab' => 'c90b892e',
'phabricator-project-tag-css' => '2a1ed97f', 'phabricator-project-tag-css' => '2a1ed97f',
'phabricator-remarkup-css' => '7e7a7582', 'phabricator-remarkup-css' => '6191f287',
'phabricator-shaped-request' => 'ac53d36a', 'phabricator-shaped-request' => 'ac53d36a',
'phabricator-side-menu-view-css' => '7e7a7582', 'phabricator-side-menu-view-css' => '6191f287',
'phabricator-standard-page-view' => '7e7a7582', 'phabricator-standard-page-view' => '6191f287',
'phabricator-textareautils' => 'c90b892e', 'phabricator-textareautils' => 'c90b892e',
'phabricator-tooltip' => 'c90b892e', 'phabricator-tooltip' => 'c90b892e',
'phabricator-transaction-view-css' => '7e7a7582', 'phabricator-transaction-view-css' => '6191f287',
'phabricator-zindex-css' => '7e7a7582', 'phabricator-zindex-css' => '6191f287',
'sprite-apps-large-css' => '7e7a7582', 'sprite-apps-large-css' => '6191f287',
'sprite-gradient-css' => '7e7a7582', 'sprite-gradient-css' => '6191f287',
'sprite-icon-css' => '7e7a7582', 'sprite-icon-css' => '6191f287',
'sprite-menu-css' => '7e7a7582', 'sprite-menu-css' => '6191f287',
'syntax-highlighting-css' => '7e7a7582', 'syntax-highlighting-css' => '6191f287',
), ),
)); ));

View file

@ -282,6 +282,7 @@ final class PhabricatorLoginController
$panel = new AphrontPanelView(); $panel = new AphrontPanelView();
$panel->setWidth(AphrontPanelView::WIDTH_FORM); $panel->setWidth(AphrontPanelView::WIDTH_FORM);
$panel->setNoBackground();
foreach ($forms as $name => $form) { foreach ($forms as $name => $form) {
$panel->appendChild('<h1>'.$name.'</h1>'); $panel->appendChild('<h1>'.$name.'</h1>');
$panel->appendChild($form); $panel->appendChild($form);
@ -290,7 +291,7 @@ final class PhabricatorLoginController
$login_message = PhabricatorEnv::getEnvConfig('auth.login-message'); $login_message = PhabricatorEnv::getEnvConfig('auth.login-message');
return $this->buildStandardPageResponse( return $this->buildApplicationPage(
array( array(
$error_view, $error_view,
$login_message, $login_message,
@ -298,6 +299,7 @@ final class PhabricatorLoginController
), ),
array( array(
'title' => 'Login', 'title' => 'Login',
'device' => true
)); ));
} }

View file

@ -175,7 +175,6 @@ final class HeraldRuleController extends HeraldController {
$rule->getID() $rule->getID()
? pht('Edit Herald Rule') ? pht('Edit Herald Rule')
: pht('Create Herald Rule')); : pht('Create Herald Rule'));
$panel->setWidth(AphrontPanelView::WIDTH_WIDE);
$panel->appendChild($form); $panel->appendChild($form);
$panel->setNoBackground(); $panel->setNoBackground();

View file

@ -512,6 +512,7 @@ final class ManiphestTaskEditController extends ManiphestController {
$panel->setWidth(AphrontPanelView::WIDTH_FULL); $panel->setWidth(AphrontPanelView::WIDTH_FULL);
$panel->setHeader($header_name); $panel->setHeader($header_name);
$panel->appendChild($form); $panel->appendChild($form);
$panel->setNoBackground();
$description_preview_panel = $description_preview_panel =
'<div class="aphront-panel-preview aphront-panel-preview-full"> '<div class="aphront-panel-preview aphront-panel-preview-full">

View file

@ -25,12 +25,25 @@
color: #666666; color: #666666;
} }
.device-phone .aphront-form-view label.aphront-form-label {
display: block;
float: none;
text-align: left;
width: 100%;
}
.aphront-form-input { .aphront-form-input {
margin-left: 20%; margin-left: 20%;
margin-right: 25%; margin-right: 25%;
width: 55%; width: 55%;
} }
.device-phone .aphront-form-input {
margin-left: 0%;
margin-right: 0%;
width: 100%;
}
.aphront-form-control-text .aphront-form-input input, .aphront-form-control-text .aphront-form-input input,
.aphront-form-control-password .aphront-form-input input { .aphront-form-control-password .aphront-form-input input {
font-size: 13px; font-size: 13px;
@ -51,6 +64,15 @@
padding-top: 4px; padding-top: 4px;
} }
.device-phone .aphront-form-error {
float: none;
width: 100%;
}
.device-phone .aphront-form-drag-and-drop-upload {
display: none;
}
.aphront-form-required { .aphront-form-required {
font-weight: normal; font-weight: normal;
color: #888888; color: #888888;
@ -105,6 +127,10 @@
margin-left: 20%; margin-left: 20%;
} }
.device-phone .aphront-form-view .aphront-form-caption {
margin-right: 0%;
}
/* override for when inside an aphront-panel-view */ /* override for when inside an aphront-panel-view */
.aphront-panel-view .aphront-form-view h1 { .aphront-panel-view .aphront-form-view h1 {
padding: 0em 0em .8em 0em; padding: 0em 0em .8em 0em;

View file

@ -27,3 +27,9 @@
margin-left: 13%; margin-left: 13%;
margin-right: 17%; margin-right: 17%;
} }
.device-phone .aphront-list-filter-view-controls .aphront-form-view .aphront-form-input {
width: 98%;
margin-left: 0%;
margin-right: 0%;
}

View file

@ -11,6 +11,10 @@
margin: 20px 20px 40px 20px; margin: 20px 20px 40px 20px;
} }
.device-phone .aphront-panel-view {
margin: 20px 10px 40px 10px;
}
.aphront-unpadded-panel-view { .aphront-unpadded-panel-view {
padding: 0; padding: 0;
} }
@ -52,13 +56,13 @@
font-size: 13px; font-size: 13px;
} }
.aphront-panel-width-form { .device-desktop .aphront-panel-width-form {
width: 720px; width: 720px;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;
} }
.aphront-panel-width-wide { .device-desktop .aphront-panel-width-wide {
width: 1080px; width: 1080px;
margin-right: auto; margin-right: auto;
margin-left: auto; margin-left: auto;

View file

@ -8,7 +8,11 @@
} }
.herald-condition-table select { .herald-condition-table select {
width: 250px; width: 160px;
}
.device-phone .herald-condition-table select {
width: 90px;
} }
.herald-action-table td, .herald-action-table td,
@ -23,7 +27,9 @@
.herald-action-table td input, .herald-action-table td input,
.herald-condition-table td input { .herald-condition-table td input {
width: 460px; width: 95%;
max-width: 460px;
padding: 2px 4px;
} }
.herald-action-table td.target { .herald-action-table td.target {

View file

@ -358,7 +358,6 @@ JX.install('HeraldRuleEditor', {
}, },
_renderSelect : function(map, selected, sigil) { _renderSelect : function(map, selected, sigil) {
var attrs = { var attrs = {
style : {width: '250px', margin: '0 .5em 0 0'},
sigil : sigil sigil : sigil
}; };
return JX.Prefab.renderSelect(map, selected, attrs); return JX.Prefab.renderSelect(map, selected, attrs);