Skip to content

Instantly share code, notes, and snippets.

@lazarusjames
Created January 19, 2020 15:36
Show Gist options
  • Save lazarusjames/ff8f257fc3ddd216367264cd49a8d38d to your computer and use it in GitHub Desktop.
Save lazarusjames/ff8f257fc3ddd216367264cd49a8d38d to your computer and use it in GitHub Desktop.
CSS Chatbox Full Username
@import url(https://fonts.googleapis.com/css?family=Martel:700);
* {
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: 'Martel';
font-weight: 600;
font-size: 1.1em;
line-height: 1.5em;
color: {text_color};
}
#log>div {
animation: fadeInUp .3s ease forwards, fadeOut 0.5s ease {message_hide_delay} forwards;
-webkit-animation: fadeInUp .3s ease forwards, fadeOut 0.5s ease {message_hide_delay} forwards;
}
.colon {
display: none;
}
#log {
display: block;
position: absolute;
bottom: 0;
left: 0;
padding: 0 10px 10px;
width: 100%;
}
#log .emote {
background-repeat: no-repeat;
background-position: center;
background-size: contain;
padding: 0.4em 0.2em;
position: relative;
}
#log .emote img {
display: inline;
height: 1em;
opacity: 0;
}
#log .message,#log .meta {
vertical-align: top;
display: inline;
padding-bottom: 0.1em;
}
#log .meta {
text-align: left;
padding-right: 0.5em;
}
#log .message {
word-wrap: break-word;
}
.badge {
display: inline;
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