Skip to content

Commit 66c4d82

Browse files
committed
chore: polish the Search
1 parent 89be1b2 commit 66c4d82

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

packages/plugin-algolia/src/runtime/Search.css

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.DocSearch {
2-
align-self: center;
3-
}
4-
51
[class*='DocSearch'] {
62
--docsearch-primary-color: var(--rp-c-brand);
73
--docsearch-text-color: var(--rp-c-text-1);
@@ -32,21 +28,10 @@ html.rp-dark [class*='DocSearch'] {
3228
--docsearch-container-background: rgba(0, 0, 0, 0.8);
3329
}
3430

35-
@media (max-width: 768px) {
36-
.DocSearch {
37-
--docsearch-searchbox-background: transparent;
38-
}
31+
.DocSearch {
32+
--docsearch-searchbox-background: transparent;
3933
}
4034

4135
.DocSearch-Button-Container > .DocSearch-Button-Placeholder {
4236
font-size: 0.825rem;
4337
}
44-
45-
span.DocSearch-Button-Keys > kbd {
46-
font-size: 0.825rem;
47-
}
48-
49-
.DocSearch-Screen-Icon {
50-
display: flex;
51-
justify-content: center;
52-
}

packages/theme-default/src/components/DocContent/doc.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@
165165
width: 100%;
166166
border-radius: var(--rp-radius);
167167
overflow: hidden;
168-
box-shadow: inset 0 0 0 1px var(--rp-c-divider-light);
168+
box-shadow: inset 0 0 0 0.5px var(--rp-c-divider-light);
169+
outline: 1px solid var(--rp-c-divider-light);
169170
}
170171

171172
/* thead */

website/rspress.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import {
1313
} from '@shikijs/transformers';
1414
import { pluginGoogleAnalytics } from 'rsbuild-plugin-google-analytics';
1515
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
16-
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
16+
17+
// import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
1718

1819
const siteUrl = 'https://v2.rspress.rs';
1920

@@ -43,7 +44,7 @@ export default defineConfig({
4344
},
4445
plugins: [
4546
pluginTwoslash(),
46-
pluginFontOpenSans(),
47+
// pluginFontOpenSans(), // removed this line for Rspress preview
4748
pluginSitemap({
4849
siteUrl,
4950
}),

0 commit comments

Comments
 (0)