File size: 2,990 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
@import "@automattic/typography/styles/variables";
@import "@automattic/color-studio/dist/color-variables";
@import "@wordpress/base-styles/breakpoints";

%ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

%ellipsis-after-two-lines {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.recommended-sites {

	&__heading {
		margin: 0 0 16px 0;
		color: $studio-gray-60;
		font-size: $font-body-small;
		font-family: "SF Pro Text", sans-serif;
		line-height: $font-title-small;
	}

	&__horizontal-list {
		margin: 0;
	}

	.recommended-site {
		width: 100%;
		margin: 0 0 56px;
		padding: 20px 24px 24px 24px;
		border-radius: 4px;
		list-style-type: none;

		.reader-avatar {
			margin: 0;
			color: $studio-gray-50;

			&.is-compact {
				max-height: 40px;
			}
		}

		&__dismiss-button {
			color: $studio-gray-60;
			padding: 0;
			min-height: unset;
			height: fit-content;
			line-height: rem(20px);
		}

		&__site-title {
			font-family: "SF Pro Text", $sans;
			font-style: normal;
			font-weight: 600;
			font-size: $font-body;
			line-height: rem(22px);
			color: $studio-gray-100;
			margin-right: 36px;
			@extend %ellipsis;
		}

		&__site-url {
			font-family: "SF Pro Text", $sans;
			font-style: normal;
			font-weight: 400;
			font-size: $font-body-extra-small;
			line-height: rem(18px);
			color: $studio-gray-40;
			@extend %ellipsis;
		}

		&__site-description {
			margin: 16px 0  24px 0;
			$site-description-line-height: rem(20px);
			height: $site-description-line-height * 2;
			font-family: "SF Pro Text", $sans;
			font-style: normal;
			font-weight: 400;
			font-size: $font-body-small;
			line-height: $site-description-line-height;
			color: $studio-gray-60;

			@extend %ellipsis-after-two-lines;
		}

		&__subscribe-button {
			margin: 0;
			border-radius: 4px;
			padding-left: 24px;
			padding-right: 24px;
		}

		&__profile-avatar.is-placeholder,
		&__dismiss-button.is-placeholder,
		&__site-title.is-placeholder,
		&__site-url.is-placeholder,
		&__site-description.is-placeholder,
		&__subscribe-button.is-placeholder {
			@include placeholder();
		}

		&__site-title.is-placeholder {
			line-height: rem(20px);
			width: 182px;
		}

		&__profile.is-placeholder {
			margin-top: -5px;
		}

		&__profile-data.is-placeholder {
			height: 40px;
		}

		&__profile-avatar.is-placeholder {
			height: 40px;
			width: 40px;
		}

		&__site-url.is-placeholder {
			line-height: rem(13px);
			width: 85px;
		}

		&__site-description.is-placeholder {
			height: auto;
			margin: 18px 0 7px 0;
		}

		&__subscribe-button.is-placeholder {
			width: 68px;
			height: 40px;
		}

		&__dismiss-button.is-placeholder {
			width: 36px;
			height: 20px;
		}
	}

	.recommended-site.is-placeholder p:last-of-type {
		margin: 0 0 15px 0;
	}

	.dot-pager {
		&__controls {
			padding: 0 4px;
		}

		.recommended-site {
			width: auto;
			margin: 1px 1px 32px 1px;
		}
	}
}