2023-06-20 20:56:37 -07:00
|
|
|
@import '../../../styles/mixins';
|
2022-10-22 10:45:54 +02:00
|
|
|
|
2022-05-03 23:55:13 +02:00
|
|
|
.root {
|
2022-07-03 12:36:30 +02:00
|
|
|
position: relative;
|
2022-08-21 18:47:08 -07:00
|
|
|
display: flex;
|
2023-06-20 20:56:37 -07:00
|
|
|
bottom: 0;
|
2022-05-22 08:37:23 +02:00
|
|
|
width: 100%;
|
2023-01-28 19:10:12 -08:00
|
|
|
padding: 0.6em;
|
2023-01-18 20:23:50 -08:00
|
|
|
background-color: var(--theme-color-components-chat-background);
|
2022-08-29 23:17:12 -07:00
|
|
|
|
2022-10-01 10:34:59 +02:00
|
|
|
.inputWrap {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
color: var(--theme-color-components-form-field-text);
|
|
|
|
background-color: var(--theme-color-palette-3);
|
|
|
|
border-radius: var(--theme-rounded-corners);
|
2023-06-20 20:56:37 -07:00
|
|
|
bottom: 0;
|
2022-10-01 10:34:59 +02:00
|
|
|
width: 100%;
|
|
|
|
padding: 0.3rem;
|
|
|
|
transition: box-shadow 90ms ease-in-out;
|
2023-06-20 20:56:37 -07:00
|
|
|
|
2022-10-01 10:34:59 +02:00
|
|
|
&:focus-within {
|
|
|
|
background-color: var(--theme-color-components-form-field-background);
|
2023-06-20 20:56:37 -07:00
|
|
|
box-shadow: inset 0 0 2px 2px var(--theme-color-palette-3);
|
2022-10-01 10:34:59 +02:00
|
|
|
}
|
2023-06-20 17:05:24 -07:00
|
|
|
|
|
|
|
// Size of custom emoji.
|
|
|
|
img {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
2022-10-01 10:34:59 +02:00
|
|
|
}
|
|
|
|
|
2022-10-08 22:33:43 -07:00
|
|
|
.maxCharacters {
|
|
|
|
border-style: solid;
|
2023-06-20 17:05:24 -07:00
|
|
|
border-width: 2px;
|
2022-10-08 22:33:43 -07:00
|
|
|
border-color: red;
|
|
|
|
}
|
|
|
|
|
2022-08-21 18:47:08 -07:00
|
|
|
div[role='textbox'] {
|
2023-04-24 10:58:57 -07:00
|
|
|
font-size: 13px;
|
2023-06-20 17:05:24 -07:00
|
|
|
font-weight: 400;
|
2022-10-01 10:34:59 +02:00
|
|
|
padding: 0.3rem;
|
|
|
|
background-color: inherit;
|
2022-08-29 23:17:12 -07:00
|
|
|
border-color: var(--theme-color-components-form-field-border);
|
2022-07-08 22:20:22 +02:00
|
|
|
box-shadow: 0;
|
|
|
|
transition: box-shadow 50ms ease-in-out;
|
2023-06-20 17:05:24 -07:00
|
|
|
max-height: 40px; // 2 lines of text
|
|
|
|
min-height: 30px;
|
2023-06-20 20:32:35 -07:00
|
|
|
cursor: text;
|
2023-07-11 20:13:04 +00:00
|
|
|
overflow-x: auto;
|
2023-06-20 20:32:35 -07:00
|
|
|
|
2022-07-08 22:20:22 +02:00
|
|
|
&:focus {
|
|
|
|
outline: 1px solid var(--color-owncast-gray-500) !important;
|
|
|
|
}
|
2023-06-20 20:56:37 -07:00
|
|
|
|
2022-05-17 16:36:07 +02:00
|
|
|
& > p {
|
2023-06-20 20:56:37 -07:00
|
|
|
margin: 0;
|
2022-05-17 16:36:07 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-20 17:05:24 -07:00
|
|
|
|
|
|
|
// Placeholder styling
|
2023-06-20 20:56:37 -07:00
|
|
|
:empty::before {
|
2023-06-20 17:05:24 -07:00
|
|
|
content: attr(placeholder);
|
|
|
|
display: block;
|
|
|
|
color: #aaa;
|
|
|
|
}
|
2022-05-22 08:37:23 +02:00
|
|
|
}
|
2022-08-21 18:47:08 -07:00
|
|
|
|
|
|
|
.emojiButton {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
cursor: pointer;
|
2023-06-20 17:05:24 -07:00
|
|
|
padding: 0 0.25rem;
|
2022-08-21 18:47:08 -07:00
|
|
|
}
|
2022-10-04 19:04:23 -07:00
|
|
|
|
|
|
|
.sendButton {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|