owncast/webroot/styles/chat.css

200 lines
3.6 KiB
CSS
Raw Normal View History

2020-08-24 13:30:42 +03:00
/* some base styles for chat and messaging components */
:root {
/* Override this in your custom CSS to change the
opacity of the message backgrounds. */
--message-background-alpha: 0.3;
}
#chat-container {
position: fixed;
z-index: 9;
bottom: 0;
right: 0;
width: var(--right-col-width);
height: calc(100vh - var(--header-height));
}
@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);
}
#message-input-wrap {
min-height: 2.5rem;
max-height: 5rem;
}
#message-form-actions {
right: 1rem;
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-24 04:33:19 +03:00
#message-input img {
display: inline;
vertical-align: middle;
padding: 0.25rem;
}
#message-input .emoji {
width: 2.2rem;
padding: 0.25rem;
}
/* If the div is empty then show the placeholder */
#message-input:empty:before {
content: attr(placeholderText);
pointer-events: none;
display: block; /* For Firefox */
color: rgba(0, 0, 0, 0.5);
}
/* When chat is enabled (contenteditable=true) */
#message-input[contenteditable='true']:before {
opacity: 1;
}
#message-input::selection {
background: #d7ddf4;
}
/* When chat is disabled (contenteditable=false) chat input div should appear disabled. */
#message-input:disabled,
#message-input[contenteditable='false'] {
opacity: 0.6;
}
/******************************/
/******************************/
/******************************/
/* EMOJI PICKER OVERRIDES */
.emoji-picker__wrapper {
margin-top: -30px !important;
}
.emoji-picker.owncast {
--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);
background: rgba(26, 32, 44, 1); /* tailwind bg-gray-900 */
color: rgba(226, 232, 240, 1); /* tailwind text-gray-300 */
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
}
.emoji-picker__emojis::-webkit-scrollbar {
background: transparent;
border-radius: 8px;
}
.emoji-picker__emojis::-webkit-scrollbar-track {
border-radius: 8px;
background-color: black;
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}
.emoji-picker__emojis::-webkit-scrollbar-thumb {
background-color: var(--category-button-color);
border-radius: 8px;
}
.emoji-picker__emojis {
scrollbar-color: var(--category-button-color) black;
}
.emoji-picker__search {
color: rgba(26, 32, 44, 1);
}
/* MESSAGE TEXT HTML */
/* MESSAGE TEXT HTML */
/* MESSAGE TEXT HTML */
.message-text {
word-break: break-word;
}
.message-text a {
color: #ccd;
transition: color .2s;
}
.message-text a:hover {
text-decoration: underline;
color: #fff;
}
.message-text img {
display: inline;
padding-left: 0 0.25rem;
}
.message-text .emoji {
position: relative;
top: -5px;
width: 3rem;
padding: 0.25rem;
}
.message-text code {
font-family: monospace;
background-color: darkslategrey;
padding: 0.25rem;
}
2020-08-22 10:09:01 +03:00
.message-text .chat-embed {
width: 100%;
border-radius: 0.25rem;
}
.message-text .instagram-embed {
2020-08-22 10:09:01 +03:00
height: 24rem;
}
.message-text .embedded-image {
width: 100%;
display: block;
2020-08-22 10:09:01 +03:00
/* height: 15rem; */
}
.message-text ul li:before {
content: '» ';
}
.message-text p {
margin-bottom: 1.0em;
}
.message-text li {
margin: 0.3em;
margin-bottom: 1.0em;
}
/* MESSAGE TEXT CONTENT */
/* MESSAGE TEXT CONTENT */
/* MESSAGE TEXT CONTENT */
/* MESSAGE TEXT CONTENT */