To custom style a notice, you need to use a
class. For this example, we'll use "custom".
Here's some CSS to make custom notices look like
Apple Growl:
.ui-pnotify.custom .ui-pnotify-container {
background-color: #404040 !important;
background-image: none !important;
border: none !important;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
.ui-pnotify.custom .ui-pnotify-title, .ui-pnotify.custom .ui-pnotify-text {
font-family: Arial, Helvetica, sans-serif !important;
text-shadow: 2px 2px 3px black !important;
font-size: 10pt !important;
color: #FFF !important;
padding-left: 50px !important;
line-height: 1 !important;
text-rendering: geometricPrecision !important;
}
.ui-pnotify.custom .ui-pnotify-title {
font-weight: bold;
}
.ui-pnotify.custom .ui-pnotify-icon {
float: left;
}
.ui-pnotify.custom .picon {
margin: 3px;
width: 33px;
height: 33px;
}
And here's the JavaScript to use this styling:
new PNotify({
title: 'Custom Styling',
text: 'I have an additional class that\'s used to give me special styling. I always wanted to be pretty.',
addclass: 'custom',
icon: 'picon picon-32 picon-fill-color',
opacity: .8,
nonblock: {
nonblock: true
}
});