File size: 1,219 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
.author-selector__author-toggle {
	cursor: pointer;

	.gridicon {
		display: inline;
		vertical-align: middle;
		color: var(--color-neutral-40);
	}

	&.is-open .gridicon {
		transform: rotate(180deg);
	}

	&:hover,
	&.is-open {
		.gridicon,
		.editor-author__name {
			color: var(--color-text);
		}
	}
}

.author-selector__author-toggle .editor-author__name {
	margin: 0 3px 0 8px;
}

.author-selector__infinite-list {
	max-height: 280px;
	overflow-y: auto;
	padding: 4px 0;
	width: 200px;
	max-width: 200px;
	white-space: nowrap;
}

.author-selector__menu-item {
	width: 100%;

	.user {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.user__name {
		font-size: $font-body-small;
	}
}

.author-selector__popover.popover {
	z-index: z-index("root", ".author-selector__popover.popover");
}

.author-selector__popover {
	.search {
		border-top: 0;
		border-bottom: 1px solid var(--color-neutral-0);
		border-radius: 2px;
		margin-bottom: 0;

		&.is-open {
			width: 200px;
		}

		& + .author-selector__infinite-list {
			padding-top: 0;
		}
	}
}
.author-selector__no-users {
	padding: 8px 16px;
	line-height: 26px;
	width: 168px;
	font-size: $font-body-small;
	font-style: italic;
	color: var(--color-text-subtle);
}