Closed xan2622 closed 9 months ago
Yeah, not an issue with HSL but Stylus.
I tried to provide a Stylus theme that worked with me manually needing to update it.
Stylus doesn't allow third-party requests via @import
, which is why copy-pasting the contents works.
Describe the bug
While using the web version of Discord and the Stylus browser extension,
@import url("https://discordstyles.github.io/HorizontalServerList/dist/HorizontalServerList.css");
doesn't work.The goal of Stylus is to allow people to create custom CSS stylesheets to customize their favorite websites. So, I tried to create a custom stylesheet with the information provided by this HorizontalServerList Github repository.
To Reproduce
At this point, you should (unfortunately) notice that the Discord server list hasn't changed.
. . . Note that it works if the content of the CSS stylesheet is directly pasted into your custom Stylus stylesheet (so, without using
@import url
):. . . I would prefer using the
@import url("https://discordstyles.github.io/HorizontalServerList/dist/HorizontalServerList.css");
method as it makes the Stylus script always up-to-date.Does anyone know why
@import url
doesn't work? Thanks in advance.