PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.3
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.3
3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 All 196 releases
convertkit / resources / frontend / scss / _restrict-content.scss

_restrict-content.scss in Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages 3.4.3, at resources/frontend/scss/_restrict-content.scss

327 lines 6.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Resets and typography */
2 #convertkit-restrict-content,
3 #convertkit-restrict-content-modal {
4
5 * {
6 box-sizing: border-box;
7 }
8
9 h3 {
10 margin: 0 0 20px 0;
11 padding: 0;
12 font-size: 24px;
13 line-height: 40px;
14 font-style: normal;
15 }
16
17 h4 {
18 margin: 0 0 5px 0;
19 padding: 0;
20 font-size: 18px;
21 line-height: 30px;
22 font-style: normal;
23 }
24
25 p {
26 margin: 0 0 20px 0;
27 padding: 0;
28 font-size: 16px;
29 line-height: 28px;
30 }
31
32 small {
33 display: block;
34 font-size: 13px;
35 line-height: 22px;
36 color: #111;
37 }
38 }
39
40 /* Overlay */
41 #convertkit-restrict-content {
42 width: 100%;
43 background: #f9f7f4;
44 color: #373f45;
45 margin: 30px auto;
46 padding: 40px;
47 text-align: center;
48 box-sizing: border-box;
49 border-radius: 8px;
50
51 /* Actions */
52 .convertkit-product {
53
54 a {
55 display: inline-block;
56 text-decoration: none;
57 height: 42px;
58 line-height: 42px;
59 font-size: 15px;
60 margin: 0;
61 padding: 0 20px !important;
62 border: none;
63 border-radius: 3px;
64 }
65 }
66 }
67
68 /* Notices */
69 .convertkit-restrict-content-notice {
70 display: inline-block;
71 margin: 0 0 20px 0;
72 padding: 0 0 0 30px;
73 color: #d3434a;
74 font-size: 12px;
75 line-height: 24px;
76 font-weight: 400;
77 background-image: url(../images/error.svg);
78 background-repeat: no-repeat;
79 background-size: 24px 24px;
80 }
81
82 /* Buttons */
83 form.convertkit-restrict-content-form {
84
85 input[type="submit"]="submit""] {
86 height: 42px;
87 line-height: 42px;
88 font-size: 15px;
89 margin: 0;
90 padding: 0 20px !important;
91 border: none;
92 border-radius: 3px;
93 }
94
95 /* Email input with inline button */
96 div#convertkit-restrict-content-email-field {
97 display: grid;
98 grid-template-areas: "email button";
99 grid-template-columns: 3fr 1fr;
100 grid-column-gap: 5px;
101 text-align: left;
102 max-width: 500px;
103 height: 56px;
104 margin: 0 auto 20px auto;
105 padding: 6px 10px;
106 background-image: url(../images/email.svg);
107 background-repeat: no-repeat;
108 background-color: #fff;
109 background-size: 15px 15px;
110 background-position: 18px 20px;
111 border: 1px solid #fff;
112 border-radius: 3px;
113
114 &.convertkit-restrict-content-error {
115 border-color: #d3434a;
116 }
117
118 input[type="email"]="email""] {
119 grid-area: email;
120 text-indent: 35px;
121 height: 42px;
122 line-height: 42px;
123 margin: 0;
124 padding: 0;
125 font-size: 15px;
126 background: none;
127 border: none;
128 }
129
130 input[type="submit"]="submit""] {
131 grid-area: button;
132 }
133 }
134
135 /* One time code */
136 div#convertkit-subscriber-code-container {
137 width: 427px;
138 height: 100px;
139 border: 1px solid #dce1e5;
140 border-radius: 4px;
141 margin: 0 auto 20px auto;
142 overflow: hidden;
143 background: #dce1e5;
144
145 &.convertkit-restrict-content-error {
146 border-color: #d3434a;
147 }
148
149 input#convertkit-subscriber-code {
150 --otp-digits: 6;
151 --otp-height: 98px;
152 --otp-number-width: 70px;
153 --otp-letter-spacing: 41px;
154 --otp-text-indent: 20px;
155 --otp-border-color: #dce1e5;
156 --otp-text-color: #697177;
157 --otp-font-size: 50px;
158 --_otp-digit: 0;
159 all: unset;
160 text-align: left;
161 margin: 0;
162 padding: 0;
163 background:
164 linear-gradient(
165 90deg,
166 #dce1e5 var(--otp-number-width),
167 transparent 0
168 ),
169 linear-gradient(
170 90deg,
171 #fff var(--otp-number-width),
172 transparent 0
173 );
174 background-position:
175 calc(var(--_otp-digit) * (calc(var(--otp-number-width) + 1px)))
176 0,
177 0 0;
178 background-repeat: no-repeat, repeat-x;
179 background-size: calc(var(--otp-number-width) + 1px) 100%;
180 inline-size: calc(
181 var(--otp-digits) * calc(var(--otp-number-width) + 1px)
182 );
183 letter-spacing: var(--otp-letter-spacing);
184 text-indent: var(--otp-text-indent);
185 width: calc(
186 (var(--otp-number-width) * var(--otp-digits)) +
187 var(--otp-digits)
188 );
189 height: var(--otp-height);
190 color: var(--otp-text-color);
191 font-size: var(--otp-font-size);
192 font-family: monospace;
193 font-weight: 400;
194 }
195 }
196 }
197
198 /* Modal */
199 #convertkit-restrict-content-modal-background {
200 display: none;
201 position: fixed;
202 width: 100%;
203 height: 100%;
204 z-index: 999998;
205 top: 0;
206 left: 0;
207 background: rgba(9, 13, 22, 0.8);
208 }
209
210 #convertkit-restrict-content-modal {
211 box-sizing: border-box;
212 display: none;
213 position: fixed;
214 z-index: 999999;
215 width: 730px;
216 height: 328px;
217 top: calc(50% - 164px);
218 left: calc(50% - 365px);
219 margin: 0;
220 padding: 80px 115px;
221 background: #fff;
222 border: 1px solid #fff;
223 border-radius: 8px;
224 text-align: center;
225
226 form.convertkit-restrict-content-form {
227
228 div#convertkit-restrict-content-email-field {
229 background-color: #f4f6f8;
230 }
231 }
232
233 #convertkit-restrict-content-modal-close {
234 position: absolute;
235 top: 25px;
236 right: 25px;
237 text-indent: -9999px;
238 background-image: url(../images/cross.svg);
239 background-repeat: no-repeat;
240 background-size: 12px 12px;
241 background-color: transparent;
242 border: none;
243 cursor: pointer;
244 }
245 }
246
247 #convertkit-restrict-content-modal-loading {
248 box-sizing: border-box;
249 display: none;
250 position: absolute;
251 z-index: 1000000;
252 width: 100%;
253 height: 100%;
254 top: 0;
255 left: 0;
256 margin: 0;
257 padding: 0;
258 background: url(../images/spinner.gif) center no-repeat
259 rgba(255, 255, 255, 0.8);
260 border: none;
261 border-radius: 8px;
262 text-align: center;
263 }
264
265 /* Responsive */
266 @media screen and (max-width: 730px) {
267
268 #convertkit-restrict-content {
269 padding: 20px;
270
271 .convertkit-restrict-content-actions {
272 padding: 10px;
273 }
274
275 input[type="email"]="email""],
276 input[type="text"]="text""],
277 input#convertkit-subscriber-code {
278 width: 100%;
279 }
280 }
281
282 form.convertkit-restrict-content-form {
283
284 div#convertkit-restrict-content-email-field {
285 grid-template-areas:
286 "email email"
287 "button button";
288 max-width: 100%;
289 height: auto;
290
291 input[type="submit"]="submit""] {
292 margin-top: 10px;
293 }
294 }
295
296 div#convertkit-subscriber-code-container {
297 width: 213px;
298 height: 50px;
299
300 input#convertkit-subscriber-code {
301 --otp-height: 49px;
302 --otp-number-width: 35px;
303 --otp-letter-spacing: 20px;
304 --otp-text-indent: 10px;
305 --otp-font-size: 25px;
306 }
307 }
308 }
309
310 #convertkit-restrict-content-modal {
311 width: 90%;
312 height: auto;
313 left: 5%;
314 padding: 40px;
315 }
316 }
317
318 /* Member Content Login block and shortcode */
319 #convertkit-restrict-content.convertkit-login {
320
321 /* Honor the block's text color, which the ID selectors above would otherwise override. */
322 p,
323 small {
324 color: inherit;
325 }
326 }
327