From 6fee0db17b062cbe55bd705910657dc122bbc1df Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Tue, 5 Nov 2019 14:48:04 -0500 Subject: [PATCH] Fix right margin and padding to 0px on body el --- awx/ui/client/legacy/styles/ansible-ui.less | 6 ------ .../client/legacy/styles/bootstrap-custom-overrides.less | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/awx/ui/client/legacy/styles/ansible-ui.less b/awx/ui/client/legacy/styles/ansible-ui.less index a85621fd9be6..6b8b788c4cf0 100644 --- a/awx/ui/client/legacy/styles/ansible-ui.less +++ b/awx/ui/client/legacy/styles/ansible-ui.less @@ -21,12 +21,6 @@ src: url(/static/assets/OpenSans-Bold.ttf); } -/* Bootstrap fix that's causing a right margin to appear - whenver a modal is opened */ -body.modal-open { - margin-right: 0; -} - /* Helper Classes */ .pad-right-sm { padding-right: 10px; } .pad-left-md { padding-left: 30px; } diff --git a/awx/ui/client/legacy/styles/bootstrap-custom-overrides.less b/awx/ui/client/legacy/styles/bootstrap-custom-overrides.less index 06a652cedc3f..ab6020ce8605 100644 --- a/awx/ui/client/legacy/styles/bootstrap-custom-overrides.less +++ b/awx/ui/client/legacy/styles/bootstrap-custom-overrides.less @@ -4,6 +4,13 @@ body { color: @default-data-txt; background-color: @default-secondary-bg; font-size: 0.88rem; + /* + * Bootstrap fix that's causing a right margin and padding + * to appear whenever a modal is opened + * https://github.com/twbs/bootstrap/issues/27071 + */ + margin-right: 0px !important; + padding-right: 0px !important; } .dropdown-toggle::after {