-
Notifications
You must be signed in to change notification settings - Fork 0
/
firefox.css
355 lines (285 loc) · 16.1 KB
/
firefox.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
@import url("file:///home/ryan/.cache/wal/firefox.css");
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*
Description: A mediocre fork of Twily's firefox css.
Credit where credit is due: http://twily.info/
Compatibility: -- Firefox 43.0.4 --
Useful search tags within this css:
"url-bar visible", "bottom margin", "attach url-bar", "newtab button", "back/forward", "enable scrollbar"
To enable bitmap fonts in Firefox 44+; open "about:config" and set the following preference to "false":
"gfx.font_rendering.fontconfig.fontlist.enabled"
I take NO credit for the creation of this CSS
*/
:root {
/* TAB VARIABLES */
--bg-light: var(--color0); --bg-dark: var(--color2);
--fg-light: var(--color5); --fg-dark: var(--color0);
--tab-triangle-correction: -1px;
--tab-height: 18px; --tab-icon-size: 12px; --tab-strip-margin: -12px; --tab-overlap: -5px;
--tab-fonts: "Misc Fixed"; --tab-font-size: 9pt;
--tab-text-align: center; /* left | center | right */
--tab-triangle: none; /* block | none */
/* URL VARIABLES */
--url-background: var(--bg-light); --url-color: var(--fg-light);
--url-height: 18px; --url-right-margin: 8px;
--url-fonts: "Misc Fixed"; --url-font-size: 9pt;
--url-text-align: left; /* left | center | right */
--url-position: absolute; /* absolute == top (under tabs) || fixed == bottom of browser */
}
@-moz-document url(chrome://browser/content/browser.xul) {
/* URL-BAR */
#back-button, #forward-button, #back-button *, #forward-button *, #identity-box, #urlbar-reload-button, #urlbar-stop-button, #urlbar-go-button,
#PanelUI-button, #bookmarks-menu-button, #downloads-button, #home-button, #stylish-toolbar-button, #abp-toolbarbutton,
#notification-popup-box, #new-tab-button, #private-browsing-indicator, #search-container, #nav-bar-overflow-button,
.tabs-newtab-button, .tab-close-button, .tab-close, .tab-throbber, .tab-background-start, .tab-background-end,
#pocket-button, #loop-button, #social-share-button, #window-controls
/*#alltabs-button, #tabview-button, .tab-icon-image*/, .tab-icon-image:not([pinned]) { display: none !important; }
* { box-sizing: border-box !important; }
/* --- Comment out the section below to remove the newtab button --- */
/*
.tabs-newtab-button { display: block !important; background: transparent !important; margin: 0 8px 0 0 !important; width: 24px !important; }
.tabs-newtab-button::before { content: "+" !important; }
/**/
.tab-drop-indicator { margin-bottom: 0 !important; }
/*#browser { margin-bottom: var(--url-height) !important; } *//* Uncomment to enable bottom margin */
#navigator-toolbox { background: var(--url-background) !important; }
#navigator-toolbox * { clip: auto !important; clip-path: none !important; }
#nav-bar {
position: var(--url-position) !important; bottom: 0 !important;
width: 100% !important; height: var(--url-height) !important;
margin: 0 !important; background: transparent !important;
/* --- Uncomment section below to attach url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#TabsToolbar" below) --- */
/*
position: fixed !important; top: 0 !important; left: 0 !important;
width: 315px !important; max-width: 315px !important;
z-index: 100 !important;
/**/
}
#nav-bar-customization-target, #urlbar-container, #urlbar {
margin: 0 !important; padding: 0 !important;
width: 100% !important; height: 100% !important;
border-radius: 0 !important;
}
#nav-bar-customization-target {
position: absolute !important; top: -1px !important; left: 0 !important; height: calc(100% - 1px) !important; /* (bottom margin - height switch +/-) */
}
#urlbar {
border: none !important; padding: 0 2px 0 20px !important;
background: var(--url-background) !important; color: var(--url-color) !important;
font-family: var(--url-fonts) !important; font-size: var(--url-font-size) !important;
text-align: var(--url-text-align) !important;
height: 100% !important;
}
/*#urlbar * { -moz-appearance: none !important; }*/
.urlbar-textbox-container .urlbar-input-box .textbox-input {
height: var(--url-height) !important;
}
/* --- Uncomment the section below to enable the back/forward buttons [EXPERIMENTAL] (Requires url-bar) --- */
/*
#back-button, #forward-button { display: block !important; }
#back-button::before, #forward-button::before {
display: inline-block !important; position: absolute !important;
width: var(--url-height) !important; height: var(--url-height) !important; top: 0 !important;
text-align: center !important; line-height: var(--url-height) !important;
}
#back-button::before { content: "<" !important; left: 0 !important; }
#forward-button::before { content: ">" !important; left: calc(var(--url-height) + 8px) !important; }
#urlbar { padding-left: calc((var(--url-height) * 2) + 8px) !important; }
*/
/* --- Comment out the section below to make the url-bar visible --- */
#nav-bar {
width: 0 !important; height: 0 !important;
position: fixed !important; left: -1px !important; top: -1px !important;
overflow: hidden !important; visibility: hidden !important;
}
/* TABS */
.tabbrowser-tab[fadein]:not([pinned]) { min-width: 100px !important; max-width: /*180px*/ 100% !important; }
tab {
font-family: var(--tab-fonts) !important;
height: var(--tab-height) !important; min-height: var(--tab-height) !important;
background: var(--bg-dark) !important; color: var(--fg-dark) !important;
font-size: var(--tab-font-size); text-shadow: none !important; text-align: var(--tab-text-align) !important;
}
.tabbrowser-tab label { padding: 0 22px 0 22px !important; }
#tabbrowser-tabs .tabbrowser-tab[pinned] { width: 48px !important; }
#tabbrowser-tabs .tabbrowser-tab[pinned] label { display: none !important; }
#tabbrowser-tabs .tabbrowser-tab .tab-icon-image {
margin: 0 -10px 0 16px !important;
width: var(--tab-icon-size) !important;
height: var(--tab-icon-size) !important;
}
.tabbrowser-tab *, .tabs-newtab-button * {
background: none !important; list-style-image: none !important;
margin: 0 0 0 0 !important; padding: 0 0 0 0 !important;
-moz-appearance: none !important;
}
#alltabs-button { margin-left: -10px !important; }
#tabbrowser-tabs .tabbrowser-tab[pinned] .tab-stack { height: var(--tab-height) !important; width: 100% !important; }
#tabbrowser-tabs .tabbrowser-arrowscrollbox, #tabbrowser-tabs .tabbrowser-arrowscrollbox .box-inherit.scrollbox-innerbox {
max-height: var(--tab-height) !important;
}
.scrollbutton-up, .scrollbutton-down { border: none !important; }
#tabbrowser-tabs[overflow]:not([positionpinnedtabs]) { -moz-padding-start: 20px !important; }
.tabbrowser-tab[selected="true"] .tab-stack {
background: var(--bg-light) !important; color: var(--fg-light) !important;
border-radius: 0px !important; position: relative !important;
/*border-top: 1px solid #dc52a5 !important;/**/
}
.tabbrowser-tab[selected="true"]:before { /* Left Triangle (of selected tab) */
content: '' !important; display: var(--tab-triangle);
position: absolute !important; top: 0 !important; left: var(--tab-overlap) !important;
width: 0 !important; height: 0 !important;
border: none !important; z-index: 2 !important;
/**/
border-left: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-light) !important;
border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-light) !important;
/*
border-top: var(--tab-height) solid var(--bg-dark) !important;
border-right: calc(var(--tab-height)/2) solid var(--bg-light) !important;
/**/
}
.tabbrowser-tab[selected="true"]:after { /* Right Triangle (of selected tab) */
content: '' !important; display: var(--tab-triangle);
position: absolute !important; top: 0 !important; right: var(--tab-overlap) !important;
width: 0 !important; height: 0 !important;
border: none !important; z-index: 2 !important;
/**/
border-right: calc(var(--tab-height)/2) solid var(--bg-dark) !important;
border-top: calc((var(--tab-height)/2) - var(--tab-triangle-correction)) solid var(--bg-dark) !important;
border-bottom: calc((var(--tab-height)/2) + var(--tab-triangle-correction)) solid var(--bg-dark) !important;
/*
border-top: var(--tab-height) solid var(--bg-dark) !important;
border-left: calc(var(--tab-height)/2) solid var(--bg-light) !important;
/**/
}
#TabsToolbar, #tabbrowser-tabs {
-moz-appearance: none !important;
height: var(--tab-height) !important; min-height: var(--tab-height)!important;
margin: 0 var(--tab-strip-margin)!important;
background: var(--bg-light) !important;
/* --- Uncomment section below to attach url-bar to the tab-bar [EXPERIMENTAL] (Require a line in "#nav-bar" above) --- */
/*margin-left: 147px !important;/**/
}
#TabsToolbar::after { display: none !important; }
.tabbrowser-tab::before, .tabbrowser-tab::after { background: none !important; opacity: 1 !important; visibility: visible !important; }
/*browser, #navigator-toolbox { -moz-appearance: none !important; background: transparent !important; }*/
#navigator-toolbox::after {
content:"";
display:-moz-box;
-moz-box-ordinal-group: 100;
border-bottom: 0px solid !important;
/*height: 0px !important; background: var(--bg-light) !important; */}
#liberator-separator { height: 0px !important; background: var(--bg-light) !important; border-top: 0 !important; }
/* MENUS */
menuitem + menuseparator, menu + menuseparator/*, .menu-iconic-left*/ { display: none !important; }
/*menuitem > label { margin-left: var(--tab-height) !important; }*/
/*menubar, menubutton, menulist, menu, menuitem {
font-family: var(--tab-fonts) !important; font-size: var(--tab-font-size);
height: var(--tab-height) !important;
}*/
/* HIDE ORANGE MENU BUTTON */
#appmenu-toolbar-button, #appmenu-button-container { display: none !important; }
/* HIDE STATUS BAR */
#status-bar, #statusbar-display, statuspanel { display:none!important;}
/* PRIVATE BROWSING ICON HIDE */
#main-window[privatebrowsingmode=temporary] #private-browsing-indicator,
#main-window[privatebrowsingmode=temporary] #private-browsing-indicator-titlebar { display: none !important; }
/* Vimperator icon style */
#liberator-statusline:not([customizing="true"]) { margin: -2px -2px !important; padding: 0 0 !important; height: 24px !important; }
#liberator-statusline:not([customizing="true"]) :-moz-any(toolbarbutton) { height: 100% !important; }
#tabview-button {
list-style-image: url(http://twily.info/img/tabview-button.png?v=2) /* 16x16 px image */ !important;
-moz-image-region: rect(0, 0, 0, 0) !important;
}
#liberator-completions, #liberator-bottombar-deck { background: var(--bg-dark) !important; }
/* Tabgroup margin top fix */
#tab-view-deck #tab-view { margin: 24px 12px 12px 12px !important; }
#tab-view-deck { background: var(--bg-light) !important; }
window[sizemode="fullscreen"] #liberator-statusline { display: none !important; }
window[sizemode="fullscreen"] #liberator-bottombar {
margin-top: -24px !important;
transition: 1s ease !important; transition-delay: .3s !important;
}
/*window[sizemode="fullscreen"] #browser-panel { margin-top: -1px !important; }*/
}
/* Tab Group Page Style (Ctrl+Shift+E) */
@-moz-document url(chrome://browser/content/tabview.html) {
#content #bg, #actions, body { background: var(--bg-light) !important; }
body * { color: var(--fg-light) !important; }
body .groupItem, #content #actions, body .undo {
background: var(--bg-light) !important;
border: 0 !important; border-radius: 0 !important; box-shadow: 0 0 0 0 !important;
}
#content #actions {
opacity: 0 !important; display: none !important; /* block | none */
transition: .3s ease-out !important;
}
#content #actions:hover { opacity: 1 !important; }
body .appTabTrayContainer { border: 0 !important; }
body .tab, body .tab .thumb {
box-shadow: 0 0 0 0 !important; border: 0 !important; border-radius: 0 !important;
background: transparent !important; padding : 0 !important;
}
body .tab .favicon { display: none !important; }
body .groupItem .name { border: 0 !important; }
body .tab .tab-title { padding-top: 2px !important; }
}
/* AGENT_SHEET */
@-moz-document url-prefix(http://), url-prefix(https://), url-prefix(chrome://liberator/), url-prefix(file:///) {
/* SCROLLBAR */
scrollbar[orient="vertical"], scrollbar thumb[orient="vertical"],
scrollbar[orient="horizontal"], scrollbar thumb[orient="horizontal"] {
display: none !important; /* block | none (enable scrollbar) */
}
/*
Uncomment section below to apply style
(width/height is controlled by the margin)
*/
/*
scrollbar > slider { -moz-appearance: none !important; }
scrollbar[orient="vertical"] { margin: 0 -10px 0 0 !important; }
scrollbar[orient='vertical'] > slider { background: #282333 !important; max-width: 100% !important; }
scrollbar[orient='vertical'] > slider > thumb {
-moz-appearance: none !important;
background: #524C59 !important; border: 0 !important; width: 100% !important;
}
scrollbar[orient="horizontal"] { margin: 0 0 -10px 0 !important; }
scrollbar[orient='horizontal'] > slider { background: #282333 !important; max-height: 100% !important; }
scrollbar[orient='horizontal'] > slider > thumb {
-moz-appearance: none !important;
background: #524C59 !important; border: 0 !important; height: 100% !important;
}
scrollbar > scrollbarbutton { -moz-appearance: none !important; border: none !important; background: none !important; }
scrollbar[orient='vertical'] > scrollbarbutton { min-height: 0 !important; }
scrollbar[orient='horizontal'] > scrollbarbutton { min-width: 0 !important; }
*/
}
/* background color around/behind pictures opened in firefox (require html namespace on top) */
@-moz-document regexp("(https?://|file:///)(.*)\\.(jpeg|jpg|gif|png|apng|svg|bmp|webm|webp)") {
body { background: var(--bg-light) !important; }
img.decoded { background-color: transparent !important; }
}
/* About:Blank background */
@-moz-document url(about:blank) {
html,body { background: var(--bg-light) !important; }
}
/* about:stylish-edit toolbar style */
@-moz-document regexp("about:stylish-edit.*") {
#main-area, textbox { background: var(--bgg-light) !important; }
textbox, grid, columns, rows, separator { border: 0 !important; }
.devtools-toolbarbutton { background: var(--bg-light) !important; color: var(--fg-light) !important; }
}
/*----- Fix for white flash on new tab -----*/
tabbrowser tabpanels, #appcontent > #content { background: var(--bg-light) !important; }
#PopupAutoCompleteRichResult * {
font-size: 12px!important;
font-family: var(--tab-fonts);
}
/* Set dark text in light textareas */
/*
@-moz-document regexp("https?://(?!(localhost|twily.info|.*.4chan.org|.*.youtube.com)).*") {
input, textarea { color: #282333 !important; -moz-appearance: none !important; }
}
/**/