88 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			SCSS
		
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			SCSS
		
	
	
/*
 | 
						|
Copyright 2019 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_AvatarSetting_avatar {
 | 
						|
    width: $font-88px;
 | 
						|
    height: $font-88px;
 | 
						|
    margin-left: 13px;
 | 
						|
    position: relative;
 | 
						|
 | 
						|
    & > * {
 | 
						|
        width: $font-88px;
 | 
						|
        box-sizing: border-box;
 | 
						|
    }
 | 
						|
 | 
						|
    .mx_AccessibleButton.mx_AccessibleButton_kind_primary {
 | 
						|
        margin-top: 8px;
 | 
						|
 | 
						|
        div {
 | 
						|
            position: relative;
 | 
						|
            height: 12px;
 | 
						|
            width: 12px;
 | 
						|
            display: inline;
 | 
						|
            padding-right: 6px; // 0.5 * 12px
 | 
						|
            left: -6px; // 0.5 * 12px
 | 
						|
            top: 3px;
 | 
						|
        }
 | 
						|
 | 
						|
        div::before {
 | 
						|
            content: '';
 | 
						|
            position: absolute;
 | 
						|
            height: 12px;
 | 
						|
            width: 12px;
 | 
						|
 | 
						|
            background-color: $button-primary-fg-color;
 | 
						|
            mask-repeat: no-repeat;
 | 
						|
            mask-size: contain;
 | 
						|
            mask-image: url('$(res)/img/feather-customised/upload.svg');
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    .mx_AccessibleButton.mx_AccessibleButton_kind_link_sm {
 | 
						|
        color: $button-danger-bg-color;
 | 
						|
    }
 | 
						|
 | 
						|
    & > img {
 | 
						|
        cursor: pointer;
 | 
						|
        object-fit: cover;
 | 
						|
    }
 | 
						|
 | 
						|
    & > img,
 | 
						|
    .mx_AvatarSetting_avatarPlaceholder {
 | 
						|
        display: block;
 | 
						|
        height: $font-88px;
 | 
						|
        border-radius: 4px;
 | 
						|
    }
 | 
						|
 | 
						|
    .mx_AvatarSetting_avatarPlaceholder::before {
 | 
						|
        background-color: $settings-profile-overlay-placeholder-fg-color;
 | 
						|
        mask: url("$(res)/img/feather-customised/user.svg");
 | 
						|
        mask-repeat: no-repeat;
 | 
						|
        mask-size: 36px;
 | 
						|
        mask-position: center;
 | 
						|
        content: '';
 | 
						|
        position: absolute;
 | 
						|
        top: 0;
 | 
						|
        bottom: 0;
 | 
						|
        left: 0;
 | 
						|
        right: 0;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
.mx_AvatarSetting_avatar .mx_AvatarSetting_avatarPlaceholder {
 | 
						|
    background-color: $settings-profile-placeholder-bg-color;
 | 
						|
}
 |