Skip to content

Instantly share code, notes, and snippets.

@emisjerry
Last active August 31, 2023 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emisjerry/e18cf51105bae1043b0d0dcac9188503 to your computer and use it in GitHub Desktop.
Save emisjerry/e18cf51105bae1043b0d0dcac9188503 to your computer and use it in GitHub Desktop.
OmniSearch-CSS.css
# OmniSearch-CSS.css
```css
/* OmniSearch plugin css snippets */
/* 搜尋到的符合字串高亮 */
.omnisearch-highlight {
color: var(--text-normal);
background-color: var(--text-highlight-bg);
}
.omnisearch-result {
border-bottom: 1px solid gray;
}
/* alternative row style */
.omnisearch-result:nth-of-type(even) {
background-color: black; /*var(--text-highlight-bg);*/
/*border-bottom: 1px solid var(--text-highlight-bg);*/
}
.omnisearch-result.is-selected {
border: 1px solid var(--color-accent);
}
/* 讓符合數字靠右 */
.omnisearch-result__counter {
float:right;
}
/* 設定結果項目的寬度為100%, 符合數字才會在最右側 */
.omnisearch-result div div {
width: 100%;
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment