|
2 | 2 | /* Github: https://github.com/aris-t2/customcssforfx ************************************/ |
3 | 3 | /****************************************************************************************/ |
4 | 4 |
|
| 5 | +/* |
5 | 6 |
|
6 | | -@media (-moz-platform: windows) { |
7 | | - #PersonalToolbar toolbarbutton:not(#PlacesChevron), |
8 | | - #PersonalToolbar #PlacesToolbar toolbarbutton, |
9 | | - #PlacesToolbar toolbarbutton:not(#PlacesChevron) { |
10 | | - appearance: auto !important; |
11 | | - -moz-default-appearance: toolbarbutton !important; |
12 | | - background: unset !important; |
13 | | - box-shadow: unset !important; |
14 | | - padding-left: 3px !important; |
15 | | - padding-right: 3px !important; |
16 | | - margin-left: 0px !important; |
17 | | - margin-right: 0px !important; |
18 | | - } |
| 7 | + Mozilla changed the default appearance of the ui item 'toolbarbutton' in Firefox 141+ |
| 8 | + This tries to replicate the Windows version of the button using buttons Aero appearance as base |
19 | 9 |
|
20 | | - #PersonalToolbar .toolbarbutton-badge-stack, |
21 | | - #PersonalToolbar toolbarbutton:not(#PlacesChevron) .toolbarbutton-icon { |
22 | | - background: unset !important; |
23 | | - box-shadow: unset !important; |
24 | | - } |
| 10 | +*/ |
25 | 11 |
|
26 | | - #PersonalToolbar toolbarbutton:not(#PlacesChevron) .toolbarbutton-icon { |
27 | | - padding-left: 0px !important; |
28 | | - padding-right: 0px !important; |
29 | | - width: 16px !important; |
30 | | - } |
31 | | - #PersonalToolbar .scrollbutton-up .toolbarbutton-icon, |
32 | | - #PersonalToolbar .scrollbutton-down .toolbarbutton-icon { |
33 | | - padding-left: unset !important; |
34 | | - padding-right: unset !important; |
35 | | - width: unset !important; |
36 | | - } |
37 | | - |
38 | | - @media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) { |
39 | | - #PersonalToolbar toolbarbutton:not(#PlacesChevron), |
40 | | - #PersonalToolbar #PlacesToolbar toolbarbutton, |
41 | | - #PlacesToolbar toolbarbutton:not(#PlacesChevron) { |
42 | | - appearance: unset !important; |
43 | | - } |
44 | | - #PersonalToolbar toolbarbutton:not(#PlacesChevron):hover, |
45 | | - #PersonalToolbar #PlacesToolbar toolbarbutton:hover, |
46 | | - #PlacesToolbar toolbarbutton:not(#PlacesChevron):hover { |
47 | | - /*appearance: auto !important;*/ |
48 | | - background-color: transparent !important; |
49 | | - background-image: |
50 | | - linear-gradient(to right, rgba(255,255,255,0.4) 0px, transparent 0px), |
51 | | - linear-gradient(to left, rgba(255,255,255,0.4) 0px, transparent 0px), |
52 | | - linear-gradient(to top, rgba(255,255,255,0.3) 0px, transparent 0px), |
53 | | - linear-gradient(to bottom, rgba(163,196,247,0.2), rgba(122,180,246,0.2)) !important; |
54 | | - } |
55 | | - } |
| 12 | +#PersonalToolbar toolbarbutton:not(#PlacesChevron), |
| 13 | +#PersonalToolbar #PlacesToolbar toolbarbutton, |
| 14 | +#PlacesToolbar toolbarbutton:not(#PlacesChevron) { |
| 15 | + padding-left: 3px !important; |
| 16 | + padding-right: 3px !important; |
| 17 | + margin-left: 0px !important; |
| 18 | + margin-right: 0px !important; |
56 | 19 | } |
57 | 20 |
|
| 21 | +#PersonalToolbar toolbarbutton:not(#PlacesChevron) .toolbarbutton-icon { |
| 22 | + padding-left: 0px !important; |
| 23 | + padding-right: 0px !important; |
| 24 | + width: 16px !important; |
| 25 | +} |
| 26 | +#PersonalToolbar .scrollbutton-up .toolbarbutton-icon, |
| 27 | +#PersonalToolbar .scrollbutton-down .toolbarbutton-icon { |
| 28 | + padding-left: unset !important; |
| 29 | + padding-right: unset !important; |
| 30 | + width: unset !important; |
| 31 | +} |
| 32 | + |
58 | 33 | #PersonalToolbar toolbarbutton.bookmark-item:not(.subviewbutton, [disabled=true], [open]):hover, |
59 | 34 | #PersonalToolbar .toolbarbutton-1:not([disabled=true], [checked], [open], :active):hover > .toolbarbutton-icon, |
60 | 35 | #PersonalToolbar .toolbarbutton-1:not([disabled=true], [checked], [open], :active):hover > .toolbarbutton-text, |
|
66 | 41 | #PersonalToolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active) > .toolbarbutton-badge-stack { |
67 | 42 | background-color: transparent !important; |
68 | 43 | } |
| 44 | + |
| 45 | +#PersonalToolbar toolbarbutton.bookmark-item:not(.subviewbutton, [disabled=true], [open]):hover, |
| 46 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true], [checked], [open], :active):hover > .toolbarbutton-icon, |
| 47 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true], [checked], [open], :active):hover > .toolbarbutton-text, |
| 48 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true], [checked], [open], :active):hover > .toolbarbutton-badge-stack { |
| 49 | + background-color: transparent !important; |
| 50 | +} |
| 51 | + |
| 52 | +#PersonalToolbar toolbarbutton.bookmark-item:hover:active:not(.subviewbutton, [disabled="true"]), |
| 53 | +#PersonalToolbar toolbarbutton.bookmark-item[open="true"], |
| 54 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active) > .toolbarbutton-icon, |
| 55 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active) > .toolbarbutton-text, |
| 56 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active) > .toolbarbutton-badge-stack { |
| 57 | + background-color: transparent !important; |
| 58 | +} |
| 59 | + |
| 60 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, |
| 61 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true]):is(:hover,[open]) > .toolbarbutton-menubutton-button , |
| 62 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true]):is(:hover,[open]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, |
| 63 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover, |
| 64 | +#PersonalToolbar .toolbarbutton-1:not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon { |
| 65 | + background: transparent !important; |
| 66 | + background-color: transparent !important; |
| 67 | + background-image: |
| 68 | + linear-gradient(to right, rgba(255,255,255,0.4) 0px, transparent 0px), |
| 69 | + linear-gradient(to left, rgba(255,255,255,0.4) 0px, transparent 0px), |
| 70 | + linear-gradient(to top, rgba(255,255,255,0.3) 0px, transparent 0px), |
| 71 | + linear-gradient(to bottom, rgba(163,196,247,0.2), rgba(122,180,246,0.2)) !important; |
| 72 | + border-radius: 0px !important; |
| 73 | + outline: 1px solid rgba(124,163,206,0.7) !important; |
| 74 | + transition: background-color .3s ease-in, |
| 75 | + border-color .2s ease-in, |
| 76 | + box-shadow .2s ease-in !important; |
| 77 | +} |
| 78 | + |
| 79 | +#PersonalToolbar toolbarbutton[type="menu"][open]:not([disabled]), |
| 80 | +#PersonalToolbar toolbarbutton[type="menu-button"]:not([open]):hover:not([disabled]):active , |
| 81 | +#PersonalToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):is(:hover:active,:active, [open]), |
| 82 | +#PersonalToolbar .toolbarbutton-1[open] > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon, |
| 83 | +#PersonalToolbar .toolbarbutton-1:not([disabled=true]):is([open],[checked],:hover:active,:active) { |
| 84 | + background: transparent !important; |
| 85 | + background-color: transparent !important; |
| 86 | + background-image: |
| 87 | + linear-gradient(to right, rgba(255,255,255,0.4) 0px, transparent 0px), |
| 88 | + linear-gradient(to left, rgba(255,255,255,0.4) 0px, transparent 0px), |
| 89 | + linear-gradient(to top, rgba(255,255,255,0.3) 0px, transparent 0px), |
| 90 | + linear-gradient(to bottom, rgba(163,196,247,0.6), rgba(122,180,246,0.6)) !important; |
| 91 | + border-radius: 0px !important; |
| 92 | + outline: 1px solid rgba(124,163,206,0.99) !important; |
| 93 | + transition: background-color .3s ease-in, |
| 94 | + border-color .2s ease-in, |
| 95 | + box-shadow .2s ease-in !important; |
| 96 | +} |
| 97 | + |
| 98 | +#PersonalToolbar toolbarbutton.bookmark-item:not(.subviewbutton, [disabled=true], [open]):hover { |
| 99 | + background-color: transparent !important; |
| 100 | +} |
| 101 | + |
| 102 | +#PersonalToolbar toolbarbutton.bookmark-item:hover:active:not(.subviewbutton, [disabled="true"]), |
| 103 | +#PersonalToolbar toolbarbutton.bookmark-item[open="true"]{ |
| 104 | + background-color: transparent !important; |
| 105 | +} |
| 106 | + |
| 107 | +#PlacesToolbar .bookmark-item:not(menu):not(menuitem):not([disabled=true]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, |
| 108 | +#PlacesToolbar .bookmark-item:not(menu):not(menuitem):not([disabled=true]):is(:hover,[open]) > .toolbarbutton-menubutton-button , |
| 109 | +#PlacesToolbar .bookmark-item:not(menu):not(menuitem):not([disabled=true]):is(:hover,[open]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, |
| 110 | +#PlacesToolbar .bookmark-item:not(menu):not(menuitem):not([disabled=true]):not([checked]):not([open]):not(:active):hover, |
| 111 | +#PlacesToolbar .bookmark-item:not(menu):not(menuitem):not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon { |
| 112 | + background: transparent !important; |
| 113 | + background-color: transparent !important; |
| 114 | + background-image: |
| 115 | + linear-gradient(to right, rgba(255,255,255,0.4) 0px, transparent 0px), |
| 116 | + linear-gradient(to left, rgba(255,255,255,0.4) 0px, transparent 0px), |
| 117 | + linear-gradient(to top, rgba(255,255,255,0.3) 0px, transparent 0px), |
| 118 | + linear-gradient(to bottom, rgba(163,196,247,0.2), rgba(122,180,246,0.2)) !important; |
| 119 | + border-radius: 0px !important; |
| 120 | + outline: 1px solid rgba(124,163,206,0.7) !important; |
| 121 | + transition: background-color .3s ease-in, |
| 122 | + border-color .2s ease-in, |
| 123 | + box-shadow .2s ease-in !important; |
| 124 | +} |
| 125 | + |
| 126 | +#PlacesToolbar toolbarbutton[type="menu"][open]:not([disabled]), |
| 127 | +#PlacesToolbar toolbarbutton[type="menu-button"]:not([open]):hover:not([disabled]):active , |
| 128 | +#PlacesToolbar .bookmark-item:not(menu):not(menuitem) > .toolbarbutton-menubutton-button:not([disabled=true]):is(:hover:active,:active, [open]), |
| 129 | +#PlacesToolbar .bookmark-item:not(menu):not(menuitem)[open] > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon, |
| 130 | +#PlacesToolbar .bookmark-item:not(menu):not(menuitem):not([disabled=true]):is([open],[checked],:hover:active,:active) { |
| 131 | + background: transparent !important; |
| 132 | + background-color: transparent !important; |
| 133 | + background-image: |
| 134 | + linear-gradient(to right, rgba(255,255,255,0.4) 0px, transparent 0px), |
| 135 | + linear-gradient(to left, rgba(255,255,255,0.4) 0px, transparent 0px), |
| 136 | + linear-gradient(to top, rgba(255,255,255,0.3) 0px, transparent 0px), |
| 137 | + linear-gradient(to bottom, rgba(163,196,247,0.6), rgba(122,180,246,0.6)) !important; |
| 138 | + border-radius: 0px !important; |
| 139 | + outline: 1px solid rgba(124,163,206,0.99) !important; |
| 140 | + transition: background-color .3s ease-in, |
| 141 | + border-color .2s ease-in, |
| 142 | + box-shadow .2s ease-in !important; |
| 143 | +} |
| 144 | + |
| 145 | +/* deep Fx 109 bs and nonsense override */ |
| 146 | +#PlacesToolbar :is(toolbarbutton.subviewbutton,.toolbaritem-combined-buttons:is(:not([cui-areatype="toolbar"]),[overflowedItem=true]) > toolbarbutton):not([disabled]):hover { |
| 147 | + background-color: unset !important; |
| 148 | +} |
| 149 | + |
0 commit comments