From 2373ab68d63da44b48a9144eee29b617d94a829b Mon Sep 17 00:00:00 2001 From: KokkieH Date: Fri, 3 Dec 2021 11:17:48 +0200 Subject: [PATCH] Adding table styles to tables added inside a widget area --- textbook/style.css | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/textbook/style.css b/textbook/style.css index 6b0e5be58..36cf243af 100644 --- a/textbook/style.css +++ b/textbook/style.css @@ -662,15 +662,18 @@ table td { text-align: left; } -.entry-content table { +.entry-content table, +.widget-area table { border-collapse: collapse; } -.entry-content table tbody tr:nth-child(odd) { +.entry-content table tbody tr:nth-child(odd), +.widget-area table tbody tr:nth-child(odd) { background: #FFF; } -.entry-content table tbody { +.entry-content table tbody +.widget-area table tbody { background: #FFF; border: 1px solid #ce4639; -webkit-border-bottom-left-radius: 0.5em; @@ -682,16 +685,20 @@ table td { overflow: hidden; } -.entry-content table tbody tr:nth-child(even) { +.entry-content table tbody tr:nth-child(even), +.widget-area table tbody tr:nth-child(even) { background: #f0eeec; } .entry-content table th, -.entry-content table td { +.entry-content table td, +.widget-area table th, +.widget-area table td { border: 1px solid #ce4639; } -.entry-content table thead tr { +.entry-content table thead tr, +.widget-area table thead tr { font-size: 12.8px; font-size: 0.8rem; font-weight: 700;