Skip to content

Instantly share code, notes, and snippets.

@lazuee
Created April 8, 2022 14:16
Show Gist options
  • Save lazuee/7e265106892a772e999b0413f8b1ce7f to your computer and use it in GitHub Desktop.
Save lazuee/7e265106892a772e999b0413f8b1ce7f to your computer and use it in GitHub Desktop.
Streamlabs plain chatbox
* {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
body {
text-shadow: 0 0 1px #000, 0 0 2px #000;
background: {background_color};
font-family: Segoe, Helvetica!important;
font-weight: 700;
font-size: {font_size};
line-height: 1.5em;
color: {text_color};
}
#custom_html {
height: 100vh;
}
#log {
padding-left: 1em;
box-sizing: border-box;
overflow-y: hidden;
}
#log>div {
animation: scrollIn 2s ease-out;
overflow: hidden;
}
@keyframes scrollIn {
from {
max-height: 0vh;
}
to {
max-height: 100vh;
}
}
.colon {
display: none;
}
#log {
display: table;
position: absolute;
bottom: 0;
left: 0;
padding: 0 10px 10px;
width: 100%;
table-layout: fixed;
}
#log>div.deleted {
visibility: hidden;
}
#log .emote {
background-repeat: no-repeat;
background-position: center;
background-size: contain;
padding: 0.4em 0.2em;
position: relative;
}
#log .emote img {
display: inline-block;
height: 1em;
opacity: 0;
}
#log .message,#log .meta {
padding-bottom: 0.1em;
}
#log .meta {
text-align: right;
padding-right: 0.5em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.message, .name {
text-shadow: -2px -2px #000000,-2px -1px #000000,-2px 0px #000000,-2px 1px #000000,-2px 2px #000000,-1px -2px #000000,-1px -1px #000000,-1px 0px #000000,-1px 1px #000000,-1px 2px #000000,0px -2px #000000,0px -1px #000000,0px 0px #000000,0px 1px #000000,0px 2px #000000,1px -2px #000000,1px -1px #000000,1px 0px #000000,1px 1px #000000,1px 2px #000000,2px -2px #000000,2px -1px #000000,2px 0px #000000,2px 1px #000000,2px 2px #000000!important;
}
#log .message {
word-wrap: break-word;
}
.badge {
display: inline-block;
display: none;
margin-right: 0.2em;
position: relative;
height: 1em;
vertical-align: middle;
top: -0.1em;
}
.name {
margin-left: 0.2em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment