Spaces:
Runtime error
Runtime error
File size: 2,970 Bytes
2376116 |
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
.chat-container {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 999;
background-color: #fff;
border-radius: 10px;
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
max-width: 400px;
min-width: 300px;
}
.round {
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 30px;
}
.chat-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
background-color: rgb(113, 239, 234);
color: #fff;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.chat-header h4 {
margin: 0;
}
.chat-close {
cursor: pointer;
}
.chat-body {
height: 300px;
overflow-y: scroll;
padding: 10px;
word-wrap: break-word;
display:flex;
flex-direction: column;
}
.chat-message {
margin: 10px;
}
.chat-message p {
margin: 0;
padding: 10px;
font-size: 16px;
line-height: 1.4;
position: relative;
word-wrap: break-word;
border-radius: 10px;
}
.chat-message.user {
display: flex;
align-self: flex-end;
justify-content: flex-end;
text-align: right;
align-items: center;
background-color: rgba(113, 239, 234, 0.75);
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
border-bottom-left-radius: 10px;
word-wrap: break-word;
color: #000;
}
.chat-message.bot {
display: flex;
align-self: flex-start;
justify-content: flex-start;
text-align: left;
align-items: center;
background-color: rgba(113, 239, 234, 0.75);
border-top-left-radius: 0px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 0px;
word-wrap: break-word;
}
.chat-message.bot p {
margin: 0;
padding: 10px;
font-size: 16px;
line-height: 1.4;
position: relative;
word-wrap: break-word;
border-radius: 10px;
overflow-wrap: anywhere;
}
.chat-message.user:after {
content: "";
position: relative;
top: 0;
right: -15px;
width: 0;
height: 0;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 15px solid #71EFEABF;
border-top-right-radius: 10px;
}
.chat-message.bot:before {
content: "";
position: relative;
top: 0;
left: -15px;
width: 0;
height: 0;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-right: 15px solid #71EFEABF;
border-top-left-radius: 10px;
}
.chat-input {
display: flex;
margin-top: 10px;
}
.chat-input input {
flex-grow: 1;
border: none;
border-radius: 5px;
padding: 8px 10px;
font-size: 16px;
margin-right: 10px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}
.chat-input button {
background-color: #FFA500;
color: #fff;
border: none;
border-radius: 5px;
padding: 8px 10px;
font-size: 16px;
cursor: pointer;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}
|