Lungo.widgets.notification.css 2.2 KB

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