2020-08-24 13:30:42 +03:00
|
|
|
/* some base styles for chat and messaging components */
|
|
|
|
|
2021-04-12 00:08:06 +03:00
|
|
|
:root {
|
|
|
|
/* Override this in your custom CSS to change the
|
|
|
|
opacity of the message backgrounds. */
|
|
|
|
--message-background-alpha: 0.3;
|
|
|
|
}
|
|
|
|
|
2020-08-22 09:44:10 +03:00
|
|
|
#chat-container {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 9;
|
2021-01-10 05:17:10 +03:00
|
|
|
bottom: 0;
|
2020-08-22 09:44:10 +03:00
|
|
|
right: 0;
|
|
|
|
width: var(--right-col-width);
|
|
|
|
|
|
|
|
height: calc(100vh - var(--header-height));
|
|
|
|
}
|
|
|
|
|
2021-01-10 05:17:10 +03:00
|
|
|
@media screen and (max-width: 729px) {
|
|
|
|
#chat-container {
|
|
|
|
top: var(--header-height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-24 13:30:42 +03:00
|
|
|
#message-input-container {
|
|
|
|
width: var(--right-col-width);
|
2020-08-22 09:44:10 +03:00
|
|
|
}
|
|
|
|
|
2020-09-22 06:11:09 +03:00
|
|
|
#message-input-wrap {
|
|
|
|
min-height: 2.5rem;
|
|
|
|
max-height: 5rem;
|
|
|
|
}
|
|
|
|
#message-form-actions {
|
2021-06-21 03:15:52 +03:00
|
|
|
right: 1rem;
|
2020-09-22 06:11:09 +03:00
|
|
|
bottom: 1.88rem;
|
|
|
|
}
|
|
|
|
#emoji-button {
|
|
|
|
height: 1.75rem;
|
|
|
|
width: 1.75rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#message-form-warning {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.display-count #message-form-warning {
|
|
|
|
display: block;
|
2020-08-22 09:44:10 +03:00
|
|
|
}
|
|
|
|
|
2020-08-22 01:55:52 +03:00
|
|
|
/******************************/
|
|
|
|
/******************************/
|
2020-08-24 04:33:19 +03:00
|
|
|
|
2020-08-22 01:55:52 +03:00
|
|
|
#message-input img {
|
|
|
|
display: inline;
|
|
|
|
vertical-align: middle;
|
2020-10-23 00:14:44 +03:00
|
|
|
padding: 0.25rem;
|
2020-08-22 01:55:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-input .emoji {
|
2020-08-22 09:44:10 +03:00
|
|
|
width: 2.2rem;
|
2020-10-23 00:14:44 +03:00
|
|
|
padding: 0.25rem;
|
2020-08-22 01:55:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* If the div is empty then show the placeholder */
|
2020-10-23 00:14:44 +03:00
|
|
|
#message-input:empty:before {
|
2020-08-22 01:55:52 +03:00
|
|
|
content: attr(placeholderText);
|
|
|
|
pointer-events: none;
|
|
|
|
display: block; /* For Firefox */
|
|
|
|
color: rgba(0, 0, 0, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* When chat is enabled (contenteditable=true) */
|
2020-10-23 00:14:44 +03:00
|
|
|
#message-input[contenteditable='true']:before {
|
|
|
|
opacity: 1;
|
2020-08-22 01:55:52 +03:00
|
|
|
}
|
|
|
|
|
2020-10-23 00:14:44 +03:00
|
|
|
#message-input::selection {
|
|
|
|
background: #d7ddf4;
|
|
|
|
}
|
2020-08-22 01:55:52 +03:00
|
|
|
|
|
|
|
/* When chat is disabled (contenteditable=false) chat input div should appear disabled. */
|
|
|
|
#message-input:disabled,
|
2020-10-23 00:14:44 +03:00
|
|
|
#message-input[contenteditable='false'] {
|
2020-08-22 01:55:52 +03:00
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
/******************************/
|
|
|
|
/******************************/
|
|
|
|
|
2020-09-22 06:11:09 +03:00
|
|
|
/******************************/
|
|
|
|
/* EMOJI PICKER OVERRIDES */
|
2021-01-10 05:26:56 +03:00
|
|
|
.emoji-picker__wrapper {
|
|
|
|
margin-top: -30px !important;
|
|
|
|
}
|
2020-09-22 06:11:09 +03:00
|
|
|
.emoji-picker.owncast {
|
2020-10-23 00:14:44 +03:00
|
|
|
--secondary-text-color: rgba(255, 255, 255, 0.5);
|
|
|
|
--category-button-color: rgba(255, 255, 255, 0.5);
|
|
|
|
--hover-color: rgba(255, 255, 255, 0.25);
|
2020-09-22 06:11:09 +03:00
|
|
|
|
2020-10-23 00:14:44 +03:00
|
|
|
background: rgba(26, 32, 44, 1); /* tailwind bg-gray-900 */
|
|
|
|
color: rgba(226, 232, 240, 1); /* tailwind text-gray-300 */
|
2020-09-22 06:11:09 +03:00
|
|
|
border-color: black;
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
|
|
|
.emoji-picker h2 {
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
|
|
|
|
2020-08-20 00:46:20 +03:00
|
|
|
.emoji-picker__emoji {
|
2020-08-24 05:37:06 +03:00
|
|
|
border-radius: 5px;
|
2020-08-20 00:46:20 +03:00
|
|
|
}
|
2020-08-13 11:28:25 +03:00
|
|
|
|
2020-09-22 06:11:09 +03:00
|
|
|
.emoji-picker__emojis::-webkit-scrollbar {
|
|
|
|
background: transparent;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
.emoji-picker__emojis::-webkit-scrollbar-track {
|
|
|
|
border-radius: 8px;
|
2020-10-03 23:42:48 +03:00
|
|
|
background-color: black;
|
2020-10-23 00:14:44 +03:00
|
|
|
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
2020-09-22 06:11:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-picker__emojis::-webkit-scrollbar-thumb {
|
2020-10-03 23:42:48 +03:00
|
|
|
background-color: var(--category-button-color);
|
2020-09-22 06:11:09 +03:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
2020-10-03 23:42:48 +03:00
|
|
|
.emoji-picker__emojis {
|
2020-10-23 00:14:44 +03:00
|
|
|
scrollbar-color: var(--category-button-color) black;
|
2020-10-03 23:42:48 +03:00
|
|
|
}
|
|
|
|
|
2020-12-04 09:28:16 +03:00
|
|
|
.emoji-picker__search {
|
|
|
|
color: rgba(26, 32, 44, 1);
|
|
|
|
}
|
|
|
|
|
2020-08-22 09:44:10 +03:00
|
|
|
/* MESSAGE TEXT HTML */
|
|
|
|
/* MESSAGE TEXT HTML */
|
|
|
|
/* MESSAGE TEXT HTML */
|
2020-09-22 06:11:09 +03:00
|
|
|
.message-text {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
2020-08-19 10:16:35 +03:00
|
|
|
.message-text a {
|
2021-07-26 09:15:31 +03:00
|
|
|
color: #ccd;
|
|
|
|
transition: color .2s;
|
2020-08-13 11:28:25 +03:00
|
|
|
}
|
2020-08-19 10:16:35 +03:00
|
|
|
.message-text a:hover {
|
2020-08-13 11:28:25 +03:00
|
|
|
text-decoration: underline;
|
2021-07-26 09:15:31 +03:00
|
|
|
color: #fff;
|
2020-08-13 11:28:25 +03:00
|
|
|
}
|
|
|
|
|
2020-08-19 10:16:35 +03:00
|
|
|
.message-text img {
|
|
|
|
display: inline;
|
2020-10-23 00:14:44 +03:00
|
|
|
padding-left: 0 0.25rem;
|
2020-08-13 12:43:41 +03:00
|
|
|
}
|
|
|
|
|
2020-08-19 10:16:35 +03:00
|
|
|
.message-text .emoji {
|
2020-10-14 02:45:52 +03:00
|
|
|
position: relative;
|
|
|
|
top: -5px;
|
2020-08-22 09:44:10 +03:00
|
|
|
width: 3rem;
|
2020-10-23 00:14:44 +03:00
|
|
|
padding: 0.25rem;
|
2020-08-13 12:43:41 +03:00
|
|
|
}
|
|
|
|
|
2020-08-22 09:44:10 +03:00
|
|
|
.message-text code {
|
|
|
|
font-family: monospace;
|
2020-10-23 00:14:44 +03:00
|
|
|
background-color: darkslategrey;
|
|
|
|
padding: 0.25rem;
|
2020-08-22 09:44:10 +03:00
|
|
|
}
|
2020-08-19 10:16:35 +03:00
|
|
|
|
2020-08-22 10:09:01 +03:00
|
|
|
.message-text .chat-embed {
|
2020-08-13 12:43:41 +03:00
|
|
|
width: 100%;
|
2020-10-23 00:14:44 +03:00
|
|
|
border-radius: 0.25rem;
|
2020-08-13 12:43:41 +03:00
|
|
|
}
|
|
|
|
|
2020-08-19 10:16:35 +03:00
|
|
|
.message-text .instagram-embed {
|
2020-08-22 10:09:01 +03:00
|
|
|
height: 24rem;
|
2020-08-13 12:43:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-text .embedded-image {
|
|
|
|
width: 100%;
|
2020-08-22 09:44:10 +03:00
|
|
|
display: block;
|
2020-08-22 10:09:01 +03:00
|
|
|
/* height: 15rem; */
|
|
|
|
}
|
2021-08-19 03:42:09 +03:00
|
|
|
.message-text ul li {
|
|
|
|
list-style: disc;
|
|
|
|
list-style-position: outside;
|
|
|
|
margin-left: 1.5rem;
|
2021-08-19 02:11:00 +03:00
|
|
|
}
|
|
|
|
|
2020-08-19 10:16:35 +03:00
|
|
|
/* MESSAGE TEXT CONTENT */
|
|
|
|
/* MESSAGE TEXT CONTENT */
|
|
|
|
/* MESSAGE TEXT CONTENT */
|
|
|
|
/* MESSAGE TEXT CONTENT */
|
|
|
|
|
2021-11-03 05:27:41 +03:00
|
|
|
|
|
|
|
/* MODERATOR STYLES */
|
|
|
|
/* MODERATOR STYLES */
|
|
|
|
/* MODERATOR STYLES */
|
|
|
|
|
2021-11-14 04:03:17 +03:00
|
|
|
.moderator-flag {
|
2021-11-03 05:27:41 +03:00
|
|
|
display: inline-block;
|
|
|
|
margin-right: .5rem;
|
2021-11-14 04:03:17 +03:00
|
|
|
margin-top: -1px;
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 1.5rem;
|
2021-11-03 05:27:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.moderator-actions-group {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.moderatable .moderator-actions-group {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
.message.moderatable:hover .moderator-actions-group {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
.message.moderator-menu-open .moderator-actions-group {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.moderatable:focus-within .moderator-actions-group {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.moderator-menu-button {
|
|
|
|
padding: .15rem;
|
|
|
|
height: 1.75rem;
|
|
|
|
width: 1.75rem;
|
|
|
|
border-radius: 50%;
|
|
|
|
text-align: center;
|
|
|
|
margin-left: .05rem;
|
|
|
|
font-size: 1rem;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
.moderator-menu-button:hover {
|
|
|
|
background-color: rgba(0,0,0,.5);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
.moderator-menu-button:focus {
|
|
|
|
border-color: white;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
.moderator-action {
|
|
|
|
padding: .15rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
width: 1.5rem;
|
|
|
|
border-radius: 50%;
|
|
|
|
text-align: center;
|
|
|
|
margin-left: .05rem;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message button:focus,
|
|
|
|
.message button:active {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message.moderatable:last-of-type .moderator-actions-menu,
|
|
|
|
.moderator-actions-menu {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: .5rem;
|
|
|
|
z-index: 999;
|
|
|
|
}
|
|
|
|
.message.moderatable:first-of-type .moderator-actions-menu,
|
|
|
|
.message.moderatable:nth-of-type(2) .moderator-actions-menu,
|
|
|
|
.message.moderatable:first-of-type .moderator-more-info-container,
|
|
|
|
.message.moderatable:nth-of-type(2) .moderator-more-info-container {
|
|
|
|
top: 0;
|
|
|
|
bottom: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.moderator-menu-item {
|
|
|
|
font-size: .875rem;
|
|
|
|
position: relative;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
.moderator-menu-item:focus {
|
|
|
|
border: 1px solid white;
|
|
|
|
}
|
|
|
|
.moderator-menu-item .moderator-menu-icon {
|
|
|
|
height: 1.5rem;
|
|
|
|
width: 1.5rem;
|
|
|
|
font-size: 1.5em;
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.moderator-menu-item .menu-icon-hover {
|
|
|
|
display: none;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
.moderator-menu-item:hover .menu-icon-base {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.moderator-menu-item:hover .menu-icon-hover {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.moderator-more-info-container {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 5;
|
|
|
|
width: calc(var(--right-col-width) - 2rem);
|
|
|
|
}
|
|
|
|
|
|
|
|
.moderator-more-info-message {
|
|
|
|
overflow-y: auto;
|
|
|
|
max-height: 6em;
|
|
|
|
padding: .75rem;
|
|
|
|
}
|
2021-11-13 08:42:43 +03:00
|
|
|
.moderator-more-info-message .text-sm img {
|
|
|
|
display: inline-block;
|
|
|
|
width: 2rem;
|
|
|
|
}
|
|
|
|
|
2021-11-03 05:27:41 +03:00
|
|
|
@media screen and (max-width: 729px) {
|
|
|
|
.moderator-more-info-container {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* MODERATOR STYLES */
|
|
|
|
/* MODERATOR STYLES */
|
|
|
|
/* MODERATOR STYLES */
|