-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathuserChrome.css
170 lines (126 loc) · 4.48 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
/*=============================================================================*
* ONELINE PROTON *
* *
* description : An oneline userChrome.css theme for Firefox, which aims to *
* keep the Proton experience. *
* compatibility : Firefox 89+ *
* repository : https://github.com/lr-tech/OnelineProton/ *
* *
* THANKS FOR USING MY USERCHROME! <3 *
*============================================================================*/
/* S E T T I N G S */
:root {
--navbarWidth : 360px; /* Set width of navbar. Use px for a fixed width
or vw for a percentage of your window. */
--animationSpeed : 0.15s;
}
/* H I D I N G E L E M E N T S */
/* Comment or uncomment depending of what elements you want to hide */
/* Back button */
/* #back-button { display: none !important } */
/* Hide back button only when disabled */
#back-button[disabled="true"] { display: none !important }
/* Forward button */
/* #forward-button { display: none !important } */
/* Hide forward button only when disabled */
#forward-button[disabled="true"] { display: none !important }
/* "Shield" icon */
#tracking-protection-icon-container { display: none !important }
/* Site information button */
#identity-box { display: none !important }
/* This is the "Search with" indicator on the urlbar */
/* #urlbar-search-mode-indicator { display: none !important } */
/* Zoom button */
/* #urlbar-zoom-button { display: none !important } */
/* Page action (right three dash button) */
/* #pageActionButton { display: none !important } */
/* These are the buttons on the right of the urlbar */
/* #page-action-buttons { display: none !important } */
/* #urlbar-label-box { display: none !important } */
/* This one is the hamburger menu! */
/* CAUTION: if you hide this some popups may be bugged */
/* #PanelUI-button { display: none !important } */
/* Tab close button */
/* .tab-close-button { display: none !important } */
/* Enable this to show the tab close button when hovering the tab */
/* .tabbrowser-tab:hover .tab-close-button { display: -moz-inline-box !important } */
/*============================================================================*/
/* Oneline tweak */
#TabsToolbar {
margin-left : var(--navbarWidth) !important;
}
#nav-bar {
margin-right: calc(100vw - var(--navbarWidth)) !important;
}
#urlbar-container {
min-width : 0px !important;
}
:root[uidensity="compact"] #nav-bar {
margin-top : -37px !important;
height : 37px !important;
}
:root:not([uidensity="compact"]):not([uidensity="touch"]) #nav-bar {
margin-top : -44px !important;
height : 44px !important;
}
:root[uidensity="touch"] #nav-bar {
margin-top : -49px !important;
height : 49px !important;
}
/* Dragging space */
:root[sizemode="maximized"] #TabsToolbar {
margin-top: 1px;
}
#TabsToolbar {
margin-top: 5px;
}
/* Simplifying interface */
#nav-bar {
background : none !important;
box-shadow : none !important;
}
#navigator-toolbox {
border : none !important;
}
.titlebar-spacer {
display : none !important;
}
#urlbar-background {
border : none !important;
}
#urlbar:not(:hover):not([breakout][breakout-extend]) > #urlbar-background {
box-shadow : none !important;
background : none !important;
}
/* Hide urlbar elements when not active */
.urlbar-icon, #userContext-indicator, #userContext-label {
fill : transparent !important;
background : transparent !important;
color : transparent !important;
}
#urlbar:hover .urlbar-icon,
#urlbar:active .urlbar-icon,
#urlbar[focused] .urlbar-icon {
fill : var(--toolbar-color) !important;
}
/* animations */
.subviewbutton,
#urlbar-background,
.urlbar-icon,
#userContext-indicator,
#userContext-label,
.urlbar-input-box,
#identity-box,
#tracking-protection-icon-container,
[anonid=urlbar-go-button],
.urlbar-icon-wrapper,
#tracking-protection-icon,
#identity-box image,
stack,
tab:not(:active) .tab-background,
tab:not([beforeselected-visible])::after,
tab[visuallyselected] .tab-background::before,
tab[visuallyselected] .tab-background::before,
.tab-close-button {
transition : var(--animationSpeed) !important;
}