Skip to content

Commit

Permalink
make search a bit nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
jabinb committed Jul 28, 2024
1 parent b6e305b commit a831c89
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
with:
accountId: ${{ secrets.CF_ACCOUNT_ID }}
apiToken: ${{ secrets.CF_API_TOKEN }}
command: pages publish --commit-dirty --branch main --project-name=web-classicuo ./site/.vitepress/dist
command: pages deploy --commit-dirty --branch main --project-name=web-classicuo ./site/.vitepress/dist
55 changes: 55 additions & 0 deletions site/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,58 @@ ul > li {
.vp-doc video, img {
border-radius: 12px;
}

.VPNavBarSearch {
flex-grow: 1;
padding-left: 1rem;
}

.DocSearch-Button {
justify-content: flex-start;
border: 1px solid transparent;
border-radius: 8px;
padding: 0 14px 0 12px;
width: 100%;
height: 40px;
background-color: var(--vp-c-bg-soft);
}

.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key {
border-right: 1px solid var(--vp-c-divider);
border-left: none;
border-radius: 0 4px 4px 0;
padding-left: 2px;
padding-right: 6px;
}

.DocSearch-Button .DocSearch-Button-Key {
margin-left: auto;
margin-top: 2px;
border: 1px solid var(--vp-c-divider);
border-right: none;
border-radius: 4px 0 0 4px;
padding-left: 6px;
height: 22px;
line-height: 22px;
transition: color 0.5s, border-color 0.5s;
min-width: 0;
}

.DocSearch-Button .DocSearch-Button-Placeholder {
margin-top: 2px;
padding: 0 16px 0 0;
font-size: 13px;
font-weight: 500;
color: var(--vp-c-text-2);
transition: color .5s;
}

.VPPluginSearch-flex-logo {
max-height: 36px;
filter: grayscale(100%);
opacity: 0.8;
}

.DocSearch-MagnifierLabel {
display: none;
}

0 comments on commit a831c89

Please sign in to comment.