Lungo.widgets.notification.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Widgets
  5. * @class Notification
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. .notification {
  10. position: absolute;
  11. width: 100%;
  12. height: 100%;
  13. z-index: 3;
  14. background: none;
  15. display: none;
  16. }
  17. .notification.modal {
  18. background-color: rgba(0,0,0,0.5);
  19. }
  20. .notification .window {
  21. position: relative;
  22. opacity: 0;
  23. -webkit-transition: all 200ms easeOutSine;
  24. -moz-transition: all 200ms easeOutSine;
  25. transition: all 200ms easeOutSine;
  26. }
  27. .notification .window.show {
  28. opacity: 1;
  29. }
  30. .notification .window strong,
  31. .notification .window small {
  32. display: block;
  33. }
  34. .notification .window small {
  35. font-size: 0.7em;
  36. }
  37. .notification .window:not(.special) {
  38. left: 50%;
  39. top: 50%;
  40. width: 104px;
  41. margin: -MODAL_SIZE_middle auto auto -MODAL_SIZE_middle;
  42. padding: 8px;
  43. background-color: rgba(0,0,0,0.8);
  44. text-align: center;
  45. -webkit-transform: scale(0.8);
  46. -moz-transform: scale(0.8);
  47. transform: scale(0.8);
  48. }
  49. .notification .window:not(.special).show {
  50. -webkit-transform: scale(1);
  51. -moz-transform: scale(1);
  52. transform: scale(1);
  53. }
  54. .notification .window:not(.special) .icon {
  55. display: block;
  56. font-size: 4em;
  57. }
  58. .notification .window:not(.special) .icon.loading {
  59. margin-top: 24px;
  60. margin-bottom: 20px;
  61. }
  62. .notification .window:not(.special) small {
  63. overflow: hidden;
  64. white-space: nowrap;
  65. text-overflow: ellipsis;
  66. }
  67. .notification .window.confirm,
  68. .notification .window.notify {
  69. top: 0;
  70. font-size: 1.1em !important;
  71. -webkit-transform: translate3d(0, -100%, 0);
  72. -moz-transform: translate3d(0, -100%, 0);
  73. transform: translate3d(0, -100%, 0);
  74. }
  75. .notification .window.confirm.show,
  76. .notification .window.notify.show {
  77. -webkit-transform: translate3d(0, 0%, 0);
  78. -moz-transform: translate3d(0, 0%, 0);
  79. transform: translate3d(0, 0%, 0);
  80. }
  81. .notification .window.confirm .icon,
  82. .notification .window.notify .icon {
  83. float: left;
  84. font-size: 2em;
  85. margin: -3px 10px 0 0;
  86. }
  87. .notification .window.confirm {
  88. opacity: 1;
  89. padding: 10px 12px;
  90. }
  91. .notification .window.confirm p {
  92. height: 44px;
  93. }
  94. .notification .window.confirm .button {
  95. width: 42%;
  96. }
  97. .notification .window.confirm .button:last-child {
  98. float: right;
  99. }
  100. .notification .window.notify {
  101. padding: 8px;
  102. top: 0;
  103. }
  104. .notification .window.url {
  105. left: 0;
  106. top: 0;
  107. width: 280px;
  108. height: auto;
  109. margin: 64px auto 0px;
  110. padding: 0px;
  111. }
  112. .notification .window.url .close {
  113. position: absolute;
  114. top: -14px;
  115. right: -14px;
  116. font-size: 14px;
  117. line-height: 24px;
  118. font-weight: normal;
  119. width: 24px;
  120. height: 24px;
  121. -webkit-border-radius: 14px;
  122. -moz-border-radius: 14px;
  123. border-radius: 14px;
  124. }
  125. .notification .window.working span {
  126. -webkit-animation: notification-working 1s infinite;
  127. }
  128. @-webkit-keyframes notification-working {
  129. 0% {
  130. opacity: 1;
  131. }
  132. 50% {
  133. opacity: 0;
  134. }
  135. 100% {
  136. opacity: 1;
  137. }
  138. }