File size: 2,013 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118


.author-compact-profile {
	font-size: $font-body-small;
	display: flex;
	flex-direction: column;
	width: 100%;

	.reader-avatar {
		margin-bottom: 18px;
	}

	.gravatar,
	.site-icon {
		margin: auto;
	}

	.follow-button {
		border: 0;
		border-radius: 0;
		padding: 0;

		.reader-follow-feed {
			fill: var(--color-primary);
		}

		.follow-button__label {
			color: var(--color-primary);

			@include breakpoint-deprecated( "<660px" ) {
				display: inline-block;
			}
		}

		&.is-following .follow-button__label {
			color: var(--color-success);
		}

		// No hover if already following
		&.is-following {
			&:hover {
				.reader-follow-feed {
					fill: var(--color-success);
				}

				.follow-button__label {
					color: var(--color-success);
				}
			}
		}
	}

	// If there's an author link, present site stream link in normal font weight
	&.has-author-link {
		.author-compact-profile__site-link {
			font-weight: inherit;
			margin-top: 4px;
		}
	}
}

.author-compact-profile__names {
	a {
		text-decoration: none;
	}
}

.author-compact-profile .reader-author-link,
.author-compact-profile__site-link,
.author-compact-profile__follow {
	align-items: center;
	color: var(--color-primary);
	display: flex;
	justify-content: center;

	&:hover {
		color: var(--color-text-subtle);
	}
}

.author-compact-profile .reader-author-link,
.author-compact-profile__site-link {
	font-weight: 600;
}

.author-compact-profile__follow {
	display: flex;
	flex-wrap: wrap;
	margin: 11px 0 5px;

	.follow-button {
		padding: 5px;
		background-color: inherit;
	}
}

.author-compact-profile__follow-count {
	color: var(--color-text-subtle);
	padding: 5px;
}

// Placeholders
.author-compact-profile__site-link.is-placeholder,
.author-compact-profile__follow-count.is-placeholder {
	@include placeholder();
}

.author-compact-profile__site-link.is-placeholder {
	@include breakpoint-deprecated( ">660px" ) {
		margin-left: 50px;
		margin-right: 50px;
	}
}

.author-compact-profile__follow-count.is-placeholder {
	padding: 0;
}