Permalink
Browse files

Remove contentSub from layout when empty

`#contentSub` & #contentSub2` are spanning margins even when it's
empty nodes, making precise layout harder.
Let's hide them when there's no content available and make
`#jump-to-nav` appear in the right place as well.

Change-Id: Id58972b4b7ca807c9919af3c24db724f8ef68259
  • Loading branch information...
Volker-E committed Sep 9, 2017
1 parent 104d864 commit 09e3ac0c3a816b77d041c249ccd5b8bb88ba8ef5
Showing with 10 additions and 0 deletions.
  1. +10 −0 resources/src/mediawiki.skinning/interface.css
@@ -76,6 +76,16 @@ textarea {
width: auto;
}
#contentSub:empty,
#contentSub2:empty {
display: none;
}
#contentSub:empty ~ #jump-to-nav,
#contentSub2:empty ~ #jump-to-nav {
margin-top: 0;
}
span.subpages {
display: block;
}

0 comments on commit 09e3ac0

Please sign in to comment.