From feb549c120630150529ccfa406cbc50d977facc0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 6 Feb 2014 15:42:45 +0000 Subject: [PATCH] move egw_(message|app_header) from jsapi.js to egw_message.js available as egw(window).message(_msg, _type) and make it usable in popups too --- pixelegg/css/pixelegg.css | 39 ++++++++++++++++++++++++ pixelegg/less/layout_dialog.less | 51 ++++++++++++++++++++++++++++---- 2 files changed, 84 insertions(+), 6 deletions(-) diff --git a/pixelegg/css/pixelegg.css b/pixelegg/css/pixelegg.css index 7c652b5062..3ca88acb6c 100644 --- a/pixelegg/css/pixelegg.css +++ b/pixelegg/css/pixelegg.css @@ -5297,6 +5297,45 @@ div.admin-config form > table td { div.admin-config form > table td b { font-weight: bold; } +/** + * Styles for different egw_message-types + */ +.success_message, +.warning_message, +.error_message { + color: red; + font-weight: normal; + font-style: italic; + text-align: left; + margin-left: 5px; + padding-left: 20px; + background-image: url(../images/check.png); + background-position: left; + background-repeat: no-repeat; + background-size: 16px; +} +.warning_message { + background-image: url(../images/dialog_warning.png); +} +.error_message { + font-weight: bold; + background-image: url(../images/dialog_error.png); +} +/** + * Message in popup + */ +body > div#egw_message { + background-color: lightyellow; + border-radius: 10px; + right: 5px; + top: 5px; + padding: 10px; + padding-left: 25px; + background-position-x: 5px; + border: 2px gray solid; + min-width: 100px; + z-index: 10; +} /* Printing */ diff --git a/pixelegg/less/layout_dialog.less b/pixelegg/less/layout_dialog.less index f731a435ac..c674a31e1d 100755 --- a/pixelegg/less/layout_dialog.less +++ b/pixelegg/less/layout_dialog.less @@ -174,16 +174,16 @@ table.dialog-main-view {width: 100%;} } input.et2_textbox {font-size: 1.3em;} - - + + .et2_label { .color_100_gray; vertical-align: bottom; padding: 0px 0px 0px 3px !important; } - - + + td.space { @@ -265,7 +265,7 @@ tr.dialog-header4{ button[id="addressbook-edit_button[delete]"]{ float: right; } - + div.et2_hbox { white-space: normal; } @@ -324,4 +324,43 @@ div.admin-config form > table { font-weight: bold; } } -} \ No newline at end of file +} + +/** + * Styles for different egw_message-types + */ +.success_message, .warning_message, .error_message { + color: red; + font-weight: normal; + font-style: italic; + text-align: left; + margin-left: 5px; + padding-left: 20px; + background-image: url(../images/check.png); + background-position: left; + background-repeat: no-repeat; + background-size: 16px; +} +.warning_message { + background-image: url(../images/dialog_warning.png); +} +.error_message { + font-weight: bold; + background-image: url(../images/dialog_error.png); +} + +/** + * Message in popup + */ +body > div#egw_message { + background-color: lightyellow; + border-radius: 10px; + right: 5px; + top: 5px; + padding: 10px; + padding-left: 25px; + background-position-x: 5px; + border: 2px gray solid; + min-width: 100px; + z-index: 10; +}