-
DescriptionProblemI am creating a website that uses sidebar navigation with breadcrumbs. On some pages I would like to apply custom colours to the title block. I set these up in the yml header of the specific page where I would like the colours applied: page.qmd
The background colour is also applied to the breadcrumb section, however, the foreground (text colour) is not. I am not sure which css is applied to the breadcrumb text, but it seems to be the same as the body text, which is a dark colour on a light background. If you use a bright or dark banner background the breadcrumbs can be difficult to read.
The second would be my preferred option. I provide a reproducible example here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Use your favourite browser inspect/developer mode to identify the selector to use to define your CSS rule. |
Beta Was this translation helpful? Give feedback.
Here from the inspect/developer mode:
Then you create a CSS rule to overwrite (that's a quick and dirty CSS rule as the use of
!important
should be avoided in general)For more, I'm afraid you'll have to learn (S)CSS and how HTML works.