UNPKG

angular-global-alerts

Version:
133 lines (127 loc) 2.97 kB
.close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; filter: alpha(opacity=20); opacity: .2; } .close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; filter: alpha(opacity=50); opacity: .5; } button.close { -webkit-appearance: none; padding: 0; cursor: pointer; background: transparent; border: 0; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .alertIn, .alertOut { -webkit-transition: -webkit-transform 0.22s cubic-bezier(0.25, 0, 0.25, 1), opacity 0.22s cubic-bezier(0.25, 0, 0.25, 1); -moz-transition: -moz-transform 0.22s cubic-bezier(0.25, 0, 0.25, 1), opacity 0.22s cubic-bezier(0.25, 0, 0.25, 1); -o-transition: -o-transform 0.22s cubic-bezier(0.25, 0, 0.25, 1), opacity 0.22s cubic-bezier(0.25, 0, 0.25, 1); transition: transform 0.22s cubic-bezier(0.25, 0, 0.25, 1), opacity 0.22s cubic-bezier(0.25, 0, 0.25, 1); } .alertIn.ng-hide-remove, .alertOut.ng-hide-add.ng-hide-add-active { opacity: 0; -webkit-transform: translate3d(100px, 0px, 0px); transform: translate3d(100px, 0px, 0px); display: block !important; } .alertOut.ng-hide-add, .alertIn.ng-hide-remove.ng-hide-remove-active { opacity: 1; display: block !important; -webkit-transform: translate3d(0px, 0px, 0px); transform: translate3d(0px, 0px, 0px); } /*/ customAlert */ .alert.customAlert { border-radius: 0; color: #666; min-width: 403px; padding : 20px 50px 20px 30px; position: fixed; right: 20px; top: 20px; z-index: 9999; } .customAlert strong { display: block; font-size: 16px; margin-bottom: 5px; } .customAlert .close { position: absolute !important; right: 25px !important; top: 19px !important; } .customAlert em { color: #999; display: inline-block; margin: 0 5px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: pre; } .alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; }