Remove `position: absolute` from #p-logo element

This was inherited from Monobook (r2881, b52a2a1567).

The #mw-panel (sidebar) was at `top: 160px`.
The #p-logo was at `top: -160px`.
This looks hacky so I set #mw-panel `top: 0`.

Bug: T170053
Change-Id: Ifb99ff36e3a9c530c944df2ea0a6c75759045c1c
This commit is contained in:
golopot 2017-07-09 01:32:57 +08:00
parent 56ec1a3c87
commit ffc0837bf3
3 changed files with 2 additions and 11 deletions

View File

@ -60,9 +60,6 @@ div#mw-head {
/* Logo */
#p-logo {
position: absolute;
top: -160px;
left: 0;
width: 10em;
height: 160px;
@ -80,8 +77,7 @@ div#mw-head {
div#mw-panel {
font-size: @menu-main-font-size;
position: absolute;
top: 160px;
padding-top: 1em;
top: 0;
width: 10em;
left: 0;
@ -135,7 +131,7 @@ div#mw-panel {
/* First sidebar portlet. Not using :first-of-type for IE<=8 support. */
#p-logo + div.portal {
background-image: none;
margin-top: 0;
margin-top: 1em;
h3 {
display: none;
}

View File

@ -6,9 +6,6 @@
margin-left: 11em;
padding: 1.25em 1.5em 1.5em 1.5em;
}
#p-logo {
left: @menu-main-logo-left;
}
div#footer {
margin-left: 11em;
padding: 1.25em;

View File

@ -33,7 +33,5 @@
@menu-main-body-margin-left: 0.5em;
@menu-main-body-padding: 0.3em 0 0 0;
@menu-main-logo-left: 0.5em;
// Personal menu
@menu-personal-font-size: 0.75em;