Last active
August 31, 2023 14:05
-
-
Save emisjerry/e18cf51105bae1043b0d0dcac9188503 to your computer and use it in GitHub Desktop.
OmniSearch-CSS.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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