fix newtab changes in FF 111.0 #85
This commit is contained in:
parent
a6ab9b7efd
commit
c1488294e0
1 changed files with 6 additions and 7 deletions
|
@ -4,8 +4,8 @@
|
||||||
@-moz-document url-prefix("about:newtab"),
|
@-moz-document url-prefix("about:newtab"),
|
||||||
url-prefix("about:home"),
|
url-prefix("about:home"),
|
||||||
url-prefix("about:firefoxview") {
|
url-prefix("about:firefoxview") {
|
||||||
body:not([lwt-newtab], [lwt-newtab-brighttext]),
|
:root:not([lwt-newtab]) > body:not([lwt-newtab]),
|
||||||
body[style*="--newtab-background-color: rgb(249, 249, 251)"] {
|
:is(:root, body)[style*="--newtab-background-color: rgb(249, 249, 251)"] {
|
||||||
--newtab-background-color: #F7F7F7 !important;
|
--newtab-background-color: #F7F7F7 !important;
|
||||||
--newtab-background-color-secondary: #fff !important;
|
--newtab-background-color-secondary: #fff !important;
|
||||||
--newtab-text-primary-color: #252525 !important;
|
--newtab-text-primary-color: #252525 !important;
|
||||||
|
@ -33,8 +33,8 @@ url-prefix("about:firefoxview") {
|
||||||
--newtab-button-secondary-color: inherit !important;
|
--newtab-button-secondary-color: inherit !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body[style*="--newtab-background-color: rgb(43, 42, 51)"][lwt-newtab-brighttext],
|
:is(:root, body)[style*="--newtab-background-color: rgb(43, 42, 51)"][lwt-newtab-brighttext],
|
||||||
body:not([style*="color"])[lwt-newtab-brighttext] {
|
:is(:root, body):not([style*="color"])[lwt-newtab-brighttext] {
|
||||||
--newtab-background-color: #252525 !important;
|
--newtab-background-color: #252525 !important;
|
||||||
--newtab-background-color-secondary: #4A4A4A !important;
|
--newtab-background-color-secondary: #4A4A4A !important;
|
||||||
--newtab-text-primary-color: #fff !important;
|
--newtab-text-primary-color: #fff !important;
|
||||||
|
@ -245,9 +245,7 @@ url-prefix("about:home") {
|
||||||
url(about:home),
|
url(about:home),
|
||||||
url(about:privatebrowsing),
|
url(about:privatebrowsing),
|
||||||
url-prefix("about:firefoxview") {
|
url-prefix("about:firefoxview") {
|
||||||
body:not([lwt-newtab]),
|
:root body {
|
||||||
body[lwt-newtab],
|
|
||||||
body[lwt-newtab][lwt-newtab-brighttext] {
|
|
||||||
/* specify both jpg and png file extensions, but jpg images will always
|
/* specify both jpg and png file extensions, but jpg images will always
|
||||||
have a higher priority */
|
have a higher priority */
|
||||||
--bg-0: url(../background-0.jpg), url(../background-0.png);
|
--bg-0: url(../background-0.jpg), url(../background-0.png);
|
||||||
|
@ -264,6 +262,7 @@ url-prefix("about:home") {
|
||||||
}
|
}
|
||||||
|
|
||||||
body[lwt-newtab][lwt-newtab-brighttext],
|
body[lwt-newtab][lwt-newtab-brighttext],
|
||||||
|
:root[lwt-newtab][lwt-newtab-brighttext] body,
|
||||||
:root.private body {
|
:root.private body {
|
||||||
background-image: var(--bg-1), var(--bg-0) !important;
|
background-image: var(--bg-1), var(--bg-0) !important;
|
||||||
--newtab-element-hover-color: rgba(66, 66, 66, 0.4) !important;
|
--newtab-element-hover-color: rgba(66, 66, 66, 0.4) !important;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue