Skip to content

Commit

Permalink
MAINT: adapt the search hide matches style for dark and light theme. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 authored Jun 16, 2023
1 parent 6b96b23 commit 9335a62
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
name: Code style
runs-on: ubuntu-latest
steps:
- name: "Run PyAnsys code style checks"
- name: "Run Ansys code style checks"
uses: ansys/actions/code-style@v4
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
Expand Down Expand Up @@ -129,6 +129,6 @@ jobs:
twine-token: ${{ secrets.PYPI_TOKEN }}

- name: "Release to GitHub"
uses: pyansys/actions/release-github@v4
uses: ansys/actions/release-github@v4
with:
library-name: ${{ env.PACKAGE_NAME }}
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ html[data-theme="light"] {
* table hovering
*/
--pst-color-table-hover: var(--pst-color-border);

/*****************************************************************************
* search hide match
*/
--pst-color-search-match: #91969b;
}

html[data-theme="dark"] {
Expand Down Expand Up @@ -155,6 +160,11 @@ html[data-theme="dark"] {
* table hovering
*/
--pst-color-table-hover: var(--pst-color-target);

/*****************************************************************************
* search hide match
*/
--pst-color-search-match: var(--pst-color-primary);
}

/*
Expand Down Expand Up @@ -978,3 +988,13 @@ Border lines
.bd-sidebar-secondary {
max-height: calc(100vh - var(--pst-header-height) - 1vh);
}

/*
#################
search hide match
#################
*/

div#searchbox p.highlight-link a {
background-color: var(--pst-color-search-match);
}

0 comments on commit 9335a62

Please sign in to comment.