284 lines
9.4 KiB
SCSS
284 lines
9.4 KiB
SCSS
#converse-embedded-chat,
|
|
#conversejs {
|
|
.new-chatroom-nick {
|
|
margin: 1em auto;
|
|
}
|
|
|
|
.add-chatroom {
|
|
input[type="submit"],
|
|
input[type="button"] {
|
|
margin: 0.3em 0;
|
|
}
|
|
}
|
|
|
|
.chat-head-chatroom {
|
|
background-color: $chatroom-head-color;
|
|
|
|
.chatroom-topic {
|
|
white-space: nowrap;
|
|
overflow-y: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.chatbox-btn {
|
|
&.button-on {
|
|
background-color: $chat-head-text-color;
|
|
color: $chatroom-head-color;
|
|
}
|
|
}
|
|
.chat-title {
|
|
color: $chatroom-color-lightest;
|
|
.chatroom-name {
|
|
color: white;
|
|
}
|
|
.chatroom-jid {
|
|
font-size: $font-size-small;
|
|
}
|
|
.chatroom-description {
|
|
color: white;
|
|
font-size: 80%;
|
|
font-style: italic;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
margin: 0.3em 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chatroom {
|
|
width: $chatroom-width;
|
|
@media screen and (max-height: $mobile-landscape-height){
|
|
width: $mobile-chat-width;
|
|
}
|
|
@media screen and (max-width: $mobile-portrait-length) {
|
|
width: $mobile-chat-width;
|
|
}
|
|
|
|
.box-flyout {
|
|
width: 100%;
|
|
@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;
|
|
}
|
|
.chatroom-body {
|
|
@include border-bottom-radius($chatbox-border-radius);
|
|
background-color: white;
|
|
border-top: 0;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
|
|
.row {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.chat-info {
|
|
color: white;
|
|
line-height: normal;
|
|
}
|
|
.mentioned {
|
|
font-weight: bold;
|
|
}
|
|
.chat-message {
|
|
&.onload {
|
|
animation: colorchange-chatmessage-muc 1s;
|
|
-webkit-animation: colorchange-chatmessage-muc 1s;
|
|
}
|
|
.chat-msg-them {
|
|
color: $chatroom-message-them-color;
|
|
canvas {
|
|
background: $red;
|
|
}
|
|
}
|
|
.chat-msg-me {
|
|
canvas {
|
|
background: $light-blue;
|
|
}
|
|
}
|
|
}
|
|
.disconnect-msg {
|
|
padding: 2em 2em 0 2em;
|
|
}
|
|
.chat-area {
|
|
word-wrap: break-word;
|
|
min-width: $chat-width;
|
|
.new-msgs-indicator {
|
|
background-color: $chatroom-head-color;
|
|
max-width: 70%;
|
|
}
|
|
.chat-content {
|
|
padding: 0.5em;
|
|
}
|
|
&.full {
|
|
min-width: 100%;
|
|
.new-msgs-indicator {
|
|
min-width: 100%;
|
|
}
|
|
}
|
|
}
|
|
.occupants {
|
|
overflow-x: hidden;
|
|
overflow-y: hidden;
|
|
vertical-align: top;
|
|
background-color: white;
|
|
border-left: 1px solid $text-color;
|
|
border-bottom-right-radius: $chatbox-border-radius;
|
|
padding: 0.5em;
|
|
.occupants-heading {
|
|
padding: 0.3em 0;
|
|
font-weight: bold;
|
|
}
|
|
.chatroom-features {
|
|
bottom: 0.5em;
|
|
width: 100%;
|
|
|
|
.feature {
|
|
float: left;
|
|
margin-right: 0.5em;
|
|
padding-right: 0;
|
|
font-size: 1em;
|
|
cursor: help;
|
|
}
|
|
}
|
|
.awesomplete {
|
|
ul {
|
|
padding: 0;
|
|
li {
|
|
padding: .5em;
|
|
}
|
|
}
|
|
}
|
|
ul {
|
|
padding: 0.5em 0 0 0;
|
|
margin-bottom: 0.5em;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
list-style: none;
|
|
|
|
&.occupant-list {
|
|
overflow-y: auto;
|
|
@include calc(height, '100% - 220px');
|
|
}
|
|
&.features-list {
|
|
padding-top: 0;
|
|
}
|
|
li {
|
|
cursor: default;
|
|
display: block;
|
|
font-size: $font-size-small;
|
|
overflow: hidden;
|
|
padding: 0.2em 0.5em 0.2em 0;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
[class^="icon-"], [class*=" icon-"] {
|
|
padding-right: 0.5em;
|
|
}
|
|
&.feature {
|
|
font-size: $font-size-tiny;
|
|
}
|
|
&.occupant {
|
|
cursor: pointer;
|
|
.occupant-status {
|
|
display: inline-block;
|
|
margin-right: 0.5em;
|
|
width: 0.5em;
|
|
height: 0.5em;
|
|
&.occupant-online,
|
|
&.occupant-chat {
|
|
background-color: #1A9707;
|
|
}
|
|
&.occupant-dnd {
|
|
background-color: red;
|
|
}
|
|
&.occupant-away {
|
|
background-color: darkorange;
|
|
}
|
|
&.occupant-xa {
|
|
background-color: orange;
|
|
}
|
|
}
|
|
}
|
|
&.moderator {
|
|
color: $moderator-color;
|
|
}
|
|
&.visitor {
|
|
color: $visitor-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.chatroom-form-container {
|
|
background-color: white;
|
|
border-bottom-left-radius: $chatbox-border-radius;
|
|
border-bottom-right-radius: $chatbox-border-radius;
|
|
border: 0;
|
|
color: $text-color;
|
|
font-size: $font-size;
|
|
height: 289px;
|
|
width: 100%;
|
|
@include calc(height, '100% - #{$chat-head-height}');
|
|
overflow-y: auto;
|
|
position: absolute;
|
|
|
|
.validation-message {
|
|
font-size: 90%;
|
|
color: $error-color;
|
|
}
|
|
.chatroom-form {
|
|
label,
|
|
input[type=text] {
|
|
display: block;
|
|
}
|
|
}
|
|
input[type=button],
|
|
input[type=submit] {
|
|
margin: 0 0.5em;
|
|
}
|
|
.button-primary {
|
|
background-color: $chatroom-head-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.sendXMPPMessage {
|
|
.chat-toolbar {
|
|
background-color: lighten($chatroom-head-color, 10%);
|
|
}
|
|
.chat-textarea {
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
.send-button {
|
|
background-color: $chatroom-head-color;
|
|
}
|
|
}
|
|
|
|
.room-invite {
|
|
.invited-contact {
|
|
margin: -1px 0 0 -1px;
|
|
width: 100%;
|
|
border: 1px solid #999;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 767px) {
|
|
#conversejs {
|
|
.chatbox {
|
|
.box-flyout {
|
|
.chatroom-body {
|
|
.chat-area {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|