-
Suriya Ravichandran authoredSuriya Ravichandran authored
chat.css 2.61 KiB
/* Reset some default styling */
body {
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
background-color: #f5f5f5;
}
/* Center the content on the page */
.wrapper {
background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url("../assets/images/background.png");
display: flex;
align-items: flex-start;
justify-content: center;
height: 100vh;
padding-top: 20px; /* Adjust the top padding as needed */
}
/* Style the chat area */
.chat-area {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 400px;
overflow: hidden;
}
/* Style the header section */
header {
background-color: #007bff;
color: #fff;
padding: 15px;
display: flex;
align-items: center;
}
/* Style the back icon */
.back-icon {
color: #fff;
text-decoration: none;
margin-right: 10px;
}
/* Style the content within the header */
header img {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 10px;
}
header .details {
display: flex;
flex-direction: column;
}
header .details span {
font-weight: bold;
}
header .details p {
font-size: 12px;
}
/* Style the chatbox */
.chatbox {
max-height: 400px;
overflow-y: auto;
padding: 15px;
scrollbar-width: thin; /* For Firefox */
scrollbar-color: transparent transparent; /* For Firefox */
-ms-overflow-style: none; /* For Internet Explorer and Edge */
}
.chatbox::-webkit-scrollbar {
width: 0; /* For Chrome, Safari, and Opera */
}
/* Style outgoing messages */
.chat-outgoing {
display: flex;
margin-bottom: 10px;
}
.chat-outgoing .details {
max-width: 70%;
}
.chat-outgoing p {
padding: 10px;
background-color: #4CAF50;
color: #fff;
border-radius: 8px;
}
/* Style incoming messages */
.chat-incoming {
display: flex;
margin-bottom: 10px;
}
.chat-incoming .details {
max-width: 70%;
}
.chat-incoming p {
padding: 10px;
background-color: #3498db; /* Change this color for incoming messages */
color: #fff;
border-radius: 8px;
}
.chat-incoming img {
width: 30px;
height: 30px;
border-radius: 50%;
margin-right: 10px;
}
/* Style the typing area */
.typing-area {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background-color: #fff;
}
.typing-area input {
flex-grow: 1;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
}
.typing-area button {
background-color:#007bff;
color: #fff;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
}