Lungo.widgets.notification.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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-color: rgba(0,0,0,0.75);
  15. }
  16. .notification .window {
  17. position: relative;
  18. opacity: 0;
  19. -webkit-transition: all 350ms;
  20. -moz-transition: all 350ms;
  21. transition: all 350ms;
  22. text-align: center;
  23. }
  24. .notification .window.show {
  25. opacity: 1;
  26. -webkit-transition-delay: 350ms;
  27. -moz-transition-delay: 350ms;
  28. transition-delay: 350ms;
  29. }
  30. .notification .window strong,
  31. .notification .window small {
  32. display: block;
  33. }
  34. .notification .window.growl {
  35. left: 50%;
  36. top: 50%;
  37. width: 104px;
  38. margin: -52px auto auto -52px;
  39. padding: 24px 8px;
  40. -webkit-transform: scale(0.2);
  41. -moz-transform: scale(0.2);
  42. transform: scale(0.2);
  43. }
  44. .notification .window.growl.show {
  45. -webkit-transform: scale(1);
  46. -moz-transform: scale(1);
  47. transform: scale(1);
  48. }
  49. .notification .window.growl > .icon {
  50. font-size: 3.6em;
  51. line-height: 1em;
  52. }
  53. .notification .window.growl > .icon ~ strong {
  54. margin-bottom: -12px;
  55. }
  56. .notification .window.growl small {
  57. display: none;
  58. }
  59. .notification .window:not(.growl) {
  60. width: 280px;
  61. left: 0;
  62. top: 0;
  63. margin: 22px auto 0;
  64. -webkit-transform: translateY(100%);
  65. -moz-transform: translateY(100%);
  66. transform: translateY(100%);
  67. }
  68. .notification .window:not(.growl).show {
  69. -webkit-transform: translateY(0%);
  70. -moz-transform: translateY(0%);
  71. transform: translateY(0%);
  72. }
  73. .notification .window:not(.growl):not(.html) {
  74. padding-top: 24px;
  75. }
  76. .notification .window:not(.growl):not(.html) > .icon {
  77. font-size: 4em;
  78. line-height: 1em;
  79. }
  80. .notification .window:not(.growl):not(.html) > strong {
  81. font-size: 1.2em;
  82. }
  83. .notification .window:not(.growl):not(.html) > strong,
  84. .notification .window:not(.growl):not(.html) small {
  85. padding: 0 16px 16px 16px;
  86. }
  87. .notification .window:not(.growl).html .close {
  88. position: absolute;
  89. top: -14px;
  90. right: -14px;
  91. font-size: 14px;
  92. line-height: 24px;
  93. font-weight: normal;
  94. width: 24px;
  95. height: 24px;
  96. -webkit-border-radius: 14px;
  97. -moz-border-radius: 14px;
  98. border-radius: 14px;
  99. }