This repository has been archived by the owner on Dec 9, 2021. It is now read-only.
forked from leadweedy/Firefox-Proton-Square
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserContent.css
335 lines (236 loc) · 12 KB
/
userContent.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
/* CUSTOM ACCENT COLORS -------------------------------------------------------------------------------------- */
/* change the hex value of --custom-accent-color */
:root{
--custom-accent-color: #0a84ff;
}
@-moz-document regexp("^(about:|chrome:|moz-extension:).*") {
html:not([role="dialog"]),
html:not([role="dialog"]) *,
html:not([role="dialog"]) body.activity-stream,
window:not([chromehidden]),
window:not([chromehidden]) > dialog
{
--in-content-primary-button-background: var(--custom-accent-color) !important;
--in-content-primary-button-background-hover: color-mix(in srgb, white 50%, var(--custom-accent-color)) !important;
--in-content-primary-button-background-active: color-mix(in srgb, white 65%, var(--custom-accent-color)) !important;
--in-content-item-selected: var(--custom-accent-color) !important;
--in-content-border-highlight: var(--custom-accent-color) !important;
--in-content-border-hover: color-mix(in srgb, white 50%, var(--custom-accent-color)) !important;
/* --in-content-border-focus: color-mix(in srgb, white 65%, var(--custom-accent-color)) !important; */
--in-content-border-focus: var(--custom-accent-color) !important;
--in-content-border-active: var(--custom-accent-color) !important;
--in-content-border-active-shadow: var(--custom-accent-color) !important;
--in-content-category-outline-focus: 1px solid transparent !important;
--in-content-accent-color: var(--custom-accent-color) !important;
--in-content-table-header-background: var(--custom-accent-color) !important;
--newtab-focus-outline: var(--in-content-border-active-shadow) !important;
--newtab-focus-border: var(--in-content-border-focus) !important;
--newtab-focus-border-selected: var(--custom-accent-color) !important;
--newtab-textbox-focus-color: var(--in-content-border-focus) !important;
--newtab-primary-action-background: var(--custom-accent-color) !important;
}
}
@-moz-document url("chrome://global/content/commonDialog.xhtml"){
#commonDialog[subdialog] checkbox {
--checkbox-checked-bgcolor: var(--custom-accent-color) !important;
--checkbox-checked-hover-bgcolor: color-mix(in srgb, white 50%, var(--custom-accent-color)) !important;
--checkbox-checked-active-bgcolor: color-mix(in srgb, white 65%, var(--custom-accent-color)) !important;
}
}
.topsite-form .form-wrapper input[type="text"]:focus-visible {
outline: none !important;
border-color: var(--newtab-focus-border) !important;
}
.showPrivate .search-handoff-button.focused {
outline: 0;
border: 1px solid var(--newtab-focus-border) !important;
box-shadow: 0 0 0 2px var(--newtab-focus-outline) !important;
}
/* NEW TAB PAGE ---------------------------------------------------------------------------------------------- */
@-moz-document url(about:home), url(about:newtab), url(about:privatebrowsing) {
/* square the search box corners */
body .search-handoff-button {border-radius: 0 !important;}
/* square the settings button and checkboxes / buttons / selectors inside its menu */
.personalize-button {border-radius: 0 !important;}
.close-button {border-radius: 0 !important;}
.selector {border-radius: 0 !important;}
.sponsored-checkbox{border-radius: 0 !important;}
/* square the toggle button for above */
.slider {border-radius: 0 !important;}
.slider::before {border-radius: 0 !important;}
/* square all the 3 dot menus */
.context-menu-button {border-radius: 0 !important;}
.context-menu {border-radius: 0 !important;}
/* square the shortcuts: icons, background, and selection box */
.tile {border-radius: 0 !important;}
.top-site-icon {border-radius: 0 !important;}
.icon-wrapper {border-radius: 0 !important;}
.top-site-outer {border-radius: 0 !important;}
/* square the "suggested by pocket" cards and images */
.ds-card {border-radius: 0 !important;}
img {border-radius: 0px !important;}
/* square all the recent activity cards and images */
.card-outer {border-radius: 0 !important;}
.card-preview-image-outer {border-radius: 0 !important;}
.card-context {border-radius: 0 !important;}
.sections-list, .section-empty-state {border-radius: 0 !important;}
.modal {border-radius: 0 !important;}
/* square the VPN button/infobox in private browsing */
#private-browsing-vpn-link {border-radius: 0 !important;}
.info {border-radius: 0 !important;}
}
/* SETTINGS PAGE ------------------------------------------------------------------------------------------- */
@-moz-document url(about:preferences), url(about:preferences#general), url(about:preferences#home),
url(about:preferences#search), url(about:preferences#privacy), url(about:preferences#sync), url(about:addons){
/* square checkboxes */
.checkbox-check {border-radius: 0 !important;}
#automaticallySubmitCrashesBox {border-radius: 0 !important;}
/* square selection buttons */
button {border-radius: 0 !important;}
richlistitem {border-radius: 0 !important;}
.sidebar-footer-link {border-radius: 0 !important;}
/* square toggle buttons */
.toggle-button {border-radius: 0 !important;}
.toggle-button::before {border-radius: 0 !important;}
/* square search engines table on about:preferences#search page */
#engineList {border-radius: 0 !important;}
/* Tracking Protection options on about:preferences#privacy page */
.content-blocking-category {border-radius: 0 !important;}
.content-blocking-warning {border-radius: 0 !important;}
/* infoboxes (e.g. settings required by addon) */
#browserContainersExtensionContent {border-radius: 0 !important;}
#firefoxSuggestInfoBox {border-radius: 0 !important;}
#updateSettingsContainer {border-radius: 0 !important;}
/* folder selection and table for Files and Applications */
#downloadFolder {border-radius: 0 !important;}
#handlersView {border-radius: 0 !important;}
/* input, info boxes, and profile on sync page */
#fxaSyncComputerName {border-radius: 0 !important;}
.sync-configured {border-radius: 0 !important;}
.fxaProfileImage {border-radius: 0 !important;}
}
/* square popup windows and buttons */
@-moz-document regexp("^(about:|chrome:|moz-extension:).*") {
richlistbox {border-radius: 0 !important;}
button {border-radius: 0 !important;}
.dialogBox {border-radius: 0 !important;}
menulist {border-radius: 0 !important;}
checkbox {border-radius: 0 !important;}
.checkbox-check {border-radius: 0 !important;}
listheader {border-radius: 0 !important;}
search-textbox {border-radius: 0 !important;}
#url {border-radius: 0 !important;}
tree {border-radius: 0 !important;}
/* network settings popup */
#networkProxyNone {border-radius: 0 !important;}
#networkProxyAutoconfigURL {border-radius: 0 !important;}
#networkProxySOCKS_Port {border-radius: 0 !important;}
#networkProxySOCKS {border-radius: 0 !important;}
#networkProxySSL_Port {border-radius: 0 !important;}
#networkProxySSL {border-radius: 0 !important;}
#networkProxyHTTP_Port {border-radius: 0 !important;}
#networkProxyHTTP {border-radius: 0 !important;}
/* saved addresses popup */
#given-name {border-radius: 0 !important;}
#family-name {border-radius: 0 !important;}
#street-address {border-radius: 0 !important;}
#address-level2 {border-radius: 0 !important;}
#address-level1 {border-radius: 0 !important;}
#postal-code {border-radius: 0 !important;}
#organization {border-radius: 0 !important;}
#country {border-radius: 0 !important;}
#tel {border-radius: 0 !important;}
#email {border-radius: 0 !important;}
/* saved credit cards popup */
#cc-number {border-radius: 0 !important;}
#cc-exp-month {border-radius: 0 !important;}
#cc-exp-year {border-radius: 0 !important;}
#cc-name {border-radius: 0 !important;}
#cc-type {border-radius: 0 !important;}
/* primary password dialog */
#message {border-radius: 0 !important;}
#pw1 {border-radius: 0 !important;}
#pw2 {border-radius: 0 !important;}
/* #pwmeter {
border-radius: 0 !important;
overflow: hidden !important;
border: none !important;
} */
}
/* ADDONS PAGE --------------------------------------------------------------------------------------------- */
@-moz-document url(about:addons) {
/* square search box */
search-textbox {border-radius: 0 !important;}
/* square the context menus (3 dots and settings gear) */
panel-list {border-radius: 0 !important;}
/* square the info boxes / banners */
.discopane-notice {border-radius: 0 !important;}
.container {border-radius: 0 !important;}
/* square the addons and theme cards */
.card-heading-image {border-radius: 0 !important;}
.card {border-radius: 0 !important;}
/* square selection buttons */
button {border-radius: 0 !important;}
richlistitem {border-radius: 0 !important;}
menulist {border-radius: 0 !important;}
.sidebar-footer-link {border-radius: 0 !important;}
/* square toggle buttons */
.toggle-button, .toggle-button::before {border-radius: 0 !important;}
/* square radio buttons - WIP */
/* input[type="radio"], input[type="radio"]:checked {border-radius: 0 !important;} */
}
/* ABOUT CONFIG PAGE ---------------------------------------------------------------------------------------- */
@-moz-document url(about:config) {
/* square everything except radio buttons */
#about-config-search {border-radius: 0 !important;}
#about-config-show-only-modified {border-radius: 0 !important;}
#showWarningNextTime {border-radius: 0 !important;}
button {border-radius: 0 !important;}
}
/* DOWNLOADS ------------------------------------------------------------------------------------------------ */
@-moz-document url(about:downloads) {
/* square buttons and boxes*/
.button-box {border-radius: 0 !important;}
richlistbox {border-radius: 0 !important;}
}
/* OTHER INTERNAL PAGES ------------------------------------------------------------------------------------- */
@-moz-document url(about:buildconfig), url(about:compat), url(about:crashes), url(about:debugging),
url(about:debugging#/setup), url(about:debugging#/runtime/this-firefox), url(about:devtools),
url(about:logins), url(about:networking), url(about:policies), url(about:profiles),
url(about:profiling), url(about:protections), url(about:serviceworkers), url(about:studies),
url(about:support), url(about:telemetry), url(about:unloads), url(about:url-classifier),
url(about:webrtc), url(about:welcome) {
*{border-radius: 0 !important;}
}
/* SCREENSHOT PAGE ------------------------------------------------------------------------------------------ */
@supports (-moz-appearance:none) {
.cancel-shot {border-radius: 0 !important;}
.all-buttons-container {border-radius: 0 !important;}
.visible {border-radius: 0 !important;}
.full-page {border-radius: 0 !important;}
.highlight-button-cancel {border-radius: 0 !important;}
.highlight-button-copy {border-radius: 0 !important;}
.highlight-button-download {border-radius: 0 !important;}
.preview-buttons {border-radius: 0 !important;}
.preview-image-wrapper {border-radius: 0 !important;}
}
/* picture in picture button */
@supports (-moz-appearance:none) {
.pip-small.clickable {border-radius: 0 !important;}
}
/* SERVER NOT FOUND PAGE ------------------------------------------------------------------------------------- */
@supports (-moz-appearance:none) {
.primary.try-again {border-radius: 0 !important;}
}
/* WARNING SECURITY RISK PAGE --------------------------------------------------------------------------------- */
@supports (-moz-appearance:none) {
.primary.try-again {border-radius: 0 !important;}
#returnButton {border-radius: 0 !important;}
#advancedButton {border-radius: 0 !important;}
#exceptionDialogButton {border-radius: 0 !important;}
#advancedPanelReturnButton {border-radius: 0 !important;}
}
/* Restart Firefox page after update ------------------------------------------------------------------------- */
@supports (-moz-appearance:none) {
#restart {border-radius: 0 !important;}
}