Adjust padding for fixed elements when showing modal layer

Fixes twbs/bootstrap/issues/14040.