| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- // BASE
- // -----------------------------------------------------------------------------
- /* Notification */
- .ui-pnotify {
- right: 15px;
- top: 15px;
- .notification {
- border-radius: $border-radius;
- box-shadow: none;
- padding: 15px 15px 15px 75px;
- .ui-pnotify-icon {
- left: 0;
- position: absolute;
- top: 0;
- width: 75px;
- text-align: center;
- & > span {
- border: 2px solid #FFF;
- border-radius: 50%;
- display: inline-block;
- float: none;
- font-size: 35px;
- height: 50px;
- line-height: 48px;
- margin: 8px 0 0;
- padding: 0;
- width: 50px;
- text-align: center;
- }
- }
- .ui-pnotify-title {
- font-size: 14px;
- letter-spacing: 0;
- }
- .ui-pnotify-text {
- font-size: 12px;
- line-height: 1.3em;
- }
- }
- }
- // TIMES FIX
- // -----------------------------------------------------------------------------
- .ui-pnotify {
- .notification.notification-danger {
- .ui-pnotify-icon {
- & > span.fa-times {
- line-height: 47px;
- }
- }
- }
- }
- // SHADOWED
- // -----------------------------------------------------------------------------
- .ui-pnotify {
- .ui-pnotify-shadow {
- box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.4);
- }
- }
- // WITHOUT ICON
- // -----------------------------------------------------------------------------
- .ui-pnotify.ui-pnotify-no-icon {
- .notification {
- padding-left: 15px;
- }
- }
- // WITHOUT BORDER RADIOUS
- // -----------------------------------------------------------------------------
- .ui-pnotify {
- .ui-pnotify-sharp {
- border-radius: 0;
- }
- }
- // ICON WITHOUT BORDER
- // -----------------------------------------------------------------------------
- body {
- .ui-pnotify.icon-nb {
- .notification {
- .ui-pnotify-icon {
- & > span {
- border-color: transparent;
- border-radius: 0;
- }
- }
- }
- }
- }
- // STACK BAR TOP
- // -----------------------------------------------------------------------------
- .ui-pnotify.stack-bar-top {
- right: 0;
- top: 0;
- .notification {
- border-radius: 0;
- .ui-pnotify-icon {
- & > span {
- margin-top: 7px;
- }
- }
- }
- }
- // STACK BAR BOTTOM
- // -----------------------------------------------------------------------------
- .ui-pnotify.stack-bar-bottom {
- bottom: 0;
- left: auto;
- margin-left: 15%;
- right: auto;
- top: auto;
- .notification {
- border-radius: 0;
- .ui-pnotify-icon {
- & > span {
- margin-top: 9px;
- }
- }
- }
- }
- // CLICK 2 CLOSE
- // -----------------------------------------------------------------------------
- .ui-pnotify.click-2-close {
- cursor: pointer;
- }
- // STATES
- // -----------------------------------------------------------------------------
- /* Notification States */
- @each $state in $states {
- .ui-pnotify {
- .notification-#{nth($state,1)} {
- background: rgba(nth($state,2), 0.95);
- color: rgba(nth($state,3), 0.7);
- .ui-pnotify-icon > span {
- border-color: rgba(nth($state,3), 0.7);
- }
- }
- &.stack-bar-top,
- &.stack-bar-bottom {
- .notification-#{nth($state,1)} {
- background: nth($state,2);
- }
- }
- }
- .ui-pnotify.notification-#{nth($state,1)} {
- .notification,
- .notification-#{nth($state,1)} {
- background: rgba(nth($state,2), 0.95);
- color: rgba(nth($state,3), 0.7);
- .ui-pnotify-icon > span {
- border-color: rgba(nth($state,3), 0.7);
- }
- }
- &.stack-bar-top,
- &.stack-bar-bottom {
- .notification,
- .notification-#{nth($state,1)} {
- background: nth($state,2);
- }
- }
- }
- }
- // RESPONSIVE
- // -----------------------------------------------------------------------------
- /* Notification Responsive */
- @media only screen and (max-width: 767px) {
- html > body > .ui-pnotify {
- bottom: auto !important;
- left: 0 !important;
- margin: 0 !important;
- right: 0 !important;
- top: $header-height !important;
- width: auto !important;
- .notification {
- border-radius: 0 !important;
- height: auto !important;
- position: static !important;
- width: 100%;
- .ui-pnotify-title,
- .ui-pnotify-text {
- padding-right: 35px !important;
- }
- .ui-pnotify-sticker {
- display: none !important;
- }
- .ui-pnotify-closer {
- display: block !important;
- font-size: 24px !important;
- visibility: visible !important;
- }
- }
- }
- }
|