UNPKG

@risecx/carespace-chat-ui

Version:

carespace-chat-ui React component

304 lines (278 loc) 6.4 kB
.sc-user-input { min-height: 55px; margin: 0px; position: relative; bottom: 0; display: flex; background-color: #f4f7f9; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; transition: background-color 0.2s ease, box-shadow 0.2s ease; } .sc-menu-icon-wrapper { outline: none; } .sc-user-input.active-action-menu > .quick-menu, .sc-user-input.active-action-menu > .sc-user-input--text { display: none; } .sc-user-input.active-action-menu .sc-actionmenu--button.active button.sc-actionmenu-icon-wrapper { margin-left: 90%; } .sc-user-input--text { width: 300px; resize: none; border: none; outline: none; border-bottom-left-radius: 10px; box-sizing: border-box; padding: 18px; font-size: 15px; font-weight: 400; line-height: 1.33; white-space: pre-wrap; word-wrap: break-word; color: #565867; -webkit-font-smoothing: antialiased; max-height: 200px; overflow: scroll; bottom: 0; overflow-x: hidden; overflow-y: auto; } .sc-user-input--text:empty:before { content: attr(placeholder); display: block; /* For Firefox */ color: rgba(86, 88, 103, 0.3); outline: none; } .sc-user-input.active-action-menu .sc-user-input--buttons { width: 100%; } .sc-user-input--buttons { /* position: absolute; */ position: relative; height: 100%; display: flex; justify-content: flex-end; } .sc-actionmenu--button:first-of-type, .sc-user-input--button:first-of-type, .sc-menu--button:first-of-type { width: 35px; margin: 0; } .sc-actionmenu--button, .sc-user-input--button { margin-right: 5px; } .sc-menu--button button { margin-left: 15px; } .sc-actionmenu--button, .sc-user-input--button, .sc-menu--button { width: 30px; height: 55px; display: flex; flex-direction: column; justify-content: center; } .sc-actionmenu--button button, .sc-user-input--button button, .sc-menu--button button { cursor: pointer; } .sc-user-input--buttons input[type='file'] { display: none; } .sc-user-input--picker-wrapper { display: flex; flex-direction: column; } .sc-user-input.active { box-shadow: none; background-color: white; box-shadow: 0px -5px 20px 0px rgba(150, 165, 190, 0.2); } .sc-user-input--file-icon, .sc-user-input--send-icon, .sc-menu-icon { height: 20px; width: 20px; cursor: pointer; align-self: center; outline: none; } .sc-menu-icon:hover path { fill: rgba(86, 88, 103, 0.3); } .sc-user-input--file-icon path, .sc-user-input--send-icon path, .sc-menu-icon path { fill: rgba(86, 88, 103, 0.3); } .sc-user-input--file-icon:hover path, .sc-user-input--send-icon:hover path, .sc-menu-icon:hover path { fill: rgba(86, 88, 103, 1); } .sc-actionmenu-icon-wrapper, .sc-user-input--emoji-icon-wrapper, .sc-user-input--send-icon-wrapper, .sc-user-input--file-icon-wrapper, .sc-menu-icon-wrapper { background: none; border: none; padding: 2px; margin: 0px; display: flex; flex-direction: column; justify-content: center; outline: none; } .sc-user-input--send-icon-wrapper, .sc-user-input--file-icon-wrapper, .sc-menu-icon-wrapper { flex-direction: row; } .sc-user-input--emoji-icon-wrapper:focus { outline: none; } .sc-user-input--emoji-icon { height: 18px; cursor: pointer; align-self: center; } .sc-user-input--emoji-icon path, .sc-user-input--emoji-icon circle { fill: rgba(86, 88, 103, 0.3); } .sc-user-input--emoji-icon-wrapper:focus .sc-user-input--emoji-icon path, .sc-user-input--emoji-icon-wrapper:focus .sc-user-input--emoji-icon circle, .sc-user-input--emoji-icon.active path, .sc-user-input--emoji-icon.active circle, .sc-user-input--emoji-icon:hover path, .sc-user-input--emoji-icon:hover circle { fill: rgba(86, 88, 103, 1); } .sc-actionmenu--button.active { right: -5px; } .sc-actionmenu--button.active, .sc-menu--button.active { left: 0; right: 0; position: absolute; width: 100%; background: #4d8cff; z-index: 1; } .sc-actionmenu--button.active .sc-actionmenu-icon-wrapper, .sc-menu--button.active .sc-menu-icon-wrapper, .sc-actionmenu--button.active .sc-actionmenu-icon-wrapper .sc-menu-icon, .sc-menu--button.active .sc-menu-icon-wrapper .sc-menu-icon { display: block; } .sc-actionmenu--button.active .sc-menu-icon path, .sc-menu--button.active .sc-menu-icon path { fill: rgb(255, 255, 255); } .sc-actionmenu--button button.sc-actionmenu-icon-wrapper .sc-menu--button button.sc-menu-icon-wrapper { margin: 0 0 0 10px; width: 100%; } .sc-actionmenu--button.active button.sc-actionmenu-icon-wrapper, .sc-menu--button.active button.sc-menu-icon-wrapper { padding: 0 2px; } .menu-links { position: absolute; left: 0; right: 0; bottom: 55px; background: #fff; width: 100%; height: 0; overflow: hidden; z-index: 2; } .sc-menu--button > .menu-links { -webkit-transition: height 200ms ease-in; -moz-transition: height 200ms ease-in; -o-transition: height 200ms ease-in; transition: height 200ms ease-in; } .programs-list ul, .menu-links ul { list-style: none; margin: 0; padding: 0; } .programs-list ul li, .menu-links ul li { padding: 8px 12px; cursor: pointer; color: #2185d0; font-weight: 500; font-size: 14px; background: #fff; border-bottom: 1px solid #f4f7f9; } .programs-list ul li:last-child, .menu-links ul li:last-child { border-bottom: 0; } .programs-list ul li:hover, .menu-links ul li:hover { background: #f4f7f9; } .sc-actionmenu--button.active .menu-links, .sc-menu--button.active .menu-links { height: 111px; } .sc-actionmenu--button.active .menu-links ul, .sc-menu--button.active .menu-links ul { display: block; } .menu-links ul li:first-child { border-top: 3px solid #4d8cff; } button.sc-actionmenu-icon-wrapper p, button.sc-menu-icon-wrapper p { position: absolute; top: 18.6px; left: 52px; padding: 0; margin: 0; color: rgba(255, 255, 255, 0.4); font-size: 14px; font-weight: 500; display: none; } .optionsmenu.sc-actionmenu--button { width: 100%; } .optionsmenu button.sc-actionmenu-icon-wrapper p, .optionsmenu button.sc-menu-icon-wrapper p { left: 0; right: 52px; text-align: right; } .optionsmenu button.sc-actionmenu-icon-wrapper, .optionsmenu button.sc-menu-icon-wrapper { left: 0; right: 0; text-align: right; padding: 0; } .sc-actionmenu--button.active button.sc-actionmenu-icon-wrapper p, .sc-menu--button.active button.sc-menu-icon-wrapper p { display: block; }