2017-01-16 22:15:07 +01:00
|
|
|
#converse-embedded-chat,
|
2015-10-27 11:17:55 +01:00
|
|
|
#conversejs {
|
2015-10-29 09:12:40 +01:00
|
|
|
.flyout {
|
|
|
|
border-radius: $chatbox-border-radius;
|
2016-04-01 12:53:15 +02:00
|
|
|
@media screen and (max-height: $mobile-landscape-height) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
@media screen and (max-width: $mobile-portrait-length) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2015-10-29 09:12:40 +01:00
|
|
|
bottom: $chatbox-hover-height;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2016-04-01 12:53:15 +02:00
|
|
|
@media screen and (max-height: $mobile-landscape-height) {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
@media screen and (max-width: $mobile-portrait-length) {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2015-10-29 09:12:40 +01:00
|
|
|
}
|
|
|
|
.chat-head {
|
|
|
|
color: #ffffff;
|
|
|
|
font-size: 100%;
|
|
|
|
height: $chat-head-height;
|
|
|
|
margin: 0;
|
2017-02-18 18:15:16 +01:00
|
|
|
padding: 0.5em;
|
2015-10-29 09:12:40 +01:00
|
|
|
position: relative;
|
|
|
|
.avatar {
|
2015-10-31 19:29:43 +01:00
|
|
|
margin-right: 0.5em;
|
2015-10-30 18:10:09 +01:00
|
|
|
border-radius: 50%;
|
2015-10-29 09:12:40 +01:00
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
&.chat-head-chatbox {
|
|
|
|
background-color: $chat-head-color;
|
|
|
|
}
|
2015-10-31 19:29:43 +01:00
|
|
|
.user-custom-message {
|
|
|
|
color: white;
|
2017-04-04 13:20:22 +02:00
|
|
|
font-size: 75%;
|
2015-10-31 19:29:43 +01:00
|
|
|
font-style: italic;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
margin: 0;
|
2017-04-04 13:20:22 +02:00
|
|
|
padding-top: 0.2em;
|
2015-10-31 19:29:43 +01:00
|
|
|
}
|
2015-10-29 09:12:40 +01:00
|
|
|
}
|
|
|
|
.chatbox-btn {
|
2017-03-01 22:12:30 +01:00
|
|
|
border-radius: 25%;
|
|
|
|
border: none;
|
2015-10-29 09:12:40 +01:00
|
|
|
color: white;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
float: right;
|
|
|
|
font-size: $box-close-font-size;
|
2017-03-01 22:12:30 +01:00
|
|
|
margin: 0 0.2em;
|
|
|
|
padding: 0.3em;
|
2015-10-29 09:12:40 +01:00
|
|
|
text-decoration: none;
|
|
|
|
&:active {
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
}
|
2016-06-27 23:50:38 +02:00
|
|
|
&.button-on {
|
|
|
|
background-color: white;
|
|
|
|
color: $chat-head-color;
|
|
|
|
}
|
2015-10-29 09:12:40 +01:00
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
.chatbox {
|
|
|
|
display: block;
|
2017-01-16 22:15:07 +01:00
|
|
|
text-align: left;
|
2015-10-27 11:17:55 +01:00
|
|
|
float: right;
|
|
|
|
height: $bottom-gutter-height;
|
|
|
|
margin: 0 $chat-gutter;
|
|
|
|
width: $chat-width;
|
2016-04-01 12:53:15 +02:00
|
|
|
@media screen and (max-height: $mobile-landscape-height) {
|
|
|
|
margin: 0;
|
|
|
|
width: $mobile-chat-width;
|
|
|
|
}
|
|
|
|
@media screen and (max-width: $mobile-portrait-length) {
|
2015-10-27 11:17:55 +01:00
|
|
|
margin: 0;
|
|
|
|
width: $mobile-chat-width;
|
|
|
|
}
|
|
|
|
.box-flyout {
|
2015-11-01 03:31:32 +01:00
|
|
|
background-color: white;
|
2015-10-27 11:17:55 +01:00
|
|
|
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;
|
2016-04-01 12:53:15 +02:00
|
|
|
@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) {
|
2015-10-27 11:17:55 +01:00
|
|
|
height: $mobile-chat-height;
|
|
|
|
width: $mobile-chat-width;
|
2016-04-01 12:53:15 +02:00
|
|
|
height: 100vh;
|
2015-10-27 11:17:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.chat-title {
|
2015-10-31 19:29:43 +01:00
|
|
|
color: $chat-head-text-color;
|
|
|
|
line-height: 15px;
|
|
|
|
display: block;
|
2015-11-01 03:00:31 +01:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2015-10-27 11:17:55 +01:00
|
|
|
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;
|
2016-04-01 12:53:15 +02:00
|
|
|
@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;
|
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
border-top: 0;
|
|
|
|
height: 289px;
|
|
|
|
@include calc(height, '100% - #{$chat-head-height}');
|
|
|
|
p {
|
|
|
|
color: $text-color;
|
|
|
|
font-size: $font-size;
|
|
|
|
margin: 0;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2015-10-28 08:33:50 +01:00
|
|
|
.chat-info {
|
2017-06-20 11:43:54 +02:00
|
|
|
line-height: $line-height-small;
|
2017-06-17 23:48:46 +02:00
|
|
|
color: $chat-head-color;
|
2017-06-20 11:43:54 +02:00
|
|
|
font-size: $font-size-small;
|
2015-10-28 10:03:37 +01:00
|
|
|
margin: 0.3em;
|
2015-10-28 09:49:28 +01:00
|
|
|
&.chat-event {
|
|
|
|
clear: left;
|
2015-10-29 10:21:31 +01:00
|
|
|
font-style: italic;
|
2015-10-28 09:49:28 +01:00
|
|
|
}
|
|
|
|
&.chat-error {
|
|
|
|
color: $warning-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
&.chat-date {
|
|
|
|
display: inline-block;
|
2016-05-25 08:23:00 +02:00
|
|
|
margin-top: 1em;
|
2015-10-28 09:49:28 +01:00
|
|
|
}
|
2015-10-28 08:33:50 +01:00
|
|
|
}
|
2016-05-28 13:13:49 +02:00
|
|
|
.chat-image {
|
2017-06-17 23:48:46 +02:00
|
|
|
max-height: 24em;
|
2016-05-28 13:13:49 +02:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
2017-02-28 08:58:17 +01:00
|
|
|
.chat-action {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2015-10-28 08:33:50 +01:00
|
|
|
.chat-message {
|
2015-10-28 10:03:37 +01:00
|
|
|
margin: 0.3em;
|
2015-10-28 08:33:50 +01:00
|
|
|
span {
|
2015-10-28 09:52:19 +01:00
|
|
|
&.chat-msg-author {
|
2015-10-28 09:49:28 +01:00
|
|
|
font-weight: bold;
|
|
|
|
white-space: nowrap;
|
|
|
|
float: left;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2015-10-28 09:52:19 +01:00
|
|
|
&.chat-msg-them {
|
2015-10-28 08:33:50 +01:00
|
|
|
color: $message-them-color;
|
|
|
|
}
|
2015-10-28 09:52:19 +01:00
|
|
|
&.chat-msg-me {
|
2015-10-28 08:33:50 +01:00
|
|
|
color: $link-color;
|
|
|
|
}
|
2015-10-28 09:52:19 +01:00
|
|
|
&.chat-msg-content {
|
2015-10-28 10:03:37 +01:00
|
|
|
max-width: 100%;
|
2015-10-28 09:49:28 +01:00
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2015-10-28 08:33:50 +01:00
|
|
|
}
|
|
|
|
}
|
2015-10-28 09:49:28 +01:00
|
|
|
.delayed {
|
2015-10-28 09:52:19 +01:00
|
|
|
.chat-msg-them {
|
2015-10-28 09:49:28 +01:00
|
|
|
color: #FB5D50;
|
|
|
|
}
|
2015-10-28 09:52:19 +01:00
|
|
|
.chat-msg-me {
|
2015-10-28 09:49:28 +01:00
|
|
|
color: #7EABBB;
|
|
|
|
}
|
2015-10-28 08:33:50 +01:00
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
}
|
2016-05-28 10:55:03 +02:00
|
|
|
.new-msgs-indicator {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: $chat-head-color;
|
|
|
|
color: $light-background-color;
|
2017-06-17 23:48:46 +02:00
|
|
|
padding: 0.5em;
|
2016-05-28 10:55:03 +02:00
|
|
|
font-size: 0.9em;
|
|
|
|
text-align: center;
|
|
|
|
z-index: 20;
|
2017-06-17 23:48:46 +02:00
|
|
|
white-space: nowrap;
|
2016-05-28 10:55:03 +02:00
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
.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});
|
|
|
|
}
|
2017-03-30 12:40:17 +02:00
|
|
|
.chat-content-sendbutton {
|
2017-03-31 22:41:06 +02:00
|
|
|
height: calc(100% - #{$toolbar-height + $chat-textarea-height + $send-button-height + 2*$send-button-margin});
|
2017-03-30 12:40:17 +02:00
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
|
|
|
|
.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;
|
2016-04-01 12:53:15 +02:00
|
|
|
@media screen and (max-height: $mobile-landscape-height) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
@media screen and (max-width: $mobile-portrait-length) {
|
2015-10-27 11:17:55 +01:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.chat-textarea {
|
|
|
|
@include border-bottom-radius($chatbox-border-radius);
|
|
|
|
border: 0;
|
|
|
|
height: $chat-textarea-height;
|
|
|
|
padding: 0.5em;
|
|
|
|
width: 100%;
|
|
|
|
resize: none;
|
|
|
|
}
|
2017-03-30 12:40:17 +02:00
|
|
|
.send-button {
|
|
|
|
position: absolute;
|
2017-03-30 12:34:49 +02:00
|
|
|
left: $send-button-margin;
|
2017-03-31 22:41:06 +02:00
|
|
|
@include calc(width, '100% - #{2*$send-button-margin}');
|
2017-03-30 12:34:49 +02:00
|
|
|
background-color: $chat-head-color;
|
|
|
|
color: $inverse-link-color;
|
2017-03-30 12:40:17 +02:00
|
|
|
font-size: 80%;
|
2017-03-30 12:34:49 +02:00
|
|
|
height: $send-button-height;
|
2017-03-31 22:41:06 +02:00
|
|
|
bottom: -$send-button-height - $send-button-margin;
|
2017-03-30 12:34:49 +02:00
|
|
|
|
2017-03-30 12:40:17 +02:00
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
.chat-toolbar {
|
2017-02-03 00:16:15 +01:00
|
|
|
box-sizing: border-box;
|
2015-10-27 11:17:55 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 5px;
|
|
|
|
height: $toolbar-height;
|
|
|
|
display: block;
|
2015-10-29 10:21:31 +01:00
|
|
|
background-color: $toolbar-color;
|
2015-10-27 11:17:55 +01:00
|
|
|
a {
|
2017-02-03 00:16:15 +01:00
|
|
|
font-size: $font-size;
|
2017-06-19 15:41:59 +02:00
|
|
|
color: $text-color;
|
2017-02-03 00:16:15 +01:00
|
|
|
text-decoration: none;
|
|
|
|
text-shadow: none;
|
2015-10-27 11:17:55 +01:00
|
|
|
}
|
|
|
|
.chat-toolbar-text {
|
|
|
|
font-size: 12px;
|
|
|
|
padding-right: 3px;
|
|
|
|
}
|
|
|
|
.unencrypted a,
|
|
|
|
.unencrypted {
|
2017-06-19 15:41:59 +02:00
|
|
|
color: $text-color;
|
2017-07-15 11:03:22 +02:00
|
|
|
.toolbar-menu {
|
2017-06-17 23:48:46 +02:00
|
|
|
a {
|
|
|
|
color: $link-color;
|
|
|
|
}
|
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
}
|
|
|
|
.unverified a,
|
|
|
|
.unverified {
|
|
|
|
color: #cf5300;
|
|
|
|
}
|
|
|
|
.private a,
|
|
|
|
.private {
|
|
|
|
color: #4b7003;
|
|
|
|
}
|
2015-10-31 17:30:06 +01:00
|
|
|
.toggle-occupants,
|
2015-10-27 11:17:55 +01:00
|
|
|
.toggle-clear,
|
|
|
|
.toggle-otr {
|
2017-07-15 11:51:15 +02:00
|
|
|
|
2015-10-27 11:17:55 +01:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
li {
|
2017-07-15 11:03:22 +02:00
|
|
|
cursor: pointer;
|
2015-10-27 11:17:55 +01:00
|
|
|
display: inline-block;
|
|
|
|
list-style: none;
|
|
|
|
margin-top: 1px;
|
2017-07-15 11:03:22 +02:00
|
|
|
padding: 0 3px 0 3px;
|
|
|
|
&:hover {
|
2015-10-27 11:17:55 +01:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2017-07-15 11:03:22 +02:00
|
|
|
.toolbar-menu {
|
|
|
|
background-color: #fff;
|
|
|
|
bottom: 100%;
|
|
|
|
box-shadow: -1px -1px 2px 0 rgba(0, 0, 0, 0.4);
|
|
|
|
font-size: 12px;
|
|
|
|
margin: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
a {
|
|
|
|
color: $link-color;
|
2017-06-16 11:31:57 +02:00
|
|
|
}
|
2017-07-15 11:03:22 +02:00
|
|
|
ul {
|
|
|
|
&.emoji-category-picker {
|
|
|
|
box-shadow: -1px -1px 2px 0 rgba(0, 0, 0, 0.4);
|
2017-07-15 11:51:15 +02:00
|
|
|
overflow-x: scroll;
|
2017-07-15 11:03:22 +02:00
|
|
|
.picked {
|
|
|
|
background-color: $highlight-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.emoji-picker {
|
2017-07-15 11:51:15 +02:00
|
|
|
height: $emoji-picker-height;
|
2017-07-15 11:03:22 +02:00
|
|
|
overflow: scroll;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
margin-left: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
list-style: none;
|
|
|
|
position: relative;
|
|
|
|
a:hover {
|
|
|
|
color: #8f2831;
|
|
|
|
}
|
|
|
|
}
|
2017-06-16 11:31:57 +02:00
|
|
|
}
|
2017-07-15 11:03:22 +02:00
|
|
|
}
|
|
|
|
&.toggle-toolbar-menu {
|
|
|
|
color: $text-color;
|
|
|
|
ul {
|
|
|
|
li {
|
|
|
|
&:hover {
|
|
|
|
background-color: $highlight-color;
|
2017-06-24 12:28:20 +02:00
|
|
|
}
|
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
}
|
2017-07-15 11:03:22 +02:00
|
|
|
}
|
|
|
|
&.toggle-smiley {
|
|
|
|
padding-left: 5px;
|
|
|
|
ul {
|
|
|
|
left: 0;
|
|
|
|
li {
|
|
|
|
padding: 5px;
|
|
|
|
z-index: 98;
|
|
|
|
&.emoji {
|
|
|
|
a {
|
|
|
|
font-size: $font-size-huge;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
}
|
|
|
|
}
|
2017-07-15 11:03:22 +02:00
|
|
|
&.toggle-otr {
|
|
|
|
ul {
|
2015-10-27 11:17:55 +01:00
|
|
|
z-index: 99;
|
2017-07-15 11:03:22 +02:00
|
|
|
li {
|
2015-10-27 11:17:55 +01:00
|
|
|
display: block;
|
2017-07-15 11:03:22 +02:00
|
|
|
padding: 7px;
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|