UNPKG

@risecx/carespace-chat-ui

Version:

carespace-chat-ui React component

82 lines (73 loc) 1.58 kB
.sc-launcher { width: 60px; height: 60px; background-color: #4e8cff; background-position: center; background-repeat: no-repeat; position: fixed; right: 25px; bottom: 25px; border-radius: 50%; box-shadow: none; transition: box-shadow 0.2s ease-in-out; } .sc-launcher:before { content: ''; position: relative; display: block; width: 60px; height: 60px; border-radius: 50%; transition: box-shadow 0.2s ease-in-out; } .sc-launcher .sc-open-icon, .sc-launcher .sc-closed-icon { width: 60px; height: 60px; position: fixed; right: 25px; bottom: 25px; transition: opacity 100ms ease-in-out, transform 100ms ease-in-out; } .sc-launcher .sc-closed-icon { transition: opacity 100ms ease-in-out, transform 100ms ease-in-out; width: 60px; height: 60px; } .sc-launcher .sc-open-icon { padding: 20px; box-sizing: border-box; opacity: 0; } .sc-launcher.opened .sc-open-icon { transform: rotate(-90deg); opacity: 1; } .sc-launcher.opened .sc-closed-icon { transform: rotate(-90deg); opacity: 0; } .sc-launcher.opened:before { box-shadow: 0px 0px 400px 250px rgba(148, 149, 150, 0.2); } .sc-launcher:hover { box-shadow: 0 0px 27px 1.5px rgba(0,0,0,0.2); } .sc-new-messages-count { position: absolute; top: -3px; left: 41px; display: flex; justify-content: center; flex-direction: column; border-radius: 50%; width: 22px; height: 22px; background: #ff4646; color: white; text-align: center; margin: auto; font-size: 12px; font-weight: 500; box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.3); }