From fc54446a40a82333b8d81f8d834e118b8cf1922a Mon Sep 17 00:00:00 2001 From: Jdlrobson Date: Tue, 2 Jan 2018 22:02:12 +0000 Subject: [PATCH] Revert "Fix infobox styles to work well with multiple column infobox rows" This reverts commit b3dc650f15fed96c2c56a052f6c3cfe9d4035397. Change-Id: I18b4cfd30d0703844748a2b4fb934f5824537970 --- .../skins.minerva.content.styles/hacks.less | 38 +++++++++---------- .../skins.minerva.tablet.styles/hacks.less | 5 +++ 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/resources/skins.minerva.content.styles/hacks.less b/resources/skins.minerva.content.styles/hacks.less index 3e5c78d..ce7b225 100644 --- a/resources/skins.minerva.content.styles/hacks.less +++ b/resources/skins.minerva.content.styles/hacks.less @@ -42,31 +42,29 @@ FIXME: Review all of these hacks to see if they still apply. margin-left: 0 !important; margin-right: 0 !important; - &.infobox > tbody > tr > td, - &.infobox > tbody > tr > th { - flex: 1 0; - } - &.infobox { - display: flex; - flex: 1 1 100%; - flex-flow: column nowrap; + font-size: 90%; + position: relative; + border: 1px solid @colorGray14; + margin-bottom: 2em; + text-align: left; + background-color: @colorGray15; - td:only-child, - th:only-child { + th, td { + vertical-align: top; + border: 0; + border-bottom: 1px solid @colorGray14; + padding: 7px 10px; + } + + td { width: 100%; } - } - &.infobox > tbody { - display: flex; - flex-flow: column nowrap; - } - - &.infobox > tbody > tr { - min-width: 100%; - display: flex; - flex-flow: row nowrap; + tr:last-child th, + tr:last-child td { + border: 0; + } } } } diff --git a/resources/skins.minerva.tablet.styles/hacks.less b/resources/skins.minerva.tablet.styles/hacks.less index 102189a..c833a7b 100644 --- a/resources/skins.minerva.tablet.styles/hacks.less +++ b/resources/skins.minerva.tablet.styles/hacks.less @@ -22,6 +22,11 @@ FIXME: Review all of these hacks to see if they still apply. width: auto !important; float: right !important; clear: right !important; + + td { + width: auto; + } + } // banners inserted by other extensions, i.e. Zero #mw-mf-page-center .mw-mf-banner {