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