Skip to content

Commit d32e96d

Browse files
authored
Fix icons (#131)
1 parent fa72856 commit d32e96d

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ jobs:
4242
run: coverage-rich report
4343
- name: upload coverage
4444
uses: codecov/codecov-action@v3
45+
with:
46+
fail_ci_if_error: true
47+
token: c66a2830-d3c7-4ae7-a230-21aef89dcf65

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test = [
2929
'pytest',
3030
'coverage',
3131
'coverage-rich',
32-
'toml', # coverage-rich’s dep anyconfig 0.13 needs this
32+
'anyconfig[toml] >=0.14', # coverage-rich uses anyconfig
3333
'legacy-api-wrap',
3434
]
3535
doc = [

src/scanpydoc/theme/static/styles/scanpy.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,22 @@ html[data-theme] .rtd__search__credits {
5555
html[data-theme] .rtd__search__credits a {
5656
color: var(--pst-color-link);
5757
}
58+
/*icons*/
59+
html[data-theme] .search__outer::before {
60+
/* this can’t be put on .search__outer__input, as <input/> supports no ::before */
61+
position: absolute;
62+
padding: 0.4em 0.3em;
63+
content: "\f002"; /* fa-magnifying-glass */
64+
font: var(--fa-font-solid);
65+
color: var(--pst-color-text-muted);
66+
}
67+
html[data-theme] .search__cross__img polygon {
68+
fill: currentcolor;
69+
}
5870
/*input*/
5971
html[data-theme] .search__outer__input {
6072
color: var(--pst-color-text-base);
73+
background-image: none; /* hide the default search icon */
6174
background-color: transparent;
6275
border-bottom-color: var(--pst-color-border);
6376
}

0 commit comments

Comments
 (0)