lungo.widgets.notification.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /* DIMENSIONS */
  2. /* COLORS */
  3. .notification {
  4. position: absolute;
  5. width: 100%;
  6. height: 100%;
  7. z-index: 3;
  8. background: none;
  9. display: none;
  10. }
  11. .notification.modal {
  12. background-color: rgba(0, 0, 0, 0.5);
  13. }
  14. .notification .window {
  15. position: relative;
  16. opacity: 0;
  17. -webkit-transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  18. -moz-transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  19. -ms-transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  20. -o-transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  21. transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  22. -webkit-transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  23. -moz-transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  24. -ms-transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  25. -o-transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  26. transition: all 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  27. }
  28. .notification .window.show {
  29. opacity: 1;
  30. -webkit-transition-delay: 200ms;
  31. -moz-transition-delay: 200ms;
  32. -ms-transition-delay: 200ms;
  33. -o-transition-delay: 200ms;
  34. transition-delay: 200ms;
  35. -webkit-transition-delay: 200ms;
  36. -moz-transition-delay: 200ms;
  37. -ms-transition-delay: 200ms;
  38. -o-transition-delay: 200ms;
  39. transition-delay: 200ms;
  40. }
  41. .notification .window strong,
  42. .notification .window small {
  43. display: block;
  44. }
  45. .notification .window small {
  46. font-size: 0.7em;
  47. }
  48. .notification .window:not(.special) {
  49. left: 50%;
  50. top: 50%;
  51. width: 104px;
  52. margin: -52px auto auto -52px;
  53. padding: 8px;
  54. background-color: rgba(0, 0, 0, 0.8);
  55. text-align: center;
  56. -webkit-transform: scale(0.8);
  57. -moz-transform: scale(0.8);
  58. -ms-transform: scale(0.8);
  59. -o-transform: scale(0.8);
  60. transform: scale(0.8);
  61. -webkit-transform: scale(0.8);
  62. -moz-transform: scale(0.8);
  63. -ms-transform: scale(0.8);
  64. -o-transform: scale(0.8);
  65. transform: scale(0.8);
  66. }
  67. .notification .window:not(.special).show {
  68. -webkit-transform: scale(1);
  69. -moz-transform: scale(1);
  70. -ms-transform: scale(1);
  71. -o-transform: scale(1);
  72. transform: scale(1);
  73. -webkit-transform: scale(1);
  74. -moz-transform: scale(1);
  75. -ms-transform: scale(1);
  76. -o-transform: scale(1);
  77. transform: scale(1);
  78. }
  79. .notification .window:not(.special) .icon {
  80. display: block;
  81. font-size: 4.0em;
  82. }
  83. .notification .window:not(.special) .icon.loading {
  84. margin-top: 24px;
  85. margin-bottom: 20px;
  86. }
  87. .notification .window:not(.special) small {
  88. overflow: hidden;
  89. white-space: nowrap;
  90. text-overflow: ellipsis;
  91. }
  92. .notification .window.confirm,
  93. .notification .window.notify {
  94. top: 0;
  95. font-size: 1.1em !important;
  96. -webkit-transform: translate3d(0, -100%, 0);
  97. -moz-transform: translate3d(0, -100%, 0);
  98. -ms-transform: translate3d(0, -100%, 0);
  99. -o-transform: translate3d(0, -100%, 0);
  100. transform: translate3d(0, -100%, 0);
  101. -webkit-transform: translate3d(0, -100%, 0);
  102. -moz-transform: translate3d(0, -100%, 0);
  103. -ms-transform: translate3d(0, -100%, 0);
  104. -o-transform: translate3d(0, -100%, 0);
  105. transform: translate3d(0, -100%, 0);
  106. }
  107. .notification .window.confirm.show,
  108. .notification .window.notify.show {
  109. -webkit-transform: translate3d(0, 0%, 0);
  110. -moz-transform: translate3d(0, 0%, 0);
  111. -ms-transform: translate3d(0, 0%, 0);
  112. -o-transform: translate3d(0, 0%, 0);
  113. transform: translate3d(0, 0%, 0);
  114. -webkit-transform: translate3d(0, 0%, 0);
  115. -moz-transform: translate3d(0, 0%, 0);
  116. -ms-transform: translate3d(0, 0%, 0);
  117. -o-transform: translate3d(0, 0%, 0);
  118. transform: translate3d(0, 0%, 0);
  119. }
  120. .notification .window.confirm .icon,
  121. .notification .window.notify .icon {
  122. float: left;
  123. font-size: 2.0em;
  124. margin: -3px 10px 0 0;
  125. }
  126. .notification .window.confirm {
  127. opacity: 1;
  128. padding: 10px 12px;
  129. }
  130. .notification .window.confirm p {
  131. height: 44px;
  132. }
  133. .notification .window.confirm .button {
  134. width: 42%;
  135. }
  136. .notification .window.confirm .button:last-child {
  137. float: right;
  138. }
  139. .notification .window.notify {
  140. padding: 8px;
  141. top: 0;
  142. }
  143. .notification .window.url {
  144. left: 0;
  145. top: 0;
  146. width: 280px;
  147. height: auto;
  148. margin: 64px auto 0px;
  149. padding: 0px;
  150. }
  151. .notification .window.url .close {
  152. position: absolute;
  153. top: -14px;
  154. right: -14px;
  155. font-size: 14px;
  156. line-height: 24px;
  157. font-weight: normal;
  158. width: 24px;
  159. height: 24px;
  160. border-radius: 14px;
  161. }
  162. .notification .window.working span {
  163. -webkit-animation: notification-working 1s infinite;
  164. }
  165. @-webkit-keyframes notification-working {
  166. 0% {
  167. opacity: 1;
  168. }
  169. 50% {
  170. opacity: 0;
  171. }
  172. 100% {
  173. opacity: 1;
  174. }
  175. }