2021-11-09 16:45:54 +00:00
|
|
|
@import "./variables";
|
2021-12-06 13:47:34 +00:00
|
|
|
@import "shared/styles/index";
|
2021-11-17 10:34:01 +00:00
|
|
|
@import "./peertubetheme";
|
2021-11-09 09:34:34 +00:00
|
|
|
|
2024-04-11 09:25:04 +00:00
|
|
|
body.livechat-iframe {
|
2024-03-28 14:06:15 +00:00
|
|
|
#conversejs .chat-head {
|
2024-04-11 09:25:04 +00:00
|
|
|
// Hidding the chat-head when the plugin is displayed in an iframe
|
2024-03-28 14:06:15 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2021-11-08 18:39:51 +00:00
|
|
|
}
|
2021-11-09 16:45:54 +00:00
|
|
|
|
2024-04-11 09:25:04 +00:00
|
|
|
#peertube-plugin-livechat-container #conversejs .chat-head {
|
|
|
|
// When besides a video, reduce the size of the toolbar.
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#conversejs .livechat-mini-muc-bar-buttons {
|
|
|
|
a.orange-button {
|
|
|
|
// force these colors...
|
|
|
|
color: var(--peertube-button-foreground);
|
|
|
|
background-color: var(--peertube-button-background);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-09 16:45:54 +00:00
|
|
|
#conversejs-bg {
|
2021-11-17 10:34:01 +00:00
|
|
|
// We are using a custom template that differs from the original, this is required.
|
2021-11-09 16:45:54 +00:00
|
|
|
.converse-brand__heading {
|
|
|
|
img {
|
|
|
|
margin-top: 0.3em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-12-14 12:02:15 +00:00
|
|
|
|
|
|
|
// Readonly mode
|
|
|
|
body.livechat-readonly #conversejs {
|
2024-04-02 15:40:43 +00:00
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
2021-12-14 12:02:15 +00:00
|
|
|
.chat-head,
|
|
|
|
.bottom-panel,
|
|
|
|
converse-message-actions,
|
|
|
|
converse-muc-sidebar {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
2022-01-04 16:42:03 +00:00
|
|
|
|
2022-01-07 01:15:39 +00:00
|
|
|
body.livechat-readonly.livechat-noscroll {
|
|
|
|
converse-chat-content {
|
|
|
|
overflow-y: hidden !important;
|
|
|
|
}
|
|
|
|
|
2022-01-16 16:50:11 +00:00
|
|
|
.message.separator,
|
|
|
|
.message.date-separator {
|
2022-01-07 01:15:39 +00:00
|
|
|
// also hide separators (new day, new message)
|
|
|
|
display: none;
|
|
|
|
}
|
2022-01-04 16:42:03 +00:00
|
|
|
}
|
2022-01-07 18:20:28 +00:00
|
|
|
|
|
|
|
// Viewer mode
|
2024-04-08 17:02:56 +00:00
|
|
|
.livechat-viewer-mode-content {
|
2022-01-07 18:20:28 +00:00
|
|
|
display: none;
|
2024-04-08 17:02:56 +00:00
|
|
|
|
|
|
|
form {
|
|
|
|
display: flex !important;
|
|
|
|
flex-flow: row wrap !important;
|
|
|
|
padding-bottom: 0.5em !important;
|
2024-04-23 08:05:56 +00:00
|
|
|
padding-top: 0.5em !important;
|
2024-04-08 17:02:56 +00:00
|
|
|
border-top: 1px solid var(--chatroom-head-bg-color) !important;
|
2024-04-23 08:05:56 +00:00
|
|
|
gap: 0.5em 10px;
|
2024-04-08 17:02:56 +00:00
|
|
|
align-items: baseline;
|
|
|
|
|
2024-04-23 08:05:56 +00:00
|
|
|
.form-group,
|
|
|
|
label {
|
|
|
|
margin-bottom: 0 !important; // replaced by the gap on .livechat-viewer-mode-content
|
|
|
|
}
|
|
|
|
|
2024-04-08 17:02:56 +00:00
|
|
|
label {
|
|
|
|
color: var(--text-color); // fix converseJs css that breaks this label color.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
margin: 0;
|
|
|
|
background-color: var(--chatroom-head-bg-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.livechat-viewer-mode-external-login {
|
2024-04-23 08:05:56 +00:00
|
|
|
margin: 0.5em 0;
|
|
|
|
padding: 0;
|
2024-04-08 17:02:56 +00:00
|
|
|
}
|
2022-01-07 18:20:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
body[livechat-viewer-mode="on"] {
|
2024-04-08 17:02:56 +00:00
|
|
|
.livechat-viewer-mode-content {
|
2022-01-07 18:20:28 +00:00
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
|
2022-01-07 18:28:07 +00:00
|
|
|
converse-muc-bottom-panel {
|
2024-04-08 17:02:56 +00:00
|
|
|
>:not(.livechat-viewer-mode-content) {
|
2022-01-07 18:28:07 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2022-01-07 18:20:28 +00:00
|
|
|
}
|
|
|
|
}
|
2022-01-16 16:50:11 +00:00
|
|
|
|
2024-04-16 09:43:38 +00:00
|
|
|
.livechat-external-login-modal {
|
2024-04-22 12:28:55 +00:00
|
|
|
.livechat-external-login-modal-external-auth-oidc-block {
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
gap: 20px;
|
|
|
|
margin-bottom: 20px;
|
2024-04-16 09:43:38 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
background-color: var(--chatroom-head-bg-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-16 16:50:11 +00:00
|
|
|
// Transparent mode
|
|
|
|
body.livechat-transparent {
|
2022-08-07 10:40:18 +00:00
|
|
|
// --peertube-main-background: rgba(0 0 0 / 0%) !important;
|
|
|
|
// --peertube-menu-background: rgba(0 0 0 / 0%) !important;
|
2022-01-16 16:50:11 +00:00
|
|
|
|
|
|
|
&.converse-fullscreen {
|
2022-08-07 09:51:07 +00:00
|
|
|
background-color: var(--livechat-transparent) !important;
|
2022-01-16 16:50:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.chat-body,
|
|
|
|
.conversejs .chatroom .box-flyout,
|
|
|
|
.conversejs .chatbox .chat-content,
|
|
|
|
.conversejs .chatbox .chat-content .chat-content__notifications {
|
2022-08-07 10:40:18 +00:00
|
|
|
background-color: rgba(0 0 0 / 0%) !important;
|
2022-01-16 16:50:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Hide the background_logo
|
|
|
|
#conversejs-bg {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
2024-03-26 13:43:53 +00:00
|
|
|
|
|
|
|
/* Chat directly embedded in Peertube */
|
|
|
|
body.converse-embedded {
|
|
|
|
.conversejs .modal {
|
|
|
|
// modal z-index = use same z-index as Peertube (see Peertube _variables.scss)
|
|
|
|
z-index: 19000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-backdrop {
|
|
|
|
// must be just under .modal.
|
|
|
|
z-index: 18999;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Chat embedded in a full client page. */
|
|
|
|
.livechat-embed-fullpage {
|
|
|
|
converse-root {
|
|
|
|
display: block;
|
|
|
|
height: 90vh;
|
|
|
|
min-height: 400px;
|
|
|
|
}
|
2024-04-02 15:40:43 +00:00
|
|
|
}
|
2024-03-26 13:49:47 +00:00
|
|
|
|
2024-04-02 15:40:43 +00:00
|
|
|
.livechat-embed-fullpage,
|
|
|
|
#peertube-plugin-livechat-container {
|
2024-03-26 13:49:47 +00:00
|
|
|
converse-muc-message-form {
|
|
|
|
// For an unknown reason, message field in truncated... so adding a bottom margin.
|
|
|
|
margin-bottom: 6px;
|
|
|
|
}
|
2024-03-26 13:43:53 +00:00
|
|
|
}
|
2024-04-03 14:53:01 +00:00
|
|
|
|
|
|
|
.conversejs {
|
|
|
|
// Fix: for the slow mode, we use readonly instead of disabled, we must apply same CSS as ConverseJS.
|
|
|
|
textarea:read-only {
|
|
|
|
background-color: var(--chat-textarea-disabled-bg-color) !important;
|
|
|
|
}
|
2024-05-13 08:40:22 +00:00
|
|
|
|
|
|
|
select.form-control {
|
|
|
|
// Peertube uses a trick to display a triangle as dropdown icon for selects.
|
|
|
|
// But this tricks breaks selects that are not in a .peertube-select-container.
|
|
|
|
// So we must revert appearance:
|
|
|
|
appearance: revert !important;
|
|
|
|
}
|
2024-04-03 14:53:01 +00:00
|
|
|
}
|