How to get the sticky NavBar with different color than colors before it gets fixed by scolling down?
Permalink Browser Info Environment
Hi,
I'd like to separate the colors for nav-bar between sticking and not sticking (e.g. before sticking opacity 0.6 and with sticking opacity 1.0.
What can I do? I found no option for it, so I think I need to hard code it, but where?
Can you support this question?
Best wishes
Danny
I'd like to separate the colors for nav-bar between sticking and not sticking (e.g. before sticking opacity 0.6 and with sticking opacity 1.0.
What can I do? I found no option for it, so I think I need to hard code it, but where?
Can you support this question?
Best wishes
Danny
Type: | Discussion |
---|---|
Status: | Resolved |
Forgot to add. Please back up your original files before making edits. You can then restore if something goes wrong.
Hi,
Thanks for your willing to support this topic.
But maybe you can give my a bit more details, where in the main.less I can find the part which makes the navigation bar sticky by scolling. I've searched but not found and now I don't know were to add my code for the bg color.
Best wishes
Danny
Thanks for your willing to support this topic.
But maybe you can give my a bit more details, where in the main.less I can find the part which makes the navigation bar sticky by scolling. I've searched but not found and now I don't know were to add my code for the bg color.
Best wishes
Danny
Another option is add something inline in the html of the theme which should override the whatever CSS is being used.
As a theme user I'd be wary of either approach as both will get overwritten when you update the theme to any new version we release.