File size: 1,776 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
@import '@wordpress/base-styles/breakpoints';

.edit-gravatar {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 205px;

	.edit-gravatar__image-container {
		position: relative;
		display: flex;
	}

	.edit-gravatar__caution-icon {
		position: absolute;
		display: flex;
		justify-content: center;
		align-items: center;
		bottom: 0;
		right: 0;
		background-color: var( --studio-red-60 );
		border: 2px solid #fff;
		border-radius: 50%;
		width: 48px;
		height: 48px;
		box-sizing: border-box;
	}

	.edit-gravatar__explanation-container {
		display: flex;
		align-items: center;
		margin: 15px 0 20px;
		min-height: 24px;
	}

	.edit-gravatar__action-button {
		font-size: 14px;
		text-decoration: none;
		text-wrap: pretty;
	}

	.edit-gravatar__explanation {
		color: var( --color-text-subtle );
		font-size: $font-body-small;
		font-style: italic;
		margin: 0;
	}

	.edit-gravatar__avatar-placeholder,
	.edit-gravatar__action-button-placeholder {
		@include placeholder();
	}

	.edit-gravatar__avatar-placeholder,
	.edit-gravatar__hidden-avatar {
		width: 150px;
		height: 150px;
		border-radius: 50%;
	}

	.edit-gravatar__hidden-avatar {
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: var( --studio-gray-5 );
	}

	.edit-gravatar__action-button-placeholder {
		height: 24px;
		width: 160px;
	}

	.edit-gravatar__pop-over svg {
		margin-top: 2px;
	}

	&.edit-gravatar--is-unverified {
		.gravatar {
			opacity: 0.33;
		}
	}

	@media ( min-width: $break-large ) {
		.edit-gravatar__action-button,
		.edit-gravatar__explanation {
			max-width: 260px;
		}
	}
}

/* Override the default popover styles. */
.popover__inner {
	.gridicons-external {
		margin-left: 1px;
	}

	p:last-of-type {
		margin-bottom: 0;
	}
}