From 1c206dca958703a655f8c19397ceaad483a15405 Mon Sep 17 00:00:00 2001 From: Scott Date: Thu, 14 Apr 2022 18:42:55 +0000 Subject: [PATCH] Bug 1764799 - Save to Pocket panel dark mode border fix. r=gvn Differential Revision: https://phabricator.services.mozilla.com/D143742 --- .../content/panels/css/main.compiled.css | 2 +- .../content/panels/img/pocketlogo-dark.svg | 28 +++++++++---------- .../panels/js/components/Header/Header.scss | 2 +- .../shared/customizableui/panelUI-shared.css | 8 ++++-- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/browser/components/pocket/content/panels/css/main.compiled.css b/browser/components/pocket/content/panels/css/main.compiled.css index a897094ecc7f..32daf888bd74 100644 --- a/browser/components/pocket/content/panels/css/main.compiled.css +++ b/browser/components/pocket/content/panels/css/main.compiled.css @@ -2247,7 +2247,7 @@ body.theme_dark .stp_article_list .stp_article_list_publisher { width: 121px; } body.theme_dark .stp_header .stp_header_logo { - background: url(../img/pocketlogo-dark.svg) bottom center no-repeat; + background-image: url(../img/pocketlogo-dark.svg); } .stp_header .stp_button { diff --git a/browser/components/pocket/content/panels/img/pocketlogo-dark.svg b/browser/components/pocket/content/panels/img/pocketlogo-dark.svg index 70e6ad7bf106..7ec3f7dac05f 100644 --- a/browser/components/pocket/content/panels/img/pocketlogo-dark.svg +++ b/browser/components/pocket/content/panels/img/pocketlogo-dark.svg @@ -1,16 +1,14 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/browser/components/pocket/content/panels/js/components/Header/Header.scss b/browser/components/pocket/content/panels/js/components/Header/Header.scss index 0ca8ed1742f4..f6e4eca9d55d 100644 --- a/browser/components/pocket/content/panels/js/components/Header/Header.scss +++ b/browser/components/pocket/content/panels/js/components/Header/Header.scss @@ -12,7 +12,7 @@ width: 121px; @include theme_dark { - background: url(../img/pocketlogo-dark.svg) bottom center no-repeat; + background-image: url(../img/pocketlogo-dark.svg); } } diff --git a/browser/themes/shared/customizableui/panelUI-shared.css b/browser/themes/shared/customizableui/panelUI-shared.css index cfaf0e91736f..89c9e63bd5c5 100644 --- a/browser/themes/shared/customizableui/panelUI-shared.css +++ b/browser/themes/shared/customizableui/panelUI-shared.css @@ -2009,9 +2009,11 @@ panelview:not([mainview]) #PanelUI-whatsNew-title { } /* Override themes for the Pocket panel, because the Pocket - panel doesn't currently support multiple themes. */ -#customizationui-widget-panel[viewId="PanelUI-savetopocket"] { - --arrowpanel-background: #fbfbfb; + panel currently only supports dark and light themes. */ +@media not (prefers-color-scheme: dark){ + #customizationui-widget-panel[viewId="PanelUI-savetopocket"] { + --arrowpanel-background: #fbfbfb; + } } #PanelUI-profiler-content {