Skip to content

Commit d9e668f

Browse files
authored
transparency in compact sidebar workaround
1 parent 7fc0793 commit d9e668f

File tree

1 file changed

+36
-24
lines changed

1 file changed

+36
-24
lines changed

userChrome.css

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/* Zen transparency */
2-
:root {
3-
--zen-main-browser-background: #00000000 !important;
4-
}
51

62
/* Hidden buttons */
73
/* #nav-bar-overflow-button, */
@@ -241,15 +237,6 @@ slot:nth-child(1) {
241237
}
242238
}
243239

244-
/* transparent url bar */
245-
#urlbar[open][zen-floating-urlbar="true"] {
246-
#urlbar-background {
247-
background-color: light-dark(
248-
color-mix(in srgb, #fdfdfd 75%, transparent),
249-
color-mix(in srgb, #0e0e0e 75%, transparent)
250-
) !important;
251-
}
252-
}
253240

254241
/* Find */
255242
findbar {
@@ -272,12 +259,6 @@ findbar {
272259
}
273260

274261

275-
/* Remove new tab background color */
276-
.browserStack{
277-
browser {
278-
background-color: transparent !important;
279-
}
280-
}
281262

282263
/* empty tab image */
283264
#browser:has([zen-empty-tab="true"][selected="true"]) .browserStack{
@@ -291,11 +272,8 @@ findbar {
291272
background-repeat: no-repeat !important;
292273
background-size: 50px !important;
293274
filter: saturate(0);
294-
295-
browser {
296-
background-color: transparent !important;
297-
opacity: 0 !important;
298-
}
275+
/* background-size: cover !important; */
276+
299277
}
300278

301279
/* hide compact sidebar when no tabs open */
@@ -418,3 +396,37 @@ html:not([lwt-sidebar="dark"]) {
418396
margin-top: 15px !important
419397
}
420398
}
399+
400+
401+
/* transparent url bar */
402+
#urlbar[open][zen-floating-urlbar="true"] {
403+
#urlbar-background {
404+
background-color: light-dark(
405+
color-mix(in srgb, #fdfdfd 50%, transparent),
406+
color-mix(in srgb, #0e0e0e 50%, transparent)
407+
) !important;
408+
}
409+
}
410+
411+
/* compact sidebar usable blur */
412+
body:has([zen-compact-mode="true"]) #titlebar{
413+
background: #0009 !important;
414+
backdrop-filter: blur(30px) !important;
415+
}
416+
417+
#browser::after{
418+
opacity: 0 !important;
419+
left: -300px !important;
420+
width: 198px !important;
421+
border-radius: 1em !important;
422+
height: (100vh-5px) !important;
423+
margin: 5px !important;
424+
top: 0 !important;
425+
background-color: var(--toolbar-bgcolor) !important;
426+
transition: left 0.2s cubic-bezier(0.175, 0.585, 0.32, 1.1) !important;
427+
}
428+
429+
body:has([zen-compact-mode="true"] [zen-user-show=""], [zen-compact-mode="true"] [zen-has-hover="true"]) #browser::after{
430+
opacity: 1 !important;
431+
left: -1px !important;
432+
}

0 commit comments

Comments
 (0)