@@ -339,13 +339,45 @@ body:has(#ctrlTab-panel[hasbeenopened="true"] .ctrlTab-preview:not([hidden="true
339
339
filter : blur (10px ) !important ;
340
340
}
341
341
342
+ /* transparent glance */
343
+ .zen-glance-background > vbox {
344
+ mask-image : linear-gradient (to right,
345
+ black 0% ,
346
+ black 4% ,
347
+ transparent 7% ,
348
+ transparent 93.5% ,
349
+ black 96% ,
350
+ black 100% );
351
+ mask-repeat : no-repeat;
352
+ mask-size : 100% 100% ;
353
+ }
342
354
343
- /* always open media player */
344
- # zen-media-controls-toolbar {
355
+ .zen-glance-overlay > vbox {
356
+ background-color : light-dark (# fff7, # 0007 ) !important ;
357
+ margin-top : 0.5% !important ;
358
+ margin-bottom : 0.5% !important ;
359
+ height : 98% !important ;
360
+ }
361
+
362
+
363
+ /* ------------------------------------------------------------------ */
364
+ /* media player mods */
365
+ /* #zen-media-controls-toolbar{
345
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{
346
375
opacity: 1 !important;
347
- }
376
+ scale: 1 !important;
377
+ transition: all 0.5s ease-in-out 0.3s !important;
378
+ } */
348
379
380
+ /* media player expanded layout */
349
381
# zen-media-controls-toolbar {
350
382
& .show-on-hover {
351
383
max-height : unset !important ;
@@ -360,42 +392,17 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
360
392
361
393
# zen-media-buttons-hbox > toolbarbutton {
362
394
opacity : 0 !important ;
363
- /* background-image: url("") */
364
395
transition : all 0.3s ease-in-out !important ;
365
396
& : hover {
366
397
opacity : 1 !important ;
367
398
}
368
399
}
369
400
370
- /* transparent glance */
371
- .zen-glance-background > vbox {
372
- /* filter: blur(20px) !important; */
373
- /* opacity: 0.05 !important; */
374
-
375
-
376
- mask-image : linear-gradient (to right,
377
- black 0% ,
378
- black 4% ,
379
- transparent 7% ,
380
- transparent 93.5% ,
381
- black 96% ,
382
- black 100% );
383
- mask-repeat : no-repeat;
384
- mask-size : 100% 100% ;
385
- }
386
-
387
- .zen-glance-overlay > vbox {
388
- background-color : light-dark (# fff7, # 0007 ) !important ;
389
- margin-top : 0.5% !important ;
390
- margin-bottom : 0.5% !important ;
391
- height : 98% !important ;
392
- }
393
-
394
401
# zen-media-controls-toolbar {
395
402
# zen-media-controls-hbox {
396
403
order : 0 !important ;
397
404
height : 0 !important ;
398
- opacity : 0 !important ;
405
+ overflow : hidden !important ;
399
406
}
400
407
401
408
& : hover # zen-media-controls-hbox {
@@ -408,14 +415,10 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
408
415
order : 1 !important ;
409
416
}
410
417
411
- # zen-media-controls-toolbar toolbaritem {
412
- background-color : light-dark (# fff3, # 0003 ) !important ;
413
- transition : all 0.5s ease !important ;
414
- }
415
-
418
+ /* media controls glow */
416
419
# zen-media-controls-toolbar .playing {
417
420
toolbaritem {
418
- background-color : light-dark (# fffc , # 000c ) !important ;
421
+ background-color : light-dark (# fffd , # 000d ) !important ;
419
422
}
420
423
421
424
padding : 16px 24px ;
@@ -461,43 +464,50 @@ max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease;
461
464
}
462
465
463
466
464
- /* urlbar glow */
465
- /* #urlbar[open][zen-floating-urlbar="true"] {
466
- #urlbar-background{
467
- background-color: #000 !important;
468
- padding: 16px 24px;
469
- position: relative;
470
- border-radius: 8px;
471
- box-shadow: 0 0 0 1px rgba(0,0,0,.01);
472
-
473
- &::after {
474
- position: absolute;
475
- content: "";
476
- top: 5px;
477
- left: 0;
478
- right: 0;
479
- z-index: -1;
480
- height: 100%;
481
- width: 100%;
482
- transform: scale(1) translateZ(0);
483
- filter: blur(25px);
484
- background: linear-gradient(
485
- to left,
486
- #ff5770,
487
- #e4428d,
488
- #c42da8,
489
- #9e16c3,
490
- #6501de,
491
- #9e16c3,
492
- #c42da8,
493
- #e4428d,
494
- #ff5770
495
- );
496
- background-size: 200% 200%;
497
- animation: animateGlow 3s ease-in-out infinite;
467
+ /* compact mode player */
468
+ # zen-main-app-wrapper [zen-compact-mode = "true" ] # zen-media-controls-toolbar {
469
+
470
+ & .playing # zen-media-focus-button {
471
+ position : fixed !important ;
472
+ left : 180px !important ;
473
+ bottom : 0 !important ;
474
+ opacity : 1 !important ;
475
+ z-index : 100000000 !important ;
476
+ }
477
+
478
+ position : fixed !important ;
479
+ transform : translateX (-120% ) !important ;
480
+ left : 0 !important ;
481
+ bottom : 0 !important ;
482
+ margin : 5px 5px !important ;
483
+ z-index : 1000 !important ;
484
+ width : 150px !important ;
485
+ height : 50px !important ;
486
+
487
+ & : hover {
488
+ transform : translateX (0 ) !important ;
489
+
490
+ # zen-media-focus-button {
491
+ position : initial !important ;
492
+ left : initial !important ;
493
+ bottom : initial !important ;
494
+ opacity : initial !important ;
495
+ z-index : initial !important ;
496
+ }
498
497
}
499
498
}
500
- } */
499
+
500
+ # zen-main-app-wrapper [zen-compact-mode = "true" ] # navigator-toolbox {
501
+ opacity : 1 !important ;
502
+ }
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
501
511
502
512
503
513
0 commit comments