jquery.toastmessage.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. .toast-container {
  2. width: 280px;
  3. z-index: 9999;
  4. }
  5. * html .toast-container {
  6. position: absolute;
  7. }
  8. .toast-item {
  9. height: auto;
  10. background: #333;
  11. opacity: 0.9;
  12. border-radius: 10px;
  13. -moz-border-radius: 10px;
  14. -webkit-border-radius: 10px;
  15. color: #eee;
  16. padding-top: 20px;
  17. padding-bottom: 20px;
  18. padding-left: 6px;
  19. padding-right: 6px;
  20. font-family: lucida Grande;
  21. font-size: 14px;
  22. border: 2px solid #999;
  23. display: block;
  24. position: relative;
  25. margin: 0 0 12px 0;
  26. }
  27. .toast-item p {
  28. text-align: left;
  29. margin-left: 50px;
  30. }
  31. .toast-item-close {
  32. background:url(../images/close.gif);
  33. width:22px;
  34. height:22px;
  35. position: absolute;
  36. top:7px;
  37. right:7px;
  38. }
  39. .toast-item-image {
  40. width:32px;
  41. height: 32px;
  42. position: absolute;
  43. top: 50%;
  44. margin-top: -16px;
  45. left: 10px;
  46. }
  47. .toast-item-image-notice {
  48. background:url(../images/notice.png);
  49. }
  50. .toast-item-image-success {
  51. background:url(../images/success.png);
  52. }
  53. .toast-item-image-warning {
  54. background:url(../images/warning.png);
  55. }
  56. .toast-item-image-error {
  57. background:url(../images/error.png);
  58. }
  59. /**
  60. * toast types
  61. *
  62. * pattern: toast-type-[value]
  63. * where 'value' is the real value of the plugin option 'type'
  64. *
  65. */
  66. .toast-type-notice {
  67. color: white;
  68. }
  69. .toast-type-success {
  70. color: white;
  71. }
  72. .toast-type-warning {
  73. color: white;
  74. border-color: #FCBD57;
  75. }
  76. .toast-type-error {
  77. color: white;
  78. border-color: #B32B2B;
  79. }
  80. /**
  81. * positions
  82. *
  83. * pattern: toast-position-[value]
  84. * where 'value' is the real value of the plugin option 'position'
  85. *
  86. */
  87. .toast-position-top-left {
  88. position: fixed;
  89. left: 20px;
  90. top: 20px;
  91. }
  92. .toast-position-top-center {
  93. position: fixed;
  94. top: 20px;
  95. left: 50%;
  96. margin-left: -140px;
  97. }
  98. .toast-position-top-right {
  99. position: fixed;
  100. top: 20px;
  101. right: 20px;
  102. }
  103. .toast-position-middle-left {
  104. position: fixed;
  105. left: 20px;
  106. top: 50%;
  107. margin-top: -40px;
  108. }
  109. .toast-position-middle-center {
  110. position: fixed;
  111. left: 50%;
  112. margin-left: -140px;
  113. margin-top: -40px;
  114. top: 50%;
  115. }
  116. .toast-position-middle-right {
  117. position: fixed;
  118. right: 20px;
  119. margin-left: -140px;
  120. margin-top: -40px;
  121. top: 50%;
  122. }