File size: 3,522 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
@import '@wordpress/base-styles/breakpoints';
@import '@wordpress/base-styles/mixins';

body.is-reader-page .subscribe-modal__preview-column .reader__card.card.is-placeholder {
	padding: 16px 24px 12px 24px;

	.reader__post-title {
		margin-top: 0;
	}

	&::after,
	.reader__post-footer {
		display: none;
	}
}

$actions-height: 64px;

.subscribe-modal {
	&__title {
		font-family: Recoleta, sans-serif;
		font-size: 2.25rem;
		font-weight: 400;
		line-height: 1.2;
		margin-bottom: 16px;
		text-wrap: balance;

		@media ( max-width: $break-medium ) {
			font-size: 1.5rem;
		}
	}

	&__content {
		// Since the actions container is positioned absolutely,
		// this padding bottom ensures that the content wrapper will properly
		// detect overflowing content and start showing scrollbars at the right
		// moment. Without this padding, the content would render under the actions
		// bar without causing the wrapper to show a scrollbar.
		padding-bottom: $actions-height;

		display: flex;
		flex-direction: column;
		height: calc( 100vh - 200px );
		align-items: center;

		@media ( min-width: 1200px ) {
			flex-direction: row;
			overflow: hidden;
			align-items: initial;
		}
	}

	&__site-list-column {
		flex: 1;
		padding: 20px 20px 0;
		overflow-y: auto;
		max-width: 600px;

		@media ( min-width: 1200px ) {
			max-width: 450px;
		}

		@media ( max-width: $break-medium ) {
			padding: 0;
			max-width: 700px;
		}

		p {
			text-wrap: balance;
		}

		.subscribe-modal__description {
			@media ( max-width: 1199px ) {
				display: none;
			}
		}

		.reader-subscription-list-item {
			padding: 12px;
			border: 1px solid var( --color-neutral-5 );
			border-radius: 6px; /* stylelint-disable-line scales/radii */
			margin-bottom: 12px;

			@media ( min-width: 1200px ) {
				cursor: pointer;
				&.is-selected {
					background-color: #e6f3fa;
					border: 1px solid #0087be;
					border-radius: 6px; /* stylelint-disable-line scales/radii */
				}
			}

			.reader-subscription-list-item__site-url-timestamp {
				&:not( .is-placeholder )::after {
					background: none;
				}
			}
		}
	}

	&__recommended-sites {
		margin-bottom: 24px;
	}

	&__preview-column {
		flex: 1;
		padding: 24px;
		display: none;
		flex-direction: column;
		overflow: hidden;

		clip-path: inset( 0 0 0 0 );

		@media ( min-width: 1200px ) {
			display: flex;
		}

		.reader-post-actions,
		.comments__comment-list,
		.reader-post-options-menu__ellipsis-menu,
		.reader-update-notice {
			display: none;
		}
	}

	&__preview-placeholder {
		justify-content: center;
		border: 1px solid #f2f2f2;
		border-radius: 6px; /* stylelint-disable-line scales/radii */
		background-color: #f2f2f2;
		height: calc( 100vh - 224px );
		width: calc( 100vw - 620px );
		overflow: hidden;
		position: fixed;
	}

	&__preview-stream-header {
		background-color: #fff;
		text-align: center;
		line-height: rem( 36px );
		font-size: rem( 14px );
	}

	&__preview-stream-container {
		height: 100%;
		overflow-y: auto;
		padding-top: 40px;
	}

	.components-modal__header {
		.components-button {
			&.is-link {
				margin-right: auto;
			}

			&.is-primary {
				margin-left: 16px;
			}
		}
	}

	&.is-disabled {
		.subscribe-modal__container {
			height: calc( 100vh - 188px ); // Modal margin + modal padding + modal heading
			overflow: hidden;
			padding: 1px;
		}
		.subscribe-modal__content {
			opacity: 0.5;
			pointer-events: none;
		}
		.subscribe-modal__preview-stream-container,
		.subscribe-modal__site-list-column {
			overflow-y: hidden;
		}
	}
}