-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserChrome.css
151 lines (125 loc) · 3.6 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
/*
This stylesheet is based on:
- https://github.com/khuedoan/one-line-firefox
- https://github.com/MrOtherGuy/firefox-csshacks
*/
/* Title bar */
.titlebar-buttonbox {
display: none !important;
}
.titlebar-spacer {
display: none !important;
}
/* Tab bar */
#navigator-toolbox {
border: 0px !important;
padding-bottom: 1px !important; /* symmetry */
}
#TabsToolbar {
margin-left: 40vw !important; /* offset for url bar and icons */
}
#tabbrowser-tabs {
--tab-min-height: 29px !important;
border: none !important;
box-shadow: none !important;
}
/* Nav bar */
#nav-bar {
background: transparent !important;
margin-top: -36px !important;
margin-right: 60vw !important; /* offset for tab bar */
padding-bottom: 1px !important; /* symmetry */
}
/* URL bar elements - uncomment selectors to _hide_ them */
/* #back-button {
display: none !important;
} */
/* #forward-button {
display: none !important;
} */
/* #tracking-protection-icon-container {
display: none !important;
} */
#urlbar-container {
min-width: 175px !important;
}
#urlbar-background {
animation: none !important;
}
#urlbar {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
#page-action-buttons {
display: none !important;
}
#PanelUI-button {
display: none !important;
}
/* properly display url bar pop up (history, search suggestions,...) */
:root{
--toolbar-field-background-color: var(--toolbar-field-non-lwt-bgcolor);
--toolbar-field-focus-background-color: var(--lwt-toolbar-field-focus,Field);
}
:root:-moz-lwtheme{
--toolbar-field-background-color: var(--lwt-toolbar-field-background-color);
}
.urlbarView-row-inner{
/* This sets how far the dropdown-items are from the window edge */
padding-inline-start: 6px !important;
}
#urlbar-container,
#urlbar {
position: static !important;
display: -moz-box !important;
}
#urlbar {
height: 24px !important;
max-height: 24px !important;
width: auto !important;
box-shadow: inset 0 0 0 1px var(--toolbar-field-border-color, hsla(240,5%,5%,.25));
background-color: var(--toolbar-field-background-color, hsla(0,0%,100%,.8));
border-radius: var(--toolbarbutton-border-radius);
--uc-urlbar-min-width: none; /* navbar_tabs_oneliner.css compatibility */
}
#urlbar[focused] {
box-shadow: inset 0 0 0 1px var(--toolbar-field-focus-border-color, highlight);
height: 24px !important;
max-height: 24px !important;
}
#urlbar[focused] > *:not(.urlbarView) {
padding: unset !important;
padding-top: 2px !important;
padding-left: 1px !important;
height: 24px !important;
max-height: 24px !important;
}
.urlbarView {
position: absolute !important;
margin: 0 !important;
margin-top: 8px !important;
left: 0 !important;
width: 40vw !important; /* width of the urlbar pop up; set to 100vw to make it as wide as the browser window */
border-width: 1px 0;
top: calc(var(--urlbar-toolbar-height) + 1px); /* symmetry */
background-color: var(--toolbar-field-focus-background-color, inherit);
z-index: 4;
box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
#urlbar > #urlbar-input-container {
padding: 0px !important;
width: auto !important;
height: 24px !important;
max-height: 24px !important;
}
#urlbar > #urlbar-background {
display: none !important;
}
/* This may seem pretty weird, but it gets around an issue where the height of urlbar may suddenly change when one starts typing into it */
/* If you are otherwise modifying the urlbar height then you might need to modify the height of this too */
#urlbar > #urlbar-input-container::before {
content: "";
display: -moz-box;
height: 24px !important;
}