From 7f6b1c99f00c519a5b2186fcb310d23ed2c8e71d Mon Sep 17 00:00:00 2001 From: Serhii Tsymbaliuk Date: Fri, 15 Nov 2019 10:56:24 +0100 Subject: [PATCH] WebUI: Fix notification area layout The fix prevents blocking elements in the right side near notification area. Notification area now has fixed width and it isn't offset. Also notification icon is aligned to notification text. Ticket: https://pagure.io/freeipa/issue/8120 Signed-off-by: Serhii Tsymbaliuk Reviewed-By: Armando Neto --- install/ui/ipa.css | 6 ++++-- install/ui/less/alerts.less | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/install/ui/ipa.css b/install/ui/ipa.css index 2921f4360..388bd333d 100644 --- a/install/ui/ipa.css +++ b/install/ui/ipa.css @@ -44,15 +44,17 @@ textarea[readonly] { .notification-area { position: fixed; left: 50%; + right: 50%; top: 15px; } .notification-area div { position: relative; - left: -50%; + margin-left: -200px; + margin-right: -200px; z-index: 20; word-wrap: break-word; - max-width: 500px; + max-width: 400px; } /* ---- Facet ---- */ diff --git a/install/ui/less/alerts.less b/install/ui/less/alerts.less index a323f891a..6e0a64a04 100644 --- a/install/ui/less/alerts.less +++ b/install/ui/less/alerts.less @@ -8,8 +8,8 @@ > .fa, > .fa-layered { font-size: 20px; position: absolute; - left: 7px; - top: 7px; + left: 11px; + top: 11px; } .fa-info { color: #72767b;