1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-03 19:31:02 +01:00

Minor, use a spacer instead of top margin to prevent margin collapse.

This commit is contained in:
epriestley 2012-07-31 07:04:26 -07:00
parent 9eb6d4dded
commit d2031d3296
3 changed files with 10 additions and 3 deletions

View file

@ -2250,7 +2250,7 @@ celerity_register_resource_map(array(
), ),
'phabricator-main-menu-view' => 'phabricator-main-menu-view' =>
array( array(
'uri' => '/res/1475552c/rsrc/css/application/base/main-menu-view.css', 'uri' => '/res/795788ca/rsrc/css/application/base/main-menu-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(

View file

@ -407,6 +407,7 @@ final class PhabricatorStandardPageView extends AphrontPageView {
'class' => $classes, 'class' => $classes,
), ),
$header_chrome. $header_chrome.
'<div class="phabricator-main-menu-spacer"></div>'.
'<div class="phabricator-standard-page-body">'. '<div class="phabricator-standard-page-body">'.
($console ? '<darkconsole />' : null). ($console ? '<darkconsole />' : null).
$developer_warning. $developer_warning.

View file

@ -31,8 +31,14 @@
top: 0; top: 0;
} }
.device-desktop .phabricator-standard-page-body { .phabricator-main-menu-spacer {
margin-top: 44px; display: none;
}
.device-desktop .phabricator-main-menu-spacer {
height: 44px;
position: relative;
display: block;
} }