Skip to content

Commit

Permalink
Fix icons (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored Jan 15, 2024
1 parent fa72856 commit d32e96d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ jobs:
run: coverage-rich report
- name: upload coverage
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
token: c66a2830-d3c7-4ae7-a230-21aef89dcf65
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test = [
'pytest',
'coverage',
'coverage-rich',
'toml', # coverage-rich’s dep anyconfig 0.13 needs this
'anyconfig[toml] >=0.14', # coverage-rich uses anyconfig
'legacy-api-wrap',
]
doc = [
Expand Down
13 changes: 13 additions & 0 deletions src/scanpydoc/theme/static/styles/scanpy.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,22 @@ html[data-theme] .rtd__search__credits {
html[data-theme] .rtd__search__credits a {
color: var(--pst-color-link);
}
/*icons*/
html[data-theme] .search__outer::before {
/* this can’t be put on .search__outer__input, as <input/> supports no ::before */
position: absolute;
padding: 0.4em 0.3em;
content: "\f002"; /* fa-magnifying-glass */
font: var(--fa-font-solid);
color: var(--pst-color-text-muted);
}
html[data-theme] .search__cross__img polygon {
fill: currentcolor;
}
/*input*/
html[data-theme] .search__outer__input {
color: var(--pst-color-text-base);
background-image: none; /* hide the default search icon */
background-color: transparent;
border-bottom-color: var(--pst-color-border);
}
Expand Down

0 comments on commit d32e96d

Please sign in to comment.