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 {
|
|
|
|
border-top-left-radius: $chatbox-border-radius;
|
|
|
|
border-top-right-radius: $chatbox-border-radius;
|
2016-04-01 12:53:15 +02:00
|
|
|
@media screen and (max-height: $mobile-landscape-height) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
|
|
|
@media screen and (max-width: $mobile-portrait-length) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
2015-10-29 09:12:40 +01:00
|
|
|
color: #ffffff;
|
|
|
|
font-size: 100%;
|
|
|
|
height: $chat-head-height;
|
|
|
|
margin: 0;
|
|
|
|
padding: 5px;
|
|
|
|
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 {
|
|
|
|
clear: left;
|
|
|
|
color: white;
|
|
|
|
font-size: 80%;
|
|
|
|
font-style: italic;
|
|
|
|
height: 1.3em;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
margin: 0;
|
2015-11-01 03:00:31 +01:00
|
|
|
padding-top: 0.2em;
|
2015-10-31 19:29:43 +01:00
|
|
|
}
|
2015-10-29 09:12:40 +01:00
|
|
|
}
|
|
|
|
.chatbox-btn {
|
2015-10-31 19:29:43 +01:00
|
|
|
border-radius: 50%;
|
2015-10-29 10:21:31 +01:00
|
|
|
border: 1px solid white;
|
2015-10-29 09:12:40 +01:00
|
|
|
color: white;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
float: right;
|
|
|
|
font-size: $box-close-font-size;
|
2015-11-02 11:58:02 +01:00
|
|
|
margin: 0;
|
|
|
|
margin-right: 0.2em;
|
|
|
|
padding: 0.5em 0.5em 0.3em 0.5em;
|
2015-10-29 09:12:40 +01:00
|
|
|
text-decoration: none;
|
|
|
|
&:active {
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
}
|
|
|
|
}
|
2015-10-27 11:17:55 +01:00
|
|
|
.chatbox {
|
|
|
|
display: block;
|
|
|
|
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;
|
|
|
|
height: 2em;
|
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 {
|
2015-10-29 10:21:31 +01:00
|
|
|
color: $warning-color;
|
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 {
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
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 {
|
|
|
|
display: inline-block;
|
2015-10-28 09:52:19 +01:00
|
|
|
&.chat-msg-author {
|
2015-10-28 21:31:24 +01:00
|
|
|
max-width: 100%;
|
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;
|
|
|
|
padding: 0.3em;
|
|
|
|
font-size: 0.9em;
|
|
|
|
text-align: center;
|
|
|
|
z-index: 20;
|
|
|
|
}
|
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});
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
background: white;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
.chat-toolbar {
|
|
|
|
font-size: $font-size;
|
|
|
|
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 {
|
|
|
|
color: $link-color;
|
|
|
|
}
|
|
|
|
.chat-toolbar-text {
|
|
|
|
font-size: 12px;
|
|
|
|
padding-right: 3px;
|
|
|
|
text-shadow: 0 1px 0 white
|
|
|
|
}
|
|
|
|
.unencrypted a,
|
|
|
|
.unencrypted {
|
2015-10-29 10:21:31 +01:00
|
|
|
color: $warning-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 {
|
|
|
|
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);
|
|
|
|
display: none;
|
|
|
|
font-size: 12px;
|
2016-05-28 10:55:03 +02:00
|
|
|
margin: 0;
|
2015-10-27 11:17:55 +01:00
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
li {
|
|
|
|
cursor: pointer;
|
|
|
|
list-style: none;
|
|
|
|
position: relative;
|
|
|
|
a:hover {
|
|
|
|
color: #8f2831;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.toggle-smiley {
|
|
|
|
color: $link-color;
|
|
|
|
padding-left: 5px;
|
|
|
|
ul {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|