HTML5 Notification support on chrome

This commit is contained in:
Gustavo Cortez 2014-05-15 02:13:25 -03:00
commit 2dc5513592
5 changed files with 408 additions and 1 deletions

View file

@ -496,3 +496,138 @@ a.loading {
vertical-align:middle
}
/* notifications */
.dr-notification-container {
position: absolute;
z-index: 10000;
}
.dr-notification-container.bottom {
bottom: 20px;
}
.dr-notification-container.right {
right: 20px;
}
.dr-notification-container.left {
left: 20px;
}
.dr-notification-container.top {
top: 20px;
}
.dr-notification-container.center {
left: 50%;
margin-left: -190px;
}
.dr-notification-wrapper {
width: 380px;
position: relative;
margin: 10px 0;
}
.dr-notification {
width: 380px;
background-color: #2C3E50;
clear: both;
min-height: 80px;
max-height: 90px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
border-radius: 5px;
color: #bfe2de;
border: 1px solid rgba(4, 94, 123, 0.85);
overflow: hidden;
}
.dr-notification-close-btn {
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
-ms-border-radius: 20px;
border-radius: 20px;
display: inline-block;
padding: 3px;
background-color: #2C3E50;
font-size: 14px;
color: #adfaff;
border: 1px solid rgba(4, 94, 123, 0.85);
position: absolute;
right: -11px;
top: 5px;
-webkit-transition: all 0.35s cubic-bezier(0.31, 0.39, 0.21, 1.65);
-moz-transition: all 0.35s cubic-bezier(0.31, 0.39, 0.21, 1.65);
transition: all 0.35s cubic-bezier(0.31, 0.39, 0.21, 1.65);
cursor: pointer;
}
.dr-notification-close-btn i {
padding-left: 3px;
}
.dr-notification-close-btn:hover {
-webkit-transform: scale3d(1.25, 1.25, 1);
-moz-transform: scale3d(1.25, 1.25, 1);
-ms-transform: scale3d(1.25, 1.25, 1);
transform: scale3d(1.25, 1.25, 1);
}
.dr-notification-image {
width: 80px;
height: 80px;
border-right: 1px solid rgba(4, 94, 123, 0.85);
float: left;
display: block;
font-size: 40px;
color: white;
text-align: center;
}
.dr-notification-image i {
display: block;
width: 100%;
padding-top: 25px;
}
.dr-notification-image img {
margin: 15px;
max-width: 70px;
min-width: 48px;
}
.dr-notification-image.dr-notification-type-info {
color: #FFF;
}
.dr-notification-image.dr-notification-type-warning {
color: #FFA226;
}
.dr-notification-image.dr-notification-type-error {
color: #FF4B4F;
}
.dr-notification-image.dr-notification-type-success {
color: #B4D455;
}
.dr-notification-image.success {
color: #B4D455;
}
.dr-notification-content {
padding-left: 100px;
padding-right: 15px;
padding-top: 10px;
}
.dr-notification-title {
color: white;
padding: 0px;
font-size: 20px;
}
p.dr-notification-text {
margin-top: -5px;
font-size: 12px;
}