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

69 lines
1.2 KiB
SCSS
Raw Normal View History

2022-05-04 00:55:13 +03:00
.root {
position: relative;
2022-05-22 09:37:23 +03:00
bottom: 0px;
width: 100%;
2022-05-17 17:36:07 +03:00
padding: .3rem;
color: var(--text-secondry);
2022-05-22 09:37:23 +03:00
overflow-x: hidden;
2022-05-17 17:36:07 +03:00
div[role=textbox] {
2022-05-22 15:28:51 +03:00
font-size: 0.9rem;
2022-07-08 23:20:22 +03:00
border-radius: .2rem;
2022-05-17 17:36:07 +03:00
padding: .6rem;
2022-05-22 09:37:23 +03:00
padding-right: calc(0.6rem + 44px);
2022-05-17 17:36:07 +03:00
background-color: var(--color-owncast-gray-700);
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;
position: relative;
margin-right: .3rem;
border-radius: .2rem;
& > div {
transition: box-shadow .2s ease-in-out;
}
}
2022-07-08 23:20:22 +03:00
.emojiButton {
border: none;
background: none;
cursor: pointer;
padding: 0 1rem;
position: absolute;
right: 0px;
top: 50%;
transform: translateY(-50%);
svg {
fill: var(--color-owncast-gray-300);
}
}
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
}
2022-07-08 23:20:22 +03:00
.mobile {
&.root {
display: flex;
.inputWrapper {
flex: 1;
}
.submitButtonWrapper {
padding: 0px;
}
}
2022-05-22 09:37:23 +03:00
}