ModalBox Highlighter

This CSS snippet is all about improving focus and usability when interacting with modal boxes in SilverBullet, such as search results, dialogs, or other pop-ups. Essentially, it’s a combination of visual polish and functional enhancement.

  • Dimensions & Shape: 600px wide, 80px from top, 15px rounded corners - modern, soft look.
  • Backdrop: Dark, semi-transparent, blurred overlay - focuses attention on modal.
  • Benefits: Improves focus, usability, and aesthetics with sleek, user-friendly design.

5 Likes

I use Silversearch.
If you’d like to add this effect to Silversearch it’s just two additions:


#sb-root:has(.sb-modal-box)::before, #sb-root:has(.sb-modal)::before {
  opacity: 1;
  pointer-events: auto;
}

.sb-modal-box[open], .sb-modal {
  position: fixed;
  z-index: 9999;
}

Seems to do the trick!

Thanks for sharing this – Looks great!

2 Likes

Added & Pushed. You can now update the library.

Thanks for the snippet.