forked from ADIOR-enigma/refox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserChrome.css
More file actions
215 lines (186 loc) 路 7.35 KB
/
Copy pathuserChrome.css
File metadata and controls
215 lines (186 loc) 路 7.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
@import url("toggler.css");
/* Popup */
menupopup,
panel {
appearance: none !important;
-moz-default-appearance: none !important;
--panel-background-color: var(--lwt-accent-color, #1c1b22) !important;
--panel-background: var(--lwt-accent-color, #1c1b22) !important;
--panel-text-color: var(--lwt-text-color, #fbfbfe) !important;
--panel-color: var(--lwt-text-color, #fbfbfe) !important;
--panel-border-color: var(--toolbar-field-background-color-focus,
#42414d) !important;
--menu-background-color: var(--lwt-accent-color, #1c1b22) !important;
--menu-color: var(--lwt-text-color, #fbfbfe) !important;
--menu-border-color: var(--toolbar-field-background-color-focus,
#42414d) !important;
--panel-item-hover-bgcolor: var(--toolbarbutton-background-color-hover, rgba(255, 255, 255, 0.1)) !important;
--panel-menuitem-border-radius: 6px !important;
}
menupopup::part(content) {
background-color: var(--lwt-accent-color, #1c1b22) !important;
color: var(--lwt-text-color, #fbfbfe) !important;
border: 1px solid var(--toolbar-field-background-color-focus, #42414d) !important;
}
/* Items */
menu,
menuitem {
appearance: none !important;
-moz-default-appearance: none !important;
border-radius: 6px !important;
padding: 6px 12px !important;
background-color: transparent !important;
color: var(--lwt-text-color, #fbfbfe) !important;
transition:
background-color 120ms ease,
color 120ms ease;
}
/* Hover */
menu:is(:hover, [_moz-menuactive="true"]):not([disabled]),
menuitem:is(:hover, [_moz-menuactive="true"]):not([disabled]) {
background-color: var(--toolbarbutton-background-color-hover,
rgba(255, 255, 255, 0.1)) !important;
color: var(--toolbarbutton-icon-fill, #00ddff) !important;
}
/* Subview Hover (Hamburger menu text color) */
panelview .toolbarbutton-1:not([disabled]):is(:hover, :active),
.subviewbutton:not([disabled]):not(#appMenu-zoomReduce-button2, #appMenu-zoomReset-button2, #appMenu-zoomEnlarge-button2, #appMenu-fullscreen-button2):is(:hover, :active) {
color: var(--toolbarbutton-icon-fill, #00ddff) !important;
}
/* Menubar */
menubar>menu[open] {
border-bottom: 2px solid var(--tab-loading-fill, #00ddff) !important;
}
/* Separator */
menuseparator::before {
border-top: 1px solid var(--toolbar-field-background-color-focus, #42414d) !important;
}
/* Disabled */
menuitem[disabled] {
color: var(--toolbar-field-background-color, #2b2a33) !important;
}
/* Checkbox */
menuitem[type="checkbox"]>.menu-icon,
menuitem[type="radio"]>.menu-icon {
appearance: none !important;
-moz-default-appearance: none !important;
/* Added these to fix modern Firefox shrinking the icon to 0x0 */
width: 14px !important;
height: 14px !important;
display: inline-block !important;
box-sizing: border-box !important;
content: "" !important;
list-style-image: none !important;
-moz-context-properties: fill, fill-opacity;
/* Instead of outline, use a light themed color for turned off */
border: 1px solid transparent !important;
outline: none !important;
box-shadow: none !important;
background-color: var(--toolbar-field-background-color, #2b2a33) !important;
border-radius: 50%;
transition: all 120ms ease;
}
/* Checkbox shape */
menuitem[type="checkbox"]>.menu-icon {
border-radius: 4px;
}
/* Checked */
menuitem[type="checkbox"][checked]>.menu-icon,
menuitem[type="radio"][checked]>.menu-icon {
background-color: var(--toolbarbutton-icon-fill, #00ddff) !important;
}
/* Hover effect on toggle */
menuitem:is(:hover, [_moz-menuactive="true"])>.menu-icon {
border-color: var(--toolbarbutton-icon-fill, #00ddff) !important;
}
/* Hover + checked */
menuitem:is(:hover, [_moz-menuactive="true"])[checked]>.menu-icon {
filter: brightness(1.1);
}
/* Popup Notifications */
moz-message-bar,
notification-message,
notification,
#fullscreen-warning,
#pointerlock-warning {
--message-bar-background-color: var(--toolbar-field-background-color,
#2b2a33) !important;
--message-bar-text-color: var(--lwt-text-color, #fbfbfe) !important;
--message-bar-icon-color: var(--toolbarbutton-icon-fill, #00ddff) !important;
background-color: var(--toolbar-field-background-color, #2b2a33) !important;
color: var(--lwt-text-color, #fbfbfe) !important;
border: 1px solid var(--toolbar-field-background-color-focus, #42414d) !important;
border-radius: 6px !important;
}
moz-message-bar .container,
notification-message .container {
background-color: transparent !important;
}
moz-message-bar .icon,
notification-message .icon {
fill: var(--toolbarbutton-icon-fill, #00ddff) !important;
color: var(--toolbarbutton-icon-fill, #00ddff) !important;
}
moz-message-bar moz-button.close,
notification-message moz-button.close {
background-color: transparent !important;
fill: var(--lwt-text-color, #fbfbfe) !important;
color: var(--lwt-text-color, #fbfbfe) !important;
border: none !important;
}
moz-message-bar moz-button.close:hover,
notification-message moz-button.close:hover {
background-color: var(--toolbarbutton-background-color-hover,
rgba(255, 255, 255, 0.1)) !important;
fill: var(--toolbarbutton-icon-fill, #00ddff) !important;
color: var(--toolbarbutton-icon-fill, #00ddff) !important;
}
/* Exit Full Screen Button */
#fullscreen-exit-button,
#pointerlock-exit-button {
appearance: none !important;
-moz-default-appearance: none !important;
background-color: transparent !important;
color: var(--lwt-text-color, #fbfbfe) !important;
border: 1px solid var(--chrome-content-separator-color, #42414d) !important;
border-radius: 6px !important;
padding: 6px 12px !important;
margin-left: 12px !important;
transition: all 120ms ease;
}
#fullscreen-exit-button:hover,
#pointerlock-exit-button:hover {
background-color: var(--toolbarbutton-background-color-hover, rgba(255, 255, 255, 0.1)) !important;
border-color: var(--toolbarbutton-icon-fill, #00ddff) !important;
color: var(--toolbarbutton-icon-fill, #00ddff) !important;
}
/* Ctrl+Tab Active Border */
.ctrlTab-preview:focus>.ctrlTab-preview-inner,
.ctrlTab-preview[selected="true"]>.ctrlTab-preview-inner {
border-color: var(--toolbarbutton-icon-fill, #00ddff) !important;
box-shadow: 0 0 0 1px var(--toolbarbutton-icon-fill, #00ddff) !important;
}
/* Autoscroller Theme */
.autoscroller {
/* Theme the inner background circle and border using native variables so it stays the correct size */
--panel-background-color: var(--lwt-accent-color, #1c1b22) !important;
--panel-border-color: var(--chrome-content-separator-color, #42414d) !important;
/* Clean up manual overrides that were making the outer container too big */
background-color: transparent !important;
border: none !important;
border-radius: 0 !important;
background-image: none !important;
position: relative !important;
}
/* Theme the arrows using a masked pseudo-element overlay */
.autoscroller::after {
content: "" !important;
display: block !important;
position: absolute !important;
inset: 0 !important;
background-color: var(--toolbarbutton-icon-fill, #00ddff) !important;
mask-image: var(--autoscroll-background-image) !important;
mask-repeat: no-repeat !important;
mask-position: center !important;
mask-size: auto !important;
}