Advertisement
Fonic_Artes

XSplit & OBSChat (Animated, Bottom Entry)

Nov 23rd, 2015
1,288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.75 KB | None | 0 0
  1. /* This uses the Nightdev chat plugin KapChat use this URL for the chat creation.
  2. https://www.nightdev.com/hosted/obschat/?theme=dark&channel=YOURCHANNELHERE&fade=20&prevent_clipping=true
  3. Please go to https://nightdev.com/kapchat/ to get the CLR Browser Plugin (for OBS), XSplit has support natively in XSplit 2.0. */
  4.  
  5. /* Extra notes: This chat will appear slide in from the left, at the bottom and move up as new chat works in. */
  6. /* All work was done using the help of RetroactiveJ's video (https://www.youtube.com/watch?v=esnV9YiPC_8) and Animate.css for reference (https://daneden.github.io/animate.css/). */
  7.  
  8. body {
  9.      overflow: hidden;
  10.     margin: 5px;
  11.     color: transparent;
  12. }
  13.  
  14. #chat_box {
  15.     background-color: transparent !important;
  16.     font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  17.     font-size: 12px;
  18.     font-style: normal;
  19.     font-variant: normal;
  20.     font-weight: normal;
  21.     position: absolute;
  22.     overflow: hidden;
  23.     color: #FFFFFF !important;
  24.     border-radius: 4px;
  25.     width: calc(100% - 10px);
  26.     height: auto;
  27.     bottom: 0px;
  28.     line-height: 13px;
  29. }
  30.  
  31. .nick {
  32.     font-weight: bold;
  33.     /* This makes all nicks white. */
  34.    /*  color: #FFFFFF !important; */
  35. }
  36.  
  37. .tag {
  38.     /* Change to none if you don"t want tags displayed. If you have both a mod and broadcaster icon, do /unmod <your name> to remove the mod tag. */
  39.     display: inline-block;
  40.     text-indent: 15px;
  41.     background-position: 0 center;
  42.     background-repeat: no-repeat;
  43.     /* In the .turbo, .mod, .broadcaster etc tags remove the background-color segment to make transparent. */
  44.     background-color: transparent;
  45.     display: inline-block;
  46.     vertical-align: bottom;
  47.     height: 18px;
  48.     min-width: 18px;
  49.     width: expression(document.body.clientWidth < $width ? "18px":"auto");
  50.     padding: 0;
  51.     margin-right: 3px;
  52.     margin-bottom: -1px;
  53.     text-indent: -9999px;
  54.     border-radius: 2px;
  55.     -moz-border-radius: 2px;
  56.     -webkit-border-radius: 2px;
  57.     overflow: hidden;
  58. }
  59.  
  60. .admin-1 {
  61. background-image: url("https://i.imgur.com/Ti53H7C.png") !important;
  62.  }
  63.  
  64. .broadcaster-1 {
  65.  background-image: url("https://i.imgur.com/qDA7e1r.png") !important;
  66.  }
  67.  
  68. .clip-champ-1 {
  69.  background-image: url("https://i.imgur.com/CdEOy0j.png") !important;
  70.  }
  71.  
  72. .global_mod-1 {
  73.  background-image: url("https://i.imgur.com/ZPE0OmQ.png") !important;
  74. }
  75.  
  76. .moderator-1 {
  77.  background-image: url("https://i.imgur.com/3TMzt9c.png") !important;
  78.  }
  79.  
  80. .partner-1 {
  81.  background-image: url("https://i.imgur.com/YyggREh.png") !important;
  82.  }
  83.  
  84. .premium-1 {
  85. background-image: url("https://i.imgur.com/kbLTbDw.png") !important;
  86.  }
  87.  
  88. .staff-1 {
  89. background-image: url("https://i.imgur.com/hC9v6wW.png") !important;
  90.  }
  91.  
  92. .sub-gifter-1 {
  93.  background-image: url("https://i.imgur.com/BvyYpkM.png") !important;
  94. }
  95.  
  96. .turbo-1 {
  97. background-image: url("https://i.imgur.com/GNYT0yN.png") !important;
  98.  }
  99.  
  100.  
  101. .chat_line {
  102.     margin-left: 3px;
  103.     margin-right: 3px;
  104.     padding-top: 2px;
  105.     padding-bottom: 3px;
  106.     line-height: 13px;
  107.     margin-bottom: 3px;
  108.     background-color: rgba(0,0,0,0.6);
  109.     border-radius: 6px;
  110.     padding: 5px;
  111.     animation: fadeInLeft 30.05s forwards;
  112.     -moz-animation: fadeInLeft 30.05s forwards;
  113.     -webkit-animation: fadeInLeft 30.05s forwards;
  114. }
  115.  
  116. .chat_line[data-nick="Chat"] {
  117.     display: none !important;
  118. }
  119.  
  120. .chat_line .message {
  121.     /*word-break: break-all;*/
  122.     word-wrap: break-word;
  123. }
  124.            
  125. .chat_line .time_stamp {
  126.     display: none;
  127.     padding-right: 3px;
  128. }
  129.            
  130. span.message {
  131.     /* Makes all part of the chat line white. */
  132.     color: #FFFFFF !important;
  133. }
  134.  
  135. .emoticon {
  136.     margin-bottom: -7px;
  137. }
  138.            
  139. @keyframes fadeInLeft {
  140.     0% {
  141.         opacity: 0;
  142.         -webkit-transform: translate3d(-100%, 0, 0);
  143.         -moz-transform: translate3d(-100%, 0, 0);
  144.         transform: translate3d(-100%, 0, 0);
  145.     }
  146.  
  147.     1% {
  148.         opacity: 1;
  149.         -webkit-transform: none;
  150.         -moz-transform: none;
  151.         transform: none;
  152.     }
  153. }
  154.  
  155. @-webkit-keyframes fadeInLeft {
  156.     0% {
  157.         opacity: 0;
  158.         -webkit-transform: translate3d(-100%, 0, 0);
  159.         -moz-transform: translate3d(-100%, 0, 0);
  160.         transform: translate3d(-100%, 0, 0);
  161.     }
  162.  
  163.     1% {
  164.         opacity: 1;
  165.         -webkit-transform: none;
  166.         -moz-transform: none;
  167.         transform: none;
  168.     }
  169. }
  170.  
  171. @-moz-keyframes fadeInLeft {
  172.     0% {
  173.         opacity: 0;
  174.         -webkit-transform: translate3d(-100%, 0, 0);
  175.         -moz-transform: translate3d(-100%, 0, 0);
  176.         transform: translate3d(-100%, 0, 0);
  177.     }
  178.  
  179.     1% {
  180.         opacity: 1;
  181.         -webkit-transform: none;
  182.         -moz-transform: none;
  183.         transform: none;
  184.     }
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement