Advertisement
Guest User

obs-css-chat

a guest
May 30th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. /* ------------------------------------------------------------------------------------------------------------------------------
  2.  
  3. -Créer une source navigateur et remplissez les paramètres :
  4. Taille perso : 450x1000; pour un format colonne.
  5. Url: https://www.twitch.tv/popout/chaine/chat?popout=source (n'oubliez pas de remplacez "chaine" par le nom de votre chaine)
  6.  
  7.  
  8. -Coller le code css en dessous dans la section "CSS personnalisé".
  9. Dans :root, il y a quelques variables qu'il est possible de modifier :
  10.  
  11. --couleurfond: rgba(0,0,0,0.0);
  12. --police: Arial;
  13. --tailletexte: 22px;
  14. --couleurtexte: white;
  15. --tailleligne: 1em;
  16.  
  17. --couleur -> Gérer la couleur de fond, mais surtout l'opacité du fond. Ici 0.0 correspond à "transparent", ca va de 0 à 1.
  18. --police : privilégier une police classique mais bien lisible
  19. --tailletexte : taille du texte en pixel.
  20. --couleur texte : le blanc par défaut
  21. -- taille ligne : 1em, taille par défaut. 1.2, ou 1.3 pour plus grand.
  22.  
  23. -----------------------------------------------------------------------------------------------------------------------------*/
  24. VOICI LE CODE A COLLER
  25.  
  26. :root {
  27. --couleurfond: rgba(0,0,0,0.0);
  28. --police: orbitron;
  29. --tailletexte: 22px;
  30. --couleurtexte: white;
  31. --tailleligne: 1em;
  32. }
  33.  
  34. /* Changer l'affichage des messages */
  35. div.chat-line__message {
  36. margin: 5px;
  37. margin-left: -5px;
  38. font-size: var(--tailletexte);
  39. font-family: var(--police);
  40. line-height: var(--tailleligne);
  41. color: var(--couleurtexte);
  42. }
  43.  
  44. /* L'affichage du chat commence par le bas */
  45. .chat-scrollable-area__message-container {
  46. display: inline-block;
  47. flex-direction: column-reverse;
  48. position: absolute;
  49. bottom: 0;
  50. left: 0;
  51. table-layout: fixed;
  52. }
  53.  
  54.  
  55.  
  56.  
  57. /*** NE PAS TOUCHER EN DESSOUS***/
  58.  
  59. body {
  60. background: var(--couleurfond) !important;
  61. }
  62.  
  63.  
  64. /*** Cacher les sondages ***/
  65. .community-highlight-stack__card--wide {
  66. display: none;
  67. }
  68.  
  69.  
  70. /* Cache le header */
  71. .stream-chat-header {
  72. display: none !important;
  73. }
  74.  
  75. /* Cache le bandeau "Offre un abonnement" */
  76. .channel-leaderboard {
  77. display : none;
  78. }
  79.  
  80. /* Cacher le message de bienvenue */
  81. .chat-line__status[data-a-target="chat-welcome-message"] {
  82. display: none;
  83. }
  84.  
  85. /* Cache le footer */
  86. div.chat-input {
  87. display: none !important;
  88. }
  89.  
  90. /* Cache le bandeau "Voir les nouveaux messages */
  91. div.chat-list__list-footer.tw-absolute.tw-align-items-center.tw-border-radius-medium.tw-bottom-0.tw-flex.tw-full-width.tw-justify-content-center.tw-pd-05 div {
  92. display: none;
  93. }
  94.  
  95. div.chat-list__list-footer.tw-absolute.tw-align-items-center.tw-border-radius-medium.tw-bottom-0.tw-flex.tw-full-width.tw-justify-content-center.tw-pd-05 {
  96. display: none;
  97. background: transparent;
  98. color: transparent;
  99. }
  100.  
  101. /* Cache les badges sur les messages */
  102.  
  103. /*
  104. img.chat-badge[alt="Broadcaster"] {
  105. display: none;
  106. }
  107. img.chat-badge[alt="Moderator"] {
  108. display: none;
  109. }
  110. img.chat-badge[alt="Subscriber"] {
  111. display: none;
  112. }
  113. img.chat-badge[alt="Twitch Prime"] {
  114. display: none;
  115. }
  116. img.chat-badge[alt="Turbo"] {
  117. display: none;
  118. }
  119. img.chat-badge[alt="Verified"] {
  120. display: none;
  121. }
  122. */
  123.  
  124. img.chat-badge {
  125. display: none;
  126. }
  127.  
  128. div.twilight-minimal-root,
  129. div.popout-chat-page,
  130. section.chat-room {
  131. background: rgba(0,0,0,0) !important;
  132. color: #FFFFFF !important;
  133. }
  134.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement