@risecx/carespace-chat-ui
Version:
carespace-chat-ui React component
88 lines (77 loc) • 1.51 kB
CSS
h3{
font-weight: 500;
margin: 15px 0;
}
h4{
font-weight: 600;
margin: 15px 0;
}
h5 {
font-weight: 700;
margin: 12px 0 0;
}
p{
color: #9CA1AE;
font-size: 0.9em;
}
.sc-message {
width: 340px;
margin: auto;
padding-bottom: 10px;
display: flex;
}
.sc-message--content {
width: 100%;
display: flex;
}
.sc-message--content.sent {
justify-content: flex-end;
}
.sc-message--content.sent .sc-message--avatar {
display: none;
}
.sc-message--avatar {
background-image: url(https://d13yacurqjgara.cloudfront.net/assets/avatar-default-aa2eab7684294781f93bc99ad394a0eb3249c5768c21390163c9f55ea8ef83a4.gif);
background-repeat: no-repeat;
background-size: 100%;
background-position: center;
min-width: 30px;
min-height: 30px;
border-radius: 50%;
align-self: center;
margin-right: 15px;
}
.sc-message--content.sent .sc-message--text {
color: #70668a;
background-color: rgb(226, 230, 255);
max-width: calc(100% - 120px);
word-wrap: break-word;
}
.sc-message--content.received .sc-message--text {
color: #51788c;
background-color: #f4f7f9;
margin-right: 0;
position: relative;
z-index: 1;
}
.sc-message--emoji {
font-size: 40px;
}
@media (max-width: 450px) {
.sc-message {
width: 80%;
}
}
/* COMMON CLASSES */
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
width: 100%;
background: white;
}
.card .image-container img{
border-radius: 8px;
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}