mirror of
https://github.com/e107inc/e107.git
synced 2025-04-30 09:18:09 +02:00
Message Handler updated to use sprite images see: s-message-icon
This commit is contained in:
parent
f1983bd49d
commit
5b4982f4a1
@ -475,6 +475,7 @@ class eMessage
|
||||
}
|
||||
return "
|
||||
<div class='{$type}'>
|
||||
<i class='s-message-icon s-message-".$type."'></i>
|
||||
<div class='s-message-title'>".self::getTitle($type, $mstack)."</div>
|
||||
<div class='s-message-body'>
|
||||
{$message}
|
||||
|
@ -197,13 +197,34 @@ img.S32:hover {}
|
||||
.s-message div.warning { background-color:#FFFFD5; border: 1px solid #FFCC00; }
|
||||
.s-message div.debug { background-color:#FFFFFF; border: 1px solid #EAEAEA; }
|
||||
|
||||
|
||||
|
||||
.s-message .s-message-title { height: 32px; background: 0 50% no-repeat; padding-left: 42px; font-size: 14px; font-weight: bold; line-height: 32px; }
|
||||
|
||||
i.s-message-icon {
|
||||
background: url(images/adminicons_32.png) no-repeat top left;
|
||||
display: inline-block;
|
||||
width:32px;
|
||||
height:32px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
i.s-message-success { background-position: -592px -37px; width: 32px; height: 32px; }
|
||||
i.s-message-error { background-position: -925px 0; width: 32px; height: 32px; }
|
||||
i.s-message-warning { background-position: -777px -37px; width: 32px; height: 32px; }
|
||||
i.s-message-info { background-position: -1480px 0; width: 32px; height: 32px; }
|
||||
i.s-message-debug { background-position: -1480px 0; width: 32px; height: 32px; }
|
||||
|
||||
|
||||
/*
|
||||
.s-message div.info .s-message-title { background-image: url(images/messagebox_info.png); }
|
||||
.s-message div.error .s-message-title { background-image: url(images/messagebox_critical.png); }
|
||||
.s-message div.success .s-message-title { background-image: url(images/ok.png); }
|
||||
.s-message div.warning .s-message-title { background-image: url(images/messagebox_warning.png); }
|
||||
.s-message div.debug .s-message-title { background-image: url(images/messagebox_info.png); }
|
||||
*/
|
||||
|
||||
|
||||
|
||||
.s-message-body { padding-left: 42px; }
|
||||
.s-message-item {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user