From 9a36acf045158f85b686f28de403b62b8af722cb Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 26 Mar 2017 07:55:03 +0300 Subject: [PATCH] Center messageBox icon vertically in the title --- msgbox/msgbox.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/msgbox/msgbox.css b/msgbox/msgbox.css index 5e996004..8437957c 100644 --- a/msgbox/msgbox.css +++ b/msgbox/msgbox.css @@ -47,7 +47,7 @@ #message-box-title { font-weight: bold; background-color: rgb(145, 208, 198); - padding: .75rem 50px .75rem 52px; + padding: .75rem 24px .75rem 52px; font-size: 1rem; position: relative; } @@ -59,8 +59,10 @@ padding: 0 32px 32px 0; background: url(/images/icon/32.png); position: absolute; - left: 11px; - top: 8px; + left: .5rem; + top: 0; + bottom: 0; + margin: auto; } #message-box.danger #message-box-title { @@ -92,6 +94,7 @@ padding: 1.5rem .75rem; position: relative; flex-grow: 9; + word-wrap: break-word; } #message-box-buttons {