ChatOverlay.css 801 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * CSS for displaying your Owncast v.0.1.0+ chat onscreen in OBS
  3. * to be used with [Your_Owncast_URL]/embed/chat/readonly. Modified by DeadTOm.
  4. * Original code by Hatnix.
  5. * https://codeberg.org/hatniX/Owncast-tweaks
  6. * @hatnix@social.tchncs.de
  7. */
  8. /* the actual animation - only the last 15% are the fade out effect */
  9. @keyframes fade {
  10. 0% { opacity: 0; }
  11. 5% { opacity: 1; }
  12. 85% { opacity: 1; }
  13. 100% { opacity: 0; }
  14. }
  15. /* remove background from main chat window */
  16. body {
  17. background-color: #00000000 !important;
  18. }
  19. #chat-container {
  20. background-color: #00000000 !important;
  21. }
  22. /* give each chatmessage a darkish background and assign the animation */
  23. #chat-container > div > div > div > div {
  24. background-color: #11111166 !important;
  25. animation: fade 12s !important;
  26. opacity: 0;
  27. }