UNPKG

profoundjs

Version:

Profound.js Framework and Server

463 lines (425 loc) 8.62 kB
.pai-chat { position: fixed; z-index: 999; height: 85%; width: 550px; bottom: 10px; right: 10px; border: 2px solid #999; border-radius: 6px; background-color:#fff; animation-name: pai-animate-chat; animation-duration: 0.4s; animation-fill-mode: forwards; transform-origin: bottom right; animation-timing-function: cubic-bezier(0, 1.2, 1, 1); } .x-panel .pai-chat { position: absolute; width: 70%; right: 15%; bottom: 5%; animation-name: none; } .pai-chat.pai-dark { background-color: #353c49; } @media (max-width: 768px) { .pai-chat { width: 94vw; height: 85vh; right: 1vw; bottom: 1vh; border-radius: 0; } } @media (max-width: 600px) { .pai-chat { width: 94vw; height: 75vh; right: 1vw; bottom: 1vh; border-radius: 0; } } @keyframes pai-animate-chat { from { transform: scale(0) translate(50%, 50%); /* Start scaled down at bottom right */ opacity: 0; } to { transform: scale(1) translate(0, 0); /* Scale to full size and move to final position */ opacity: 1; } } .pai-prompt-area { margin: 0px auto; padding: 7px; padding-left: 10px; border: 1px solid #999; border-radius: 12px; display: block; width: 90%; font-family: Arial, Helvetica, sans-serif; font-size: 15px; box-sizing: unset; line-height: normal; transition: none; } .pai-dark .pai-prompt-area { background-color: #47515f; } .pai-prompt-area .pai-prompt-box { font-family: Arial, Helvetica, sans-serif; font-size: 15px; border: none; outline: none; height: 21px; margin-top: 5px; padding: 0px; resize: none; box-sizing: unset; line-height: normal; transition: none; border-color: transparent; color: unset; border-radius: 0px; } .pai-prompt-area .pai-prompt-box { width: calc(100% - 30px); } .pai-prompt-area .pai-prompt-box.pai-with-voice { width: calc(100% - 66px); } @-moz-document url-prefix() { .pai-prompt-area .pai-prompt-box { width: calc(100% - 32px); } .pai-prompt-area .pai-prompt-box.pai-with-voice { width: calc(100% - 68px); } } .pai-prompt-area .pai-prompt-box:focus, .pai-with-voice { border-color: transparent; } .pai-dark .pai-prompt-box, .pai-dark .pai-prompt-box:focus { background-color: #47515f; border-color: transparent; color: #fff; border-radius: 0px; } .pai-dark .pai-prompt-box::placeholder { color: #bdc7d8; } .pai-prompt-box::-webkit-scrollbar { width: 8px; background-color: #fff; border-radius: 5px; } .pai-dark .pai-prompt-box::-webkit-scrollbar { background-color: #47515f; } .pai-prompt-box::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 5px; } .pai-prompt-box::-webkit-scrollbar-thumb:hover { background-color: #ddd; } .pai-message { font-family: Arial, Helvetica, sans-serif; font-size: 14px; padding: 15px; border-bottom: 1px solid #ccc; white-space: normal; line-height: 23px; display: block; } .pai-message:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .pai-user-message { background-color: #eee; overflow-wrap: anywhere; } .pai-dark .pai-user-message { background-color: #aaa; color: #222; overflow-wrap: anywhere; } .pai-message-mobile{ font-size: 12px; padding: 10px; line-height: 15px; } .pai-greeting, .pai-agent-response { background-color: #fff; } .pai-dark .pai-greeting, .pai-dark .pai-agent-response { background-color: #47515f; color: #fff; } .pai-heading { font-weight: bold; font-size: 20px; text-align: center; background-color: #fff; padding: 25px; } .pai-dark .pai-heading { background-color: #47515f; background-image: linear-gradient( to right, #47515f, #353c49 ); color: #fff; } .pai-heading.pai-branded { color: #fff; } @media (max-width: 700px) and (orientation: landscape) { .pai-heading { padding: 15px; } } .pai-heading-landscape { padding: 15px; } .pai-error { background-color: pink; } .pai-messages { height: calc(100% - 75px); overflow-y: auto; } .pai-heading ~ .pai-messages { height: calc(100% - 148px); } .pai-heading { border-bottom: 1px solid #ccc; } .pai-messages::-webkit-scrollbar { width: 8px; background-color: #fff; border-radius: 5px; } .pai-dark .pai-messages::-webkit-scrollbar { background-color: #47515f; } .pai-messages::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 5px; } .pai-messages::-webkit-scrollbar-thumb:hover { background-color: #ddd; } .pai-close-button { position: absolute; cursor: pointer; right: 5px; top: 5px; border-radius: 15px; width: 24px; height: 24px; border: 1px solid transparent; user-select: none; } .pai-dark .pai-close-button svg { fill: #fff; } .pai-close-button.pai-branded svg { fill: #ddd; } .pai-close-button:hover { background-color: #eee !important; border: 1px solid #999; } .pai-close-button:hover svg { fill: #000; } .pai-dark .pai-close-button:hover { background-color: #ddd; } .pai-send-button { display: inline-block; width: 24px; height: 24px; padding: 3px; cursor: pointer; color: #ccc; border-radius: 6px; user-select: none; box-sizing: unset; } .pai-send-button svg { fill: #ccc; } .pai-send-button-active { background-color: #333; color: #fff; } .pai-send-button-active svg { fill: #fff; } .pai-voice-button { display: inline-block; width: 24px; height: 24px; padding: 3px; margin-right: 4px; cursor: pointer; color: #ccc; border-radius: 6px; user-select: none; box-sizing: unset; } .pai-voice-button svg { fill: #ccc; } .pai-voice-button:hover, .pai-send-button-active:hover { background-color: #ddd; color: #000; } .pai-voice-button:hover svg, .pai-send-button-active:hover svg { fill: #000; } @keyframes continuousPulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } .pai-recording, .pai-recording:hover { background-color: #ff4d4d; color: #fff; animation: continuousPulse 1s infinite; box-shadow: 0 4px 8px rgba(255, 77, 77, 0.6); } .pai-recording svg, .pai-recording:hover svg { fill: #fff; } .pai-loader { overflow: hidden; display: flex; align-items: center; align-content: center; justify-content: center; padding-top: 18px; } .pai-loader-message { font-family: Arial, Helvetica, sans-serif; font-size: 17px; color: #555; padding-right: 10px; } .pai-dark .pai-loader-message { color: #ddd; } .pai-loader-dot { border-radius: 100%; border: 3px solid #555; margin: 6px; animation: pai-preloader .6s ease-in-out alternate infinite; } .pai-dark .pai-loader-dot { border-color: #ddd; } .pai-loader-dot:nth-child(2) { animation: pai-preloader .6s ease-in-out alternate .2s infinite; } .pai-loader-dot:nth-child(3) { animation: pai-preloader .6s ease-in-out alternate .4s infinite; } .pai-inline-loader { display: inline-block; } @keyframes pai-preloader { 100% { transform: scale(2); } } .pai-embed-icon { position: fixed; height: 24px; width: 24px; bottom: 25px; right: 25px; cursor: pointer; border-radius: 25px; padding: 12px; background-color: #666; } .pai-embed-icon svg { fill: #fff; } .pai-color-box-container { display: flex; flex-wrap: wrap; padding-left: 10px; } .pai-color-box { display: inline-block; width: 18px; height: 18px; cursor: pointer; margin-right: 6px; border-radius: 4px; margin-bottom: 3px; border: 2px solid #bbb; user-select: none; } .pai-color-box:hover { border: 2px solid #999; } .pai-color-box-selected, .pai-color-box-selected:hover { border: 2px solid #333; } .pai-chart { background-color: #fff; } .pai-function-name { color: #333; font-weight: bold; background-color: #eee; border: 1px solid #ccc; border-radius: 4px; padding: 2px 4px; } span.pai-citation { font-size: 12px; color: #666; margin-top: 10px; cursor: pointer; } span.pai-citation:hover { color: #333; text-decoration: underline; } .pai-dark span.pai-citation { color: #ddd; } .pai-dark span.pai-citation:hover { color: #fff; } .pai-tooltip-content { font-size: 12px; color: #666; display: block; position: fixed; z-index: 1001; background-color: #f9f9f9; border: 1px solid #ccc; border-radius: 4px; padding: 10px; width: 400px; overflow: auto; max-height: 500px; white-space: normal; cursor: default; } .pai-tooltip-content::-webkit-scrollbar { width: 8px; border-radius: 5px; } .pai-tooltip-content::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 5px; } .pai-hidden { display: none; }