# | CSS Class | Description | Example Implementation |
1 | .chat-header | Styles the chat header area. | .chat-header { background-color: #f4f4f4; padding: 10px; } |
2 | .m-0 | Removes all margins (margin: 0). | .m-0 { margin: 0; } |
3 | .py-3 | Adds padding to the top and bottom (padding: 1rem). | .py-3 { padding-top: 1rem; padding-bottom: 1rem; } |
4 | .chat-area | Styles the main chat area. | .chat-area { background: linear-gradient(90deg, #FFDEE9 0%, #B5FFFC 100%); padding: 20px; } |
5 | .py-4 | Adds padding to the top and bottom (padding: 1.5rem). | .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; } |
6 | .px-4 | Adds padding to the left and right (padding: 1.5rem). | .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; } |
7 | .chat-area2 | Alternate styling for the chat area when the header is hidden. | .chat-area2 { background-color: #e0f7fa; } |
8 | .my-message | Styles the user's own chat messages. | .my-message { background-color: #d1e7dd; padding: 10px; border-radius: 10px; } |
9 | .animate__animated | Applies animation to the element (from Animate.css library). | .animate__animated { animation-duration: 1s; } |
10 | .animate__slideInRight | Animates the element with a slide-in-from-right effect (from Animate.css library). | .animate__slideInRight { animation-name: slideInRight; } |
11 | .other-message | Styles the chat messages from others. | .other-message { background-color: #f8d7da; padding: 10px; border-radius: 10px; } |
12 | .animate__slideInLeft | Animates the element with a slide-in-from-left effect (from Animate.css library). | .animate__slideInLeft { animation-name: slideInLeft; } |
13 | .clearfix | Clears floats on both sides of the element. | .clearfix { clear: both; } |
14 | .chat-avatar | Styles the avatar image in the chat. | .chat-avatar { width: 40px; height: 40px; border-radius: 50%; } |
15 | .float-left | Floats the element to the left. | .float-left { float: left; } |
16 | .mr-2 | Adds right margin (margin-right: 0.5rem). | .mr-2 { margin-right: 0.5rem; } |
17 | .mt-2 | Adds top margin (margin-top: 0.5rem). | .mt-2 { margin-top: 0.5rem; } |
18 | .my-0 | Removes top and bottom margins (margin-top: 0; margin-bottom: 0). | .my-0 { margin-top: 0; margin-bottom: 0; } |
19 | .px-4 | Adds padding to the left and right (padding: 1.5rem). | .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; } |
20 | .text-center | Centers text horizontally within the element. | .text-center { text-align: center; } |
21 | .text-secondary | Applies secondary color styling to the text. | .text-secondary { color: #6c757d; } |
22 | .message | Styles the message content area. | .message { padding: 10px; border-radius: 8px; } |
23 | .my-2 | Adds vertical margins (margin-top: 0.5rem; margin-bottom: 0.5rem). | .my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; } |
24 | .message-text | Styles the text content inside a message. | .message-text { font-size: 14px; } |
25 | .m-0 | Removes all margins (margin: 0). | .m-0 { margin: 0; } |
26 | .message-attach | Styles the container for attached media inside messages. | .message-attach { padding: 10px; } |
27 | .message-attach-big | Styles larger attached media inside messages. | .message-attach-big { padding: 20px; } |
28 | .flow | Applies flow-related styling to the element. | .flow { display: flex; } |
29 | .flow-text | Styles text inside elements related to a flow. | .flow-text { font-size: 16px; } |
30 | .div_flow_content | Styles the content container inside a flow. | .div_flow_content { padding: 15px; } |
31 | .pb-0 | Removes padding from the bottom (padding-bottom: 0). | .pb-0 { padding-bottom: 0; } |
32 | .textarea_c | Styles the text area container. | .textarea_c { padding: 10px; } |
33 | .div_text_c | Styles the text content inside a text area. | .div_text_c { font-size: 14px; } |
34 | .div_btts | Styles the button container inside a flow or message. | .div_btts { display: flex; justify-content: space-around; } |
35 | .p_add_btt | Styles additional buttons in the chat interface. | .p_add_btt { padding: 10px; background-color: #007bff; color: white; } |
36 | .fal | Styles the icons from Font Awesome Light (FAL). | .fal { font-size: 16px; } |
37 | .fa-file | Styles the file icon from Font Awesome. | .fa-file { color: #6c757d; } |
38 | .hide | Hides the element from the view (display: none). | .hide { display: none; } |
39 | .d-flex | Applies flexbox layout to the element. | .d-flex { display: flex; } |
40 | .align-items-center | Vertically centers flex items within the flex container. | .align-items-center { align-items: center; } |
41 | .message-attach-midia | Styles media attachments inside messages (like images or videos). | .message-attach-midia { max-width: 100%; border-radius: 8px; } |
42 | .carousel | Styles the carousel container for sliding elements. | .carousel { width: 100%; overflow: hidden; } |
43 | .slide | Styles each slide in a carousel. | .slide { transition: transform 0.5s ease; } |
44 | .carousel-inner | Styles the inner container of a carousel that holds slides. | .carousel-inner { display: flex; } |
45 | .carousel-item | Styles individual items inside a carousel. | .carousel-item { min-width: 100%; } |
46 | .div_c2 | Styles a specific content container inside the chat. | .div_c2 { padding: 20px; } |
47 | .pt-0 | Removes padding from the top (padding-top: 0). | .pt-0 { padding-top: 0; } |
48 | .img-box | Styles the container holding an image. | .img-box { display: inline-block; } |
49 | .r_horizontal | Styles images with a horizontal aspect ratio. | .r_horizontal { aspect-ratio: 16/9; } |
50 | .bg-white | Applies a white background color to the element. | .bg-white { background-color: white; } |
51 | .quick-reply | Styles quick reply buttons in the chat interface. | .quick-reply { background-color: #17a2b8; color: white; border-radius: 50px; } |
52 | .pill | Applies rounded corners to buttons (pill-shaped). | .pill { border-radius: 50px; } |
53 | .mt-3 | Adds top margin (margin-top: 1rem). | .mt-3 { margin-top: 1rem; } |
54 | .shadow-sm | Adds a small shadow to the element. | .shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); } |
55 | .powered | Styles the "powered by" message at the bottom of the chat. | .powered { font-size: 12px; text-align: center; color: #6c757d; } |
56 | .flex-wrap | Enables wrapping of flex items inside the container. | .flex-wrap { flex-wrap: wrap; } |
57 | .pr-3 | Adds right padding (padding-right: 1rem). | .pr-3 { padding-right: 1rem; } |
58 | .pl-4 | Adds left padding (padding-left: 1.5rem). | .pl-4 { padding-left: 1.5rem; } |
59 | .pr-2 | Adds right padding (padding-right: 0.5rem). | .pr-2 { padding-right: 0.5rem; } |
60 | .cursor_pointer | Changes the cursor to a pointer (hand icon). | .cursor_pointer { cursor: pointer; } |
61 | .bg-light-hover | Applies a light background color when hovered. | .bg-light-hover:hover { background-color: #f8f9fa; } |
62 | .uploadBtt | Styles the upload button in the chat interface. | .uploadBtt { background-color: #007bff; color: white; padding: 10px; border-radius: 50px; } |
63 | .spinner-grow | Styles the growing spinner loader. | .spinner-grow { width: 2rem; height: 2rem; animation: spinner-grow 0.75s linear infinite; } |
64 | .mr-2 | Adds right margin (margin-right: 0.5rem). | .mr-2 { margin-right: 0.5rem; } |
65 | .composerC | Styles the message composer container. | .composerC { display: flex; padding: 10px; background-color: #f4f4f4; } |
66 | .input-group | Styles input groups for forms or chat inputs. | .input-group { display: flex; } |
67 | .form-control | Styles form controls like input fields. | .form-control { width: 100%; padding: 10px; } |
68 | .input-group-append | Styles appended elements to input groups. | .input-group-append { margin-left: -1px; } |
69 | .dropdown | Styles the dropdown menu container. | .dropdown { position: relative; } |
70 | .dropup | Styles the dropdown menu as a "drop-up" container. | .dropup { position: relative; } |
71 | .dropdown-toggle | Styles the button that toggles the dropdown menu. | .dropdown-toggle { background-color: #007bff; color: white; } |
72 | .dropdown-menu | Styles the dropdown menu container. | .dropdown-menu { background-color: white; border-radius: 4px; } |
73 | .dropdown-item | Styles individual items inside a dropdown menu. | .dropdown-item { padding: 10px; color: #333; } |
74 | .chat-ice-breaker | Styles the container for icebreaker buttons in the chat interface. | .chat-ice-breaker { text-align: right; } |
75 | .text-right | Aligns text to the right. | .text-right { text-align: right; } |
76 | .btn-outline-primary | Styles buttons with an outlined primary color. | .btn-outline-primary { border: 1px solid #007bff; color: #007bff; } |
77 | .flex-wrap | Enables wrapping of flex items inside the container. | .flex-wrap { flex-wrap: wrap; } |
78 | .input-group | Styles input groups for forms or chat inputs. | .input-group { display: flex; } |
79
| pre
| Controls the text size and formatting for user and bot messages in the chat interface.
| pre { white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word; font-size: 14px; font-weight: normal; font-family: Helvetica, Arial, sans-serif; }
|
80 | .ktt10-btn
| Adjusts the size of the webchat bubble. You can change both the width and height to resize the button.
Important: This CSS does NOT go in the designated CSS area, and instead should be added to your code separately and directly on your website or landing page.
| html <style> .ktt10-btn { width: 50px !important; height: 50px !important; } </style> This will make the webchat bubble 50px by 50px. |
81 | .ktt10-btn img
| Adjusts the size of the icon inside the chat bubble, keeping it proportional.
Important: This CSS does NOT go in the designated CSS area, and instead should be added to your code separately and directly on your website or landing page.
| css .ktt10-btn img { height: 50px !important; width: 50px !important; object-fit: contain !important; } This will resize the icon to 50px by 50px.
|