owncast/web/components/chat/ChatTextField/ChatTextField.module.scss

84 lines
1.6 KiB
SCSS
Raw Normal View History

2023-06-21 06:56:37 +03:00
@import '../../../styles/mixins';
2022-05-04 00:55:13 +03:00
.root {
position: relative;
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;
background-color: var(--theme-color-components-chat-background);
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
}
// Size of custom emoji.
img {
width: 20px;
height: 20px;
}
2022-10-01 11:34:59 +03:00
}
.maxCharacters {
border-style: solid;
border-width: 2px;
border-color: red;
}
div[role='textbox'] {
font-size: 13px;
font-weight: 400;
2022-10-01 11:34:59 +03:00
padding: 0.3rem;
background-color: inherit;
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;
max-height: 40px; // 2 lines of text
min-height: 30px;
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
}
}
// Placeholder styling
2023-06-21 06:56:37 +03:00
:empty::before {
content: attr(placeholder);
display: block;
color: #aaa;
}
2022-05-22 09:37:23 +03:00
}
.emojiButton {
border: none;
background: none;
cursor: pointer;
padding: 0 0.25rem;
}
2022-10-05 05:04:23 +03:00
.sendButton {
border: none;
background: none;
cursor: pointer;
padding: 0 1rem;
}