style: 调整 docsearch 样式

This commit is contained in:
就眠儀式 2022-03-08 14:33:42 +08:00
parent 2735294f11
commit 51a654b490

View File

@ -21,19 +21,19 @@ onMounted(() => {
.DocSearch-Button { .DocSearch-Button {
outline: none; outline: none;
box-shadow:var(--docsearch-searchbox-shadow) box-shadow: none;
} }
.DocSearch-Button .DocSearch-Search-Icon, .DocSearch-Button .DocSearch-Search-Icon,
.DocSearch-Button-Placeholder { .DocSearch-Button-Placeholder {
color: whitesmoke; color: whitesmoke;
} }
:root { :root {
--docsearch-primary-color: var(--global-primary-color) ; --docsearch-primary-color: var(--global-primary-color) ;
--docsearch-searchbox-background: transparent; --docsearch-searchbox-background: rgba(255, 255, 255, 0.05);
--docsearch-searchbox-focus-background: transparent; --docsearch-searchbox-focus-background: rgba(255, 255, 255, 0.05);
--docsearch-logo-color: var(--global-primary-color); --docsearch-logo-color: var(--global-primary-color);
--docsearch-container-background: rgba(0, 0, 0, 0.1);;
} }
</style> </style>