react-code-dataset
/
wp-calypso
/packages
/help-center
/src
/components
/help-center-support-chat-message.scss
| @import "variables"; | |
| .help-center-support-chat__conversation-container { | |
| display: flex; | |
| flex-direction: row; | |
| justify-content: space-between; | |
| background-color: transparent; | |
| padding: 16px; | |
| gap: 6px; | |
| max-height: 72px; | |
| align-items: center; | |
| border-bottom: 1px solid; | |
| border-color: rgba(0, 0, 0, 0.1); | |
| text-decoration: none; | |
| &:hover { | |
| border-bottom: 1px solid; | |
| border-color: rgba(0, 0, 0, 0.2) ; | |
| .help-center-support-chat__open-conversation { | |
| fill: $help-center-blue; | |
| } | |
| } | |
| &.is-unread-message { | |
| background-color: #EBF2FC; | |
| .help-center-support-chat__open-conversation { | |
| fill: $help-center-blue; | |
| } | |
| } | |
| &:not(.is-unread-message) { | |
| &.is-closed, &.is-solved { | |
| background-color: var(--studio-gray-0); | |
| } | |
| } | |
| & > * { | |
| display: flex; | |
| } | |
| .help-center-support-chat__conversation-avatar { | |
| align-self: center; | |
| flex-shrink: 0; | |
| position: relative; | |
| img { | |
| border-radius: 50%; | |
| } | |
| &.has-unread-messages { | |
| margin-right: 10px; | |
| } | |
| .help-center-support-chat__conversation-badge { | |
| position: absolute; | |
| top: 50%; | |
| right: -0%; | |
| transform: translate(50%, -50%); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| border: 2px solid #FFF; | |
| border-radius: 12px; /* stylelint-disable-line scales/radii */ | |
| box-sizing: border-box; | |
| min-width: 26px; | |
| height: 20px; | |
| font-size: 12px; | |
| background-color: $help-center-blue; | |
| color: #FFF; | |
| } | |
| } | |
| .help-center-support-chat__conversation-information { | |
| display: flex; | |
| flex-direction: column; | |
| flex-grow: 1; | |
| width: 80%; | |
| .help-center-support-chat__conversation-information-message { | |
| display: -webkit-box; | |
| color: #101517; | |
| font-weight: 500; | |
| font-size: 0.875rem; | |
| line-height: 20px; | |
| letter-spacing: -0.15px; | |
| text-overflow: ellipsis; | |
| overflow: hidden; | |
| line-clamp: 1; | |
| -webkit-line-clamp: 1; | |
| -webkit-box-orient: vertical; | |
| } | |
| .help-center-support-chat__conversation-sub-information { | |
| display: flex; | |
| color: #787C82; | |
| font-weight: 400; | |
| font-size: 0.75rem; | |
| line-height: 20px; | |
| align-items: center; | |
| gap: 4px; | |
| .help-center-support-chat__conversation-information-name { | |
| text-overflow: ellipsis; | |
| display: -webkit-box; | |
| overflow: hidden; | |
| line-clamp: 1; | |
| -webkit-line-clamp: 1; | |
| -webkit-box-orient: vertical; | |
| } | |
| .help-center-support-chat__conversation-information-time { | |
| flex: 0 0 auto; | |
| } | |
| } | |
| } | |
| .help-center-support-chat__open-conversation { | |
| display: flex; | |
| align-items: center; | |
| fill: #787C82; | |
| } | |
| } | |
| .help-center-chat-history__no-results { | |
| display: flex; | |
| flex-direction: row; | |
| justify-content: center; | |
| border-top: solid 1px #C3C4C7; | |
| padding-top: 20px; | |
| } | |