forked from dannycolin/fx-compact-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
userChrome.css
68 lines (58 loc) · 1.71 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
/* Firefox Ultra Compact Mode
*
* Copyright (c) Danny Colin
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
:root {
/* Appmenu: Reduce item padding */
--arrowpanel-menuitem-padding-block: 4px 8px !important;
/* Tabbar: reduce tab margin */
--tab-block-margin: 4px 3px !important;
}
/* Tab: Reduce height */
.tabbrowser-tab {
min-height: 24px !important;
}
/* Tab: Ensure tab height doesn't augment when arrowscrollbox is visible */
#tabbrowser-arrowscrollbox {
--tab-min-height: 31px !important;
max-height: var(--tab-min-height);
}
/* URLBar: Fix vertical alignment */
#urlbar[breakout=true]:not([open="true"]) {
--urlbar-height: 20px !important;
--urlbar-toolbar-height: 24px !important;
}
/* URLBar: Fix URL address vertical aligment when megabar is open */
#urlbar[breakout=true][open="true"] {
--urlbar-toolbar-height: 30px !important;
}
/* Searchbar: Ensure toolbar height doesn't augment when searchbar is visible */
#urlbar-container,
#search-container {
padding-block: 0 !important;
}
/* Searchbar: Make sure the min-height of the input is the same as the popup */
#search-container {
min-width: 192px !important;
}
/* Toolbar: Reduce spacing */
#urlbar-container {
--urlbar-container-height: 30px !important;
margin-top: 0 !important;
}
/* Reload Button: Fix vertical alignment */
#reload-button {
margin-block-start: -2px !important;
}
/* Windows 10 context menu */
@media (-moz-os-version: windows-10) {
/* Context Menu: Reduce vertical space */
menupopup > menuitem,
menupopup > menu {
padding-block: 2px !important;
}
}