mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
7925e7169a
Little bit of a mix of things in this one: * Support variable-width dialogs. Default is fixed-width as before, only UploadConformDialog is variable-width. Controlled by a prop to BaseDialog. * Fixes to the cancel 'x' - scale the mask image, tweak size & colour * Colour & boldness of dialog titles * Align the dialog title & cancel 'x' * Remove gap between dialog buttons & right hand side of dialog(!) * Round corners on dialogs * Add grey border on image preview in upload confirm dialog * and, squeezing in slightly randomly, finish the partially renamed ChatInviteDialog to AddressPickerDialog.
70 lines
1.7 KiB
SCSS
70 lines
1.7 KiB
SCSS
/*
|
|
Copyright 2016 OpenMarket Ltd
|
|
Copyright 2019 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.
|
|
*/
|
|
|
|
/* Using a textarea for this element, to circumvent autofill */
|
|
.mx_AddressPickerDialog_input,
|
|
.mx_AddressPickerDialog_input:focus
|
|
{
|
|
height: 26px;
|
|
font-size: 14px;
|
|
font-family: $font-family;
|
|
padding-left: 12px;
|
|
padding-right: 12px;
|
|
margin: 0 !important;
|
|
border: 0 !important;
|
|
outline: 0 !important;
|
|
width: 1000%; /* Pretend that this is an "input type=text" */
|
|
resize: none;
|
|
overflow: hidden;
|
|
vertical-align: middle;
|
|
box-sizing: border-box;
|
|
word-wrap: nowrap;
|
|
}
|
|
|
|
.mx_AddressPickerDialog .mx_Dialog_content {
|
|
min-height: 50px
|
|
}
|
|
|
|
.mx_AddressPickerDialog_inputContainer {
|
|
border-radius: 3px;
|
|
border: solid 1px $input-border-color;
|
|
line-height: 36px;
|
|
padding-left: 4px;
|
|
padding-right: 4px;
|
|
padding-top: 1px;
|
|
padding-bottom: 1px;
|
|
max-height: 150px;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.mx_AddressPickerDialog_error {
|
|
margin-top: 10px;
|
|
color: $warning-color;
|
|
}
|
|
|
|
.mx_AddressPickerDialog_cancel {
|
|
position: absolute;
|
|
right: 11px;
|
|
top: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.mx_AddressPickerDialog_cancel object {
|
|
pointer-events: none;
|
|
}
|
|
|