From f986e74a94994ac9da8402b53f1bead63f7613d1 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Thu, 31 Mar 2022 14:08:41 +0900 Subject: [PATCH] Fix: Proton - Content's color scope --- src/contents/_proton_color.scss | 3 ++- src/contents/proton_contents/_directory_view.scss | 2 +- src/contents/proton_contents/_proton_commons.scss | 2 +- userContent.css | 7 ++++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/contents/_proton_color.scss b/src/contents/_proton_color.scss index a99aa33..9d4a158 100644 --- a/src/contents/_proton_color.scss +++ b/src/contents/_proton_color.scss @@ -2,7 +2,8 @@ url-prefix("https://addons.mozilla.org"), url-prefix("https://support.mozilla.org"), url-prefix("https://accounts.firefox.com"), - regexp("^((file:\/\/\/)|(chrome:\/\/)).*\/$") { + url-prefix("view-source"), + regexp("^(((jar:)?file:\/\/\/)|(chrome:\/\/)).*\/$") { @import "../theme/proton_color"; @include Option("userContent.page.proton_color.dark_blue_accent") { diff --git a/src/contents/proton_contents/_directory_view.scss b/src/contents/proton_contents/_directory_view.scss index 9dc7276..bbe5ba3 100644 --- a/src/contents/proton_contents/_directory_view.scss +++ b/src/contents/proton_contents/_directory_view.scss @@ -1,5 +1,5 @@ @-moz-document url-prefix("about:sync-log"), - regexp("^((file:\/\/\/)|(chrome:\/\/)).*\/$") { + regexp("^(((jar:)?file:\/\/\/)|(chrome:\/\/)).*\/$") { body { background-color: var(--in-content-box-background) !important; margin: 4em auto !important; /* Override to default */ diff --git a/src/contents/proton_contents/_proton_commons.scss b/src/contents/proton_contents/_proton_commons.scss index 94d566b..6ce5de0 100644 --- a/src/contents/proton_contents/_proton_commons.scss +++ b/src/contents/proton_contents/_proton_commons.scss @@ -4,7 +4,7 @@ url-prefix("about:checkerboard"), url-prefix("about:sync-log"), url-prefix("about:memory"), - regexp("^((file:\/\/\/)|(chrome:\/\/)).*\/$") { + regexp("^(((jar:)?file:\/\/\/)|(chrome:\/\/)).*\/$") { /* Base */ html, body { diff --git a/userContent.css b/userContent.css index 98d03bb..b54b7e6 100644 --- a/userContent.css +++ b/userContent.css @@ -531,7 +531,8 @@ url-prefix("https://addons.mozilla.org"), url-prefix("https://support.mozilla.org"), url-prefix("https://accounts.firefox.com"), - regexp("^((file:///)|(chrome://)).*/$") + url-prefix("view-source"), + regexp("^(((jar:)?file:///)|(chrome://)).*/$") { /*= Default Colors - Hard Coded ==============================================*/ /* Based on chrome://global/skin/in-content/common.css */ @@ -1358,7 +1359,7 @@ url-prefix("about:checkerboard"), url-prefix("about:sync-log"), url-prefix("about:memory"), - regexp("^((file:///)|(chrome://)).*/$") + regexp("^(((jar:)?file:///)|(chrome://)).*/$") { /* Base */ html, @@ -1698,7 +1699,7 @@ } /*= Directory View ===========================================================*/ @-moz-document url-prefix("about:sync-log"), - regexp("^((file:///)|(chrome://)).*/$") + regexp("^(((jar:)?file:///)|(chrome://)).*/$") { body { background-color: var(--in-content-box-background) !important;