P粉2324090692023-09-03 00:33:42
Cannot nest rules in CSS (can in SCSS). There is a first public working draft that allows nesting in CSS, so maybe in the future you will be able to.
So you need to do something like this:
<style> .category-rabbitmq themainbody::after { content: " RabbitMQ"; } </style>
I'm not sure how many levels the .category-rabbitmq
element has relative to themainbody
. If you know that themainbody
is a direct child of .category-rabbitmq
, then you can be more specific and use the child combinator and optimize: >
<style> .category-rabbitmq > themainbody::after { content: " RabbitMQ"; } </style>
See CSS Descendant Combinators and CSS Child Combinators.