-
|
I'm trying to customize the breadcrumbs. For example, I want to set the font of the label to I tried: .breadcrumbs__link:not:first-child {
font-weight: bold;
}but this didn't work. this also didn't work: a .breadcrumbs__link > span {
font-weight: bold;
} |
Beta Was this translation helpful? Give feedback.
Answered by
slorber
Oct 19, 2023
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ZenaMel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Hey, the CSS classes are here and you just need to use CSS selectors correctly to target them, that's outside the scope of Docusaurus to teach you that
.breadcrumbs__link:not:first-child.breadcrumbs__linkis the first child of its parent, so... this is expected that:not:first-childdoes not match it. I can't teach you how:first-childworks, there are many CSS resources available online for thata .breadcrumbs__link > spanThe
breadcrumbs__linkclass is on theadirectly and not a child of it so your selector is wrong and should bea.breadcrumbs__linkinstead ofa .breadcrumbs__link.Again that's basic CSS knowledge, totally outside the scope of Docusaurus