message.css 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .messenger {
  2. left: 10px;
  3. width: 350px;
  4. position: fixed;
  5. z-index: 250;
  6. bottom: 10px;
  7. pointer-events: none;
  8. overflow: hidden;
  9. text-align: center;
  10. }
  11. .messenger > div {
  12. padding: 6px 14px;
  13. margin-top: 2px;
  14. min-height: 60px;
  15. -webkit-border-radius: 4px;
  16. border-radius: 4px;
  17. /* border: 1px solid rgba(0, 0, 0, 0.85); */
  18. background-color: rgba(0, 0, 0, 0.5);
  19. color: #f0f0f0;
  20. pointer-events: auto;
  21. cursor: pointer;
  22. position: relative;
  23. }
  24. .messenger > div:hover {
  25. background-color: rgba(0, 0, 0, 0.55);
  26. color: #ffffff;
  27. }
  28. .messenger > div.removing {
  29. opacity: 0;
  30. -webkit-transition: opacity;
  31. -o-transition: opacity;
  32. transition: opacity;
  33. -webkit-transition-timing-function: ease-out;
  34. -o-transition-timing-function: ease-out;
  35. transition-timing-function: ease-out;
  36. }
  37. .messenger > div.removing.short {
  38. -webkit-transition-duration: 0.1s;
  39. -o-transition-duration: 0.1s;
  40. transition-duration: 0.1s;
  41. }
  42. .messenger > div.removing.long {
  43. -webkit-transition-duration: 2s;
  44. -o-transition-duration: 2s;
  45. transition-duration: 2s;
  46. }
  47. .messenger > div > .close {
  48. position: absolute;
  49. right: 5px;
  50. top: 5px;
  51. width: 16px;
  52. height: 16px;
  53. z-index: 300;
  54. }
  55. .messenger > div > .close::before,
  56. .messenger > div > .close::after {
  57. content: "";
  58. position: absolute;
  59. width: 3px;
  60. left: 50%;
  61. top: 0;
  62. bottom: 0;
  63. transform: translateX(-50%) rotateZ(-45deg);
  64. background-color: rgb(207, 207, 207);
  65. }
  66. .messenger > div > .close::after {
  67. transform: translateX(-50%) rotateZ(45deg);
  68. }
  69. .messenger > div > .close:hover::before,
  70. .messenger > div > .close:hover::after {
  71. background-color: white;
  72. }
  73. @media (max-width: 586px) {
  74. .messenger {
  75. left: 0;
  76. bottom: 0;
  77. width: 100%;
  78. }
  79. .messenger > div {
  80. margin: 5px 10px;
  81. }
  82. }
  83. @media (min-width: 587px) and (max-width: 1151px) {
  84. .messenger {
  85. left: 0;
  86. bottom: 0;
  87. width: 450px;
  88. }
  89. .messenger > div {
  90. margin: 5px 10px;
  91. }
  92. }