Skip to content

Commit

Permalink
Merge pull request #123 from selemondev/fix-algolia-search
Browse files Browse the repository at this point in the history
fix(app): algolia component theme
  • Loading branch information
selemondev authored Aug 17, 2023
2 parents 8937b10 + a002b47 commit 8932320
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 32 deletions.
3 changes: 1 addition & 2 deletions docs/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// https://vitepress.dev/guide/custom-theme
import { h, watch } from 'vue'
import Theme from 'vitepress/theme'
// import './style.css'
import './overrides.css'
import DemoBlock from '../components/demo-block'
import './overrides.css'
import "./rainbow.css"
import "./style.css"
import './tailwind.css'
Expand Down
42 changes: 21 additions & 21 deletions docs/docs/.vitepress/theme/overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,24 @@


/* VitePress Search */
.VPLocalSearchBox .result {
--vp-c-bg-search-result: var(--vp-c-bg);
background: var(--vp-c-bg-search-result) !important;
padding: 4px !important;
border: 1px solid var(--vp-c-divider) !important;
}
.VPLocalSearchBox .result.selected {
--vp-c-bg-search-result: var(--vp-c-bg-soft) !important;
}
.VPLocalSearchBox .result .excerpt-gradient-top {
background: linear-gradient(var(--vp-c-bg-search-result),transparent) !important;
}
.VPLocalSearchBox .result .excerpt-gradient-bottom {
background: linear-gradient(transparent,var(--vp-c-bg-search-result)) !important;
}
.VPLocalSearchBox .title-icon {
display: none;
}
.VPLocalSearchBox .excerpt-wrapper {
margin-top: 4px;
}
.VPLocalSearchBox .result {
--vp-c-bg-search-result: var(--vp-c-bg);
background: var(--vp-c-bg-search-result) !important;
padding: 4px !important;
border: 1px solid var(--vp-c-divider) !important;
}
.VPLocalSearchBox .result.selected {
--vp-c-bg-search-result: var(--vp-c-bg-soft) !important;
}
.VPLocalSearchBox .result .excerpt-gradient-top {
background: linear-gradient(var(--vp-c-bg-search-result),transparent) !important;
}
.VPLocalSearchBox .result .excerpt-gradient-bottom {
background: linear-gradient(transparent,var(--vp-c-bg-search-result)) !important;
}
.VPLocalSearchBox .title-icon {
display: none;
}
.VPLocalSearchBox .excerpt-wrapper {
margin-top: 4px;
}
1 change: 1 addition & 0 deletions docs/docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,5 @@

.DocSearch {
--docsearch-primary-color: var(--vp-c-brand) !important;
border: 1px solid var(--vp-c-divider) !important;
}
9 changes: 0 additions & 9 deletions docs/docs/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { defineConfig } from 'vite'
import { SearchPlugin } from "vitepress-plugin-search";
import UnoCSS from 'unocss/vite'
var options = {
previewLength: 62,
buttonLabel: "Search",
placeholder: "Search docs",
allow: [],
ignore: [],
};
export default defineConfig({
optimizeDeps: {
exclude: [
Expand All @@ -21,6 +13,5 @@ export default defineConfig({
},
plugins: [
UnoCSS(),
SearchPlugin(options)
],
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"jsdom": "^22.1.0",
"lint-staged": "^13.2.3",
"postcss": "^8.4.27",
"postcss-prefix-selector": "^1.16.0",
"rimraf": "^5.0.1",
"sass": "^1.64.1",
"simple-git-hooks": "^2.9.0",
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8932320

Please sign in to comment.