mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-26 02:18:25 +08:00
4fec436883
* split heading into component * switch between editing and view * style file * basic tests * style device rename component * add loading state * kind of handle missing current device in drilled props * use local loading state, add basic error message * integration-ish test rename * tidy * fussy import ordering * strict errors
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
/*
|
|
Copyright 2022 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_DeviceDetailHeading {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.mx_DeviceDetailHeading_renameCta {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mx_DeviceDetailHeading_renameForm {
|
|
display: grid;
|
|
grid-gap: $spacing-16;
|
|
justify-content: left;
|
|
grid-template-columns: 100%;
|
|
}
|
|
|
|
.mx_DeviceDetailHeading_renameFormButtons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: $spacing-8;
|
|
|
|
.mx_Spinner {
|
|
width: auto;
|
|
flex-grow: 0;
|
|
}
|
|
}
|
|
|
|
.mx_DeviceDetailHeading_renameFormInput {
|
|
// override field styles
|
|
margin: 0 0 $spacing-4 0 !important;
|
|
}
|
|
|
|
.mx_DeviceDetailHeading_renameFormHeading {
|
|
margin: 0;
|
|
}
|
|
|
|
.mx_DeviceDetailHeading_renameFormError {
|
|
color: $alert;
|
|
padding-right: $spacing-4;
|
|
display: block;
|
|
}
|