Auto-hide menu bar

Hi,

I’m a new to SilverBullet, and I’m really enjoying its flexibility. I’d like to use SilverBullet as a distraction-free writing tool (sometimes, anyway) which seems doable with PWA/full-screen and so on. But, is there any way to hide the toolbar? Is it something that could be done via Lua?

Any pointers appreciated - I’m happy to dive in a learn a bit of Lua if needed.

i might be a little (6 month) late with the answer. but i just saw the post now.

if someone is still interested in the answer: yes its possible in css (space-style) only.
here is the spece-style snippet to autohide the sb-top bar and add a drawer handle to it, so if you hover over the handle it expands the top-bar, and if you unhover it, it hides it again:

#sb-top {
  /* Slide fully off-screen, leaving only the handle visible */
  transform: translateY(-100%);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
/*  position: fixed; */
}

#sb-top:hover {
  transform: translateY(0);
}

/* The drawer handle tab */
#sb-top::after {
  content: '▽';
  position: absolute;
  bottom: -23px;
  right: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 14px;
  background-color: var(--top-background-color);
  border: 1px solid var(--top-border-color);
  border-top: none;
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  color: var(--top-loading-color);
  transition: color 0.15s, background-color 0.15s;
  pointer-events: auto;
  opacity: 0.5;
}

#sb-top:hover::after {
  content: '▲';
  color: var(--top-color);
  background-color: var(--top-background-color);
  opacity: 1;
}