|
22 | 22 | }
|
23 | 23 | }
|
24 | 24 |
|
25 |
| -@-moz-document url('chrome://browser/content/browser.xhtml'), |
| 25 | +/** @-moz-document url('chrome://browser/content/browser.xhtml'), |
26 | 26 | url('chrome://global/content/commonDialog.xhtml'),
|
27 | 27 | url('chrome://browser/content/places/places.xhtml'),
|
28 | 28 | url('chrome://pippki/content/editcacert.xhtml'),
|
29 | 29 | url('chrome://pippki/content/deletecert.xhtml'),
|
30 | 30 | url('chrome://pippki/content/exceptionDialog.xhtml'),
|
31 | 31 | url('chrome://mozapps/content/downloads/unknownContentType.xhtml'),
|
32 | 32 | 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') { |
34 | 35 | /* Colour palette for the browser UI */
|
35 | 36 | /* LIGHT THEME */
|
36 | 37 | @media (prefers-color-scheme: light) {
|
37 |
| - :not(:-moz-lwtheme) { |
| 38 | + :root:not([lwtheme]) { |
38 | 39 | --lwt-accent-color: rgb(240, 240, 244) !important;
|
39 | 40 | --lwt-text-color: rgb(21, 20, 26) !important;
|
40 | 41 | --urlbarView-action-color: rgb(91, 91, 102) !important;
|
|
86 | 87 | }
|
87 | 88 | /* DARK THEME */
|
88 | 89 | @media (prefers-color-scheme: dark) {
|
89 |
| - :not(:-moz-lwtheme) { |
| 90 | + :root:not([lwtheme]) { |
90 | 91 | --lwt-accent-color: rgb(28, 27, 34) !important;
|
91 | 92 | --lwt-text-color: rgb(251, 251, 254) !important;
|
92 | 93 | --button-bgcolor: rgba(0, 0, 0, 0.33000001311302185) !important;
|
|
139 | 140 | /* Alternative opt-in Firefox palettes */
|
140 | 141 | /* GTK's colours */
|
141 | 142 | @media (-moz-bool-pref: "gtkless.use-gtk-colors") {
|
142 |
| - :not(:-moz-lwtheme) #navigator-toolbox { |
| 143 | + :root:not([lwtheme]) #navigator-toolbox { |
143 | 144 | &:-moz-window-inactive {
|
144 | 145 | :root[tabsintitlebar] & {
|
145 | 146 | color: InactiveCaptionText !important;
|
146 | 147 | }
|
147 | 148 | }
|
148 | 149 | }
|
149 |
| - :not(:-moz-lwtheme) { |
| 150 | + :root:not([lwtheme]) { |
150 | 151 | --lwt-accent-color: ActiveCaption !important;
|
151 | 152 | --lwt-text-color: CaptionText !important;
|
152 | 153 | --urlbarView-action-color: LinkText !important; /*urlbarView.css:18, Firefox 122*/
|
|
196 | 197 |
|
197 | 198 | /* Adwaita from the popular hit GTK-library Libadwaita */
|
198 | 199 | @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]) { |
201 | 202 | box-shadow: none !important; /* tabs.css:449, Firefox 121 */
|
202 | 203 | }
|
203 | 204 | @media (prefers-color-scheme: light) {
|
204 |
| - :not(:-moz-lwtheme) { |
| 205 | + :root:not([lwtheme]) { |
205 | 206 | --lwt-accent-color: #fff !important;
|
206 | 207 | --lwt-text-color: rgba(0, 0, 0, 0.8) !important;
|
207 | 208 | --urlbarView-action-color: rgb(91, 91, 102) !important;
|
|
253 | 254 | }
|
254 | 255 | /* DARK THEME */
|
255 | 256 | @media (prefers-color-scheme: dark) {
|
256 |
| - :not(:-moz-lwtheme) { |
| 257 | + :root:not([lwtheme]) { |
257 | 258 | --lwt-accent-color: #303030 !important;
|
258 | 259 | --lwt-text-color: #fff !important;
|
259 | 260 | --button-bgcolor: color-mix(in srgb, currentColor 13%, transparent) !important;
|
|
385 | 386 | width: 2px !important;
|
386 | 387 | }
|
387 | 388 | }
|
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 |
| - } |
392 | 389 |
|
393 |
| - /* Titlebar buttons from lwtheme - browser.css:241, mostly, Firefox 125 */ |
| 390 | + /* Titlebar buttons from lwtheme - browser.css:241, mostly, Firefox 114 */ |
394 | 391 | .titlebar-button {
|
395 | 392 | padding-inline: 3px !important;
|
396 | 393 | > .toolbarbutton-icon {
|
|
406 | 403 | }
|
407 | 404 |
|
408 | 405 | /* 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*/ |
410 | 407 | color: var(--lwt-text-color) !important; /*TITLEBAR AREA*/
|
411 | 408 |
|
412 | 409 | --link-color: light-dark(rgb(0, 97, 224), rgb(0, 221, 255)) !important;
|
|
419 | 416 | }
|
420 | 417 |
|
421 | 418 | /* 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* */ |
423 | 420 | background: var(--lwt-accent-color) !important;
|
424 | 421 | color: inherit !important;
|
425 | 422 |
|
|
432 | 429 | }
|
433 | 430 |
|
434 | 431 | /* Tabs' attention colour */
|
435 |
| - :root:not(:-moz-lwtheme) { |
| 432 | + :root:not([lwtheme]) { |
436 | 433 | --tab-attention-icon-color: light-dark(rgb(42, 195, 162), rgb(84, 255, 189)) !important; /*tabs.css:23, partially, Firefox 122*/
|
437 | 434 | }
|
438 | 435 |
|
439 | 436 | /* Customise Firefox background texture */
|
440 |
| - :not(:-moz-lwtheme) #customization-container { |
| 437 | + :root:not([lwtheme]) #customization-container { |
441 | 438 | background-image: linear-gradient(var(--toolbar-bgcolor), var(--toolbar-bgcolor)) !important; /*customizeMode.css:32, Firefox 122*/
|
442 | 439 | background-color: unset !important;
|
443 | 440 | }
|
|
0 commit comments