2019-01-22 20:28:33 +00:00
|
|
|
/*
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_ProfileSettings_profile {
|
2019-01-30 06:11:16 +00:00
|
|
|
display: flex;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_controls {
|
2019-01-30 06:11:16 +00:00
|
|
|
flex-grow: 1;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
2019-01-26 03:38:35 +00:00
|
|
|
.mx_ProfileSettings_controls .mx_Field #profileDisplayName,
|
|
|
|
.mx_ProfileSettings_controls .mx_Field #profileTopic {
|
2019-01-30 06:11:16 +00:00
|
|
|
width: calc(100% - 20px); // subtract 10px padding on left and right
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
2019-01-26 03:38:35 +00:00
|
|
|
.mx_ProfileSettings_controls .mx_Field #profileTopic {
|
2019-01-30 06:11:16 +00:00
|
|
|
height: 4em;
|
2019-01-26 03:38:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_controls .mx_Field:first-child {
|
2019-01-30 06:11:16 +00:00
|
|
|
margin-top: 0;
|
2019-01-26 03:38:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-22 20:28:33 +00:00
|
|
|
.mx_ProfileSettings_avatar {
|
2019-01-30 06:11:16 +00:00
|
|
|
width: 88px;
|
|
|
|
height: 88px;
|
|
|
|
margin-left: 13px;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_avatar > * {
|
2019-01-30 06:11:16 +00:00
|
|
|
display: block;
|
|
|
|
width: 88px;
|
|
|
|
height: 88px;
|
|
|
|
border-radius: 4px;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
2019-01-26 03:38:35 +00:00
|
|
|
.mx_ProfileSettings_avatar .mx_ProfileSettings_avatarOverlay_disabled {
|
2019-01-30 06:11:16 +00:00
|
|
|
cursor: default;
|
2019-01-26 03:38:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-22 20:28:33 +00:00
|
|
|
.mx_ProfileSettings_avatar .mx_ProfileSettings_avatarPlaceholder {
|
2019-01-30 06:11:16 +00:00
|
|
|
background-color: $settings-profile-placeholder-bg-color;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_avatarOverlay {
|
2019-01-30 06:11:16 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
display: none;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
font-size: 10px;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
2019-01-26 03:38:35 +00:00
|
|
|
.mx_ProfileSettings_avatar:hover .mx_ProfileSettings_avatarOverlay:not(.mx_ProfileSettings_avatarOverlay_disabled) {
|
2019-01-30 06:11:16 +00:00
|
|
|
display: inline-block;
|
|
|
|
opacity: 0.5 !important;
|
|
|
|
color: $settings-profile-overlay-fg-color !important;
|
|
|
|
background-color: $settings-profile-overlay-bg-color !important;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_avatarOverlay_show {
|
2019-01-30 06:11:16 +00:00
|
|
|
display: inline-block;
|
|
|
|
opacity: 1;
|
|
|
|
color: $settings-profile-overlay-placeholder-fg-color;
|
|
|
|
background-color: $settings-profile-overlay-placeholder-bg-color;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_avatarOverlayText {
|
2019-01-30 06:11:16 +00:00
|
|
|
display: block;
|
|
|
|
margin-top: 17px;
|
|
|
|
margin-bottom: 8px;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
2019-01-26 03:38:35 +00:00
|
|
|
.mx_ProfileSettings_noAvatarText {
|
2019-01-30 06:11:16 +00:00
|
|
|
display: block;
|
|
|
|
margin: 34px auto auto;
|
2019-01-26 03:38:35 +00:00
|
|
|
}
|
|
|
|
|
2019-01-22 20:28:33 +00:00
|
|
|
.mx_ProfileSettings_avatarOverlayImgContainer {
|
2019-01-30 06:11:16 +00:00
|
|
|
position: relative;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
margin: auto;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_avatarOverlayImg:before {
|
2019-01-30 06:11:16 +00:00
|
|
|
background-color: $settings-profile-overlay-placeholder-fg-color;
|
|
|
|
mask: url("$(res)/img/feather-icons/upload.svg");
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: 14px;
|
|
|
|
mask-position: center;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_avatar:hover .mx_ProfileSettings_avatarOverlayImg:before {
|
2019-01-30 06:11:16 +00:00
|
|
|
background-color: $settings-profile-overlay-fg-color !important;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_ProfileSettings_avatarUpload {
|
2019-01-30 06:11:16 +00:00
|
|
|
display: none;
|
2019-01-22 20:28:33 +00:00
|
|
|
}
|