-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render the website's contents under the urlbar and tab bar like macOS' Safari #16
Comments
I'm not really sure if you can achieve this by just using CSS. But I think this is better/more beautiful than rendering the desktop. Yeah, this is a nice suggestion/question but I don't know how to implement this. Patches welcome, of course. |
So it turns out that you can do this by just using CSS: Change the toolbar#nav-bar {
background: var(--bf-navbar-bg) !important;
padding: var(--bf-navbar-padding) !important;
position: absolute !important;
z-index: 99999 !important;
margin-bottom: -50px !important;
backdrop-filter: blur(20px) !important;
/* Remove horizontal line on navbar */
box-shadow: none !important;
border-top: none !important;
} The problem with this is that if the website has navigation bar, firefox's #nav-bar will hide it. Of course, there could be a better way of implementing this. Is safari also have this problem or it doesn't render the web content under the titlebar if the webpage has navigation bar? |
@manilarome |
@manilarome What I found more interesting, is how it's being handled on Ukrainian website called olx - there is auto-hiding navbar, and in Safari it goes completely under the panel when hidden: Not sure if it's feature and not a bug :) But probably may tell you something about how Safari processes navbars. |
Sorry about the lack of mac support. Good luck! How safari handle the navbars are interesting. I'll look more into it. Maybe we can find a hack/way to implement this. |
I think this is a better implementation: #navigator-toolbox {
position: absolute !important;;
overflow: visible !important;
z-index: 99999;
backdrop-filter: blur(6px) !important;
}
#browser {
margin-top: -100px !important;
} Anyway, please consider requesting a PR if you are able to make this theme work on macOS. |
@manilarome |
@manilarome If you manually add I guess maybe it maybe can be done with some modifications to the sites itself -- maybe using some automatic parsers like TamperMonkey |
It doesn't work well here.
Yeah. I think the navigation bar staying on top was designed for safari browser so we don't really have a way to achieve it by just using CSS. |
@manilarome |
@manilarome
The only issue I see here is that navbars get scrolled with page instead of standard sticky behavior (see the gif I've sent above). |
Oof, my bad.
Yeah, they're a billion dollar company after all.
It works! Now if we only have a way to alter the properties of the current webpage's navigation bar to make it sticky or something we could probably implement this right now. |
@manilarome
And it kind of works - with issues, and only for StackOverflow.... |
Nice! Your fast, eh? Haha.
No problem. I'll also check my most visited websites so I can add them to userContent. |
@manilarome Honestly, I found scrolled navbars issue more disturbing :) |
Hmm, I actually liked this appearance :) |
I'm already using this to test the theme real-time. The problem is the gray background seems like a part of the web page. The inspector can't select it. Anyway, we really need to address the issues(nav-bars, headers, etc.) before implementing this. |
Sure! But I'm glad it seems to be at least possible - only need to solve issues :) |
I'll just leave this issue open. I don't really have an idea on how to support all the websites' navbar/header. We also need to fix the gray background. |
Yeah, same. Maybe it'll be great idea to ask on Reddit about this? Somebody may help. |
I have spent a few hours looking into this, and I wanted to share what I found. I believe the way Safari does it is that it sets the overflow of the brower object itself to visible. This allows the page to render normally, as it still stays in the same sized and positioned window, but the scrolled content can appear under the navbar. However, userChrome.css does not seem to have access to the direct parent of the What could work is somehow moving all the content down 100px (with |
I believe how Safari does it is that they have the contents of the window ABOVE the top showing under the urlbar. That means the things on top is not actually visible at the current scroll |
Very awesome appearance!
My only question is - is it possible to achieve behaviour similar to Safari on Mac OS?
E.g. title bar blures site's content behind it instead of desktop's content.
The text was updated successfully, but these errors were encountered: