From 74eefdb4f1645bded4cf13ffc38fcfbb49524877 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Wed, 8 Apr 2020 19:34:46 +0200 Subject: [PATCH] [ticket/16319] Use calc for postbody width PHPBB3-16319 --- phpBB/styles/prosilver/theme/responsive.css | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/phpBB/styles/prosilver/theme/responsive.css b/phpBB/styles/prosilver/theme/responsive.css index 8e81eac63f..774dc77b96 100644 --- a/phpBB/styles/prosilver/theme/responsive.css +++ b/phpBB/styles/prosilver/theme/responsive.css @@ -552,22 +552,18 @@ } } -@media (min-width: 700px) { - .postbody { width: 70%; } -} - -@media (min-width: 701px) and (max-width: 850px) { +@media (min-width: 701px) { .postbody { - width: 76%; + /** deduct postprofile width (including border width, margin and padding) */ + width: calc(100% - 200px - 1px); } .postprofile { - width: 22%; + width: 200px; } } @media (min-width: 701px) and (max-width: 950px) { - ul.topiclist dt { margin-right: -410px; }