2019-08-06 23:03:44 +08:00
|
|
|
/*
|
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_SendMessageComposer {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-14px;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* fixed line height to prevent emoji from being taller than text */
|
2022-05-13 23:31:27 +08:00
|
|
|
line-height: $font-18px;
|
2019-08-07 20:06:44 +08:00
|
|
|
justify-content: center;
|
2019-08-07 20:51:49 +08:00
|
|
|
margin-right: 6px;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* don't grow wider than available space */
|
2019-08-07 20:51:49 +08:00
|
|
|
min-width: 0;
|
2019-08-06 23:03:44 +08:00
|
|
|
|
|
|
|
.mx_BasicMessageComposer {
|
2019-08-07 20:06:44 +08:00
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* min-height at this level so the mx_BasicMessageComposer_input */
|
|
|
|
/* still stays vertically centered when less than 55px. */
|
|
|
|
/* We also set this to ensure the voice message recording widget */
|
|
|
|
/* doesn't cause a jump. */
|
2022-06-27 16:43:58 +08:00
|
|
|
min-height: 55px;
|
2019-08-07 20:06:44 +08:00
|
|
|
|
2019-08-06 23:03:44 +08:00
|
|
|
.mx_BasicMessageComposer_input {
|
2022-06-27 16:43:58 +08:00
|
|
|
padding: 3px 0;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* this will center the contenteditable */
|
|
|
|
/* in it's parent vertically */
|
|
|
|
/* while keeping the autocomplete at the top */
|
|
|
|
/* of the composer. The parent needs to be a flex container for this to work. */
|
2019-09-03 16:27:45 +08:00
|
|
|
margin: auto 0;
|
2022-07-27 21:39:29 +08:00
|
|
|
/* max-height at this level so autocomplete doesn't get scrolled too */
|
2019-08-07 20:51:49 +08:00
|
|
|
max-height: 140px;
|
|
|
|
overflow-y: auto;
|
2019-08-06 23:03:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|