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

542 lines
17 KiB
SCSS
Raw Normal View History

#conversejs.converse-embedded,
#conversejs {
.badge-room-color {
2020-01-28 23:17:46 +01:00
background-color: var(--chatroom-head-bg-color);
}
.add-chatroom {
input[type="submit"],
input[type="button"] {
margin: 0.3em 0;
}
}
#room-details-modal {
.features-list {
margin-left: 1em;
}
}
.chatroom-features {
width: 100%;
.features-list {
padding-top: 0;
.feature {
width: 100%;
margin-right: 0.5em;
padding-right: 0;
font-size: 1em;
cursor: help;
.fa {
margin-right: 0.5em;
color: var(--text-color);
}
}
}
}
.chat-head-chatroom {
2020-01-28 23:17:46 +01:00
color: var(--chatroom-head-color);
background-color: var(--chatroom-head-bg-color);
border-bottom: var(--chatroom-head-border-bottom);
2018-01-27 10:07:54 +01:00
.chat-head__desc {
color: var(--chatroom-head-description-color);
display: var(--chatroom-head-description-display);
font-size: 70%;
margin-top: 3px;
border-left: var(--chatroom-head-description-border-left);
padding-left: var(--chatroom-head-description-padding-left);
a {
color: var(--chatroom-head-description-link-color);
}
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: var(--chat-head-text-color);
2018-03-16 20:41:00 +01:00
&.button-on:before {
color: var(--chatroom-head-button-color);
2018-02-20 16:41:55 +01:00
}
}
}
}
.chatbox-btn {
2018-03-16 20:41:00 +01:00
&.button-on:before {
color: var(--chatroom-head-button-color);
}
}
.chatbox-title__text {
display: var(--heading-display);
font-weight: var(--chatroom-head-title-font-weight);
padding-right: var(--chatroom-head-title-padding-right);
.chatroom-jid {
font-size: var(--font-size-small);
}
}
}
.chatroom {
width: var(--chatroom-width);
@media screen and (max-height: $mobile-landscape-height){
width: var(--mobile-chat-width);
}
@media screen and (max-width: $mobile-portrait-length) {
width: var(--mobile-chat-width);
}
.box-flyout {
2018-03-05 18:37:18 +01:00
overflow-y: hidden;
2020-01-28 23:17:46 +01:00
background-color: var(--chatroom-head-bg-color);
2018-03-05 18:37:18 +01:00
width: 100%;
@media screen and (max-height: $mobile-landscape-height) {
height: var(--mobile-chat-height);
width: var(--mobile-chat-width);
height: 100vh;
}
@media screen and (max-width: $mobile-portrait-length) {
height: var(--mobile-chat-height);
width: var(--mobile-chat-width);
height: 100vh;
}
.chatroom-body {
flex-direction: row;
2018-03-07 10:42:15 +01:00
flex-flow: nowrap;
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 {
display: var(--chat-topic-display);
2018-03-07 10:42:15 +01:00
font-weight: bold;
2020-01-28 23:17:46 +01:00
color: var(--chatroom-head-bg-color);
2018-03-07 10:42:15 +01:00
}
.chat-info {
display: var(--chat-info-display);
2020-01-28 23:17:46 +01:00
color: var(--chatroom-head-bg-color);
line-height: normal;
2018-03-07 14:36:19 +01:00
&.badge {
color: var(--chat-head-text-color);
2018-03-07 14:36:19 +01:00
}
&.chat-msg--retracted {
color: var(--subdued-color);
}
}
.disconnect-container {
margin: 1em;
width: 100%;
h3.disconnect-msg {
padding-bottom: 1em;
}
}
.chat-area {
display: flex;
flex-direction: column;
flex: 0 1 100%;
2020-01-15 14:23:27 +01:00
justify-content: flex-end;
min-width: 25%;
2020-01-15 14:23:27 +01:00
word-wrap: break-word;
.new-msgs-indicator {
2020-01-28 23:17:46 +01:00
background-color: var(--chatroom-head-bg-color);
}
.chat-content {
height: 100%;
}
}
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: var(--occupants-background-color);
border-left: var(--occupants-border-left);
2017-02-18 20:41:44 +01:00
padding: 0.5em;
max-width: 75%;
min-width: 20%;
flex: 0 0 25%;
2018-03-05 18:37:18 +01:00
.occupants-header {
display: flex;
flex-direction: column;
.hide-occupants {
align-self: flex-end;
cursor: pointer;
2020-01-27 13:20:23 +01:00
font-size: var(--font-size-small);
}
2015-10-29 10:21:31 +01:00
}
2020-01-27 13:20:23 +01:00
.occupants-header--title {
margin-top: 0.5em;
margin-bottom: 0.5em;
display: flex;
flex-direction: row;
}
.fa-user-plus {
margin-right: 0.25em;
2020-01-27 13:20:23 +01:00
}
.occupants-heading {
font-family: var(--heading-font);
2020-01-28 23:17:46 +01:00
color: var(--groupchats-header-color-dark);
padding-left: 0;
2020-01-27 13:20:23 +01:00
margin-right: 1em;
}
.chatroom-features {
display: var(--occupants-features-display);
}
.suggestion-box{
2017-03-03 15:33:11 +01:00
ul {
2017-06-18 00:42:54 +02:00
padding: 0;
li {
padding: 0.5em;
2017-06-18 00:42:54 +02:00
}
2017-03-03 15:33:11 +01:00
}
}
2017-02-18 20:41:44 +01:00
ul {
padding: 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;
border-bottom: var(--occupants-border-bottom);
2017-02-19 12:00:19 +01:00
}
li {
cursor: default;
display: block;
font-size: var(--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: var(--font-size-tiny);
2017-02-18 20:41:44 +01:00
}
&.occupant {
cursor: pointer;
.occupant-nick-badge {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
.occupant-badges {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
flex-direction: row;
span {
margin-right: 0.25rem;
}
}
}
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;
border: 0;
color: var(--text-color);
font-size: var(--font-size);
2018-04-15 21:30:35 +02:00
height: 100%;
width: 100%;
overflow-y: auto;
.validation-message {
font-size: 90%;
color: var(--error-color);
}
2017-02-28 08:32:00 +01:00
input[type=button],
input[type=submit] {
margin: 0 0.5em;
}
.button-primary {
background-color: var(--chatroom-head-button-color);
}
}
.chatroom-form {
display: flex;
flex-direction: column;
justify-content: center;
padding: 2em;
}
}
}
.empty-history-feedback {
position: relative;
height: 100%;
color: var(--text-color-lighten-15-percent);
span {
width: 100%;
text-align: center;
position: absolute;
margin-top: 50%;
}
}
.muc-bottom-panel {
border-top: var(--message-input-border-top);
height: 3em;
padding: 0.5em;
text-align: center;
font-size: var(--font-size-small);
2020-01-28 23:17:46 +01:00
background-color: var(--chatroom-head-bg-color);
color: white;
&.muc-bottom-panel--nickname {
padding: 0;
height: 16em;
.chatroom-form-container {
.chatroom-form {
padding-top: 2em;
padding-bottom: 0;
}
}
}
}
2018-01-25 12:36:13 +01:00
.sendXMPPMessage {
.suggestion-box__results--above {
bottom: 4.5em;
}
.chat-toolbar {
2018-03-06 14:48:23 +01:00
background-color: white;
border-top: var(--message-input-border-top);
color: var(--message-input-color);
2018-09-04 11:39:27 +02:00
.fas, .fas:hover,
.far, .far:hover,
2018-03-06 14:48:23 +01:00
.fa, .fa:hover {
color: var(--message-input-color);
2018-03-06 14:48:23 +01:00
}
}
.chat-textarea {
&:active, &:focus{
2020-01-28 23:17:46 +01:00
outline-color: var(--chatroom-head-bg-color);
}
border-bottom-right-radius: 0;
&.correcting {
background-color: var(--chatroom-correcting-color);
}
}
.send-button {
background-color: var(--message-input-color);
}
}
.room-invite {
.invited-contact {
margin: -1px 0 0 -1px;
width: 100%;
border: 1px solid #999;
}
}
}
}
2018-01-25 12:36:13 +01:00
/* ******************* Overlay styles *************************** */
#conversejs.converse-overlayed {
.chatbox {
&.chatroom {
2020-01-15 14:23:27 +01:00
.chat-head {
padding-bottom: 1em;
}
.chatroom-features {
display: none !important;
}
min-width: var(--chatroom-width) !important;
width: var(--chatroom-width);
.box-flyout {
min-width: var(--chatroom-width) !important;
width: var(--chatroom-width);
}
.chatbox-title__text {
@include make-col(7);
}
.chatbox-title__buttons {
@include make-col(5);
2018-06-01 12:37:14 +02:00
}
.chat-head__desc {
font-size: 80%;
}
.chatroom-body {
.occupants {
.occupants-heading {
padding: 0;
}
.occupant-list {
border-bottom: none;
}
.chatroom-features {
.feature {
font-size: var(--font-size-tiny);
}
}
ul {
.occupant {
.occupant-nick-badge {
.occupant-badges {
display: none;
}
}
.occupant-status {
margin-top: 6px;
}
}
}
}
.chat-area {
min-width: var(--overlayed-chat-width);
}
}
.sendXMPPMessage {
.chat-toolbar {
li {
.toolbar-menu {
min-width: 280px;
}
}
}
}
}
}
}
#conversejs.converse-embedded,
#conversejs.converse-fullscreen,
#conversejs.converse-mobile {
.chatroom {
.box-flyout {
width: 100%;
.chat-head__desc {
font-size: 70%;
}
.chatroom-body {
.chat-area {
&.full {
.new-msgs-indicator {
max-width: 100%;
}
}
}
.occupants {
padding: var(--occupants-padding);
.occupants-heading {
font-size: var(--font-size-large);
}
ul {
&.occupant-list {
li {
font-size: var(--font-size-small);
}
}
}
}
}
}
.room-invite {
span {
.invited-contact {
margin: 0 0 0.5em -1px;
}
}
}
}
}
#conversejs.converse-embedded {
.chatroom {
margin: 0;
width: 100%;
.box-flyout {
.occupants-heading {
font-size: 120%;
}
.chat-content {
.chat-message {
margin: 0.5em;
font-size: 120%;
}
}
.sendXMPPMessage {
.chat-textarea {
padding: 0.5em;
font-size: 110%;
}
}
.chatroom-body {
height: 100%;
.chatroom-form-container {
height: 100%;
position: relative;
}
}
.occupants {
.occupant-list {
padding-left: 0.3em;
}
}
}
}
}