From e076351311c47d655b773d90e850990e27c8948f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 22 Dec 2022 16:12:05 +0100 Subject: [PATCH] Work around browser inconsistencies with 'clear' + 'margin-top' No visual changes expected. Bug: T325391 Change-Id: I20c5aa5d0a2018f32dff6948cd210fecc7ba760f --- resources/skins.vector.styles/layouts/screen.less | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/skins.vector.styles/layouts/screen.less b/resources/skins.vector.styles/layouts/screen.less index 9dea67a02..3a80257e3 100644 --- a/resources/skins.vector.styles/layouts/screen.less +++ b/resources/skins.vector.styles/layouts/screen.less @@ -67,11 +67,16 @@ body { z-index: @z-index-indicators; } -.vector-page-titlebar, -.vector-body-before-content { +.vector-page-titlebar { .mixin-clearfix(); } +.vector-body-before-content { + // Contain the floating .mw-indicators, but don't use clearfix because of browser inconsistencies + // when combining 'clear' and 'margin-top' (T325391) + overflow: hidden; +} + .mw-body .mw-portlet-lang { float: right; }