123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- #converse-embedded-chat,
- #conversejs {
- .flyout {
- border-radius: $chatbox-border-radius;
- @media screen and (max-height: $mobile-landscape-height) {
- border-radius: 0;
- }
- @media screen and (max-width: $mobile-portrait-length) {
- border-radius: 0;
- }
- bottom: $chatbox-hover-height;
- display: block;
- position: absolute;
- @media screen and (max-height: $mobile-landscape-height) {
- bottom: 0;
- }
- @media screen and (max-width: $mobile-portrait-length) {
- bottom: 0;
- }
- }
- .chat-head {
- color: #ffffff;
- font-size: 100%;
- height: $chat-head-height;
- margin: 0;
- padding: 0.5em;
- position: relative;
- .avatar {
- margin-right: 0.5em;
- border-radius: 50%;
- float: left;
- }
- &.chat-head-chatbox {
- background-color: $chat-head-color;
- }
- .user-custom-message {
- color: white;
- font-size: 75%;
- font-style: italic;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin: 0;
- padding-top: 0.2em;
- }
- }
- .chatbox-btn {
- border-radius: 25%;
- border: none;
- color: white;
- cursor: pointer;
- display: inline-block;
- float: right;
- font-size: $box-close-font-size;
- margin: 0 0.2em;
- padding: 0.3em;
- text-decoration: none;
- &:active {
- position: relative;
- top: 1px;
- }
- &.button-on {
- background-color: white;
- color: $chat-head-color;
- }
- }
- .chatbox {
- display: block;
- text-align: left;
- float: right;
- height: $bottom-gutter-height;
- margin: 0 $chat-gutter;
- width: $chat-width;
- @media screen and (max-height: $mobile-landscape-height) {
- margin: 0;
- width: $mobile-chat-width;
- }
- @media screen and (max-width: $mobile-portrait-length) {
- margin: 0;
- width: $mobile-chat-width;
- }
- .box-flyout {
- background-color: white;
- box-shadow: 1px 3px 5px 3px rgba(0, 0, 0, 0.4);
- height: $chat-height;
- min-height: $chat-height/2;
- min-width: $chat-width;
- width: $chat-width;
- z-index: 1;
- @media screen and (max-height: $mobile-landscape-height) {
- height: $mobile-chat-height;
- width: $mobile-chat-width;
- height: 100vh;
- }
- @media screen and (max-width: $mobile-portrait-length) {
- height: $mobile-chat-height;
- width: $mobile-chat-width;
- height: 100vh;
- }
- }
- .chat-title {
- color: $chat-head-text-color;
- line-height: 15px;
- display: block;
- text-overflow: ellipsis;
- overflow: hidden;
- a {
- color: $chat-head-text-color;
- width: 100%;
- }
- }
- .chat-body {
- background-color: white;
- border-bottom-left-radius: $chatbox-border-radius;
- border-bottom-right-radius: $chatbox-border-radius;
- @media screen and (max-height: $mobile-landscape-height) {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
- }
- @media screen and (max-width: $mobile-portrait-length) {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
- }
- border-top: 0;
- height: 289px;
- @include calc(height, '100% - #{$chat-head-height}');
- p {
- color: $text-color;
- font-size: $font-size;
- margin: 0;
- padding: 5px;
- }
- .chat-info {
- line-height: $line-height-small;
- color: $chat-head-color;
- font-size: $font-size-small;
- margin: 0.3em;
- &.chat-event {
- clear: left;
- font-style: italic;
- }
- &.chat-error {
- color: $warning-color;
- font-weight: bold;
- }
- &.chat-date {
- display: inline-block;
- margin-top: 1em;
- }
- }
- .chat-image {
- max-height: 24em;
- max-width: 100%;
- }
- .chat-action {
- font-style: italic;
- }
- .chat-message {
- margin: 0.3em;
- span {
- &.chat-msg-author {
- font-weight: bold;
- white-space: nowrap;
- float: left;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- &.chat-msg-them {
- color: $message-them-color;
- }
- &.chat-msg-me {
- color: $link-color;
- }
- &.chat-msg-content {
- max-width: 100%;
- word-wrap: break-word;
- }
- }
- }
- .delayed {
- .chat-msg-them {
- color: #FB5D50;
- }
- .chat-msg-me {
- color: #7EABBB;
- }
- }
- }
- .new-msgs-indicator {
- position: absolute;
- width: 100%;
- cursor: pointer;
- background-color: $chat-head-color;
- color: $light-background-color;
- padding: 0.5em;
- font-size: 0.9em;
- text-align: center;
- z-index: 20;
- white-space: nowrap;
- }
- .chat-content {
- position: relative;
- padding: 0.5em;
- font-size: 13px;
- color: $text-color;
- overflow-y: auto;
- border: 0;
- background-color: #ffffff;
- line-height: 1.3em;
- height: 206px;
- height: calc(100% - #{$toolbar-height + $chat-textarea-height +1px});
- }
- .chat-content-sendbutton {
- height: calc(100% - #{$toolbar-height + $chat-textarea-height + $send-button-height + 2*$send-button-margin});
- }
- .dropdown { /* status dropdown styles */
- background-color: $light-background-color;
- dd {
- margin: 0;
- padding: 0;
- position: relative;
- }
- }
- form.sendXMPPMessage {
- -moz-background-clip: padding;
- -webkit-background-clip: padding-box;
- @include border-bottom-radius($chatbox-border-radius);
- background-clip: padding-box;
- border-top: 1px solid #BBB;
- border: 0;
- margin: 0;
- padding: 0;
- position: relative;
- height: #{$chat-textarea-height + $toolbar-height};
- min-width: $chat-width;
- @media screen and (max-height: $mobile-landscape-height) {
- width: 100%;
- }
- @media screen and (max-width: $mobile-portrait-length) {
- width: 100%;
- }
- .chat-textarea {
- @include border-bottom-radius($chatbox-border-radius);
- border: 0;
- height: $chat-textarea-height;
- padding: 0.5em;
- width: 100%;
- resize: none;
- }
- .send-button {
- position: absolute;
- left: $send-button-margin;
- @include calc(width, '100% - #{2*$send-button-margin}');
- background-color: $chat-head-color;
- color: $inverse-link-color;
- font-size: 80%;
- height: $send-button-height;
- bottom: -$send-button-height - $send-button-margin;
- }
- .chat-toolbar {
- box-sizing: border-box;
- margin: 0;
- padding: 5px;
- height: $toolbar-height;
- display: block;
- background-color: $toolbar-color;
- a {
- font-size: $font-size;
- color: $text-color;
- text-decoration: none;
- text-shadow: none;
- }
- .emoji-picker {
- margin-bottom: $toolbar-height + 5px;
- }
- .toolbar-picker-panel {
- a {
- color: $link-color;
- }
- }
- .chat-toolbar-text {
- font-size: 12px;
- padding-right: 3px;
- }
- .unencrypted a,
- .unencrypted {
- color: $text-color;
- .toolbar-picker-panel {
- a {
- color: $link-color;
- }
- }
- }
- .unverified a,
- .unverified {
- color: #cf5300;
- }
- .private a,
- .private {
- color: #4b7003;
- }
- .toggle-occupants,
- .toggle-clear,
- .toggle-otr {
- float: right;
- }
- li {
- display: inline-block;
- list-style: none;
- padding: 0 3px 0 3px;
- cursor: pointer;
- margin-top: 1px;
- }
- li:hover {
- cursor: pointer;
- }
- ul {
- background: #fff;
- bottom: 100%;
- box-shadow: -1px -1px 2px 0 rgba(0, 0, 0, 0.4);
- font-size: 12px;
- margin: 0;
- position: absolute;
- right: 0;
- li {
- cursor: pointer;
- list-style: none;
- position: relative;
- a:hover {
- color: #8f2831;
- }
- }
- }
- li {
- margin-left: 0;
- }
- .toggle-smiley {
- color: $text-color;
- padding-left: 5px;
- ul {
- &.emoji-category-picker {
- z-index: 100;
- .picked {
- background-color: $highlight-color;
- }
- }
- &.emoji-picker {
- height: 250px;
- overflow: scroll;
- }
- left: 0;
- li {
- font-size: $font-size;
- padding: 5px;
- z-index: 98;
- }
- li:hover {
- background-color: $highlight-color;
- }
- }
- }
- .toggle-otr {
- ul {
- li {
- padding: 7px;
- background-color: white;
- display: block;
- z-index: 99;
- a {
- -moz-transition: background-color 0.2s ease-in-out;
- -webkit-transition: background-color 0.2s ease-in-out;
- transition: background-color 0.2s ease-in-out;
- display: block;
- padding: 1px;
- text-decoration: none;
- }
- }
- li:hover {
- background-color: $highlight-color;
- }
- }
- }
- }
- }
- .dragresize {
- background: transparent;
- border: 0;
- margin: 0;
- position: absolute;
- top: 0;
- z-index: 20;
- &-top {
- cursor: n-resize;
- height: 5px;
- width: 100%;
- }
- &-left {
- cursor: w-resize;
- width: 5px;
- height: 100%;
- left: 0;
- }
- &-topleft {
- cursor: nw-resize;
- width: 15px;
- height: 15px;
- top: 0;
- left: 0;
- }
- }
- }
- }
|