Skip to content

Commit

Permalink
refactor: Rewrite Firefox userChrome CSS to support permission mockup…
Browse files Browse the repository at this point in the history
…s and proper titlebar margins

Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
  • Loading branch information
pojntfx committed Oct 22, 2024
1 parent be50682 commit 97414e4
Showing 1 changed file with 13 additions and 31 deletions.
44 changes: 13 additions & 31 deletions hydrapp/pkg/ui/browser_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,23 @@ user_pref("browser.sessionstore.resume_from_crash", false);
user_pref("ui.key.menuAccessKeyFocuses", false);`
userChromeCSSContent = `@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#nav-bar,
#urlbar-container,
#searchbar,
#PersonalToolbar,
#tabbrowser-tabs,
#TabsToolbar #firefox-view-button,
#alltabs-button {
visibility: collapse !important;
}
#navigator-toolbox {
border: 0 !important;
#TabsToolbar-customization-target {
visibility: hidden !important;
}
:root[sizemode="fullscreen"] #navigator-toolbox {
position: relative;
z-index: 1;
height: 3px;
margin-bottom: -3px;
opacity: 0;
overflow: hidden;
}
:root[sizemode="fullscreen"] #navigator-toolbox:hover {
height: auto;
margin-bottom: 0px;
opacity: 1;
overflow: show;
#PersonalToolbar,
#tabbrowser-tabs {
display: none !important;
}
:root[sizemode="fullscreen"] #content-deck{
position:relative;
z-index: 0;
}
`
#nav-bar {
z-index: -1;
height: 0;
width: 0;
min-height: 0 !important;
min-width: 0 !important;
border: 0 !important;
}`

epiphanyDesktopFileTemplate = `[Desktop Entry]
Name=%v
Expand Down

0 comments on commit 97414e4

Please sign in to comment.