1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 @import url
("chrome://global/skin/in-content/info-pages.css");
7 @media not
(prefers-contrast
) {
9 --in-content-page-color: white
;
10 --in-content-text-color: white
;
11 --in-content-page-background: #25003e;
13 --link-color-hover: white
;
14 --link-color-active: white
;
15 --in-content-banner-background: #f9f9fe;
16 --in-content-banner-text-color: #0c0c0d;
17 --in-content-button-background-hover: rgba
(12,12,13,.1);
18 --in-content-button-background-active: rgba
(12,12,13,.15);
23 * When the showBanner class is applied, the banner is displayed at the top
24 * of the page, and we need to adjust the padding, so that the banner is
25 * spread across the full page width.
32 .showBanner > .showPrivate {
39 text-decoration: underline
;
45 text-decoration: none
;
61 justify-content: center
;
66 background: image-set
(url
("chrome://branding/content/about-logo-private.png"), url
('chrome://branding/content/about-logo-private@2x.png') 2x) no-repeat center center
;
67 background-size: 96px;
68 display: inline-block
;
74 display: inline-block
;
75 background: url
("chrome://branding/content/firefox-wordmark.svg") no-repeat center center
;
76 background-size: 172px;
77 margin-inline-start: 15px;
78 -moz-context-properties: fill
;
84 .search-inner-wrapper {
91 /* stylelint-disable-next-line media-query-no-invalid */
92 @media (-moz-bool-pref: "browser.privatebrowsing.felt-privacy-v1") {
93 .search-inner-wrapper {
100 margin-inline-end: 6px;
109 background: rgba
(255, 255, 255, .2);
114 border-bottom: 1px solid rgba
(255, 255, 255, .3);
117 .promo.top .promo-image-large {
122 .promo.top ~ .container {
126 @media (min-width: 764px) {
127 .search-inner-wrapper {
132 margin-inline-end: 36px;
144 .promo.top .promo-image-large {
148 .promo.top .vpn-promo {
153 @media (max-height: 780px) {
154 /* On screens with not enough height we need to push down the content
155 * to make room for the banner */
156 .promo.top ~ .container {
161 .search-handoff-button
,
162 .search-handoff-button:active
,
163 .search-handoff-button:enabled:hover:active {
164 background: #fff var
(--newtab-search-icon
) 12px center no-repeat
;
165 background-size: 24px;
166 border: solid
1px rgba
(249, 249, 250, 0.2);
168 box-shadow: 0 1px 4px 0 rgba
(12, 12, 13, 0.2), 0 0 0 1px rgba
(0, 0, 0, 0.15);
174 padding-inline: 46px 48px;
178 -moz-context-properties: fill
;
179 fill: rgba
(12, 12, 13, 0.4);
182 .search-handoff-button.focused:not(.disabled) {
183 border: solid
1px #0060df;
184 box-shadow: 0 0 0 1px #0060df, 0 0 0 4px rgba
(0, 96, 223, 0.3);
187 .search-handoff-button.disabled {
192 .search-handoff-button:dir
(rtl
),
193 .search-handoff-button:active:dir
(rtl
),
194 .search-handoff-button:enabled:hover:active:dir(rtl) {
195 background-position-x: right
12px;
198 .search-inner-wrapper
.search-handoff-button:hover
,
199 .search-inner-wrapper .search-handoff-button:hover:active {
200 background-color: #fff;
204 .search-handoff-button.focused:not(.disabled) .fake-caret {
208 .fake-editable:focus {
210 caret-color: transparent
;
217 inset-inline-start: 0;
225 color: rgb
(12, 12, 13);
230 @keyframes caret-animation
{
237 animation: caret-animation
1.3s steps
(5, start
) infinite
;
238 background-color: rgb
(12, 12, 13);
240 inset-inline-start: 47px;
247 @media (prefers-contrast
) {
249 background-color: ButtonText
;
253 /* stylelint-disable-next-line media-query-no-invalid */
254 @media (-moz-bool-pref: "browser.privatebrowsing.felt-privacy-v1") {
255 .search-handoff-button
,
256 .search-handoff-button:hover:not
(.focused
),
257 .search-handoff-button:active
,
258 .search-handoff-button:enabled:hover:active {
259 border: 3px solid ButtonText
;
263 @media not
(prefers-contrast
) {
264 border-color: #952bb9;
268 .search-handoff-button
,
269 .search-handoff-button:hover:not
(.focused
),
270 .search-handoff-button:active
,
271 .search-handoff-button:enabled:hover:active
,
272 .search-inner-wrapper
.search-handoff-button:hover
,
273 .search-inner-wrapper .search-handoff-button:hover:active {
274 background-color: ButtonFace
;
275 background-image: url
(chrome://global
/skin
/icons
/search-glass
.svg
);
276 background-repeat: no-repeat
;
277 background-size: 16px;
280 @media
(prefers-contrast
) {
281 border-color: ButtonText
;
285 @media not
(prefers-contrast
) {
286 background-color: #321c64;
287 fill: rgb
(251, 251, 254);
291 .search-handoff-button.focused:not(.disabled) {
294 @media
(prefers-contrast
) {
295 outline: 2px solid SelectedItem
;
304 @media not
(prefers-contrast
) {
309 @media not
(prefers-contrast
) {
311 background-color: #fbfbfe;
318 background-color: var
(--in-content-banner-background
);
319 color: var
(--in-content-banner-text-color
);
325 background-image: url
("chrome://global/skin/icons/settings.svg");
326 background-position: left
0 top
50px;
327 background-repeat: no-repeat
;
328 background-size: 32px;
329 letter-spacing: -.2px;
331 padding-inline-start: 44px;
334 .banner-body:dir(rtl) {
335 background-position-x: right
;
341 color: var
(--in-content-banner-text-color
);
354 background-color: rgba
(0, 0, 0, 0.2);
355 background-image: url
("chrome://global/skin/icons/indicator-private-browsing.svg");
356 background-position: left
32px top
20px;
357 background-repeat: no-repeat
;
358 background-size: 32px;
359 border: 1px solid transparent
;
361 letter-spacing: -0.2px;
363 padding-inline-start: 76px;
367 background-position-x: right
32px;
382 .info #info-title:not([hidden]) + p {
386 /* stylelint-disable-next-line media-query-no-invalid */
387 @media (-moz-bool-pref: "browser.privatebrowsing.felt-privacy-v1") {
393 @media not
(prefers-contrast
) {
394 box-shadow: 0 2px 6px 0 rgba
(58, 57, 68, 0.20);
395 background: rgba
(149, 43, 185, 0.5);
400 background-image: none
;
404 padding-inline-start: 20px;
405 padding-block-end: 25px;
407 @media not
(prefers-contrast
) {
408 background-color: #321c64;
409 box-shadow: 0 2px 6px 0 rgba
(58, 57, 68, 0.20);
413 #info-title:not
([hidden
]) + #info-body
{
423 .search-banner-close-button {
425 /* min-width and min-height override values set on button elements. */
428 /* Forcing height and line-height ensure the button hover is displayed correctly
429 as a square box (and focus box). No text gets displayed here so that's ok. */
434 background-color: inherit
;
438 .search-banner-close-image {
439 -moz-context-properties: fill
;
451 border: 1px solid transparent
;
453 background-color: rgba
(0, 0, 0, 0.2);
460 display: inline flow-root
;
461 background: url
("chrome://global/skin/icons/close.svg") center no-repeat
;
463 -moz-context-properties: fill
;
468 inset-inline-end: -11px;
470 @media not
(prefers-contrast
) {
474 background-color: color-mix
(in srgb
, currentColor
10%, transparent
) !important
;
478 background-color: color-mix
(in srgb
, currentColor
20%, transparent
) !important
;
487 .promo-image-large img {
493 justify-content: space-between
;
497 /* The colors for .promo-cta .primary must be kept in sync with the dark mode
498 primary button colors from common-shared.cs */
499 .promo-cta .primary {
500 padding: 0.54em 1.15em;
504 background-color: rgb
(0,221,255);
505 color: rgb
(43,42,51);
508 .promo-cta .primary:focus-visible {
509 outline-color: rgb
(0,221,255);
512 .promo-cta .primary:hover {
513 background-color: rgb
(128,235,255) !important
;
514 color: rgb
(43,42,51) !important
;
517 .promo-cta .primary:hover:active {
518 background-color: rgb
(170,242,255) !important
;
519 color: rgb
(43,42,51) !important
;
522 @media (prefers-contrast
) {
523 .promo-cta .primary {
524 background-color: ButtonText
;
526 border-color: ButtonFace
;
529 .promo-cta .primary:focus-visible {
530 outline-color: -moz-DialogText
;
533 .promo-cta .primary:hover {
534 background-color: SelectedItem
!important
;
535 color: SelectedItemText
!important
;
536 border-color: SelectedItemText
;
539 .promo-cta .primary:hover:active {
540 background-color: SelectedItemText
!important
;
541 color: SelectedItem
!important
;
542 border-color: SelectedItem
;
546 .promo.bottom .promo-cta {
556 text-decoration: underline
;
561 .promo.below-search a {
566 .promo.below-search {
570 .promo.below-search {
578 #private-browsing-promo-text {
582 #private-browsing-promo-link:not
(.text-link
) {
583 margin-block: 1.5em 0;
591 .promo.bottom .promo-image-small {
595 .promo.bottom .promo-image-small img {
599 .promo.top > .promo-content {
607 /* stylelint-disable-next-line media-query-no-invalid */
608 @media (-moz-bool-pref: "browser.privatebrowsing.felt-privacy-v1") {
609 .promo.below-search.promo-visible {
610 margin-block: 0 25px;
612 @media not
(prefers-contrast
) {
613 background-color: #321c64;
617 @media not
(prefers-contrast
) {
619 background: linear-gradient
(45deg, #722291 0%, #45278D 50%, #393473 100%);