Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 243596a

Browse files
committed
Backed out changeset 36a634b808b9 (bug 1713191) for Browser-chrome failure in browser/base/content/test/static/browser_misused_characters_in_strings.js. CLOSED TREE
1 parent 02d0e04 commit 243596a

File tree

18 files changed

+482
-27
lines changed

18 files changed

+482
-27
lines changed

browser/components/pocket/compile_handlebars.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ const { exec } = require("child_process");
99
const basePath = `./content/panels/tmpl/`;
1010

1111
let templates = [
12+
`loggedoutvariants/variant_a`,
13+
`loggedoutvariants/variant_b`,
14+
`loggedoutvariants/variant_c`,
1215
`saved_premiumshell`,
1316
`saved_shell`,
1417
`signup_shell`,

browser/components/pocket/content/panels/css/main.compiled.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

browser/components/pocket/content/panels/css/main.compiled.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

browser/components/pocket/content/panels/css/signup.scss

Lines changed: 144 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@
106106
.pkt_ext_containersignup .pkt_ext_learnmore {
107107
font-size: 0.9em;
108108
}
109-
.pkt_ext_signupdetail {
109+
.pkt_ext_containersignup .pkt_ext_learnmoreinactive {
110+
visibility: hidden;
111+
}
112+
.pkt_ext_signupdetail,
113+
.los_variant_bottom {
110114
overflow: hidden;
111115
}
112116
.pkt_ext_signupdetail h4 {
@@ -139,6 +143,17 @@
139143
max-width: 320px;
140144
margin-top: 15px;
141145
}
146+
.pkt_ext_containersignup .tryitnowspace {
147+
margin-top: 22px;
148+
}
149+
.pkt_ext_signupdetail p.pkt_ext_tos {
150+
color: #777;
151+
font-size: 0.7em;
152+
line-height: 1.5;
153+
margin-top: 17px;
154+
padding-top: 0;
155+
max-width: 190px;
156+
}
142157

143158
/*=Core detail - storyboard
144159
--------------------------------------------------------------------------------------- */
@@ -262,6 +277,7 @@
262277
opacity: 0.9;
263278
}
264279
.pkt_ext_containersignup .signup-btn-firefox,
280+
.pkt_ext_containersignup .signup-btn-tryitnow,
265281
.pkt_ext_containersignup .signup-btn-email,
266282
.pkt_ext_containersignup .signupinterim-btn-login,
267283
.pkt_ext_containersignup .signupinterim-btn-signup,
@@ -275,11 +291,15 @@
275291
position: relative;
276292
z-index: 10;
277293
}
294+
.pkt_ext_containersignup .signup-btn-tryitnow,
278295
.pkt_ext_containersignup .signup-btn-firefox {
279296
min-width: 14.5em;
280297
position: relative;
281298
padding: 0;
282299
}
300+
.pkt_ext_containersignup .signup-btn-tryitnow{
301+
margin-top: 25px;
302+
}
283303
.pkt_ext_containersignup .signup-btn-firefox .logo {
284304
background: url(../img/[email protected]) center center no-repeat;
285305
height: 2.6em;
@@ -298,13 +318,15 @@
298318
.pkt_ext_containersignup .forgotreset-btn-change {
299319
margin-bottom: 2em;
300320
}
321+
.pkt_ext_containersignup .signup-btn-tryitnow .text,
301322
.pkt_ext_containersignup .signup-btn-firefox .text {
302323
display: inline-block;
303324
padding: 0.8em 1.625em;
304325
position: relative;
305326
text-shadow: none;
306327
white-space: nowrap;
307328
}
329+
.pkt_ext_containersignup .signup-btn-tryitnow .text,
308330
.pkt_ext_containersignup .signup-btn-firefox .text {
309331
color: #fff;
310332
}
@@ -326,22 +348,27 @@
326348
margin-bottom: 0.5em;
327349
}
328350
.pkt_ext_signup_ja .signup-btn-firefox .text,
329-
.pkt_ext_signup_ru .signup-btn-firefox .text {
351+
.pkt_ext_signup_ja .signup-btn-tryitnow .text,
352+
.pkt_ext_signup_ru .signup-btn-firefox .text,
353+
.pkt_ext_signup_ru .signup-btn-tryitnow .text {
330354
inset-inline-start: 15px;
331355
}
332356
.pkt_ext_signup_de .signup-btn-firefox .logo,
357+
.pkt_ext_signup_es .pkt_ext_signupdetail_hero .signup-btn-firefox .logo,
333358
.pkt_ext_signup_ja .signup-btn-firefox .logo,
334359
.pkt_ext_signup_ru .signup-btn-firefox .logo {
335360
height: 2.4em;
336361
}
337362
@media (min-resolution: 1.1dppx) {
338363
.pkt_ext_signup_de .signup-btn-firefox .logo,
364+
.pkt_ext_signup_es .pkt_ext_signupdetail_hero .signup-btn-firefox .logo,
339365
.pkt_ext_signup_ja .signup-btn-firefox .logo,
340366
.pkt_ext_signup_ru .signup-btn-firefox .logo {
341367
height: 2.5em;
342368
}
343369
}
344370
.pkt_ext_signup_de .signup-btn-email,
371+
.pkt_ext_signup_es .pkt_ext_signupdetail_hero .signup-btn-email,
345372
.pkt_ext_signup_ja .signup-btn-email,
346373
.pkt_ext_signup_ru .signup-btn-email {
347374
min-width: 13em;
@@ -358,3 +385,118 @@
358385
.pkt_ext_signup_overflow.pkt_ext_signup_ru .signup-btn-firefox .logo {
359386
display: none;
360387
}
388+
389+
/* Signup variants */
390+
/* TODO: Delete post-experiment */
391+
392+
.los_variant {
393+
background-color: #fff;
394+
padding: 0;
395+
text-align: start;
396+
}
397+
398+
.los_variant_top {
399+
padding: 24px;
400+
}
401+
402+
.los_variant_bottom {
403+
text-align: start;
404+
padding: 26px 22px 0;
405+
}
406+
407+
.los_variant_a .los_variant_bottom {
408+
text-align: center;
409+
}
410+
411+
.los_variant_bottom .los_variant_button {
412+
font-style: normal;
413+
font-weight: 500;
414+
font-size: 1.1em;
415+
line-height: 24px;
416+
text-align: center;
417+
color: #FFFFFF;
418+
border-radius: 4px;
419+
background: #0060DF;
420+
display: inline-block;
421+
padding: 8px 16px;
422+
margin-bottom: 16px
423+
}
424+
425+
.los_variant_a .los_variant_bottom .los_variant_button {
426+
display: block;
427+
}
428+
429+
.los_variant_bottom .los_variant_button:hover {
430+
color: #fff;
431+
}
432+
433+
.los_variant_c .los_variant_bottom {
434+
border-top: 1px solid #D7D7DB;
435+
margin-top: 20px;
436+
}
437+
438+
.los_variant_bottom .los_variant_sub {
439+
font-style: normal;
440+
font-weight: normal;
441+
font-size: 0.9em;
442+
line-height: 16px;
443+
color: #737373;
444+
}
445+
446+
.los_variant_bottom .los_variant_sub a {
447+
color: #0060DF;
448+
}
449+
450+
.los_variant_top a {
451+
font-size: 1em;
452+
}
453+
454+
.los_variant_a .los_variant_top {
455+
background: #e8f7f6 url(../img/variant_a.png) bottom right no-repeat;
456+
background-size: contain;
457+
padding-block: 6px 24px;
458+
padding-inline: 24px 102px;
459+
height: 260px;
460+
}
461+
462+
.los_variant_a .los_variant_top p {
463+
margin-bottom: 0;
464+
}
465+
466+
.los_variant_b .los_variant_top {
467+
background: #DCEAFF url(../img/variant_b.png) bottom right no-repeat;
468+
background-size: 80%;
469+
padding: 24px 24px 160px;
470+
}
471+
472+
.los_variant_top:dir(rtl) {
473+
background-position-x: left;
474+
}
475+
476+
.los_variant_b .los_variant_top a {
477+
font-size: 1em;
478+
line-height: 18px;
479+
text-decoration-line: underline;
480+
color: #0C0C0D;
481+
}
482+
483+
.los_variant_c .los_variant_top {
484+
background: #fff url(../img/variant_c.png) bottom right no-repeat;
485+
background-size: contain;
486+
padding: 24px 24px 160px;
487+
}
488+
489+
.los_variant h1 {
490+
font-weight: 600;
491+
font-size: 1.1em;
492+
line-height: 20px;
493+
color: #0C0C0D;
494+
}
495+
496+
.los_variant p {
497+
font-style: normal;
498+
font-weight: normal;
499+
font-size: 1em;
500+
line-height: 18px;
501+
color: #0C0C0D;
502+
}
Loading
Loading
Loading

browser/components/pocket/content/panels/js/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,17 @@ function onDOMLoaded() {
9999
thePKT_PANEL.init();
100100
}
101101

102+
var pocketHost = thePKT_PANEL.overlay.pockethost;
102103
// send an async message to get string data
103104
thePKT_PANEL.sendMessage(
104105
"PKT_initL10N",
105106
{
107+
tos: [
108+
"https://" + pocketHost + "/tos?s=ffi&t=tos&tv=panel_tryit",
109+
"https://" +
110+
pocketHost +
111+
"/privacy?s=ffi&t=privacypolicy&tv=panel_tryit",
112+
],
106113
pockethomeparagraph: ["Pocket"],
107114
},
108115
function(resp) {

0 commit comments

Comments
 (0)