mirror of
https://github.com/zen-browser/docs.git
synced 2025-07-07 17:05:34 +02:00
Corrected Dropdown CSS examples
This commit is contained in:
parent
2b84b36d4d
commit
5905c2b66f
1 changed files with 6 additions and 6 deletions
|
@ -250,19 +250,19 @@ You can use the following CSS to change the background color based on the select
|
|||
|
||||
```css {2,8,14}
|
||||
/* Light background */
|
||||
body:has(#theme-mytheme[background_color="light"]) {
|
||||
body:has(#theme-mytheme[theme-mytheme-background_color="light"]) {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Dark background */
|
||||
body:has(#theme-mytheme[background_color="dark"]) {
|
||||
body:has(#theme-mytheme[theme-mytheme-background_color="dark"]) {
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Blue background */
|
||||
body:has(#theme-mytheme[background_color="blue"]) {
|
||||
body:has(#theme-mytheme[theme-mytheme-background_color="blue"]) {
|
||||
background-color: #001f3f;
|
||||
color: #fff;
|
||||
}
|
||||
|
@ -319,17 +319,17 @@ You can combine the CSS like this:
|
|||
}
|
||||
|
||||
/* Dropdown for background color selection */
|
||||
body:has(#theme-mytheme[background_color="light"]) {
|
||||
body:has(#theme-mytheme[theme-mytheme-background_color="light"]) {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
body:has(#theme-mytheme[background_color="dark"]) {
|
||||
body:has(#theme-mytheme[theme-mytheme-background_color="dark"]) {
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
body:has(#theme-mytheme[background_color="blue"]) {
|
||||
body:has(#theme-mytheme[theme-mytheme-background_color="blue"]) {
|
||||
background-color: #001f3f;
|
||||
color: #fff;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue