From e280e3b0743e130a1a5249af2e74106a7ffe7003 Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Thu, 11 Jan 2018 12:05:04 -0800 Subject: [PATCH] settings: Properly center deactivation modal. This properly vertically centers the deactivation modal in the user settings section by setting the top to 50% and the transform to -50% (50% of the height of the actual modal). This is an alternate solution to #7888, which just removes the animation, breaking the normal modal behavior. --- static/styles/settings.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/styles/settings.css b/static/styles/settings.css index a1f5690ff4..32e5d82475 100644 --- a/static/styles/settings.css +++ b/static/styles/settings.css @@ -1107,6 +1107,11 @@ input[type=checkbox].inline-block { top: calc(50% - 120px); } +.modal.fade.in { + top: 50%; + transform: translateY(-50%); +} + #id_realm_create_stream_permission { width: 100%; }