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

63 lines
1.3 KiB
SCSS
Raw Normal View History

2022-05-04 00:55:13 +03:00
.root {
position: relative;
display: flex;
2022-05-22 09:37:23 +03:00
bottom: 0px;
width: 100%;
padding: 0.3rem;
color: var(--theme-color-components-form-field-text);
border-radius: var(--theme-rounded-corners);
outline: 1px solid gray;
2022-05-22 09:37:23 +03:00
overflow-x: hidden;
div[role='textbox'] {
2022-05-22 15:28:51 +03:00
font-size: 0.9rem;
border-radius: 0.2rem;
padding: 0.6rem;
2022-05-22 09:37:23 +03:00
padding-right: calc(0.6rem + 44px);
background-color: var(--theme-color-components-form-field-background);
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;
&:focus {
box-shadow: inset 0px 0px 0x 1px var(--color-owncast-purple-700);
outline: 1px solid var(--color-owncast-gray-500) !important;
}
2022-05-17 17:36:07 +03:00
& > p {
margin: 0px;
}
}
2022-05-22 15:28:51 +03:00
2022-07-08 23:20:22 +03:00
.inputWrapper {
display: flex;
flex-direction: row;
2022-07-08 23:20:22 +03:00
position: relative;
margin-right: 0.3rem;
border-radius: 0.2rem;
2022-07-08 23:20:22 +03:00
& > div {
transition: box-shadow 0.2s ease-in-out;
}
}
2022-05-22 09:37:23 +03:00
2022-07-08 23:20:22 +03:00
.submitButtonWrapper {
display: flex;
padding: 6px 0;
justify-content: flex-end;
}
2022-05-22 09:37:23 +03:00
}
.sendButton {
display: none;
2022-07-08 23:20:22 +03:00
@media (max-width: 768px) {
display: inline;
margin-left: 5px;
2022-07-08 23:20:22 +03:00
}
2022-05-22 09:37:23 +03:00
}
.emojiButton {
border: none;
background: none;
cursor: pointer;
padding: 0 1rem;
}