Relax navbox hack

Per discussion in T172078 let's relax these rules so navbox shows
up in the desktop mode of the site.

Note: this will not impact the mobile site as navboxes are stripped
from the HTML.

Bug: T172078
Change-Id: I59d229d75dbcb790eb75dc4b838b2afafd2f3980
This commit is contained in:
jdlrobson 2017-08-01 11:52:11 -07:00 committed by Jdlrobson
parent 9a6770ee18
commit 7e7e532bfb
1 changed files with 16 additions and 1 deletions

View File

@ -17,6 +17,11 @@ FIXME: Review all of these hacks to see if they still apply.
}
.content {
.vertical-navbox,
.navbox {
display: none;
}
// Hide cleanup templates by default to non-javascript users as these stop them from reading the article itself
// Talk page informational boxes
.tmbox,
@ -24,7 +29,7 @@ FIXME: Review all of these hacks to see if they still apply.
.ambox,
#coordinates,
// Hide article badges, clean-up notices, stub notices, and navigation boxes
.navbox, .vertical-navbox, .topicon, .metadata {
.topicon, .metadata {
// It's important as some of these are tables which become display: table on larger screens
display: none !important;
}
@ -112,6 +117,16 @@ FIXME: Review all of these hacks to see if they still apply.
width: auto !important;
}
@media all and ( min-width: @deviceWidthTablet ) {
// When in the HTML these should be revealed at tablet resolution (T172078)
.content {
.vertical-navbox,
.navbox {
display: inherit;
}
}
}
// Hacks to render galleries and multicol tables better on mobile
@media all and ( max-width: @deviceWidthTablet ) {