123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483 |
- #conversation {
- display: flex;
- position: relative;
- flex-direction: column;
- background-image: url('../img/wallpaper_light.png?');
- height: 100%;
- .detail-header {
- .header-avatar {
- cursor: pointer;
- }
- .header-details {
- flex-grow: 1;
- cursor: pointer;
- overflow: hidden;
- > *:first-child {
- font-weight: bold;
- }
- }
- h3 {
- margin: 0 0 4px;
- padding: 0;
- font-size: 120%;
- }
- .conversation-header-details-detail,
- .conversation-header-details-name {
- display: inherit;
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- line-height: 1.3;
- white-space: nowrap;
- }
- }
- #conversation-is-private {
- display: flex;
- flex-grow: 1;
- align-items: center;
- justify-content: center;
- }
- #conversation-chat {
- @include scrollbar;
- flex-grow: 1;
- overflow: auto;
- overflow-y: scroll;
- }
- #conversation-quote {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- background-color: #ffffff;
- padding: 8px;
- .message-quote {
- @include word-wrap;
- max-width: 85%;
- max-height: 9.4em;
- overflow: hidden;
- line-height: 1.3em;
- }
- }
- #scrolljump {
- $scrolljump-height: 36px;
- position: relative;
- right: 16px;
- bottom: 8px + $scrolljump-height;
- align-self: flex-end;
- z-index: 15;
- outline: none;
- height: 0;
- svg {
- cursor: pointer;
- width: $scrolljump-height;
- height: $scrolljump-height;
- }
- }
- #conversation-footer {
- background-color: $dark-background-color;
- .chat-input {
- margin: 0;
- padding: 0;
- width: 100%;
- }
- #mention-selector {
- padding: 0;
- ul {
- margin: 0;
- padding: 0;
- list-style-type: none;
- > li {
- cursor: pointer;
- &:not(:hover) {
- &:not(.selected) {
- background-color: #ffffff;
- }
- }
- }
- }
- .contact-badge {
- .avatar-box {
- margin: $main-padding;
- padding: 0;
- .avatar {
- width: 28px;
- height: 28px;
- img {
- width: inherit;
- height: inherit;
- }
- > .work-indicator,
- > .home-indicator {
- top: 15px;
- width: 14px;
- height: 14px;
- }
- }
- }
- .contact-badge-identity {
- margin-right: $main-padding;
- }
- }
- }
- }
- }
- // Quoting
- .message-quote-content {
- border-left: 5px solid #0000ff;
- padding-left: 5px;
- font-size: .9em;
- .message-name {
- display: block;
- margin-bottom: 8px;
- font-size: .9em;
- font-weight: bold;
- }
- .message-quote {
- @include word-wrap;
- }
- }
- #conversation-chat .chat {
- display: flex;
- flex-direction: column;
- margin: 0;
- padding: 0;
- min-height: 100%;
- li {
- display: inline-block;
- margin: 0 0 $main-padding;
- padding: 0;
- &.load-more {
- margin-top: $main-padding;
- text-align: center;
- .loading {
- @include message-bubble-shadow;
- display: inline-block;
- border-radius: 50%;
- background-color: #ffffff;
- padding: 6px;
- width: 30px;
- height: 30px;
- }
- }
- &.typing-indicator {
- .message-body {
- min-width: 15px;
- }
- }
- }
- .message {
- display: flex;
- flex-direction: row;
- align-items: flex-start;
- md-menu {
- &:not(.md-open) {
- position: relative;
- visibility: hidden;
- }
- }
- &:hover {
- md-menu {
- visibility: visible;
- }
- }
- .message-quote-content {
- margin-bottom: 8px;
- }
- .loading-element {
- margin: 0;
- > :first-child {
- width: 50px;
- height: 50px;
- }
- }
- // arrow
- .bubble-triangle {
- position: relative;
- width: $bubble-triangle-size;
- height: $bubble-triangle-size;
- &::after {
- @include message-bubble-triangle;
- z-index: 3;
- }
- &::before {
- @include message-bubble-triangle;
- @include message-bubble-shadow;
- z-index: 1;
- }
- }
- }
- .message-body {
- @include message-bubble-shadow;
- display: flex;
- flex-direction: column;
- z-index: 2;
- border-radius: 5px;
- padding: 8px;
- min-width: 64px;
- max-width: 85%;
- &:not(.text-message-body) {
- .thumbnail-loader {
- width: 100%;
- filter: blur(10px);
- }
- .thumbnail {
- text-align: center;
- }
- .message-text {
- display: inline-block;
- margin-top: 8px;
- }
- }
- .message-name {
- margin-bottom: 8px;
- font-size: .9em;
- font-weight: bold;
- // Emoji styling
- > span {
- &:not(.ng-binding) {
- transform: scale(.6);
- }
- }
- }
- .message-text {
- @include word-wrap;
- line-height: 1.3em;
- a {
- cursor: pointer;
- }
- span {
- white-space: pre-wrap;
- }
- }
- .message-media {
- location {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 4px 0;
- .location-message {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: flex-start;
- cursor: pointer;
- .location-details {
- margin-left: 8px;
- .description {
- margin-bottom: 6px;
- }
- .details {
- line-height: 1.2em;
- font-size: .9em;
- }
- }
- }
- }
- audio {
- &:focus {
- outline: none;
- }
- }
- }
- .message-info {
- display: flex;
- flex-direction: row;
- align-items: flex-end;
- margin-top: 4px;
- height: 16px;
- color: #808080;
- font-size: .8em;
- .message-state {
- margin-left: 5px;
- i {
- position: relative;
- top: 2px;
- }
- i.timeout {
- color: $status-error;
- }
- }
- md-icon {
- width: 1em;
- min-width: 1em;
- height: 1em;
- min-height: 1em;
- vertical-align: top;
- font-size: 1em;
- }
- }
- }
- .message-in {
- .message-body {
- position: relative;
- background-color: $message-bubble-color-in;
- }
- // arrow
- .bubble-triangle {
- margin-left: $main-padding;
- &::after {
- background-color: $message-bubble-color-in;
- }
- &::before {
- background-color: $message-bubble-color-in;
- }
- }
- .message-info {
- justify-content: flex-start;
- }
- }
- .message-out {
- flex-direction: row-reverse;
- .message-body {
- position: relative;
- background-color: $message-bubble-color-out;
- }
- // arrow
- .bubble-triangle {
- left: 0 - $bubble-triangle-size;
- &::after {
- background-color: $message-bubble-color-out;
- }
- &::before {
- background-color: $message-bubble-color-out;
- }
- }
- .message-info {
- justify-content: flex-end;
- }
- }
- .message-avatar {
- flex-shrink: 0;
- margin-left: 8px;
- cursor: pointer;
- }
- .message-status {
- justify-content: center;
- .message-body {
- background-color: #fcf8e3;
- .message-text {
- margin-top: 0;
- }
- }
- }
- .unread-separator {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- justify-content: space-between;
- margin: 16px 8px;
- width: 100%;
- .line {
- flex-grow: 1;
- border-bottom: 1px solid #bbbbbb;
- text-align: center;
- line-height: 0;
- }
- .text {
- margin: 0;
- padding: 0 10px;
- text-shadow: 0 0 4px #bbbbbb;
- font-size: .9em;
- font-weight: 300;
- }
- }
- .message-info {
- .message-meta-item {
- padding-right: 5px;
- &::after {
- padding-left: 5px;
- content: '|';
- }
- }
- }
- }
- md-menu-item {
- a span {
- color: $material-grey-dark;
- }
- }
|