-
Notifications
You must be signed in to change notification settings - Fork 0
/
userChrome.css
388 lines (310 loc) · 10.8 KB
/
userChrome.css
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
:root {
/** Override built-in variables **/
--toolbar-bgcolor: #2d2d2d !important;
--toolbar-bgimage: none !important;
--urlbar-separator-color: var(--toolbar-bgcolor) !important;
/** Custom variables **/
--custom-browser-background: #242424;
--urlbar-padding-inline: 4px;
/** Hide Tabs Till Hover **/
--htth-animation-duration: 0.1s;
--htth-margin-closed: -30px;
/** Full Auto-show/hide Theme **/
--thin-tab-width: 30px;
--wide-tab-width: 200px;
}
/** Loading background **/
.browserSidebarContainer {
background-color: var(--custom-browser-background);
}
/** et cetera **/
.tabbrowser-tab[pending] {
opacity: 0.75;
}
/** Context Menus **/
/*
menupopup {
padding: 6px 0;
}
menu,
menuitem,
menucaption {
-moz-appearance: none;
margin: 0;
min-height: 24px;
padding: 4px 12px;
background-color: transparent;
color: -moz-dialogtext;
}
menu:not(:-moz-any([disabled], :active)):-moz-any(:hover, :focus),
menuitem:not(:-moz-any([disabled], :active)):-moz-any(:hover, :focus),
menucaption:not(:-moz-any([disabled], :active)):-moz-any(:hover, :focus) {
color: inherit;
background-color: var(--arrowpanel-dimmed);
}
menuseparator {
-moz-appearance: none;
min-height: 0;
border-top: 1px solid var(--panel-separator-color);
border-bottom: none;
margin: 6px 0;
padding: 0;
}
*/
/** Tabs on bottom **/
/*
#main-window:not([privatebrowsingmode]) #navigator-toolbox toolbar:not(#nav-bar):not(#toolbar-menubar) {
-moz-box-ordinal-group: 10;
margin-top: -1px;
}
#main-window:not([privatebrowsingmode]) #navigator-toolbox #titlebar {
-moz-box-ordinal-group: 1000 !important;
background-color: var(--toolbar-bgcolor);
}
*/
/** Hides Tabs Till Hover **/
/*
#main-window:not([privatebrowsingmode]) #navigator-toolbox {
z-index: 1;
transition: margin-bottom var(--htth-animation-duration);
}
#main-window:not([privatebrowsingmode]) #navigator-toolbox #titlebar {
position: relative;
z-index: -1;
box-shadow: 0 0 4px #0003;
margin-top: var(--htth-margin-closed);
transition: margin-top var(--htth-animation-duration);
}
#main-window:not([privatebrowsingmode]) #navigator-toolbox:hover {
margin-bottom: var(--htth-margin-closed);
}
#main-window:not([privatebrowsingmode]) #navigator-toolbox:hover #titlebar {
margin-top: var(--htth-margin-opened);
}
*/
/** Disable Bookmarks Toolbar **/
/*
#navigator-toolbox > #PersonalToolbar {
visibility: collapse !important;
}
*/
/** Colored folders for bookmark sidebar, toolbar, menu button, classic menu
Updated for Firefox 60 on May 10, 2018 **/
/* Standard folder - slightly muted gold */
#bookmarks-view treechildren::-moz-tree-image(container),
#PlacesToolbarItems toolbarbutton[container="true"] .toolbarbutton-icon,
#PlacesToolbarItems menu[container="true"] > .menu-iconic-left > .menu-iconic-icon,
#PlacesChevronPopup menu[container="true"] > .menu-iconic-left > .menu-iconic-icon,
#BMB_bookmarksPopup menu[container="true"] > .menu-iconic-left > .menu-iconic-icon,
#bookmarksMenu menu[container="true"] > .menu-iconic-left > .menu-iconic-icon {
fill: #e8bb00 !important;
}
/* Live Bookmark (RSS Feed) */
#bookmarks-view treechildren::-moz-tree-image(container, livemark),
#PlacesToolbarItems toolbarbutton[container="true"][livemark="true"] .toolbarbutton-icon,
#PlacesToolbarItems menu[container="true"][livemark="true"] > .menu-iconic-left > .menu-iconic-icon,
#PlacesChevronPopup menu[container="true"][livemark="true"] > .menu-iconic-left > .menu-iconic-icon,
#BMB_bookmarksPopup menu[container="true"][livemark="true"] > .menu-iconic-left > .menu-iconic-icon,
#bookmarksMenu menu[container="true"][livemark="true"] > .menu-iconic-left > .menu-iconic-icon {
fill: orange !important;
}
/* Smart bookmark folder */
#bookmarks-view treechildren::-moz-tree-image(container, query),
#PlacesToolbarItems toolbarbutton[container="true"][query="true"] .toolbarbutton-icon,
#PlacesToolbarItems menu[container="true"][query="true"] > .menu-iconic-left > .menu-iconic-icon,
#PlacesChevronPopup menu[container="true"][query="true"] > .menu-iconic-left > .menu-iconic-icon,
#BMB_bookmarksPopup menu[container="true"][query="true"] > .menu-iconic-left > .menu-iconic-icon,
#bookmarksMenu menu[container="true"][query="true"] > .menu-iconic-left > .menu-iconic-icon {
fill: #69c !important;
/* similar to blue smart folder color */
}
/* These "containers" are SVG in the sidebar, not yet on the menu */
#bookmarks-view treechildren::-moz-tree-image(container, organizerquery_bookmarksmenu),
#bookmarks-view treechildren::-moz-tree-image(container, queryfolder_menu________) {
fill: olive !important;
}
#bookmarks-view treechildren::-moz-tree-image(container, organizerquery_bookmarkstoolbar),
#bookmarks-view treechildren::-moz-tree-image(container, queryfolder_toolbar_____) {
fill: olive !important;
}
#bookmarks-view treechildren::-moz-tree-image(container, organizerquery_unfiledbookmarks),
#bookmarks-view treechildren::-moz-tree-image(container, queryfolder_unfiled_____) {
fill: olive !important;
}
/* Avoid overriding classic Bookmarks Toolbar and Other Bookmarks icons in menus */
#BMB_bookmarksPopup #BMB_bookmarksToolbar.menu-iconic-icon,
#bookmarksMenu #bookmarksToolbarFolderMenu.menu-iconic-icon {
list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
}
#BMB_bookmarksPopup #BMB_unsortedBookmarks.menu-iconic-icon,
#bookmarksMenu #menu_unsortedBookmarks.menu-iconic-icon {
list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png") !important;
}
/** Findbar at the top of the window **/
.browserContainer > findbar {
-moz-box-ordinal-group: 0;
}
/*
* Makes the address bar and search bar borderless.
* Use the default white theme for an Edge-like look or in VivaldiFox with page colors applied
* on toolbar fields for a seamless one-color look.
*
* Contributor(s): Madis0
*/
/*
#urlbar,
.searchbar-textbox {
border: none !important;
box-shadow: none !important;
}
*/
/*
* Only show close buttons on background tabs when hovering with the mouse
*
* Contributor(s): Timvde
*/
/*
.tabbrowser-tab:not([selected]):not([pinned]) .tab-close-button {
display: none !important;
}
.tabbrowser-tab:not([selected]):not([pinned]):hover .tab-close-button {
display: -moz-box !important;
}
*/
/** Remove URL bar's background **/
#urlbar[breakout][breakout-extend] {
width: calc(100% + ( var(--urlbar-padding-inline) * 2)) !important;
left: calc(-1 * var(--urlbar-padding-inline)) !important;
top: 0 !important;
}
#urlbar > #urlbar-background {
background-color: var(--toolbar-bgcolor) !important;
}
#urlbar.megabar[focused="true"] > #urlbar-background {
border-color: var(--urlbar-separator-color) !important;
}
#urlbar:not([breakout-extend]) > #urlbar-background {
display: none !important;
}
#urlbar[breakout][breakout-extend] > #urlbar-input-container {
height: var(--urlbar-toolbar-height) !important;
padding-block: 0 !important;
padding-inline: var(--urlbar-padding-inline) !important;
}
/** Add border radius to urlbar icons **/
/*
#identity-box {
border-radius: 0 var(--toolbarbutton-border-radius) var(--toolbarbutton-border-radius) 0;
}
.urlbar-history-dropmarker,
.urlbar-page-action {
border-radius: var(--toolbarbutton-border-radius) !important;
}
*/
/** Increase opacity of syncing icon **/
/*
.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]),
[overflowedItem="true"]) > toolbarbutton:not(.toolbarbutton-1)[disabled] {
opacity: 1 !important;
}
*/
/** Context menus of Tree Style Tab **/
/*
#contentAreaContextMenu,
#contentAreaContextMenu li:not(.separator).has-submenu ul {
-moz-appearance: menupopup;
box-shadow: none !important;
min-width: 1px;
color: MenuText !important;
padding: 6px 0 !important;
background-color: #383c4a;
}
#contentAreaContextMenu li:not(.separator) {
-moz-appearance: none;
min-height: 24px;
padding: 4px 36px !important;
background-color: transparent;
color: -moz-dialogtext;
max-width: 42em;
font: menu;
}
#contentAreaContextMenu li:not(.separator):focus,
#contentAreaContextMenu li:not(.separator).open {
background-color: #cccccc4d !important;
}
#contentAreaContextMenu li.separator {
-moz-appearance: none;
min-height: 0;
border-top: 1px solid #2b2e39 !important;
border-bottom: none !important;
margin: 6px 0 !important;
padding: 0 !important;
}
#contentAreaContextMenu li[data-icon]:not([data-icon-color]) {
background-position-x: calc(1em - 16px + 1em) !important;
}
*/
#contentAreaContextMenu #treestyletab_piro_sakura_ne_jp-menuitem-_context_closeOtherTabs {
display: none;
}
/** Auto-hide sidebar when fullscreen **/
#main-window[inFullscreen] #sidebar-box,
#main-window[inFullscreen] #sidebar-splitter {
display: none !important;
width: 0 !important;
}
/** HTTPS in address bar **/
/*
#identity-box[pageproxystate="valid"].verifiedDomain > #identity-icon {
fill: #01a299 !important;
fill-opacity: 1 !important;
}
#identity-popup[connection^="secure"] .identity-popup-security-connection,
.identity-popup-connection-secure {
color: #01a299 !important;
}
#identity-box[pageproxystate="valid"].verifiedDomain ~ .urlbar-input-box::before {
color: #01a299;
content: "https://";
position: absolute;
z-index: 2;
line-height: var(--urlbar-height);
height: 100%;
display: block;
pointer-events: none;
top: -2px;
text-shadow: 0 0 1px var(--toolbar-bgcolor);
}
#urlbar[focused="true"] #identity-box[pageproxystate="valid"].verifiedDomain ~ .urlbar-input-box::before {
display: none;
}
*/
/** Hide horizontal tabs at the top of the window **/
/*
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]):not([privatebrowsingmode]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]):not([privatebrowsingmode]) #TabsToolbar {
visibility: collapse !important;
}
*/
/* Hide all tabs EXCEPT currently active tab AND the tab to its left */
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]):not([privatebrowsingmode]) #TabsToolbar .tabbrowser-tab:not([pinned="true"]):not([selected="true"]) {
visibility: collapse;
}
/* Expand currently active tab */
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]):not([privatebrowsingmode]) #TabsToolbar .tabbrowser-tab[selected="true"] {
max-width: unset !important;
}
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]):not([privatebrowsingmode]) #TabsToolbar .tabbrowser-tab[selected="true"] .tab-background {
background: none !important;
box-shadow: none !important;
}
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]):not([privatebrowsingmode]) #TabsToolbar .tabbrowser-tab[selected="true"] .tab-close-button {
visibility: collapse;
}
/** Auto-hide sidebar in windows with only one tab **/
#main-window[titlepreface^="[1] "] #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
visibility: collapse !important;
}