nikosanttos
New Member
I need help to be able to insert this CSS code in OBS to change my chat during the live stream.
What can be wrong in my code, being that when I put it on the streamlabs website it works normally.
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;800&display=swap');
* {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
body {
text-shadow: 0 0 1px #000, 0 0 2px #000;
background-color: rgba(0, 0, 0, 0);;
font-family: 'Montserrat', 'Roboto', Arial, sans-serif!important;
font-weight: 700;
font-size: 22px;
line-height: 1.5em;
color: #FFFFFF;
-webkit-mask-image: -webkit-gradient(linear, left 16%, left top, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
}
#log>div { animation: fadeOut 0.5s ease 5000ms forwards; -webkit-animation: fadeOut 0.5s ease 5000ms forwards;
}
.colon {
display: none;
}
#log {
display: table;
position: absolute;
bottom: 0;
left: 0;
padding: 0 10px 10px;
width: 900px;
table-layout: fixed;
}
#log>div {
display: block;
margin-bottom: 20px;
}
#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 {
vertical-align: top;
display: block;
padding-bottom: 0.1em;
}
#log .meta {
max-width: 500px;
vertical-align: top;
display: inline-block;
padding-bottom: 0.1em;
text-align: left;
padding-right: 0.5em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
background: #D835AA;
font-weight: bolder;
padding: 8px 10px;
color: #fff;
border-top-right-radius: 20px;
border-top-left-radius: 5px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 20px;
}
#log .message {
word-wrap: break-word;
width: 65%;
font-weight: 500;
background: rgba(9, 19, 20, 0.75);
color: #fff;
padding: 20px 20px;
border-top-right-radius: 25px;
border-top-left-radius: 10px;
border-bottom-right-radius: 25px;
border-bottom-left-radius: 25px;
border: 3px solid #2FC9C5;
}
.badge {
display: inline-block;
margin-right: 0px;
position: relative;
height: 1em;
vertical-align: middle;
top: -0.1em;
}
.name {
margin-left: 0;
color: #fff !important;
}
What can be wrong in my code, being that when I put it on the streamlabs website it works normally.
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;800&display=swap');
* {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
body {
text-shadow: 0 0 1px #000, 0 0 2px #000;
background-color: rgba(0, 0, 0, 0);;
font-family: 'Montserrat', 'Roboto', Arial, sans-serif!important;
font-weight: 700;
font-size: 22px;
line-height: 1.5em;
color: #FFFFFF;
-webkit-mask-image: -webkit-gradient(linear, left 16%, left top, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
}
#log>div { animation: fadeOut 0.5s ease 5000ms forwards; -webkit-animation: fadeOut 0.5s ease 5000ms forwards;
}
.colon {
display: none;
}
#log {
display: table;
position: absolute;
bottom: 0;
left: 0;
padding: 0 10px 10px;
width: 900px;
table-layout: fixed;
}
#log>div {
display: block;
margin-bottom: 20px;
}
#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 {
vertical-align: top;
display: block;
padding-bottom: 0.1em;
}
#log .meta {
max-width: 500px;
vertical-align: top;
display: inline-block;
padding-bottom: 0.1em;
text-align: left;
padding-right: 0.5em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
background: #D835AA;
font-weight: bolder;
padding: 8px 10px;
color: #fff;
border-top-right-radius: 20px;
border-top-left-radius: 5px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 20px;
}
#log .message {
word-wrap: break-word;
width: 65%;
font-weight: 500;
background: rgba(9, 19, 20, 0.75);
color: #fff;
padding: 20px 20px;
border-top-right-radius: 25px;
border-top-left-radius: 10px;
border-bottom-right-radius: 25px;
border-bottom-left-radius: 25px;
border: 3px solid #2FC9C5;
}
.badge {
display: inline-block;
margin-right: 0px;
position: relative;
height: 1em;
vertical-align: middle;
top: -0.1em;
}
.name {
margin-left: 0;
color: #fff !important;
}