lungo.widgets.notification.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. .notification {
  2. position: absolute;
  3. width: 100%;
  4. height: 100%;
  5. z-index: 3;
  6. background: none;
  7. font-size: 0.9em;
  8. color: #ffffff;
  9. display: none;
  10. }
  11. .notification .window {
  12. position: relative;
  13. opacity: 0;
  14. -webkit-transition: all 300ms cubic-bezier(0.39, 0.575, 0.565, 1);
  15. -moz-transition: all 300ms cubic-bezier(0.39, 0.575, 0.565, 1);
  16. -ms-transition: all 300ms cubic-bezier(0.39, 0.575, 0.565, 1);
  17. -o-transition: all 300ms cubic-bezier(0.39, 0.575, 0.565, 1);
  18. transition: all 300ms cubic-bezier(0.39, 0.575, 0.565, 1);
  19. }
  20. .notification .window.show {
  21. opacity: 1;
  22. }
  23. .notification .window:not(.special) {
  24. left: 50%;
  25. top: 50%;
  26. width: 114px;
  27. margin: -64px auto auto -64px;
  28. padding: 8px;
  29. background-color: rgba(0, 0, 0, 0.8);
  30. text-align: center;
  31. -webkit-border-radius: 1px;
  32. -moz-border-radius: 1px;
  33. border-radius: 1px;
  34. -webkit-background-clip: padding-box;
  35. -moz-background-clip: padding;
  36. background-clip: padding-box;
  37. -webkit-transform: scale(0.85);
  38. -moz-transform: scale(0.85);
  39. -ms-transform: scale(0.85);
  40. -o-transform: scale(0.85);
  41. transform: scale(0.85);
  42. }
  43. .notification .window:not(.special).show {
  44. -webkit-transform: translate3d(0, 0%, 0);
  45. -moz-transform: translate3d(0, 0%, 0);
  46. -ms-transform: translate3d(0, 0%, 0);
  47. -o-transform: translate3d(0, 0%, 0);
  48. transform: translate3d(0, 0%, 0);
  49. }
  50. .notification .window:not(.special) .icon {
  51. display: block;
  52. font-size: 5.0em;
  53. }
  54. .notification .window:not(.special) .icon.loading {
  55. margin-bottom: 24px;
  56. }
  57. .notification .window:not(.special) strong {
  58. display: block;
  59. margin-bottom: 4px;
  60. }
  61. .notification .window.confirm,
  62. .notification .window.notify {
  63. -webkit-transform: translate3d(0, -150%, 0);
  64. -moz-transform: translate3d(0, -150%, 0);
  65. -ms-transform: translate3d(0, -150%, 0);
  66. -o-transform: translate3d(0, -150%, 0);
  67. transform: translate3d(0, -150%, 0);
  68. }
  69. .notification .window.confirm.show,
  70. .notification .window.notify.show {
  71. -webkit-transform: translate3d(0, 0%, 0);
  72. -moz-transform: translate3d(0, 0%, 0);
  73. -ms-transform: translate3d(0, 0%, 0);
  74. -o-transform: translate3d(0, 0%, 0);
  75. transform: translate3d(0, 0%, 0);
  76. }
  77. .notification .window.confirm .icon,
  78. .notification .window.notify .icon {
  79. float: left;
  80. font-size: 2.5em;
  81. margin-right: 8px;
  82. }
  83. .notification .window.confirm strong,
  84. .notification .window.notify strong {
  85. line-height: 1.5em;
  86. }
  87. .notification .window.confirm {
  88. opacity: 1;
  89. padding: 10px 12px;
  90. top: 0;
  91. top: 43px;
  92. background: #333;
  93. }
  94. .notification .window.confirm hr {
  95. margin: 10px 0;
  96. height: 1px;
  97. background: rgba(0, 0, 0, 0.75);
  98. -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  99. -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  100. box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  101. }
  102. .notification .window.confirm .button {
  103. width: 42%;
  104. font-size: 15px;
  105. line-height: 40px;
  106. }
  107. .notification .window.confirm .button:last-child {
  108. float: right;
  109. }
  110. .notification .window.notify {
  111. padding: 3px 0px 7px 7px;
  112. top: 0;
  113. color: #555555;
  114. text-shadow: 0 1px 0px #ffffff;
  115. background-image: -webkit-linear-gradient(top , #e8e8e8 0% , #f6f6f6 50%);
  116. background-image: -moz-linear-gradient(top , #e8e8e8 0% , #f6f6f6 50%);
  117. background-image: -ms-linear-gradient(top , #e8e8e8 0% , #f6f6f6 50%);
  118. background-image: -o-linear-gradient(top , #e8e8e8 0% , #f6f6f6 50%);
  119. background-image: linear-gradient(top , #e8e8e8 0% , #f6f6f6 50%);
  120. -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
  121. -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
  122. box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
  123. }
  124. .notification .window.notify.error,
  125. .notification .window.notify.alert,
  126. .notification .window.notify.success {
  127. color: #ffffff;
  128. text-shadow: 0 1px 0px rgba(0, 0, 0, 0.1);
  129. }
  130. .notification .window.notify.error {
  131. background-image: -webkit-linear-gradient(top , #ff4444 0% , #cc0000 50%);
  132. background-image: -moz-linear-gradient(top , #ff4444 0% , #cc0000 50%);
  133. background-image: -ms-linear-gradient(top , #ff4444 0% , #cc0000 50%);
  134. background-image: -o-linear-gradient(top , #ff4444 0% , #cc0000 50%);
  135. background-image: linear-gradient(top , #ff4444 0% , #cc0000 50%);
  136. }
  137. .notification .window.notify.alert {
  138. background-image: -webkit-linear-gradient(top , #ffbb33 0% , #ff8800 50%);
  139. background-image: -moz-linear-gradient(top , #ffbb33 0% , #ff8800 50%);
  140. background-image: -ms-linear-gradient(top , #ffbb33 0% , #ff8800 50%);
  141. background-image: -o-linear-gradient(top , #ffbb33 0% , #ff8800 50%);
  142. background-image: linear-gradient(top , #ffbb33 0% , #ff8800 50%);
  143. }
  144. .notification .window.notify.success {
  145. background-image: -webkit-linear-gradient(top , #99cc00 0% , #669900 50%);
  146. background-image: -moz-linear-gradient(top , #99cc00 0% , #669900 50%);
  147. background-image: -ms-linear-gradient(top , #99cc00 0% , #669900 50%);
  148. background-image: -o-linear-gradient(top , #99cc00 0% , #669900 50%);
  149. background-image: linear-gradient(top , #99cc00 0% , #669900 50%);
  150. }
  151. .notification .window.url {
  152. left: 0%;
  153. top: 00%;
  154. width: 280px;
  155. height: auto;
  156. margin: 64px auto 0px;
  157. padding: 0px;
  158. -webkit-transform: translate3d(0, 75%, 0);
  159. -moz-transform: translate3d(0, 75%, 0);
  160. -ms-transform: translate3d(0, 75%, 0);
  161. -o-transform: translate3d(0, 75%, 0);
  162. transform: translate3d(0, 75%, 0);
  163. }
  164. .notification .window.url .close {
  165. position: absolute;
  166. top: -14px;
  167. right: -14px;
  168. font-size: 16px;
  169. line-height: 24px;
  170. font-weight: normal;
  171. width: 24px;
  172. height: 24px;
  173. background: #000;
  174. border-radius: 14px;
  175. border: solid 2px #fff;
  176. box-shadow: 0 0 4px black;
  177. }
  178. .notification .window.working span {
  179. -webkit-animation: notification-working 1s infinite;
  180. }
  181. @-webkit-keyframes notification-working {
  182. 0% {
  183. opacity: 1;
  184. }
  185. 50% {
  186. opacity: 0;
  187. }
  188. 100% {
  189. opacity: 1;
  190. }
  191. }