@scuticode/shop-sdk
Version:
ScutiCode shop sdk
126 lines (109 loc) • 2.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.chat = void 0;
const lit_element_1 = require("lit-element");
exports.chat = (0, lit_element_1.css) `
.main-card {
background: white;
color: white;
width: 100%;
height: 100%;
margin: 0px;
border-radius: 0px;
display: flex;
flex-direction: column;
overflow: hidden;
right: 0;
bottom: 0;
position: absolute;
transition: all 0.5s;
box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2),0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.card-close-icon {
position: absolute;
top: 1rem;
right: 1rem;
cursor: pointer;
}
.main-title {
background-color: #4047D9;
font-size: large;
font-weight: bold;
display: flex;
height: 48px;
}
.main-title>div{
height:48px;
width:48px;
display:flex;
margin-left:8px;
}
.main-title .robot-icon {
margin-left: 0.6rem;
margin-top: 0.6rem;
}
.main-title > span {
margin: auto auto auto 8px;
}
.chat-area {
flex-grow: 1;
border-radius: 8px;
padding: 16px;
color: black;
overflow-y: auto;
scroll-behavior: smooth;
}
.message {
padding: 10px;
margin: 8px;
border-radius: 5px;
font-size: 20px;
}
.user-message {
background-color: #DCF8C6;
text-align: right;
}
.assistant-message {
background-color: #E8E8E8;
text-align: left;
}
.typing-indicator {
color: #888;
font-style: italic;
}
.input-area {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
}
.input-area input[type="text"] {
flex: 1;
padding: 8px;
border-radius: 5px;
border: 1px solid #ccc;
}
.input-area button {
margin-left: 10px;
padding: 8px 15px;
border-radius: 5px;
background-color: fff;
color: white;
border: none;
cursor: pointer;
}
.input-area button:hover {
background-color: #4047D9;
}
.image-container {
width: 100%;
overflow-x: auto;
white-space: nowrap;
}
.image-container img {
width: 200px;
height: 200px;
display: inline-block;
margin-right: 10px;
}
`;