Conversation
Notices
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Saturday, 03-Feb-2024 23:45:45 JST Haelwenn /элвэн/ :triskell: @jpmens Adding `!important` to the color property works, or you could have `.rst-content code, code` instead of just `code`.
Reason being that CSS prefers the most specified rules over generic ones so your yellow is getting overridden.
screen.png-
Embed this notice
JP Mens (jpmens@mastodon.social)'s status on Saturday, 03-Feb-2024 23:45:46 JST JP Mens I realize you're all busy at Fosdem and whatnot and that it's Kaffee and Kuchen time, but the first person to teach me why my trivial CSS at https://owntracks.org/booklet/extra.css styles h2 in green but code not in yellow at https://owntracks.org/booklet/tech/json/ wins an honorable mention in said CSS file.
The colors can cause headaches, but it's my way of debugging.
Edit: Gergely Nagy wins:
/*
* My (JP's) thanks to Gergely Nagy for teaching me how this works!
*/.rst-content code {
color: yellow;
}
-
Embed this notice