mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
6cf9166c4a
It's become obvious that these random floating points everywhere are unwieldy. Now they're all in one place with some fairly logical variable names which will help out in design->implementation phase.
96 lines
2.4 KiB
SCSS
96 lines
2.4 KiB
SCSS
/*
|
|
Copyright 2016 OpenMarket 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_MemberDeviceInfo {
|
|
display: flex;
|
|
padding-bottom: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo_icon {
|
|
margin-top: 4px;
|
|
width: 12px;
|
|
height: 12px;
|
|
mask-repeat: no-repeat;
|
|
mask-size: 100%;
|
|
}
|
|
.mx_MemberDeviceInfo_icon_blacklisted {
|
|
mask-image: url('$(res)/img/e2e/blacklisted.svg');
|
|
background-color: $warning-color;
|
|
}
|
|
.mx_MemberDeviceInfo_icon_verified {
|
|
mask-image: url('$(res)/img/e2e/verified.svg');
|
|
background-color: $accent-color;
|
|
}
|
|
.mx_MemberDeviceInfo_icon_unverified {
|
|
mask-image: url('$(res)/img/e2e/warning.svg');
|
|
background-color: $warning-color;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo > .mx_DeviceVerifyButtons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 0 1 auto;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo_textButton {
|
|
@mixin mx_DialogButton_small;
|
|
margin: 2px;
|
|
flex: 1;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo_textButton:hover {
|
|
@mixin mx_DialogButton_hover;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo_deviceId {
|
|
word-break: break-word;
|
|
font-size: $font-13px;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo_deviceInfo {
|
|
margin: 0 5px 5px 8px;
|
|
flex: 1;
|
|
}
|
|
|
|
/* "Unblacklist" is too long for a regular button: make it wider and
|
|
reduce the padding. */
|
|
.mx_EncryptedEventDialog .mx_MemberDeviceInfo_blacklist,
|
|
.mx_EncryptedEventDialog .mx_MemberDeviceInfo_unblacklist {
|
|
padding-left: 1em;
|
|
padding-right: 1em;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo div.mx_MemberDeviceInfo_verified,
|
|
.mx_MemberDeviceInfo div.mx_MemberDeviceInfo_unverified,
|
|
.mx_MemberDeviceInfo div.mx_MemberDeviceInfo_blacklisted {
|
|
float: right;
|
|
padding-left: 1em;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo div.mx_MemberDeviceInfo_verified {
|
|
color: $e2e-verified-color;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo div.mx_MemberDeviceInfo_unverified {
|
|
color: $e2e-unverified-color;
|
|
}
|
|
|
|
.mx_MemberDeviceInfo div.mx_MemberDeviceInfo_blacklisted {
|
|
color: $e2e-warning-color;
|
|
}
|