Skip to content

Commit

Permalink
add custom css
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jun Park <[email protected]>
  • Loading branch information
peterjunpark committed Jul 29, 2024
1 parent e56422b commit 2b83875
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
html_title = f"{project} {version_number} documentation"
exclude_patterns = ["*/includes/*"]

html_static_path = ["sphinx/static/css"]
html_css_files = ["o_custom.css"]

external_toc_path = "./sphinx/_toc.yml"
external_projects_current_project = "omniperf"

Expand Down
30 changes: 30 additions & 0 deletions docs/sphinx/static/o_custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
:root {
--amd-teal-500: #00C2DE;
--amd-teal-750: #00788E;
}

/* Override PyData Sphinx Theme default colors */
html[data-theme='light'] {
--pst-color-primary: var(--amd-teal-750);
--pst-color-primary-bg: var(--amd-teal-500);
--pst-color-table-row-hover-bg: #E2E8F0;
}

html[data-theme='dark'] {
--pst-color-primary: var(--amd-teal-500);
--pst-color-primary-bg: var(--amd-teal-750);
--pst-color-table-row-hover-bg: #1E293B;
}

html[data-theme='light'],
html[data-theme='dark'] {
--pst-color-link: var(--pst-color-primary);
}

a svg {
color: var(--pst-color-text-base);
}

a svg:hover {
color: var(--pst-color-link-hover);
}

0 comments on commit 2b83875

Please sign in to comment.