File size: 3,790 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
@import '@wordpress/base-styles/mixins';
@import '@wordpress/base-styles/breakpoints';

.is-section-reader {
	.user-profile-header {
		max-width: 768px;
		margin: 0 auto;
		padding: 0 16px;
		overflow: hidden;

		&::after {
			@include long-content-fade( $size: 16px );
		}

		&__main {
			display: flex;
			padding: 0 0 24px;
			align-items: center;

			@include breakpoint-deprecated( '<660px' ) {
				padding-top: 20px;
			}
		}

		&__avatar {
			margin-right: 24px;
			flex-shrink: 0;
			width: 116px;
			height: 116px;

			img {
				border-radius: 100%;
				width: 100%;
				height: 100%;
			}

			&-mobile {
				width: 72px;
				height: 72px;
				margin-right: 16px;
				display: block;

				@include break-mobile {
					display: none;
				}
			}

			&-desktop {
				display: none;

				@include break-mobile {
					display: block;
					margin-right: 24px;
					width: 116px;
					height: 116px;
				}
			}
		}

		&__details {
			flex: 1;
			min-width: 0;
		}

		&__display-name {
			font-family: 'Noto Serif', Georgia, 'Times New Roman', Times, serif;
			font-size: $font-title-medium;
			font-weight: 600;
			line-height: 1.5;
			margin-bottom: 16px;
			display: flex;
			align-items: center;
			text-wrap: nowrap;

			@include break-mobile {
				font-size: $font-title-large;
				margin-bottom: 8px;
				display: block;
			}
		}

		&__bio {
			font-size: $font-body-large;
			color: var( --color-text-subtle );

			@include break-mobile {
				font-size: $font-body;
			}
		}

		&__bio-desc {
			margin: 0;
			position: relative;

			&-text {
				-webkit-line-clamp: 3;
				line-clamp: 3;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				overflow: hidden;
			}

			&-fader {
				position: absolute;
				bottom: 0;
				right: 0;
				background: linear-gradient(to right, transparent 0%, #fff 25%);
				width: 140px;
				height: 20px;
				z-index: z-index("user-profile-header", ".user-profile-header__bio-desc-fader");
			}

			&-link {
				position: absolute;
				bottom: 0;
				right: 0;
				display: inline-flex;
				gap: 4px;
				align-items: center;
				z-index: z-index("user-profile-header", ".user-profile-header__bio-desc-link");
				color: var(--color-text-subtle);
				text-decoration: underline;
			}
		}

		.section-nav {
			box-shadow: none;
			border-bottom: 1px solid var( --color-border-subtle );
			height: auto !important;
		}

		.section-nav-tab__link {
			&:hover {
				background: none;
			}
		}

		.section-nav-tab__text {
			font-weight: 500;
			color: var( --studio-black );
		}

		/* Ensure the fader and read more link follow the same format as the content. AutoDirection will add
		the direction property to the content if it doesn't match the interface's language type. However, it
		will not adjust the fader and link since one doesn't have text content and the other is in the
		interface langauage. This prevents the fader and link from appearing on the correct side of the
		description. */
		.user-profile-header__bio-desc-text[direction="ltr"] ~ .user-profile-header__bio-desc-fader {
			/*!rtl:ignore*/
			right: 0;
			/*!rtl:ignore*/
			left: auto;
			/*!rtl:ignore*/
			background: linear-gradient(to right, transparent 0%, #fff 25%);
		}

		.user-profile-header__bio-desc-text[direction="rtl"] ~ .user-profile-header__bio-desc-fader {
			/*!rtl:ignore*/
			left: 0;
			/*!rtl:ignore*/
			right: auto;
			/*!rtl:ignore*/
			background: linear-gradient(to left, transparent 0%, #fff 25%);
		}

		.user-profile-header__bio-desc-text[direction="ltr"] ~ .user-profile-header__bio-desc-link {
			/*!rtl:ignore*/
			right: 0;
			/*!rtl:ignore*/
			left: auto;
		}

		.user-profile-header__bio-desc-text[direction="rtl"] ~ .user-profile-header__bio-desc-link {
			/*!rtl:ignore*/
			left: 0;
			/*!rtl:ignore*/
			right: auto;
		}
	}
}