diff --git a/addons/web/static/src/webclient/actions/reports/bootstrap_overridden_report.scss b/addons/web/static/src/webclient/actions/reports/bootstrap_overridden_report.scss index b5959aa8d2a..513ac281b80 100644 --- a/addons/web/static/src/webclient/actions/reports/bootstrap_overridden_report.scss +++ b/addons/web/static/src/webclient/actions/reports/bootstrap_overridden_report.scss @@ -1,4 +1,5 @@ $link-decoration: none !default; +$container-padding-x: 15px; // Like in BS4 // remove Emoji fonts $font-family-sans-serif: o-add-unicode-support-font(("Lucida Grande", Helvetica, Verdana, Arial, sans-serif), 1); diff --git a/addons/web/static/src/webclient/actions/reports/report.scss b/addons/web/static/src/webclient/actions/reports/report.scss index 95c0b6e2814..c0509d11895 100644 --- a/addons/web/static/src/webclient/actions/reports/report.scss +++ b/addons/web/static/src/webclient/actions/reports/report.scss @@ -119,3 +119,16 @@ ol { -webkit-box-flex: 1 !important; width: 100% !important; } + +// Boostrap 5 introduces variable paddings for container which wkhtmltopdf doesn't seem to process, so we restore Boostrap 4's paddings for PDFs +.container { + padding-right: $container-padding-x; + padding-left: $container-padding-x; +} + +// Removes borders within a table-borderless as its new definition in Boostrap 5 still has its borders visible in PDFs +.table-borderless { + tbody, thead, tfoot, tr, td, th { + border: 0 none; + } +}