Skip to content

Commit ca1eb67

Browse files
authored
Update userChrome.css - player at bottom of the sidebar
1 parent f3cc0f6 commit ca1eb67

File tree

1 file changed

+43
-28
lines changed

1 file changed

+43
-28
lines changed

userChrome.css

Lines changed: 43 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -362,20 +362,6 @@ body:has(#ctrlTab-panel[hasbeenopened="true"] .ctrlTab-preview:not([hidden="true
362362

363363
/* ------------------------------------------------------------------ */
364364
/* media player mods */
365-
/* #zen-media-controls-toolbar{
366-
display: block !important;
367-
opacity: 0 !important;
368-
scale: 0.5 !important;
369-
margin-bottom: 15px !important;
370-
transition: all 0.5s ease-in-out 10s !important;
371-
} */
372-
373-
/* always open media player when playing */
374-
/* #zen-media-controls-toolbar.playing{
375-
opacity: 1 !important;
376-
scale: 1 !important;
377-
transition: all 0.5s ease-in-out 0.3s !important;
378-
} */
379365

380366
/* media player expanded layout */
381367
#zen-media-controls-toolbar {
@@ -419,17 +405,7 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
419405
}
420406

421407
/* media controls glow */
422-
#zen-media-controls-toolbar.playing{
423-
toolbaritem{
424-
background-color: light-dark(#fffd, #000d) !important;
425-
}
426-
427-
padding: 16px 24px;
428-
position: relative;
429-
border-radius: 8px;
430-
box-shadow: 0 0 0 1px rgba(0,0,0,.01);
431-
432-
&::after {
408+
#zen-media-controls-toolbar::after{
433409
position: absolute;
434410
content: "";
435411
bottom: 0px;
@@ -440,6 +416,8 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
440416
width: 100%;
441417
transform: scale(0.9) translateZ(0);
442418
filter: blur(15px);
419+
opacity: 0 !important;
420+
transition: all 0.3s ease-in-out !important;
443421
background: linear-gradient(
444422
135deg,
445423
color-mix(in srgb, var(--zen-primary-color) 10%, black),
@@ -464,6 +442,20 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
464442
);
465443

466444
background-size: 200% 200%;
445+
}
446+
447+
#zen-media-controls-toolbar.playing{
448+
toolbaritem{
449+
background-color: light-dark(#fffd, #000d) !important;
450+
}
451+
452+
padding: 16px 24px;
453+
position: relative;
454+
border-radius: 8px;
455+
box-shadow: 0 0 0 1px rgba(0,0,0,.01);
456+
457+
&::after {
458+
opacity: 1 !important;
467459
animation: animateGlow 5s cubic-bezier(0.1, 0.7, 0.5, 0.1) infinite;
468460
}
469461

@@ -472,6 +464,7 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
472464
}
473465
}
474466

467+
/* glow animation */
475468
@keyframes animateGlow {
476469
0% {
477470
background-position: 0% 20%;
@@ -491,13 +484,14 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
491484
bottom:0 !important;
492485
opacity: 1 !important;
493486
z-index: 100000000 !important;
487+
494488
}
495489

496490
position: fixed !important;
497491
transform: translateX(-120%) !important;
498492
left: 0 !important;
499493
bottom: 0 !important;
500-
margin: 5px 5px !important;
494+
margin: 0px !important;
501495
z-index: 1000 !important;
502496
width: 150px !important;
503497
height: 50px !important;
@@ -515,18 +509,39 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
515509
}
516510
}
517511

512+
513+
/* hover to show workspace dots */
518514
#zen-main-app-wrapper[zen-compact-mode="true"] #navigator-toolbox{
519515
opacity: 1 !important;
520516
}
521517

518+
#zen-sidebar-bottom-buttons{
519+
bottom: -25px !important;
520+
opacity: 0 !important;
521+
transition: all 0.3s ease-in-out !important;
522+
}
522523

523524

525+
#navigator-toolbox:hover{
526+
#zen-sidebar-bottom-buttons, #zen-media-controls-toolbar{
527+
bottom: 0px !important;
528+
opacity: 1 !important;
529+
}
530+
}
524531

525532

533+
#zen-sidebar-bottom-buttons{
534+
order: 1 !important;
535+
}
526536

537+
#zen-media-controls-toolbar{
538+
order: 2 !important;
539+
}
527540

528-
529-
541+
/* no workspace indicator */
542+
#zen-current-workspace-indicator-container{
543+
display: none !important;
544+
}
530545

531546

532547

0 commit comments

Comments
 (0)