/**
 * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 * @author Team Popcorn <teampopcornberlin@gmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */

// AVATAR
.contact-header-avatar {
	position: relative;
	flex: 1 1 75px;
	min-width: 75px;
	max-width: 120px;
	margin: 10px;

	// Wrap and cut
	&__wrapper {
		position: relative;
		width: 75px;
		height: 75px;
		margin-left: auto;
		overflow: hidden;
		border-radius: 50%;
	}
	&__background {
		opacity: .2;
		z-index: 0;
		left: 0;
		top: 50px;
	}
	&__photo {
		z-index: 10;
		background-size: cover;
		width: 100%;
		height: 100%;
		background-repeat: no-repeat;
		background-position: center;
		cursor: pointer;
	}
	label.icon-upload-white {
		opacity: .5;
		z-index: 2;
		position: absolute;
		width: 100%;
		height: 100%;
		&:hover,
		&:active,
		&:focus {
			opacity: .7;
		}
	}
	&__photo +  label.icon-upload-white {
		opacity: 0;
	}
	&__options {
		top: 0;
		background-color: rgba(0, 0, 0, 0.2);
		width: 100%;
		height: 100%;
		overflow: hidden;
	}
}

.contact-header-avatar.maximised {
	.contact-header-avatar__wrapper {
		position: fixed;
		height: 100%;
		width: 100%;
		top: 0;
		left: 0;
		border-radius: 0;
		margin: 0px;
		background-color: rgba(0, 0, 0, 0.9);
		display: flex;
		justify-content: center;
		z-index: 200;
		padding-top: $header-height;
		flex-direction: column;
		.contact-header-avatar__photo {
			border-radius: 0;
			align-self: center;
			background-size: contain;
			margin: 50px;
		}
		label.icon-upload-white {
			position: relative;
		}
		.contact-header-avatar__options {
			height: 50px;
			width: 100%;
			display: flex;
			flex: 0 0 50px;
			opacity: 1;
			justify-content: space-evenly;
		}
		.contact-header-avatar__options > [class^='icon-'] {
			width: 25%;
			display: block;
			cursor: pointer;
			opacity: 0.5;
		}
		.contact-header-avatar__options > [class^='icon-']:hover {
			opacity: 0.8;
		}
	}
}

.contact-header-avatar-options {
	top: 0;
	background-color: rgba(0, 0, 0, 0.2);
	display: flex;
	width: 100%;
	height: 100%;
	overflow: hidden;
}


