2020-08-24 12:30:42 +02:00
|
|
|
/* some base styles for chat and messaging components */
|
|
|
|
|
2020-08-22 08:44:10 +02:00
|
|
|
#chat-container {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 9;
|
|
|
|
top: var(--header-height);
|
|
|
|
right: 0;
|
|
|
|
width: var(--right-col-width);
|
|
|
|
|
|
|
|
height: calc(100vh - var(--header-height));
|
|
|
|
}
|
|
|
|
|
2020-08-24 12:30:42 +02:00
|
|
|
#message-input-container {
|
|
|
|
width: var(--right-col-width);
|
2020-08-22 08:44:10 +02:00
|
|
|
}
|
|
|
|
|
2020-09-22 05:11:09 +02:00
|
|
|
#message-input-wrap {
|
|
|
|
min-height: 2.5rem;
|
|
|
|
max-height: 5rem;
|
|
|
|
}
|
|
|
|
#message-form-actions {
|
|
|
|
right: 2rem;
|
|
|
|
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 08:44:10 +02:00
|
|
|
}
|
|
|
|
|
2020-08-22 00:55:52 +02:00
|
|
|
/******************************/
|
|
|
|
/******************************/
|
2020-08-24 03:33:19 +02:00
|
|
|
|
2020-08-22 00:55:52 +02:00
|
|
|
#message-input img {
|
|
|
|
display: inline;
|
|
|
|
vertical-align: middle;
|
2020-10-22 23:14:44 +02:00
|
|
|
padding: 0.25rem;
|
2020-08-22 00:55:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-input .emoji {
|
2020-08-22 08:44:10 +02:00
|
|
|
width: 2.2rem;
|
2020-10-22 23:14:44 +02:00
|
|
|
padding: 0.25rem;
|
2020-08-22 00:55:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* If the div is empty then show the placeholder */
|
2020-10-22 23:14:44 +02:00
|
|
|
#message-input:empty:before {
|
2020-08-22 00:55:52 +02: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-22 23:14:44 +02:00
|
|
|
#message-input[contenteditable='true']:before {
|
|
|
|
opacity: 1;
|
2020-08-22 00:55:52 +02:00
|
|
|
}
|
|
|
|
|
2020-10-22 23:14:44 +02:00
|
|
|
#message-input::selection {
|
|
|
|
background: #d7ddf4;
|
|
|
|
}
|
2020-08-22 00:55:52 +02:00
|
|
|
|
|
|
|
/* When chat is disabled (contenteditable=false) chat input div should appear disabled. */
|
|
|
|
#message-input:disabled,
|
2020-10-22 23:14:44 +02:00
|
|
|
#message-input[contenteditable='false'] {
|
2020-08-22 00:55:52 +02:00
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
/******************************/
|
|
|
|
/******************************/
|
|
|
|
|
2020-09-22 05:11:09 +02:00
|
|
|
/******************************/
|
|
|
|
/* EMOJI PICKER OVERRIDES */
|
|
|
|
.emoji-picker.owncast {
|
2020-10-22 23:14:44 +02: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 05:11:09 +02:00
|
|
|
|
2020-10-22 23:14:44 +02:00
|
|
|
background: rgba(26, 32, 44, 1); /* tailwind bg-gray-900 */
|
|
|
|
color: rgba(226, 232, 240, 1); /* tailwind text-gray-300 */
|
2020-09-22 05:11:09 +02:00
|
|
|
border-color: black;
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
|
|
|
.emoji-picker h2 {
|
|
|
|
font-family: inherit;
|
|
|
|
}
|
|
|
|
|
2020-08-19 23:46:20 +02:00
|
|
|
.emoji-picker__emoji {
|
2020-08-24 04:37:06 +02:00
|
|
|
border-radius: 5px;
|
2020-08-19 23:46:20 +02:00
|
|
|
}
|
2020-08-13 10:28:25 +02:00
|
|
|
|
2020-09-22 05:11:09 +02:00
|
|
|
.emoji-picker__emojis::-webkit-scrollbar {
|
|
|
|
background: transparent;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
.emoji-picker__emojis::-webkit-scrollbar-track {
|
|
|
|
border-radius: 8px;
|
2020-10-03 22:42:48 +02:00
|
|
|
background-color: black;
|
2020-10-22 23:14:44 +02:00
|
|
|
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
|
2020-09-22 05:11:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-picker__emojis::-webkit-scrollbar-thumb {
|
2020-10-03 22:42:48 +02:00
|
|
|
background-color: var(--category-button-color);
|
2020-09-22 05:11:09 +02:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
2020-10-03 22:42:48 +02:00
|
|
|
.emoji-picker__emojis {
|
2020-10-22 23:14:44 +02:00
|
|
|
scrollbar-color: var(--category-button-color) black;
|
2020-10-03 22:42:48 +02:00
|
|
|
}
|
|
|
|
|
2020-12-04 07:28:16 +01:00
|
|
|
.emoji-picker__search {
|
|
|
|
color: rgba(26, 32, 44, 1);
|
|
|
|
}
|
|
|
|
|
2020-08-22 08:44:10 +02:00
|
|
|
/* MESSAGE TEXT HTML */
|
|
|
|
/* MESSAGE TEXT HTML */
|
|
|
|
/* MESSAGE TEXT HTML */
|
2020-09-22 05:11:09 +02:00
|
|
|
.message-text {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
2020-08-19 09:16:35 +02:00
|
|
|
.message-text a {
|
2020-10-22 23:14:44 +02:00
|
|
|
color: #7f9cf5; /* indigo-400 */
|
2020-08-13 10:28:25 +02:00
|
|
|
}
|
2020-08-19 09:16:35 +02:00
|
|
|
.message-text a:hover {
|
2020-08-13 10:28:25 +02:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2020-08-19 09:16:35 +02:00
|
|
|
.message-text img {
|
|
|
|
display: inline;
|
2020-10-22 23:14:44 +02:00
|
|
|
padding-left: 0 0.25rem;
|
2020-08-13 11:43:41 +02:00
|
|
|
}
|
|
|
|
|
2020-08-19 09:16:35 +02:00
|
|
|
.message-text .emoji {
|
2020-10-14 01:45:52 +02:00
|
|
|
position: relative;
|
|
|
|
top: -5px;
|
2020-08-22 08:44:10 +02:00
|
|
|
width: 3rem;
|
2020-10-22 23:14:44 +02:00
|
|
|
padding: 0.25rem;
|
2020-08-13 11:43:41 +02:00
|
|
|
}
|
|
|
|
|
2020-08-22 08:44:10 +02:00
|
|
|
.message-text code {
|
|
|
|
font-family: monospace;
|
2020-10-22 23:14:44 +02:00
|
|
|
background-color: darkslategrey;
|
|
|
|
padding: 0.25rem;
|
2020-08-22 08:44:10 +02:00
|
|
|
}
|
2020-08-19 09:16:35 +02:00
|
|
|
|
2020-08-22 09:09:01 +02:00
|
|
|
.message-text .chat-embed {
|
2020-08-13 11:43:41 +02:00
|
|
|
width: 100%;
|
2020-10-22 23:14:44 +02:00
|
|
|
border-radius: 0.25rem;
|
2020-08-13 11:43:41 +02:00
|
|
|
}
|
|
|
|
|
2020-08-19 09:16:35 +02:00
|
|
|
.message-text .instagram-embed {
|
2020-08-22 09:09:01 +02:00
|
|
|
height: 24rem;
|
2020-08-13 11:43:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message-text .embedded-image {
|
|
|
|
width: 100%;
|
2020-08-22 08:44:10 +02:00
|
|
|
display: block;
|
2020-08-22 09:09:01 +02:00
|
|
|
/* height: 15rem; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-text .youtube-embed {
|
2020-08-27 21:25:46 +02:00
|
|
|
width: 90%;
|
2020-08-26 20:15:09 +02:00
|
|
|
height: auto;
|
2020-08-13 11:43:41 +02:00
|
|
|
}
|
|
|
|
|
2020-08-19 09:16:35 +02:00
|
|
|
/* MESSAGE TEXT CONTENT */
|
|
|
|
/* MESSAGE TEXT CONTENT */
|
|
|
|
/* MESSAGE TEXT CONTENT */
|
|
|
|
/* MESSAGE TEXT CONTENT */
|
|
|
|
|