MrOtherGuy / firefox-csshacks

Collection of userstyles affecting the browser
Mozilla Public License 2.0
3.19k stars 312 forks source link

@import url - doesn't work WTF, bro❓ 😣 #276

Closed rediffusion closed 1 year ago

rediffusion commented 1 year ago

Hi, Y'all! 👋 Why the line like this so @import url(hacks/autohide_navigation_button.css); doesn't woking❓ Files are here.

Thank you for your time!

MrOtherGuy commented 1 year ago

The files you linked seem to work just fine. But you should note that line comments (start with //) are not supported in CSS. In this example it doesn't matter because you don't have any other CSS after that but if you would have then that would be ignored.

Also note that @import statements all need to be at the top of the file, otherwise they will be ignored.

rediffusion commented 1 year ago

@MrOtherGuy You have made my day! Many thanks!