123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- #conversation {
- background-image: url("../img/wallpaper_light.png?");
- height: 100%;
- display: flex;
- flex-direction: column;
- position: relative;
- .detail-header {
- .header-avatar {
- @include mouse-hand;
- }
- .header-details {
- @include mouse-hand;
- overflow: hidden;
- flex-grow: 1;
- & > *:first-child {
- font-weight: bold;
- }
- }
- h3 {
- margin: 0 0 4px 0;
- padding: 0;
- font-size: 120%;
- }
- .conversation-header-details-detail, .conversation-header-details-name {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 100%;
- display: inherit;
- line-height: 1.3;
- }
- }
- #conversation-is-private {
- flex-grow: 1;
- align-items: center;
- justify-content: center;
- display: flex;
- }
- #conversation-chat {
- flex-grow: 1;
- overflow: auto;
- }
- #conversation-quote {
- background-color: white;
- padding: 8px;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- .message-quote {
- @include word-wrap;
- line-height: 1.3em;
- max-width: 85%;
- }
- .md-icon-button {
- }
- }
- $footer-height: 64px;
- $scrolljump-height: 36px;
- #scrolljump {
- align-self: flex-end;
- height: 0;
- position: relative;
- right: 16px;
- bottom: 8px + $scrolljump-height;
- z-index: 15;
- outline: none;
- svg {
- width: $scrolljump-height;
- height: $scrolljump-height;
- @include mouse-hand;
- }
- }
- #conversation-footer {
- background-color: $dark-background-color;
- .chat-input {
- width: 100%;
- margin: 0;
- padding: 0;
- }
- #mention-selector {
- padding: 0;
- ul {
- margin: 0;
- padding: 0;
- list-style-type: none;
- > li {
- &:not(:hover):not(.selected) {
- background-color: white;
- }
- @include mouse-hand;
- }
- }
- .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 blue;
- padding-left: 5px;
- font-size: 0.9em;
- .message-name {
- display: block;
- font-weight: bold;
- font-size: 0.9em;
- margin-bottom: 8px;
- }
- .message-quote {
- @include word-wrap;
- }
- }
- #conversation-chat .chat {
- display: flex;
- flex-direction: column;
- min-height: 100%;
- margin: 0;
- padding: 0;
- li {
- margin: 0 0 $main-padding 0;
- padding: 0;
- display: inline-block;
- &.load-more {
- margin-top: $main-padding;
- text-align: center;
- .loading {
- height: 30px;
- width: 30px;
- background-color: white;
- border-radius: 50%;
- display: inline-block;
- padding: 6px;
- @include message-bubble-shadow;
- }
- }
- &.typing-indicator {
- .message-body {
- min-width: 15px;
- }
- }
- }
- .message {
- display: flex;
- flex-direction: row;
- align-items: flex-start;
- md-menu:not(.md-open) {
- visibility: hidden;
- position: relative;
- }
- &: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 {
- -webkit-border-radius:5px;
- -moz-border-radius:5px;
- border-radius:5px;
- z-index: 2;
- max-width: 85%;
- &:not(.text-message-body) {
- // set fixed height to thumbnails
- .thumbnail-loader {
- position: absolute;
- overflow: hidden;
- width: calc(100%);
- height: calc(100%);
- max-width: 100%;
- max-height: 100%;
- img {
- filter: blur(10px);
- width: 100%;
- }
- }
- .thumbnail {
- text-align: center;
- max-width: 100%;
- }
- .message-text {
- margin-top: 8px;
- display: inline-block;
- }
- }
- }
- .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 {
- background-color: $message-bubble-color-out;
- position: relative;
- }
- /* right arrow */
- /* 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 {
- margin-left: 8px;
- flex-shrink: 0;
- @include mouse-hand;
- }
- .message-body {
- display: flex;
- flex-direction: column;
- padding: 8px;
- min-width: 64px;
- @include message-bubble-shadow;
- .message-name {
- font-weight: bold;
- font-size: 0.9em;
- margin-bottom: 8px;
- // Emoji styling
- > span:not(.ng-binding) {
- transform: scale(0.6);
- }
- }
- .message-text {
- @include word-wrap;
- line-height: 1.3em;
- a {
- @include mouse-hand;
- }
- span.e1.large-emoji {
- transform: scale(1.0);
- margin: 1px 4px 1px 0px;
- }
- }
- .message-media {
- location {
- display: flex;
- align-items: center;
- flex-direction: column;
- padding: 4px 0;
- .location-message {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- @include mouse-hand;
- .location-details {
- margin-left: 8px;
- .description {
- margin-bottom: 6px;
- }
- .details {
- font-size: 0.9em;
- line-height: 1.2em;
- }
- }
- }
- }
- audio:focus {
- outline: none;
- }
- }
- .message-info {
- height: 16px;
- margin-top: 4px;
- color: gray; // TODO: Extract color
- font-size: 0.8em;
- display: flex;
- flex-direction: row;
- align-items: flex-end;
- .message-state {
- margin-left: 5px;
- i {
- position: relative;
- top: 2px;
- }
- i.timeout {
- color: $status-error;
- }
- }
- md-icon {
- font-size: 1em;
- height: 1em;
- width: 1em;
- min-height: 1em;
- min-width: 1em;
- vertical-align: top;
- }
- }
- }
- .message-status {
- justify-content: center;
- .message-body {
- background-color: #fcf8e3; // TODO: Extract color
- .message-text {
- margin-top: 0;
- }
- }
- }
- .unread-separator {
- width: 100%;
- margin: 16px 8px;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: space-between;
- align-items: center;
- .line {
- text-align: center;
- border-bottom: 1px solid #bbb; // TODO: Extract color
- line-height: 0;
- flex-grow: 1;
- }
- .text {
- padding: 0 10px;
- margin: 0;
- font-weight: 300;
- font-size: 0.9em;
- text-shadow: 0px 0px 4px #bbb;
- }
- }
- .message-info {
- .message-meta-item {
- padding-right: 5px;
- &:after {
- content: "|";
- padding-left: 5px;
- }
- }
- }
- }
- md-menu-item {
- a span {
- color: $material-grey-dark;
- }
- }
|