Skip to content

Commit ff8abb7

Browse files
126
1 parent 90e3d6f commit ff8abb7

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

mod-files/chrome/GTKless.css

+16-19
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@
2222
}
2323
}
2424

25-
@-moz-document url('chrome://browser/content/browser.xhtml'),
25+
/** @-moz-document url('chrome://browser/content/browser.xhtml'),
2626
url('chrome://global/content/commonDialog.xhtml'),
2727
url('chrome://browser/content/places/places.xhtml'),
2828
url('chrome://pippki/content/editcacert.xhtml'),
2929
url('chrome://pippki/content/deletecert.xhtml'),
3030
url('chrome://pippki/content/exceptionDialog.xhtml'),
3131
url('chrome://mozapps/content/downloads/unknownContentType.xhtml'),
3232
url('chrome://global/content/appPicker.xhtml'),
33-
url('chrome://browser/content/pageinfo/pageInfo.xhtml') {
33+
url('chrome://browser/content/pageinfo/pageInfo.xhtml') { **/
34+
@-moz-document url('chrome://browser/content/browser.xhtml') {
3435
/* Colour palette for the browser UI */
3536
/* LIGHT THEME */
3637
@media (prefers-color-scheme: light) {
37-
:not(:-moz-lwtheme) {
38+
:root:not([lwtheme]) {
3839
--lwt-accent-color: rgb(240, 240, 244) !important;
3940
--lwt-text-color: rgb(21, 20, 26) !important;
4041
--urlbarView-action-color: rgb(91, 91, 102) !important;
@@ -86,7 +87,7 @@
8687
}
8788
/* DARK THEME */
8889
@media (prefers-color-scheme: dark) {
89-
:not(:-moz-lwtheme) {
90+
:root:not([lwtheme]) {
9091
--lwt-accent-color: rgb(28, 27, 34) !important;
9192
--lwt-text-color: rgb(251, 251, 254) !important;
9293
--button-bgcolor: rgba(0, 0, 0, 0.33000001311302185) !important;
@@ -139,14 +140,14 @@
139140
/* Alternative opt-in Firefox palettes */
140141
/* GTK's colours */
141142
@media (-moz-bool-pref: "gtkless.use-gtk-colors") {
142-
:not(:-moz-lwtheme) #navigator-toolbox {
143+
:root:not([lwtheme]) #navigator-toolbox {
143144
&:-moz-window-inactive {
144145
:root[tabsintitlebar] & {
145146
color: InactiveCaptionText !important;
146147
}
147148
}
148149
}
149-
:not(:-moz-lwtheme) {
150+
:root:not([lwtheme]) {
150151
--lwt-accent-color: ActiveCaption !important;
151152
--lwt-text-color: CaptionText !important;
152153
--urlbarView-action-color: LinkText !important; /*urlbarView.css:18, Firefox 122*/
@@ -196,12 +197,12 @@
196197

197198
/* Adwaita from the popular hit GTK-library Libadwaita */
198199
@media (-moz-bool-pref: "gtkless.colors-adwaita") {
199-
:not(:-moz-lwtheme) #TabsToolbar #firefox-view-button[open] > .toolbarbutton-icon,
200-
:not(:-moz-lwtheme) #tabbrowser-tabs:not([noshadowfortests]) .tab-background:is([selected], [multiselected]) {
200+
:root:not([lwtheme]) #TabsToolbar #firefox-view-button[open] > .toolbarbutton-icon,
201+
:root:not([lwtheme]) #tabbrowser-tabs:not([noshadowfortests]) .tab-background:is([selected], [multiselected]) {
201202
box-shadow: none !important; /* tabs.css:449, Firefox 121 */
202203
}
203204
@media (prefers-color-scheme: light) {
204-
:not(:-moz-lwtheme) {
205+
:root:not([lwtheme]) {
205206
--lwt-accent-color: #fff !important;
206207
--lwt-text-color: rgba(0, 0, 0, 0.8) !important;
207208
--urlbarView-action-color: rgb(91, 91, 102) !important;
@@ -253,7 +254,7 @@
253254
}
254255
/* DARK THEME */
255256
@media (prefers-color-scheme: dark) {
256-
:not(:-moz-lwtheme) {
257+
:root:not([lwtheme]) {
257258
--lwt-accent-color: #303030 !important;
258259
--lwt-text-color: #fff !important;
259260
--button-bgcolor: color-mix(in srgb, currentColor 13%, transparent) !important;
@@ -385,12 +386,8 @@
385386
width: 2px !important;
386387
}
387388
}
388-
/* UX Improvement: shadows for titlebuttons on bright themes */
389-
:root[lwtheme-brighttext] .titlebar-button:not(.titlebar-close:hover) > .toolbarbutton-icon {
390-
filter: drop-shadow(1px 1px 1.5px black) !important;
391-
}
392389

393-
/* Titlebar buttons from lwtheme - browser.css:241, mostly, Firefox 125 */
390+
/* Titlebar buttons from lwtheme - browser.css:241, mostly, Firefox 114 */
394391
.titlebar-button {
395392
padding-inline: 3px !important;
396393
> .toolbarbutton-icon {
@@ -406,7 +403,7 @@
406403
}
407404

408405
/* lwtheme-specific values in browser-shared */
409-
:root:not(:-moz-lwtheme) { /*browser-shared.css:107, Firefox 122*/
406+
:root:not([lwtheme]) { /*browser-shared.css:107, Firefox 122*/
410407
color: var(--lwt-text-color) !important; /*TITLEBAR AREA*/
411408

412409
--link-color: light-dark(rgb(0, 97, 224), rgb(0, 221, 255)) !important;
@@ -419,7 +416,7 @@
419416
}
420417

421418
/* Tabs area */
422-
:not(:-moz-lwtheme) #navigator-toolbox { /*browser-shared.css:174, Firefox 120*/ /* TITLEBAR AREA, toolbar is managed by *browser.css:75, Firefox 120* */
419+
:root:not([lwtheme]) #navigator-toolbox { /*browser-shared.css:174, Firefox 120*/ /* TITLEBAR AREA, toolbar is managed by *browser.css:75, Firefox 120* */
423420
background: var(--lwt-accent-color) !important;
424421
color: inherit !important;
425422

@@ -432,12 +429,12 @@
432429
}
433430

434431
/* Tabs' attention colour */
435-
:root:not(:-moz-lwtheme) {
432+
:root:not([lwtheme]) {
436433
--tab-attention-icon-color: light-dark(rgb(42, 195, 162), rgb(84, 255, 189)) !important; /*tabs.css:23, partially, Firefox 122*/
437434
}
438435

439436
/* Customise Firefox background texture */
440-
:not(:-moz-lwtheme) #customization-container {
437+
:root:not([lwtheme]) #customization-container {
441438
background-image: linear-gradient(var(--toolbar-bgcolor), var(--toolbar-bgcolor)) !important; /*customizeMode.css:32, Firefox 122*/
442439
background-color: unset !important;
443440
}

0 commit comments

Comments
 (0)