Fix: Proton - Content's color scope

This commit is contained in:
alstjr7375 2022-03-31 14:08:41 +09:00
parent fc1eec8d22
commit f986e74a94
4 changed files with 8 additions and 6 deletions

View file

@ -2,7 +2,8 @@
url-prefix("https://addons.mozilla.org"), url-prefix("https://addons.mozilla.org"),
url-prefix("https://support.mozilla.org"), url-prefix("https://support.mozilla.org"),
url-prefix("https://accounts.firefox.com"), url-prefix("https://accounts.firefox.com"),
regexp("^((file:\/\/\/)|(chrome:\/\/)).*\/$") { url-prefix("view-source"),
regexp("^(((jar:)?file:\/\/\/)|(chrome:\/\/)).*\/$") {
@import "../theme/proton_color"; @import "../theme/proton_color";
@include Option("userContent.page.proton_color.dark_blue_accent") { @include Option("userContent.page.proton_color.dark_blue_accent") {

View file

@ -1,5 +1,5 @@
@-moz-document url-prefix("about:sync-log"), @-moz-document url-prefix("about:sync-log"),
regexp("^((file:\/\/\/)|(chrome:\/\/)).*\/$") { regexp("^(((jar:)?file:\/\/\/)|(chrome:\/\/)).*\/$") {
body { body {
background-color: var(--in-content-box-background) !important; background-color: var(--in-content-box-background) !important;
margin: 4em auto !important; /* Override to default */ margin: 4em auto !important; /* Override to default */

View file

@ -4,7 +4,7 @@
url-prefix("about:checkerboard"), url-prefix("about:checkerboard"),
url-prefix("about:sync-log"), url-prefix("about:sync-log"),
url-prefix("about:memory"), url-prefix("about:memory"),
regexp("^((file:\/\/\/)|(chrome:\/\/)).*\/$") { regexp("^(((jar:)?file:\/\/\/)|(chrome:\/\/)).*\/$") {
/* Base */ /* Base */
html, html,
body { body {

View file

@ -531,7 +531,8 @@
url-prefix("https://addons.mozilla.org"), url-prefix("https://addons.mozilla.org"),
url-prefix("https://support.mozilla.org"), url-prefix("https://support.mozilla.org"),
url-prefix("https://accounts.firefox.com"), url-prefix("https://accounts.firefox.com"),
regexp("^((file:///)|(chrome://)).*/$") url-prefix("view-source"),
regexp("^(((jar:)?file:///)|(chrome://)).*/$")
{ {
/*= Default Colors - Hard Coded ==============================================*/ /*= Default Colors - Hard Coded ==============================================*/
/* Based on chrome://global/skin/in-content/common.css */ /* Based on chrome://global/skin/in-content/common.css */
@ -1358,7 +1359,7 @@
url-prefix("about:checkerboard"), url-prefix("about:checkerboard"),
url-prefix("about:sync-log"), url-prefix("about:sync-log"),
url-prefix("about:memory"), url-prefix("about:memory"),
regexp("^((file:///)|(chrome://)).*/$") regexp("^(((jar:)?file:///)|(chrome://)).*/$")
{ {
/* Base */ /* Base */
html, html,
@ -1698,7 +1699,7 @@
} }
/*= Directory View ===========================================================*/ /*= Directory View ===========================================================*/
@-moz-document url-prefix("about:sync-log"), @-moz-document url-prefix("about:sync-log"),
regexp("^((file:///)|(chrome://)).*/$") regexp("^(((jar:)?file:///)|(chrome://)).*/$")
{ {
body { body {
background-color: var(--in-content-box-background) !important; background-color: var(--in-content-box-background) !important;