Device manager - device type and verification icons on device tile (PSG-637) (#9197)
* add unknown device icon * add device type and verification icon component * test * stylelint * fix securitycard spacing Co-authored-by: Travis Ralston <travisr@matrix.org>
This commit is contained in:
parent
5aae974e93
commit
825a0af4a9
18 changed files with 480 additions and 27 deletions
|
@ -68,3 +68,7 @@ limitations under the License.
|
|||
font-size: $font-12px;
|
||||
color: $secondary-content;
|
||||
}
|
||||
|
||||
.mx_DeviceSecurityCard_actions {
|
||||
margin-top: $spacing-16;
|
||||
}
|
||||
|
|
66
res/css/components/views/settings/devices/_DeviceType.pcss
Normal file
66
res/css/components/views/settings/devices/_DeviceType.pcss
Normal file
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
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_DeviceType {
|
||||
flex: 0 0 auto;
|
||||
position: relative;
|
||||
margin-right: $spacing-8;
|
||||
/* creates space for verification icon to overlap */
|
||||
padding: 0 $spacing-8 $spacing-8 0;
|
||||
}
|
||||
|
||||
.mx_DeviceType_deviceIcon {
|
||||
--background-color: $system;
|
||||
--icon-color: $secondary-content;
|
||||
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
box-sizing: border-box;
|
||||
|
||||
border: $spacing-8 solid var(--background-color);
|
||||
border-radius: 50%;
|
||||
color: var(--icon-color);
|
||||
background-color: var(--background-color);
|
||||
}
|
||||
|
||||
.mx_DeviceType_selected .mx_DeviceType_deviceIcon {
|
||||
--background-color: $primary-content;
|
||||
--icon-color: $background;
|
||||
}
|
||||
|
||||
.mx_DeviceType_verificationIcon {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
box-sizing: border-box;
|
||||
padding: $spacing-4;
|
||||
|
||||
border: 1px solid $system;
|
||||
border-radius: 50%;
|
||||
background-color: $background;
|
||||
|
||||
color: var(--v-icon-color);
|
||||
|
||||
&.verified {
|
||||
--v-icon-color: $e2e-verified-color;
|
||||
}
|
||||
|
||||
&.unverified {
|
||||
--v-icon-color: $e2e-warning-color;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue