jquery.gritter.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /* the norm */
  2. #gritter-notice-wrapper {
  3. position:fixed;
  4. top:40px;
  5. right:20px;
  6. width:301px;
  7. z-index:9999;
  8. -webkit-animation-duration: 1s;
  9. animation-duration: 1s;
  10. -webkit-animation-fill-mode: both;
  11. animation-fill-mode: both;
  12. -webkit-animation-name: bounceIn;
  13. animation-name: bounceIn;
  14. }
  15. @keyframes bounceIn {
  16. 0% {
  17. opacity: 0;
  18. -webkit-transform: scale(.3);
  19. -ms-transform: scale(.3);
  20. transform: scale(.3);
  21. }
  22. 50% {
  23. opacity: 1;
  24. -webkit-transform: scale(1.05);
  25. -ms-transform: scale(1.05);
  26. transform: scale(1.05);
  27. }
  28. 70% {
  29. -webkit-transform: scale(.9);
  30. -ms-transform: scale(.9);
  31. transform: scale(.9);
  32. }
  33. 100% {
  34. opacity: 1;
  35. -webkit-transform: scale(1);
  36. -ms-transform: scale(1);
  37. transform: scale(1);
  38. }
  39. }
  40. #gritter-notice-wrapper.top-left {
  41. left: 20px;
  42. right: auto;
  43. }
  44. #gritter-notice-wrapper.bottom-right {
  45. top: auto;
  46. left: auto;
  47. bottom: 20px;
  48. right: 20px;
  49. }
  50. #gritter-notice-wrapper.bottom-left {
  51. top: auto;
  52. right: auto;
  53. bottom: 20px;
  54. left: 20px;
  55. }
  56. .gritter-item-wrapper {
  57. position:relative;
  58. margin:0 0 10px 0;
  59. background:url('images/ie-spacer.gif'); /* ie7/8 fix */
  60. }
  61. .hover .gritter-top {
  62. /*background-position:right -30px;*/
  63. }
  64. .gritter-bottom {
  65. height:8px;
  66. margin:0;
  67. }
  68. .gritter-item {
  69. display:block;
  70. background-color: rgba(39,58,75,0.8);
  71. border-radius: 4px;
  72. color:#eee;
  73. padding:10px 11px 10px 11px;
  74. font-size: 11px;
  75. font-family:verdana;
  76. }
  77. .hover .gritter-item {
  78. background-position:right -40px;
  79. }
  80. .gritter-item p {
  81. padding:0;
  82. margin:0;
  83. word-wrap:break-word;
  84. }
  85. .gritter-item a:hover {
  86. color: #f8ac59;
  87. text-decoration: underline;
  88. }
  89. .gritter-close {
  90. display:none;
  91. position:absolute;
  92. top:5px;
  93. right:3px;
  94. background:url(images/gritter.png) no-repeat left top;
  95. cursor:pointer;
  96. width:30px;
  97. height:30px;
  98. text-indent:-9999em;
  99. }
  100. .gritter-title {
  101. font-size:12px;
  102. font-weight:bold;
  103. padding:0 0 7px 0;
  104. display:block;
  105. text-transform: uppercase;
  106. }
  107. .gritter-image {
  108. width:48px;
  109. height:48px;
  110. float:left;
  111. }
  112. .gritter-with-image,
  113. .gritter-without-image {
  114. padding:0;
  115. }
  116. .gritter-with-image {
  117. width:220px;
  118. float:right;
  119. }
  120. /* for the light (white) version of the gritter notice */
  121. .gritter-light .gritter-item,
  122. .gritter-light .gritter-bottom,
  123. .gritter-light .gritter-top,
  124. .gritter-light .gritter-close {
  125. background-image: url(images/gritter-light.png);
  126. color: #222;
  127. }
  128. .gritter-light .gritter-title {
  129. text-shadow: none;
  130. }