Finalised CSS rules for the Ajax notification division. It now centers correctly and handles not very large messages pretty well.
This commit is contained in:
@@ -1771,8 +1771,11 @@ function PMA_ajaxShowMessage(message, timeout) {
|
|||||||
|
|
||||||
if( !ajax_message_init) {
|
if( !ajax_message_init) {
|
||||||
$(function(){
|
$(function(){
|
||||||
|
$('<div id="loading_parent"></div>')
|
||||||
|
.insertBefore("#serverinfo");
|
||||||
|
|
||||||
$('<span id="loading" class="ajax_notification"></span>')
|
$('<span id="loading" class="ajax_notification"></span>')
|
||||||
.insertBefore("#serverinfo")
|
.appendTo("#loading_parent")
|
||||||
.html(msg)
|
.html(msg)
|
||||||
.slideDown('medium')
|
.slideDown('medium')
|
||||||
.delay(to)
|
.delay(to)
|
||||||
|
@@ -1334,3 +1334,29 @@ table#serverconnection_trg_local {
|
|||||||
*/
|
*/
|
||||||
.invalid_value
|
.invalid_value
|
||||||
{background:#F00;}
|
{background:#F00;}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ajax notification styling
|
||||||
|
*/
|
||||||
|
.ajax_notification {
|
||||||
|
top: 0px;
|
||||||
|
position: fixed;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-left: auto;
|
||||||
|
padding: 3px 5px;
|
||||||
|
min-width: 70px;
|
||||||
|
max-width: 350px;
|
||||||
|
background-color: #FF9900;
|
||||||
|
z-index: 1100;
|
||||||
|
text-align: center;
|
||||||
|
display: block;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading_parent {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
}
|
@@ -1273,12 +1273,23 @@ table#serverconnection_trg_local {
|
|||||||
*/
|
*/
|
||||||
.ajax_notification {
|
.ajax_notification {
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 45%;
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
margin: 0 auto;
|
margin-top: 0;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-left: auto;
|
||||||
padding: 3px 5px;
|
padding: 3px 5px;
|
||||||
min-width: 70px;
|
min-width: 70px;
|
||||||
|
max-width: 350px;
|
||||||
background-color: #FFD700;
|
background-color: #FFD700;
|
||||||
z-index: 1100;
|
z-index: 1100;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
display: block;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#loading_parent {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
Reference in New Issue
Block a user