mediawiki-skins-MinervaNeue/resources/skins.minerva.mainPage.styles/common.less
jdlrobson 4d734942c5 Remove large bottom margin at top of main page
Main pages do not have page actions, yet the header always adds
bottom padding to compensate for the fact that page actions are
absolutely positioned.

a new class is added adopting BEM notation that informs the client
that no page actions are going to be visible. In conjuction to this
we strip the relevant HTML from the DOM.

Bug: T212216
Change-Id: Ib69991e91160ba7e2ca3beca4475c2a06c4b9cd3
2019-01-23 12:10:06 -07:00

27 lines
376 B
Plaintext

@import '../../minerva.less/minerva.variables';
@import '../../minerva.less/minerva.mixins';
.page-Main_Page {
#section_0 {
border: 0;
}
// Can be removed when cache has cleared (T212216)
#page-actions,
.pre-content {
display: none;
}
&.is-authenticated {
.pre-content {
display: block;
}
}
#page-secondary-actions {
a {
margin-top: 1em;
}
}
}