5b88b64950
This updates the custom status context menu to match the latest comps. A single button is used for setting / clearing, depending on what is appropriate. The state logic is also changed to depend on events and storage from js-sdk for the committed status message. This makes it easy to distinguish the value being edited from what's currently committed.
56 lines
1.4 KiB
SCSS
56 lines
1.4 KiB
SCSS
/*
|
|
Copyright 2018 New Vector Ltd
|
|
|
|
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_StatusMessageContextMenu {
|
|
padding: 10px;
|
|
}
|
|
|
|
.mx_StatusMessageContextMenu_form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
input.mx_StatusMessageContextMenu_message {
|
|
border-radius: 4px;
|
|
border: 1px solid $input-border-color;
|
|
padding: 6.5px 11px;
|
|
background-color: $primary-bg-color;
|
|
font-weight: normal;
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.mx_StatusMessageContextMenu_message::placeholder {
|
|
color: $memberstatus-placeholder-color;
|
|
}
|
|
|
|
.mx_StatusMessageContextMenu_submit,
|
|
.mx_StatusMessageContextMenu_clear {
|
|
@mixin mx_DialogButton;
|
|
align-self: start;
|
|
font-size: 12px;
|
|
padding: 6px 1em;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.mx_StatusMessageContextMenu_submit[disabled] {
|
|
opacity: 0.49;
|
|
}
|
|
|
|
.mx_StatusMessageContextMenu_clear {
|
|
color: $warning-color;
|
|
background-color: transparent;
|
|
border: 1px solid $warning-color;
|
|
}
|