From 47b0d74708f8ab1f00a3db045142bebdd0d10411 Mon Sep 17 00:00:00 2001 From: Danny B Date: Fri, 30 Dec 2011 23:23:50 +0000 Subject: [PATCH] * more specific selectors for wikitable - don't inherit properties to nested tables which causes various rendering issues ** (bug 30485) Hieroglyphs look scary if embedded in tables with class="wikitable" ** (bug 33434) math extension: integral expressions display with boxes/frames/borders --- RELEASE-NOTES-1.19 | 2 ++ skins/common/commonPrint.css | 6 +++--- skins/common/shared.css | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index a1bac754f8..e65ac39d32 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -203,6 +203,8 @@ production. for backward compatibility * (bug 31469) Make sure tracking category messages expand variables like {{NAMESPACE}} relative to correct title. +* (bug 30485 and bug 33434) Style rules for wikitable are now more specific and + prevent inheritance to nested tables which caused various issues === API changes in 1.19 === diff --git a/skins/common/commonPrint.css b/skins/common/commonPrint.css index 666f4f35c7..9782c9f94d 100644 --- a/skins/common/commonPrint.css +++ b/skins/common/commonPrint.css @@ -325,18 +325,18 @@ table.mw_metadata { background: white; border-collapse: collapse; } -.wikitable th, .wikitable td, +table.wikitable > tr > th, table.wikitable > tr > td, .mw_metadata th, .mw_metadata td { border: 1px #aaa solid; padding: 0.2em; } -.wikitable th, +table.wikitable > tr > th, .mw_metadata th { text-align: center; background: white; font-weight: bold; } -.wikitable caption, +table.wikitable > caption, .mw_metadata caption { font-weight: bold; } diff --git a/skins/common/shared.css b/skins/common/shared.css index f6cd788ed1..ea2db3d0ec 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -475,16 +475,16 @@ table.wikitable { border-collapse: collapse; color: black; } -.wikitable th, -.wikitable td { +table.wikitable > tr > th, +table.wikitable > tr > td { border: 1px #aaa solid; padding: 0.2em; } -.wikitable th { +table.wikitable > tr > th { background-color: #f2f2f2; text-align: center; } -.wikitable caption { +table.wikitable > caption { font-weight: bold; } -- 2.20.1