On theme compat, change background of docs subnav

This is necessary because on theme compat, the tabs are set below rather than
above the title, which makes it hard to differentiate.
Only show permissions snapshot to logged-in users. See #277