2018-04-11 23:23:35 +00:00
|
|
|
/*
|
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2018-08-21 14:56:56 +00:00
|
|
|
Copyright 2018 New Vector Ltd
|
2018-04-11 23:23:35 +00:00
|
|
|
|
|
|
|
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_MessageComposer_wrapper {
|
|
|
|
vertical-align: middle;
|
|
|
|
margin: auto;
|
|
|
|
border-top: 1px solid $primary-hairline-color;
|
|
|
|
position: relative;
|
2019-01-31 14:13:18 +00:00
|
|
|
padding-left: 84px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-02-01 12:40:42 +00:00
|
|
|
.mx_MessageComposer_wrapper.mx_MessageComposer_hasE2EIcon {
|
|
|
|
padding-left: 109px;
|
|
|
|
}
|
|
|
|
|
2018-08-21 14:56:56 +00:00
|
|
|
.mx_MessageComposer_replaced_wrapper {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_replaced_valign {
|
|
|
|
height: 60px;
|
|
|
|
display: table-cell;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_roomReplaced_icon {
|
|
|
|
float: left;
|
|
|
|
margin-right: 20px;
|
|
|
|
margin-top: 5px;
|
2018-08-21 16:57:15 +00:00
|
|
|
width: 31px;
|
|
|
|
height: 31px;
|
2018-08-21 14:56:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_roomReplaced_header {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2018-04-11 23:23:35 +00:00
|
|
|
.mx_MessageComposer_autocomplete_wrapper {
|
|
|
|
position: relative;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_row {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer .mx_MessageComposer_avatar {
|
2019-01-31 14:13:18 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 27px;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer .mx_MessageComposer_avatar .mx_BaseAvatar {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_composecontrols {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-02-01 12:40:42 +00:00
|
|
|
.mx_MessageComposer_e2eIcon.mx_E2EIcon {
|
2018-04-11 23:23:35 +00:00
|
|
|
position: absolute;
|
2018-10-23 07:33:35 +00:00
|
|
|
left: 60px;
|
2019-02-01 12:40:42 +00:00
|
|
|
background-color: $composer-e2e-icon-color;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_noperm_error {
|
|
|
|
width: 100%;
|
|
|
|
height: 60px;
|
|
|
|
font-style: italic;
|
|
|
|
color: $greyed-fg-color;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_input_wrapper {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-06-23 15:40:53 +00:00
|
|
|
cursor: text;
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_input {
|
|
|
|
flex: 1;
|
|
|
|
vertical-align: middle;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-height: 60px;
|
2018-05-08 00:54:06 +00:00
|
|
|
justify-content: start;
|
2018-04-11 23:23:35 +00:00
|
|
|
align-items: flex-start;
|
|
|
|
font-size: 14px;
|
|
|
|
margin-right: 6px;
|
|
|
|
}
|
|
|
|
|
2018-05-06 00:18:26 +00:00
|
|
|
.mx_MessageComposer_editor {
|
|
|
|
width: 100%;
|
|
|
|
max-height: 120px;
|
2018-05-08 00:54:06 +00:00
|
|
|
min-height: 19px;
|
2019-01-30 11:53:15 +00:00
|
|
|
overflow-y: auto;
|
|
|
|
overflow-x: hidden;
|
2018-05-23 00:43:03 +00:00
|
|
|
word-break: break-word;
|
2018-05-06 00:18:26 +00:00
|
|
|
}
|
|
|
|
|
2018-05-19 19:28:38 +00:00
|
|
|
// FIXME: rather unpleasant hack to get rid of <p/> margins.
|
|
|
|
// really we should be mixing in markdown-body from gfm.css instead
|
|
|
|
.mx_MessageComposer_editor > :first-child {
|
2019-07-09 17:15:10 +00:00
|
|
|
margin-top: 0 !important;
|
2018-05-19 19:28:38 +00:00
|
|
|
}
|
|
|
|
.mx_MessageComposer_editor > :last-child {
|
2019-07-09 17:15:10 +00:00
|
|
|
margin-bottom: 0 !important;
|
2018-05-19 19:28:38 +00:00
|
|
|
}
|
|
|
|
|
2019-07-09 17:15:10 +00:00
|
|
|
@keyframes visualbell {
|
2019-08-28 16:00:57 +00:00
|
|
|
from { background-color: $visual-bell-bg-color; }
|
2019-07-09 17:15:10 +00:00
|
|
|
to { background-color: $primary-bg-color; }
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_input_error {
|
|
|
|
animation: 0.2s visualbell;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_input blockquote {
|
|
|
|
color: $blockquote-fg-color;
|
|
|
|
margin: 0 0 16px;
|
|
|
|
padding: 0 15px;
|
|
|
|
border-left: 4px solid $blockquote-bar-color;
|
|
|
|
}
|
|
|
|
|
2018-05-23 00:43:03 +00:00
|
|
|
.mx_MessageComposer_input pre {
|
2018-04-11 23:23:35 +00:00
|
|
|
background-color: $rte-code-bg-color;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_input textarea {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0px;
|
|
|
|
margin-top: 6px;
|
|
|
|
margin-bottom: 6px;
|
|
|
|
border: 0px;
|
|
|
|
resize: none;
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
color: $primary-fg-color;
|
|
|
|
background-color: $primary-bg-color;
|
|
|
|
font-size: 14px;
|
|
|
|
max-height: 120px;
|
|
|
|
overflow: auto;
|
|
|
|
/* needed for FF */
|
|
|
|
font-family: $font-family;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* hack for FF as vertical alignment of custom placeholder text is broken */
|
|
|
|
.mx_MessageComposer_input textarea::-moz-placeholder {
|
|
|
|
line-height: 100%;
|
|
|
|
color: $accent-color;
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
|
|
|
.mx_MessageComposer_input textarea::-webkit-input-placeholder {
|
|
|
|
color: $accent-color;
|
|
|
|
}
|
|
|
|
|
2019-02-12 18:05:19 +00:00
|
|
|
.mx_MessageComposer_button {
|
2019-11-01 14:46:30 +00:00
|
|
|
position: relative;
|
2019-02-12 18:05:19 +00:00
|
|
|
margin-right: 12px;
|
2018-04-11 23:23:35 +00:00
|
|
|
cursor: pointer;
|
2019-02-12 18:05:19 +00:00
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
2019-11-01 14:46:30 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
background-color: $composer-button-color;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
|
|
|
}
|
2019-02-12 18:05:19 +00:00
|
|
|
}
|
|
|
|
|
2019-11-01 14:46:30 +00:00
|
|
|
.mx_MessageComposer_upload::before {
|
2019-02-27 10:42:05 +00:00
|
|
|
mask-image: url('$(res)/img/feather-customised/paperclip.svg');
|
2019-02-12 18:05:19 +00:00
|
|
|
}
|
|
|
|
|
2019-11-01 14:46:30 +00:00
|
|
|
.mx_MessageComposer_hangup::before {
|
2019-02-12 18:05:19 +00:00
|
|
|
mask-image: url('$(res)/img/hangup.svg');
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
2019-11-01 14:46:30 +00:00
|
|
|
.mx_MessageComposer_voicecall::before {
|
2019-02-27 10:42:05 +00:00
|
|
|
mask-image: url('$(res)/img/feather-customised/phone.svg');
|
2019-02-12 18:05:19 +00:00
|
|
|
}
|
|
|
|
|
2019-11-01 14:46:30 +00:00
|
|
|
.mx_MessageComposer_videocall::before {
|
2019-02-27 10:42:05 +00:00
|
|
|
mask-image: url('$(res)/img/feather-customised/video.svg');
|
2019-02-12 18:05:19 +00:00
|
|
|
}
|
|
|
|
|
2019-11-01 14:46:30 +00:00
|
|
|
.mx_MessageComposer_stickers::before {
|
2019-02-27 10:42:05 +00:00
|
|
|
mask-image: url('$(res)/img/feather-customised/face.svg');
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_formatting {
|
|
|
|
cursor: pointer;
|
|
|
|
margin: 0 11px;
|
|
|
|
width: 24px;
|
|
|
|
height: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_formatbar_wrapper {
|
|
|
|
width: 100%;
|
|
|
|
background-color: $menu-bg-color;
|
|
|
|
box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.08);
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_formatbar {
|
|
|
|
margin: auto;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-left: 62px;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 10px;
|
|
|
|
color: $greyed-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_formatbar * {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_format_button,
|
|
|
|
.mx_MessageComposer_formatbar_cancel,
|
|
|
|
.mx_MessageComposer_formatbar_markdown {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_formatbar_cancel {
|
|
|
|
margin-right: 22px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_formatbar_markdown {
|
2019-02-18 18:26:40 +00:00
|
|
|
height: 17px;
|
|
|
|
width: 30px;
|
2018-04-11 23:23:35 +00:00
|
|
|
margin-right: 64px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_input_markdownIndicator {
|
|
|
|
height: 10px;
|
2019-02-18 18:26:40 +00:00
|
|
|
width: 12px;
|
2018-04-11 23:23:35 +00:00
|
|
|
padding: 4px 4px 4px 0;
|
2019-02-18 18:26:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_formatbar_markdown,
|
|
|
|
.mx_MessageComposer_input_markdownIndicator {
|
|
|
|
cursor: pointer;
|
|
|
|
mask-image: url('$(res)/img/markdown.svg');
|
|
|
|
mask-size: contain;
|
|
|
|
mask-position: center;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
background-color: $composer-button-color;
|
|
|
|
|
|
|
|
&.mx_MessageComposer_markdownDisabled {
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
2018-04-11 23:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MatrixChat_useCompactLayout {
|
|
|
|
.mx_MessageComposer_input {
|
|
|
|
min-height: 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_MessageComposer_noperm_error {
|
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
}
|