fix dark mode cmd + k
This commit is contained in:
parent
f7f3ab7440
commit
3a1a00f55a
2 changed files with 34 additions and 0 deletions
BIN
docs-search-dark-mode-fix.png
Normal file
BIN
docs-search-dark-mode-fix.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 158 KiB |
|
|
@ -30,3 +30,37 @@ h6[id] {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fix: Cmd+K search modal dark mode - popover/background CSS vars unset */
|
||||||
|
.dark [role="dialog"].bg-background {
|
||||||
|
background-color: #1a1a1a;
|
||||||
|
border-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .bg-popover {
|
||||||
|
background-color: #1a1a1a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .text-popover-foreground {
|
||||||
|
color: #e5e5e5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark [cmdk-item] {
|
||||||
|
color: #e5e5e5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark [cmdk-item][data-selected="true"] {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark [cmdk-input] {
|
||||||
|
color: #e5e5e5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark [cmdk-separator] {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark [cmdk-group-heading] {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue