docs: 避免文档搜索框被主题样式影响 Closes #6389 (#6819)

This commit is contained in:
吴多益 2023-05-08 14:03:31 +08:00 committed by GitHub
parent 5fe6cf5dfd
commit 0ed57be2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -164,7 +164,7 @@ export default class DocSearch extends React.Component {
show={this.state.show}
position={'right'}
>
<div className={`${this.props.theme.ns}TextControl-input search-bar`}>
<div className={`search-bar`}>
<Icon icon="search" className="icon" />
<input
ref={this.ref}

View File

@ -949,16 +949,23 @@ body {
.search-bar {
padding: 22px 20px;
border: 0;
border-bottom: 1px solid #e8ebee;
border-radius: 0;
font-size: 16px;
font-weight: 500;
display: flex;
> .icon-search {
margin-right: 10px;
top: 1px;
}
> input {
flex-basis: 1.875rem;
flex-grow: 1;
border: none;
outline: none;
width: 100%;
}
}
.search-result {