doc: fix dark-mode-toggle style
- Use designated CSS parts to style the toggle properly - Use breadcrumbs_aside block to render dark mode toggle Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
13c516e04b
commit
8b3f23eddc
2 changed files with 16 additions and 3 deletions
12
doc/_static/css/custom.css
vendored
12
doc/_static/css/custom.css
vendored
|
@ -927,8 +927,16 @@ kbd, .kbd {
|
|||
background-color: var(--admonition-danger-background-color);
|
||||
}
|
||||
|
||||
#dark-mode-toggle {
|
||||
float: right;
|
||||
|
||||
dark-mode-toggle::part(fieldset) {
|
||||
padding-inline: 0.75rem;
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
dark-mode-toggle::part(darkLabel),
|
||||
dark-mode-toggle::part(lightLabel),
|
||||
dark-mode-toggle::part(toggleLabel){
|
||||
font-size: unset;
|
||||
}
|
||||
|
||||
/* Home page grid display */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue