xmpp.chapril.org-conversejs/sass/_chatrooms.scss

293 lines
9.7 KiB
SCSS
Raw Normal View History

#conversejs.converse-embedded,
#conversejs {
.add-chatroom {
input[type="submit"],
input[type="button"] {
margin: 0.3em 0;
}
}
.chat-head-chatroom {
background-color: $chatroom-head-color;
2018-01-27 10:07:54 +01:00
2018-04-27 14:16:34 +02:00
.chatroom-description {
color: lighten($chatroom-head-color, 25%);
2018-04-27 14:16:34 +02:00
font-size: $font-size-large;
font-size: 80%;
2018-01-27 10:07:54 +01:00
overflow-y: hidden;
2018-04-27 14:16:34 +02:00
overflow: hidden;
2018-01-27 10:07:54 +01:00
text-overflow: ellipsis;
2018-04-27 14:16:34 +02:00
white-space: nowrap;
2018-01-27 10:07:54 +01:00
}
2018-02-20 16:41:55 +01:00
a, a:visited, a:hover, a:not([href]):not([tabindex]) {
&.chatbox-btn {
&.fa {
color: $chat-head-text-color;
2018-03-16 20:41:00 +01:00
&.button-on:before {
2018-02-20 16:41:55 +01:00
color: $chatroom-head-color;
}
}
}
}
.chatbox-btn {
2018-03-16 20:41:00 +01:00
&.button-on:before {
color: $chatroom-head-color;
}
}
.chat-title {
.chatroom-jid {
font-size: $font-size-small;
}
}
}
.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 {
2018-03-05 18:37:18 +01:00
overflow-y: hidden;
background-color: $chatroom-head-color;
2018-03-05 18:37:18 +01:00
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 {
flex-direction: row;
2018-03-07 10:42:15 +01:00
flex-flow: nowrap;
@include border-bottom-radius($chatbox-border-radius);
background-color: white;
border-top: 0;
width: 100%;
2018-01-25 12:36:13 +01:00
overflow: hidden;
.row {
flex-direction: row;
}
2018-03-07 10:42:15 +01:00
.chat-topic {
font-weight: bold;
color: $chatroom-head-color;
}
.chat-info {
2018-03-07 14:36:19 +01:00
color: $chatroom-head-color;
line-height: normal;
2018-03-07 14:36:19 +01:00
&.badge {
color: $chat-head-text-color;
}
}
2016-06-20 21:25:57 +02:00
.mentioned {
font-weight: bold;
}
.disconnect-msg {
padding: 2em 2em 0 2em;
}
.chat-area {
display: flex;
flex-direction: column;
word-wrap: break-word;
min-width: $chat-width;
.new-msgs-indicator {
background-color: $chatroom-head-color;
}
.chat-content {
height: 100%;
}
2015-11-03 17:42:04 +01:00
&.full {
min-width: 100%;
2015-11-03 17:42:04 +01:00
}
}
2015-10-31 17:30:06 +01:00
.occupants {
2018-03-05 18:37:18 +01:00
display: flex;
flex-direction: column;
justify-content: space-between;
2017-02-19 12:00:19 +01:00
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;
2017-02-18 20:41:44 +01:00
padding: 0.5em;
2018-03-05 18:37:18 +01:00
2015-10-31 17:30:06 +01:00
.occupants-heading {
2018-05-14 13:27:10 +02:00
font-family: $heading-font;
2017-02-18 20:41:44 +01:00
padding: 0.3em 0;
2015-10-29 10:21:31 +01:00
}
2018-03-05 18:37:18 +01:00
.chatroom-features {
width: 100%;
.feature {
float: left;
margin-right: 0.5em;
padding-right: 0;
font-size: 1em;
cursor: help;
}
}
2017-03-03 15:33:11 +01:00
.awesomplete {
ul {
2017-06-18 00:42:54 +02:00
padding: 0;
li {
padding: .5em;
}
2017-03-03 15:33:11 +01:00
}
}
2017-02-18 20:41:44 +01:00
ul {
padding: 0.5em 0 0 0;
margin-bottom: 0.5em;
2015-11-03 17:42:04 +01:00
overflow-x: hidden;
overflow-y: auto;
list-style: none;
&.occupant-list {
2017-02-25 21:53:50 +01:00
overflow-y: auto;
2018-03-05 18:37:18 +01:00
flex-basis: 0;
flex-grow: 1;
2018-05-09 12:57:50 +02:00
border-bottom: 1px solid lightgrey;
2017-02-19 12:00:19 +01:00
}
&.features-list {
padding-top: 0;
.feature {
width: 100%;
.fa {
color: $text-color;
}
}
}
li {
cursor: default;
display: block;
2017-02-18 20:41:44 +01:00
font-size: $font-size-small;
overflow: hidden;
padding: 0.25em 0.25em 0.25em 0;
text-overflow: ellipsis;
.fa {
margin-right: 0.5em;
2017-02-18 20:41:44 +01:00
}
&.feature {
font-size: $font-size-tiny;
}
&.occupant {
cursor: pointer;
div.row.no-gutters {
flex-wrap: nowrap;
2018-05-09 12:57:50 +02:00
min-height: 1.5em;
}
.badge {
2018-05-09 12:57:50 +02:00
margin-bottom: 0.125rem;
}
2017-02-28 06:27:30 +01:00
.occupant-status {
display: inline-block;
2018-05-09 12:57:50 +02:00
margin: 0 0.5em 0.125em 0;
width: 0.5em;
height: 0.5em;
&.occupant-online,
&.occupant-chat {
2017-02-28 08:32:00 +01:00
background-color: #1A9707;
2017-02-28 06:27:30 +01:00
}
&.occupant-dnd {
background-color: red;
}
&.occupant-away {
background-color: darkorange;
}
&.occupant-xa {
background-color: orange;
}
&.occupant-offline {
background-color: darkgrey;
}
2017-02-28 06:27:30 +01:00
}
}
}
}
}
.chatroom-form-container {
background-color: white;
2017-07-05 11:59:55 +02:00
border-bottom-left-radius: $chatbox-border-radius;
border-bottom-right-radius: $chatbox-border-radius;
border: 0;
color: $text-color;
font-size: $font-size;
2018-04-15 21:30:35 +02:00
height: 100%;
width: 100%;
overflow-y: auto;
.validation-message {
font-size: 90%;
color: $error-color;
}
.chatroom-form {
label,
input[type=text] {
display: block;
}
}
2017-02-28 08:32:00 +01:00
input[type=button],
input[type=submit] {
margin: 0 0.5em;
}
.button-primary {
background-color: $chatroom-head-color;
}
}
}
}
2018-01-25 12:36:13 +01:00
.sendXMPPMessage {
.chat-toolbar {
2018-03-06 14:48:23 +01:00
background-color: white;
border-top: 8px solid $chatroom-head-color;
color: $chatroom-head-color;
.fa, .fa:hover {
color: $chatroom-head-color;
}
}
.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;
}
}
}
}
2018-01-25 12:36:13 +01:00
@media screen and (max-width: 767px) {
#conversejs:not(.converse-embedded) {
2018-01-25 12:36:13 +01:00
.chatbox {
.box-flyout {
.chatroom-body {
.chat-area {
}
}
}
}
}
}