2
submitted 10 months ago by elouboub@kbin.social to c/kbinMeta@kbin.social

I saw that CSS and JS are supported, but something simple like

.entry.section.subject:hover {
  background: azure;
}

and

console.log("hello");

don't work for me and there's no documentation, so maybe I'm doing something wrong.

top 2 comments
sorted by: hot top controversial new old
[-] Destragras@kbin.social 2 points 10 months ago

CSS does work - you can verify by selecting one of the "image" options and then saving. I don't know why yours will not work.

JavaScript doesn't work as far as I know.

[-] Pamasich@kbin.social 1 points 10 months ago* (last edited 10 months ago)

I have definitely seen magazine CSS before, so it should work. That CSS in particular works as well when I use it as a userstyle in Stylus, so there's nothing wrong with the CSS.

So I'm guessing the issue here is precedence. Your browser is probably preferring a different style over your magazine CSS. You should be able to check in the dev tools (f12 in chromium browsers) whether that's the case, as your style should be listed there when selecting an element it applies to, and, if I'm correct, the background should be crossed out.

this post was submitted on 13 Aug 2023
2 points (100.0% liked)

/kbin meta

4 readers
1 users here now

Magazine dedicated to discussions about the kbin itself. Provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics. ---- * Roadmap 2023 * m/kbinDevlog * m/kbinDesign

founded 1 year ago