bufferhead-code/nightowl

Not working with position fixed.

Opened this issue · 4 comments

I tried it. It kind of works until I noticed children elements with position : fixed acting as position : relative. Which breaks the site.

I found that this scripts uses filter property. But is there anything can be done to fixed this issue?

But otherway nice tool.

According to specs:

A value other than none for the filter property results in the creation of a containing block for absolute and fixed positioned descendants unless the element it applies to is a document root element in the current browsing context.

@bufferhead-code I wonder if this can be solved by putting the filter on html (root) element instead of body.

i'd accept PRs with solutions for the position: fixed problem

i'd accept PRs with solutions for the position: fixed problem

i tried to make a navbar, with position: fixed;, it did not work, so i used position: sticky; and top: 0;, it made the navbar fixed, but not the toggle theme button, any thoughts on this?

i tried to make a navbar, with position: fixed;, it did not work, so i used position: sticky; and top: 0;, it made the navbar fixed, but not the toggle theme button, any thoughts on this everyone?