65 lines
1.8 KiB
CSS
65 lines
1.8 KiB
CSS
/* Minimal browser chrome for the touch panel's general-browsing Firefox window.
|
|
* Installed to <profile>/chrome/userChrome.css by build-touch-panel-iso.sh, and only
|
|
* read because user.js sets toolkit.legacyUserProfileCustomizations.stylesheets=true.
|
|
*
|
|
* What survives: back, forward, reload, and the address bar — the four things a
|
|
* finger actually needs to drive this window, same reasoning as
|
|
* hosts/thin-client/configs/firefox/userChrome.css (adapted here for a touchscreen
|
|
* instead of ydotool/wayvnc remote input). Every extra toolbar button is one more
|
|
* small target to mis-tap.
|
|
*/
|
|
|
|
/* Tab strip. One page at a time; a tab bar on a shared panel 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;
|
|
}
|
|
|
|
#urlbar-container {
|
|
min-width: 0 !important;
|
|
}
|
|
|
|
#nav-bar {
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.titlebar-buttonbox-container,
|
|
.titlebar-spacer {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Touch targets: the remaining nav-bar buttons default to a mouse-sized hit area.
|
|
* Bumping padding here is cheaper than a full touch-optimised theme. */
|
|
#nav-bar toolbarbutton {
|
|
padding: 8px !important;
|
|
}
|
|
|
|
/* Findbar and notification popups stay: they are transient and user-initiated. */
|