Here is a list of CSS code modifications to help you customize your Chatroll module.
Outside Container
Change the container color (the background behind the entire chat)
1 2 3 |
.group-chat-embedded { background-color: #ffffff; } |
Chat Border Images
Change the color of the module border (when border image is not used)
1 2 3 |
.chat-wrapper { background: #cccccc; } |
Shift the distance of the module container from the bottom
1 2 3 |
.chat-wrapper { bottom: 40px; } |
Chat Header
Change the color of the header
1 2 3 4 5 |
.chat-top { background: #cccccc; height: 34px; right: 0; } |
Modify the chat name
1 2 3 4 5 6 7 8 |
.chat-name { color: #000000; font-size: 1.65em; left: 10px; right: 10px; top: 7px; font-weight:bold; } |
Chat Messages Container
Change the background color in the chat
1 2 3 |
.chat-messages-container { background: #f5f5f5; } |
Shift the distance of the chat container from the top
1 2 3 |
.chat-messages-container, .chat-contacts-divider, .chat-contacts-container { top: 30px; } |
Change the color of the Welcome Message
1 2 3 |
.chat-welcome-message { color: #000000; } |
Make avatars round
1 2 3 |
.profile-icon-image { border-radius:50px; } |
Chat Messages
Modify messages in the chat
1 2 3 4 5 6 7 8 9 10 |
.message { padding: 6px 6px 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.5); border-top: 1px solid rgba(0, 0, 0, 0.1); color: #222222; } .message:last-child { border-bottom: none; } |
Remove “(Admin)” next to administrators’ names
1 2 3 |
.message.admin .message-profile-type-label { display:none; } |
Remove all labels next to names in the chat “(Admin)”, “(Moderator)”, “(Guest)”
1 2 3 |
.message .message-profile-type-label { display:none; } |
Modify the names and messages of administrators in the chat
1 2 3 4 |
.message.admin .message-profile-name a { color: red; background-color:yellow; } |
Modify the names and messages of moderators in the chat
1 2 3 4 |
.message.moderator .message-profile-name a { color: red; background-color:yellow; } |
Modify the names and messages of guests in the chat
1 2 3 4 |
.message.guest .message-profile-name a { color: red; background-color:yellow; } |
Modify the way users see their own names and messages in the chat
1 2 3 4 |
.message.self .message-profile-name a { color: red; background-color:yellow; } |
Modify the time stamp
1 2 3 4 5 6 |
.message-timestamp { color: #AAAAAA; font-size: 0.77em; height: 12px; line-height: 1em; } |
Modify the distance between the avatar and messages in the chat
1 2 3 |
.message-content { padding-left: 50px; } |
Modify the distance between a link preview and the previous message
1 2 3 |
.message-group-items { margin-top: 6px; } |
Modify the distance between the first avatar and the top of the chat
1 2 3 |
.message-profile-image { top: 5px; } |
Modify avatars in the chat
1 2 3 4 5 |
.message-profile-image img { width: 22px; height: 22px; border-radius: 2px; } |
Modify the Message Delete button
1 2 3 4 |
.message-delete-button { top: 6px; right: 6px; } |
Remove avatars in the main chat container
1 2 3 4 5 6 |
.message-profile-image { display: none; } .message-content { padding-left: 8px; } |
Chat Input Container
Modify the chat input
1 2 3 4 5 |
.chat-input-container { left: 5px; right: 5px; background: #cccccc; } |
Modify the chat input wrapper
1 2 3 4 5 6 |
.chat-input-wrapper { top: 0; left: 0; background: #cccccc; margin: 8px 0; } |
Modify the chat input container and text attributes
1 2 3 4 5 6 7 |
.chat-input { font-family: Helvetica, Arial, sans-serif; color: #000000; font-size: 13px; padding: 6px; border-radius: 2px; } |
Move the chat input container to the top
To have new messages show at the top, you must set Message Order to Newest on Top under Settings > Appearance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
.chat-input-container { top:34px; } .chat-input { resize:none; } .chat-messages-container { top: 89px; bottom: 6px; } .chat-contacts-container { top: 89px; bottom: 24px; } .chat-contacts-divider { bottom: 6px; } .chat-contacts-banner { bottom: 6px; } .chat-contacts-container-top-open { bottom: 24px; top: auto; } .chat-contacts-banner-top { top: auto; } .chat-contacts-divider-top { bottom: 24px; top: auto; } .chat-contacts-divider-top-open { bottom: 130px; top: auto; } .chat-messages-container-top-open { bottom: 130px; } |
User List
Modify the width of the user list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
.chat-messages-container { right: 165px; } .chat-contacts-divider { right: 162px; } .chat-contacts-container { right: 5px; } .chat-contacts-container { width: 155px; } .chat-contacts-banner { width: 155px; } |
Change the color of the user list container
1 2 3 |
.chat-contacts-container { background: #f5f5f5; } |
User List Item
Modify user list item
1 2 3 4 5 6 7 |
.contact-list-item { border-bottom: 1px solid #a05959; height: 21px; padding: 5px 0; position: relative; width: 100%; } |
Modify the names in the user list
1 2 3 4 5 6 7 |
.contact-list-profile-name { color: #000000; margin: 1px 1px 2px 10px; } .contact-list-profile-name a { color: #000000; } |
Modify avatars in the user list container
1 2 3 4 5 |
.contact-list-profile-image { right: 5px; top: 5px; padding: 2px; } |
Modify the status icon in the user list
1 2 3 4 |
.contact-list-status-icon { left: 3px; top: 8px; } |
Remove the status icon in the user list
1 2 3 4 5 6 |
.contact-list-status-icon { display:none; } .contact-list-profile-name { margin-left: 5px; } |
Modify the the user list item
1 2 3 4 5 |
.contact-list-item { border-bottom: 1px solid #e8e8e8; height: 25px; padding: 3px 1px 1px 1px; } |
Modify the names of non-administrators in the user list
1 2 3 4 5 |
.contact-list-profile-name { color: #999999; font-size: 12px; font-weight: normal; } |
Modify the names of administrators in the user list
1 2 3 |
.contact-list-item.admin .contact-list-profile-name a { color:#00ff00; } |
Modify the names of moderators in the user list
1 2 3 |
.contact-list-item.moderator .contact-list-profile-name a { color:#ff0000; } |
Modify the names of guests in the user list
1 2 3 |
.contact-list-item.guest .contact-list-profile-name a { color:#0000ff; } |
Modify the way users see their own names in the user list
1 2 3 |
.contact-list-item.self .contact-list-profile-name a { color:#0000ff; } |
Modify the color of all usernames that are links
1 2 3 4 |
a { color: #222222; text-decoration: none; } |
Modify links posted to the chat
1 2 3 4 5 6 |
.group-item-small { background: #f4f4f4; height: 42px; margin: 1px 3px 1px 1px; max-width: 260px; } |
Online Count Container
Modify the online count
1 2 3 4 5 6 7 |
.chat-online-count { color: #080; font-size: 9px; text-transform: uppercase; top: 4px; left: 12px; } |
Remove the online count
1 2 3 |
.chat-online-count { display: none; } |
Modify the online count container
1 2 3 4 |
.chat-contacts-banner { background: #fcfcfc; width: 155px; } |
Remove the online count container
1 2 3 |
.chat-contacts-banner { display: none; } |
Modify the scroll bar location
1 2 3 |
.chat-messages-container { right: 165px; } |
Modify the location of the divider between the scroll bar and the chat
1 2 3 4 |
.chat-contacts-divider { right: 162px; width: 1px; } |
Status Message
Modify the Status Message
1 2 3 4 5 6 7 8 9 |
.chat-sticky-message { background: #ffffe0; border: 1px solid #e6db55; font-size: 0.9em; left: 7px; padding: 6px; right: 136px; top: 34px; } |
Modify the dimensions of the Status Message banner
1 2 3 4 5 |
.chat-sticky-message-top { left: 5px; right: 20px; top: 56px; } |
Private Message Container
Modify the Private Message border
1 2 3 4 5 6 7 8 |
.popup-shadow { background: #555; bottom: -5px; left: -5px; opacity: 0.5; right: -5px; top: -5px; } |
Modify the Private Message close button
1 2 3 4 |
.popup-close-button { right: 6px; top: 6px; } |
Modify the Private Message title
1 2 3 4 5 |
.popup-title { background: #eaeaea; font-weight: bold; padding: 5px 20px 5px 5px; } |
Modify the Private Message background
1 2 3 4 5 |
.popup-content { background: #fafafa; padding: 10px; text-align: center; } |
For further assistance customizing CSS, please submit a request.