File size: 5,609 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
.activity-card-list__pagination-top {
	@include breakpoint-deprecated( "<480px" ) {
		display: none;
	}
}

.activity-card-list__pagination-bottom {
	margin-bottom: 1rem;
}

.activity-card-list__filterbar-ctn.is-sticky {
	@include breakpoint-deprecated( "<480px" ) {
		position: fixed;
		top: var(--masterbar-height);
		left: 0;
		right: 0;
		z-index: z-index("root", ".masterbar");

		padding: 0 16px;

		background-color: var(--color-surface-backdrop);
		border-bottom: 1px solid var(--color-neutral-10);

		.filterbar {
			margin-bottom: 0;
		}
	}
}
.activity-card-list__date-group-upsell {
	.activity-card__actor,
	.activity-card__activity-description,
	.activity-card__activity-title {
		filter: blur(10px);
	}
	.activity-card__activity-overlay {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		padding: 12px 0;
		text-align: center;
		width: 100%;

		p.activity-card__activity-overlay-text {
			font-size: $font-body;
			margin-bottom: 0.5rem;
		}
	}
}

@include breakpoint-deprecated( "<660px" ) {
	.activity-card-list .filterbar__wrap.card {
		background: transparent;
		box-shadow: none;
	}

	.activity-card-list .filterbar__label {
		margin-left: 0;
	}
}

.activity-card-list__date-group-date {
	font-weight: 600;
	font-size: $font-body;
	line-height: 23px;
	border-bottom: 1px solid #000;
}

// draw vertical lines through each date "group"
.activity-card-list__date-group-content {
	position: relative;

	&::before {
		background: var(--color-neutral-5);
		content: "";
		height: 100%;
		// center on the icons ( they render @ 16px, so half that )
		left: 8px;
		position: absolute;
		top: 0;
		width: 1px;
		z-index: -2;
	}
}

// make sure the vertical lines don't appear through the transparent backgrounds of the icons
.activity-card-list {
	.filterbar {
		margin-bottom: 2rem;
	}
	.activity-card {
		position: relative;
		margin-bottom: 32px;
		.activity-card__time {
			background: var(--color-surface-backdrop);
		}
	}
}

// primary cards get primary card emphasis on the left
.activity-card-list__primary-card,
.activity-card-list__primary-card-with-more {
	> .card {
		padding-left: 12px; // reduce standard 16px padding by 4
		border-left: 4px solid var(--color-primary-40);
	}
}

.activity-card-list__primary-card-with-more {
	// draw vertical line after the card
	&::before {
		background: var(--color-neutral-5);
		content: "";
		height: 16px;
		// center on the icons ( they render @ 1.1rem, so half that )
		left: 8px;
		position: absolute;
		top: 100%;
		width: 1px;
		z-index: -2;
	}
	// draw ball on the end of the line
	&::after {
		background: var(--color-neutral-5);
		content: "";
		// make sure we stay in our element
		height: 9px;
		width: 9px;
		left: calc(8px - 4px);
		position: absolute;
		// immediately after the existing horizontal line draw on over the top of it
		top: calc(100% + 16px);
		visibility: visible;
		z-index: -1;
		border-radius: 50%;
	}
}

// work happens in the secondary cards
.activity-card-list__secondary-card,
.activity-card-list__secondary-card-with-more {
	// this brings in the right side, otherwise the translated elements would look the same
	// 32px to adjust for the scooch, 16px to make the card shorted than the primary one
	width: calc(100% - 32px - 16px);

	// scooch secondary card elements over
	> .activity-card__header,
	> .card {
		transform: translateX(32px);
	}

	> .card {
		// this draws the horizontal line
		&::before {
			// same as the left on the vertical line above
			background: var(--color-neutral-5);
			content: "";
			height: 1px;
			left: calc(8px - 32px);
			position: absolute;
			top: 50%;
			width: calc(32px - 8px);
			z-index: -2;
		}
	}
}

.activity-card-list__secondary-card {
	// draw over the line that goes off the screen on the last card
	&:last-of-type {
		> .card {
			&::after {
				background: var(--color-surface-backdrop);
				content: "";
				// make sure we stay in our element
				height: calc(50% - 1px);
				left: calc(8px - 32px);
				position: absolute;
				// immediately after the existing horizontal line draw on over the top of it
				top: calc(50% + 1px);
				visibility: visible;
				width: 1px;
				z-index: -1;
			}
		}
	}
}

.activity-card-list__secondary-card-with-more {
	// a tiny circle at the end of the line, indicating there is more on the next pagination
	&:last-of-type {
		> .card {
			&::after {
				background: var(--color-neutral-5);
				content: "";
				// make sure we stay in our element
				height: 9px;
				width: 9px;
				left: calc(8px - 32px - 4px);
				position: absolute;
				// immediately after the existing horizontal line draw on over the top of it
				top: calc(100% - 9px);
				visibility: visible;
				z-index: -1;
				border-radius: 50%;
			}
		}
	}
}

.activity-card-list__loading-placeholder {
	.filterbar {
		@include placeholder( --color-neutral-10 );
		height: 51px;
		margin-bottom: 2rem;
	}

	.activity-card-list__pagination-top,
	.activity-card-list__pagination-bottom {
		@include placeholder( --color-neutral-10 );
		height: 34px;
		width: 50%;
		margin: 0 auto;

		&.is-compact {
			height: 28px;
		}
	}

	.activity-card-list__date-group-date {
		span {
			@include placeholder( --color-neutral-10 );
			font-weight: 600;
			font-size: 1rem;
			line-height: 23px;
		}
	}

	.activity-card-list__date-group-content::before {
		background: transparent;
	}

	.activity-card__time-text {
		@include placeholder( --color-neutral-10 );
	}

	.activity-card {
		margin-bottom: 32px;
	}

	.card {
		@include placeholder( --color-neutral-10 );
		height: 102px;
		border-left: initial;

		&::before {
			background: transparent;
		}
	}
}