SmartestHome/hosts/steam-tv-box/configs/firefox/userChrome.css

64 lines
1.9 KiB
CSS

/* Minimal browser chrome for the Steam TV box's browsing window.
* Installed to <profile>/chrome/userChrome.css by /usr/local/bin/web-browser, and only
* read because user.js sets toolkit.legacyUserProfileCustomizations.stylesheets=true.
*
* What survives: back, forward, reload, and the address bar. Everything else goes.
* That set is deliberate — those four are what someone driving this from the sofa with
* the remote's little keyboard actually needs, and every extra control is one more
* thing to mis-click on a television at two metres.
*
* Taken verbatim from hosts/thin-client/configs/firefox/userChrome.css; the two are
* meant to stay identical, so the browser behaves the same in every room.
*/
/* Tab strip. The kiosk browses one page at a time; a tab bar on a shared display just
* accumulates whatever the last person left open. */
#TabsToolbar,
#tabbrowser-tabs,
#alltabs-button {
visibility: collapse !important;
}
/* Menu bar and bookmarks bar. */
#toolbar-menubar,
#PersonalToolbar,
#PlacesToolbar {
visibility: collapse !important;
}
/* Everything on the nav bar except back / forward / reload / the address bar. */
#home-button,
#library-button,
#sidebar-button,
#fxa-toolbar-menu-button,
#unified-extensions-button,
#PanelUI-button,
#downloads-button,
#save-to-pocket-button,
#pageActionButton,
#star-button-box,
#reader-mode-button,
#customizableui-special-spring1,
#customizableui-special-spring2 {
display: none !important;
}
/* The urlbar keeps its identity box (padlock) — dropping it would hide the only
* on-screen signal that a page is or is not https. */
#urlbar-container {
min-width: 0 !important;
}
#nav-bar {
border: none !important;
box-shadow: none !important;
}
/* Titlebar spacers left over once the tab strip is collapsed. */
.titlebar-buttonbox-container,
.titlebar-spacer {
display: none !important;
}
/* Findbar and notification popups stay: they are transient and user-initiated. */