summaryrefslogtreecommitdiffstats
path: root/browser/themes/shared/privatebrowsing/aboutPrivateBrowsing.css
blob: a132bdc0eaa77521c3ccfa2e8a81a524a9ef08e3 (plain)
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@import url("chrome://global/skin/in-content/info-pages.css");

@media not (prefers-contrast) {
html.private {
  --in-content-page-color: white;
  --in-content-text-color: white;
  --in-content-page-background: #25003e;
  --in-content-link-color-hover: white;
  --in-content-link-color-active: white;
  --in-content-banner-background: #f9f9fe;
  --in-content-banner-text-color: #0c0c0d;
  --in-content-button-background-hover: rgba(12,12,13,.1);
  --in-content-button-background-active: rgba(12,12,13,.15);
}
}

/**
 * When the showBanner class is applied, the banner is displayed at the top
 * of the page, and we need to adjust the padding, so that the banner is
 * spread across the full page width.
 */
body.showBanner {
  padding: 0 0 40px;
  min-height: 0;
}

.showBanner > .showPrivate {
  padding: 40px 48px 0;
}

a:link {
  color: inherit;
  text-decoration: underline;
}

a:link:hover {
  color: inherit;
}

.container {
  max-width: 768px;
}

p {
  line-height: 1.5em;
}

.logo-and-wordmark {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.logo {
  /* The new private browsing logo, shown for
  "browser.privatebrowsing.enable-new-logo" == true */
  background: url("chrome://branding/content/about-logo-private.png") no-repeat center center;
  background-size: 96px;
  display: inline-block;
  height: 96px;
  width: 96px;
}

.logo[legacy] {
  /* The legacy private browsing logo, shown for
  "browser.privatebrowsing.enable-new-logo" == false */
  background-image: url("chrome://branding/content/about-logo.png");
}

@media (min-resolution: 2x) {
  .logo {
    background-image: url('chrome://branding/content/about-logo-private@2x.png');
  }
  .logo[legacy] {
    background-image: url('chrome://branding/content/about-logo@2x.png');
  }
}

.wordmark {
  display: inline-block;
  background: url("chrome://branding/content/firefox-wordmark.svg") no-repeat center center;
  background-size: 172px;
  margin-inline-start: 15px;
  -moz-context-properties: fill;
  fill: currentColor;
  height: 96px;
  width: 172px;
}

.search-inner-wrapper {
  display: flex;
  height: 48px;
  padding: 0 22px;
  min-width: 70vw;
}

.promo-image-large {
  margin-inline-end: 6px;
  min-width: 160px;
}

.promo-image-small {
  display: none;
}

.promo.top {
  background: rgba(255, 255, 255, .2);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.promo.top .promo-image-large {
  min-width: 100px;
  margin-inline: 6px;
}

.promo.top ~ .container {
  margin-top: 120px;
}

@media (min-width: 764px) {
  .search-inner-wrapper {
    min-width: 680px;
  }

  .promo-image-large {
    margin-inline-end: 36px;
    min-width: 200px;
  }

  .promo-image-small {
    display: block;
  }

  .promo.top {
    padding: 10px 22%;
  }

  .promo.top .promo-image-large {
    min-width: 120px;
  }

  .promo.top .vpn-promo {
    margin: 10px 0;
  }
}

@media (max-height: 780px) {
  /* On screens with not enough height we need to push down the content
   * to make room for the banner */
  .promo.top ~ .container {
    margin-top: 140px;
  }
}

.search-handoff-button,
.search-handoff-button:active,
.search-handoff-button:enabled:hover:active {
  background: #fff var(--newtab-search-icon) 12px center no-repeat;
  background-size: 24px;
  border: solid 1px rgba(249, 249, 250, 0.2);
  border-radius: 3px;
  box-shadow: 0 1px 4px 0 rgba(12, 12, 13, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: text;
  font-size: 15px;
  font-weight: normal;
  margin: 0;
  padding-block: 0;
  padding-inline: 46px 48px;
  position: relative;
  opacity: 1;
  width: 100%;
  -moz-context-properties: fill;
  fill: rgba(12, 12, 13, 0.4);
}

.search-handoff-button.focused:not(.disabled) {
  border: solid 1px #0060df;
  box-shadow: 0 0 0 1px #0060df, 0 0 0 4px rgba(0, 96, 223, 0.3);
}

.search-handoff-button.disabled {
  opacity: 0.5;
  box-shadow: none;
}

.search-handoff-button:dir(rtl),
.search-handoff-button:active:dir(rtl),
.search-handoff-button:enabled:hover:active:dir(rtl) {
  background-position-x: right 12px;
}

.search-inner-wrapper .search-handoff-button:hover,
.search-inner-wrapper .search-handoff-button:hover:active {
  background-color: #fff;
  color: inherit;
}

.search-handoff-button.focused:not(.disabled) .fake-caret {
  display: block;
}

.fake-editable:focus {
  outline: none;
  caret-color: transparent;
}

.fake-editable {
  border: 0;
  height: 100%;
  top: 0;
  inset-inline-start: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.fake-textbox {
  color: rgb(12, 12, 13);
  opacity: 0.54;
  text-align: start;
}

@keyframes caret-animation {
  to {
    visibility: hidden;
  }
}

.fake-caret {
  animation: caret-animation 1.3s steps(5, start) infinite;
  background-color: rgb(12, 12, 13);
  display: none;
  inset-inline-start: 47px;
  height: 17px;
  position: absolute;
  top: 16px;
  width: 1px;
}

@media (prefers-contrast) {
  .fake-caret {
    background-color: ButtonText;
  }
}

.search-banner {
  width: 100%;
  background-color: var(--in-content-banner-background);
  color: var(--in-content-banner-text-color);
}

.banner-body {
  margin: auto;
  width: max-content;
  background-image: url("chrome://global/skin/icons/settings.svg");
  background-position: left 0 top 50px;
  background-repeat: no-repeat;
  background-size: 32px;
  letter-spacing: -.2px;
  padding: 50px 0;
  padding-inline-start: 44px;
}

.banner-body:dir(rtl) {
  background-position-x: right;
}

.banner-body h1 {
  font-size: 18px;
  font-weight: bold;
  color: var(--in-content-banner-text-color);
  line-height: 1em;
  margin: 7px 0;
}

.banner-body p {
  font-size: 15px;
  line-height: 1em;
  margin: 4px 0;
}

.info {
  margin-top: 64px;
  background-color: rgba(0, 0, 0, 0.2);
  background-image: url("chrome://global/skin/icons/indicator-private-browsing.svg");
  background-position: left 32px top 20px;
  background-repeat: no-repeat;
  background-size: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  letter-spacing: -0.2px;
  padding: 20px;
  padding-inline-start: 76px;
}

.info:dir(rtl) {
  background-position-x: right 32px;
}

.info h1,
.promo h1 {
  font-size: 18px;
  font-weight: bold;
  line-height: 28px;
}

.info p {
  margin-top: 0;
  font-size: 15px;
  line-height: 25px;
}

.info #info-title + p {
  margin-top: 15px;
}

.search-banner-close-button {
  float: inline-end;
  /* min-width and min-height override values set on button elements. */
  min-width: 28px;
  min-height: 28px;
  /* Forcing height and line-height ensure the button hover is displayed correctly
     as a square box (and focus box). No text gets displayed here so that's ok. */
  height: 28px;
  line-height: 0;
  margin: 16px;
  padding: 0;
  background-color: inherit;
  border: 0;
}

.search-banner-close-image {
  -moz-context-properties: fill;
  fill: currentColor;
  width: 22px;
}

.promo {
  text-align: center;
  align-items: center;
}

.promo-visible {
  display: flex;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.2);
}

.promo-dismiss {
  padding: 10px;
  min-width: 16px;
  min-height: 16px;
  display: inline flow-root;
  background: url("chrome://global/skin/icons/close.svg") center no-repeat;
  cursor: pointer;
  -moz-context-properties: fill;
  fill: currentColor;
  position: relative;
  top: -90px;
}

@media not (prefers-contrast) {
  .promo-dismiss {
    opacity: 0.6;
  }

  .promo-dismiss:hover {
    background-color: color-mix(in srgb, currentColor 10%, transparent) !important;
  }

  .promo-dismiss:hover:active {
    background-color: color-mix(in srgb, currentColor 20%, transparent) !important;
  }
}

.promo-content {
  width: 100%;
}

.promo-image-large img {
  width: 100%;
}

.promo-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* The colors for .promo-cta .primary must be kept in sync with the dark mode
   primary button colors from common-shared.cs */
.promo-cta .primary {
  padding: 0.54em 1.15em;
  margin: 8px 0;
  font-weight: 600;
  cursor: pointer;
  background-color: rgb(0,221,255);
  color: rgb(43,42,51);
}

.promo-cta .primary:focus-visible {
  outline-color: rgb(0,221,255);
}

.promo-cta .primary:hover {
  background-color: rgb(128,235,255) !important;
  color: rgb(43,42,51) !important;
}

.promo-cta .primary:hover:active {
  background-color: rgb(170,242,255) !important;
  color: rgb(43,42,51) !important;
}

@media (prefers-contrast) {
  .promo-cta .primary {
    background-color: ButtonText;
    color: ButtonFace;
    border-color: ButtonFace;
  }

  .promo-cta .primary:focus-visible {
    outline-color: -moz-DialogText;
  }

  .promo-cta .primary:hover {
    background-color: SelectedItem !important;
    color: SelectedItemText !important;
    border-color: SelectedItemText;
  }

  .promo-cta .primary:hover:active {
    background-color: SelectedItemText !important;
    color: SelectedItem !important;
    border-color: SelectedItem;
  }
}

.promo.bottom .promo-cta {
  display: unset;
}

.promo.bottom h1 {
  margin-bottom: 1em;
}

.promo a {
  color: inherit;
  text-decoration: underline;
  flex: 1;
}

.promo.top a,
.promo.below-search a {
  flex: unset;
}

.promo.top,
.promo.below-search {
  text-align: start;
}

.promo.below-search {
  padding: 25px 22px 10px;
  margin-top: 25px;
}

.promo.bottom {
  margin-top: 30px;
}

.promo.bottom .promo-image-small {
  margin-top: 40px;
}

.promo.bottom .promo-image-small img {
  height: 40px;
}

.promo.top > .promo-content {
  padding: 10px 6px;
}

.promo-link {
  margin: 0;
  cursor: pointer;
  color: var(--in-content-link-color-active);
  text-decoration: underline;
}