{% extends "base.html" %} {% block title %}CSS Overlay Help - {{ super() }}{% endblock %} {% block content %}
This guide will help you create your own custom CSS for the chat overlay. Your CSS is applied on top of a base stylesheet, so you only need to override the styles you want to change.
Your CSS will be applied to a simple HTML structure. Here are the key classes you can target:
.chat-container: The main container holding all messages..chat-message: The container for a single message, including the username and text..username: The part of the message that shows the chatter's name..message-text: The actual content of the chat message.The body of the overlay is transparent by default, so you only need to style the message elements.
Here is a simple example to get you started. This creates chat bubbles with a gradient background.
body {
font-family: 'Comic Sans MS', cursive, sans-serif;
font-size: 18px;
text-shadow: 1px 1px 2px #333;
}
.chat-message {
background: linear-gradient(135deg, #7f5af0, #a970ff);
color: white;
padding: 10px 15px;
border-radius: 20px;
margin-bottom: 10px;
display: inline-block;
}
.username {
font-weight: bold;
color: #e0e0e0;
}